Tagged Questions
1
vote
0answers
17 views
empty request.FILES in django when upload image from android
I want to upload image from android app to djnago. this is my android code to upload image:
public void upload(String filepath) throws IOException{
HttpClient httpclient = new ...
0
votes
1answer
17 views
Facebook API get higher image resolution
I currently use the Python facebook-sdk to poll the facebook API to get a list of posts on a page's wall.
Very roughly the essential parts of this look like
import facebook
# Get access token for ...
0
votes
0answers
12 views
Frame Buffer Image Viewer Load Subsequent Image
I was having some trouble using fbi in the following manner:
import os
import time
while True:
os.system('sudo fbi -m "1920x1080-60" --autoup -t 10 -noverbose -d /dev/fb0 -T 2 ...
0
votes
1answer
13 views
Cant Load Image Into Canvas from Local Directory. With help from button and fileMenu
import os, os.path, sys
from glob import glob
from Tkinter import *
import tkFileDialog, Tkconstants
from tkFileDialog import *
import tkMessageBox as box
from PIL import Image, ImageTk
...
0
votes
0answers
14 views
Python 3.* Changing window background via button click
I've been using the site for a while, very helpful for many things linux and python, so thanks :) I have found out how to put a background on an application window. I made a button that leads to a ...
0
votes
2answers
21 views
How to convert grayscale values in matrix to an image in Python?
I have a set of grayscale values in matrix of shape 24x24:
masked=[[149 172 160 166 170 179 180 176 202 190 221 232 125 112 153 132 200 185
191 231 227 101 85 127] ...
And I try to save this ...
0
votes
2answers
27 views
AttributeError: 'numpy.ndarray' object has no attribute 'append':Image processing example
I will first explain what I want to do. I have an image and I want to store the pixel values for a specific ROI. For that reason I implement the following loop(found in another topic of the site):
...
0
votes
0answers
9 views
ImageSpecField simply does nothing with django-imagekit in django-rest-framework
I've got the following setup:
#models.py
class Image(models.Model):
original = models.ImageField(upload_to='images/')
formatted_image = ImageSpecField(source='original', format='JPEG', ...
1
vote
1answer
19 views
Django/Python/toDataURL return a response with the string from toDataURL
I have saved in a database a string return by the javascript method toDataURL. An exemple is available here: http://pastebin.com/0Qu8rngD
I need to return the image in a django response. Something ...
0
votes
1answer
28 views
Python: Tkinter not displaying my image or UI
I am trying to create a user interface with a picture in its top right corner. Here is my code:
import tkinter as tk
import urllib.request
import base64 as b64
class my_ui(tk.Tk):
def ...
0
votes
1answer
28 views
How to view images in django html template
I keep getting 404 error even though the url to the image is accurate. Yes, I have looked at official django docs and a whole lot of stackoverflow posts. I couldn't figure it out from those. If anyone ...
0
votes
1answer
26 views
Save Images from Url's stored in List - Python Simple
Using a list I am able to get all url's from a webage already into list imgs_urls. I need to now how to save all images from a webage, with the number of images changing.
Within the imgs_urls list ...
0
votes
1answer
27 views
Django: does ImageField need a filepath or an actual image object?
Running: Windows 7, Python 3.3, Django 1.6
I'm confused as to how to store an image as part of a table in a Django database. There is a field called ImageField, and here are the Docs.
Question:
...
0
votes
2answers
20 views
Python OpenCV detect a white object from a binary image and crop it
My goal is detecting a piece of white paper from this binary image and then crop this white paper and make a new subset binary image just for this white paper.
Now my Python code with OpenCV can ...
-2
votes
0answers
18 views
Basic tutorial on uploading and retrieving image data to send to client mobile app? Python Tornado
I am having trouble finding some basic Tornado tutorials on how to simply upload and image and retrieve that image. In this case, it isn't a static request I don't think because the app requires the ...
0
votes
1answer
18 views
Adding and removing image Tkinter / root
Below is my code. The code is from within a different program, so a button would be clicked
on another program and initiate this code.I have been struggling with this a while, in short i am trying to ...
0
votes
1answer
42 views
How to Read 16Uint Images in Python
I am having a medical 16 unsigned jpeg image and I need to read it in python.
these images can be read only with mathlab for my project I need to read its actual pixel values and need to do some ...
0
votes
1answer
21 views
How do I output a numpy array as an image through webpy?
I am trying to follow the documentation here, but when I did the following:
web.header('Content-type', 'image/png')
buf = StringIO.StringIO()
scipy.misc.imsave(buf, my_numpy_data, format='png')
...
0
votes
1answer
24 views
Matplotlib: force aspect ratio in series of plots
I have a series of images that represent physical regions of space, i.e. they are images of objects. They do not have a uniform amount of pixels, but in EVERY case, the resolution along the y-axis is ...
3
votes
0answers
53 views
Numpy View Reshape Without Copy (2d Moving/Sliding Window, Strides, Masked Memory Structures)
I have an image stored as a 2d numpy array (possibly multi-d).
I can make a view onto that array that reflects a 2d sliding window, but when I reshape it so that each row is a flattened window (rows ...
0
votes
1answer
30 views
Java - Drawing Images Basically
I've come from Python to Java and am a bit confused. My main question is how to draw an image. I've looked on the oracle site but even when copy - pasting their code it didn't work. Here is what I had ...
0
votes
0answers
25 views
How Do You Resize an Image in Python Using Pyglet
I'm new to Pyglet (and stackoverflow) and cannot seem to find out how to resize images.
'pipe.png' is the image that I am trying to adjust the size of.
With this code, the image is not fully shown ...
1
vote
1answer
41 views
Image rotation angle opencv python
I am developing plate detection algorithm.
I made plate localization and now new problem appear.
I want to detect plate image rotation angle and rotate if necessary.
But how to detect this ?
I tried ...
3
votes
2answers
68 views
How to detect a shift between images
I am analyzing multiple images and need to be able to tell if they are shifted compared to a reference image. The purpose is to tell if the camera moved at all in between capturing images. I would ...
0
votes
2answers
50 views
How to convert a text file that contains image data to image?
I have a text file that contains image data (1 picture) in the format of hexadecimal.
12:0a:11:0b:08:18:0d:0e
0e:0c:14:12:0a:0d:10:0e
0f:12:0b:0e:0c:0e:0a:14
11:13:0c:0e:13:0e:0a:10
...
0
votes
2answers
32 views
Manipulating Large Amounts of Image Data in Python
I have a large number of images of different categories, e.g. "Cat", "Dog", "Bird". The images have some hierarchical structure, like a dict. So for example the key is the animal name and the value is ...
0
votes
1answer
26 views
Assigning a RGB column array to an arbitrary number of columns in an image array
Let's say I have a 4x5 RGB image array, a single RGB row array, and a single RGB column array.
import numpy as np
img=np.zeros((4,5,3))
row=np.arange(15).reshape((5,3))
...
0
votes
1answer
27 views
Getting actual facebook and twitter image urls using python
I want to write a python code that downloads 'main' image from urls that contain images.
I have urls like these in my data (text files)
http://t.co/fd9F0Gp1P1
points to an fb image
...
0
votes
1answer
38 views
Convolution of an Image in python
I run the following script
from PIL import Image
import numpy as np
from scipy import signal as sg
from PIL import Image
import numpy as np
from scipy import signal as sg
def ...
-2
votes
1answer
19 views
Python: How to donwload a image from the Internet through it URL
I´m interested in downloading a .jpg file from the Internet.
I would like to know a function or anyway that lets me to download files from the python console.
So I suppose the way would be more or ...
0
votes
1answer
50 views
Kivy image update on screen size change
So my problem is this. I have a background image that works great, when i rescale the window everything works out and the image moves like designed but in my login class my 'check-icon.png' does not ...
0
votes
1answer
17 views
Save dynamicly named Images from HTTPBasicAuthHander Authenticated page
I am wanting to open a webpage of a internal webpage for a reporting tool called statseeker, that stores images that are generated from a report ran when a URL is opened. So far I am at this:
import ...
1
vote
1answer
33 views
How to selectively do summation of Template and Image Patch pixels based on the corresponding alpha channel pixel in Template?
I am using this OpenCV function (cv2.matchTemplate) in Python.
There are 6 matching methods that I can use. The following are 2 examples.
CV_TM_SQDIFF:
CV_TM_SQDIFF_NORMED:
According to the ...
1
vote
0answers
24 views
take images in a short time using the Raspberry Pi camera module
I'm working on a project in which I need to take about 30 images per second (no movie) using the Raspberry Pi camera module.
I'm using the Picamera library ...
1
vote
1answer
19 views
Python Image (PIL) library not resizing properly per kwargs
Here is my code:
import Image
import sys
import json
if __name__ == '__main__':
args = json.loads(sys.argv[1])
srcPath = args.get('srcPath')
image = Image.open(srcPath)
sizes = {}
...
0
votes
2answers
39 views
matplotlib.pyplot: remove white space and keep same size while saving the image
I know some some people have asked this problem before, but the solutions they provided seems do not work to mine.
I just give the links below and maybe they are helpful for you.
Matplotlib plots: ...
-1
votes
0answers
44 views
def a function but never finished
I would like to paste few images into a canvas, so I wrote a function to active it.The idea of this function is paste the image into a canvas and then save the modified canvas.
def ...
-1
votes
1answer
43 views
OpenCV overlay edges onto original image [closed]
I am making a program that counts cells in an image. However, to prove the efficacy of it, I need to create an image that shows the edges of each cell to show where the computer finds cells.
I am ...
1
vote
2answers
32 views
python 2.7 - How do I save images to a directory from a list of URLs in a CSV file
I have a CSV file with two columns, an image name and an image url...
EXAMPLE
Column A -- Column B
image1 -- http://www.image1.jpg
image2 -- http://www.image2.jpg
I am trying to use Python 2.7 to ...
1
vote
0answers
42 views
To find the creation date of the google map image from Python(preferred) or Javascript [closed]
I am looking for a programmatic way to find the date of the satellite image for the lat,long coordinate. Currently I’m using the below API ...
0
votes
1answer
22 views
Python GTK3 button with image and label
I'm trying to get buttons with image and label and didn't succed. I can have button with label OR image but not both.
This is my part of code:
try:
pb = ...
-1
votes
1answer
45 views
How to remove light's deflections
I work with image processing in OpenCV in python.
My main problem is light deflection. Can these deflections be removed with some method?
I implemented a lot of code here, but cant find this ...
1
vote
0answers
77 views
What caused win blue screen when using Python3.4 urllib.request to to download large number of images
I was trying to download a large number of images from web based on 3 columns from a table in a pre-built database. The three columns I retrieved are imageId, imageName, and imageUrl. Same imageId ...
0
votes
0answers
39 views
Python ImageMagick pip install of pymagick not working
I'm looking to install image magic with pip. I was under the impression that pymagick was the way to do this.
I would like to use it to determine color schemes of images.
pip install ... ...
0
votes
0answers
15 views
Getting various image files most common colors in Python
I read this: https://gist.github.com/zollinger/1722663
I need to handle svg, png, and jpg files.
However I keep getting this printed: something went wrong in color setting. When I remove the try ...
-1
votes
3answers
39 views
Python: display a matrix with negative and positive values [duplicate]
I have a matrix m with positive and negative values. I would like to visualize this matrix in Python. In MATLAB, I can display this matrix so that the most negative value gets mapped to 0 while the ...
0
votes
0answers
18 views
How make a rotating spiral in python?
I'm working on a project of visual attention and I must affich a rotating spiral on the side of my screen.
I have never programming before now...
My probleme is that I want the spiral stay at a ...
0
votes
2answers
29 views
Image does not appear Django template
I am trying to load some images into a template but it continues to appear as broken link
My files and directories are as follows
1.views.py
def home(request):
#template = ...
0
votes
1answer
15 views
Why can't I call a Kivy.core.image function?
I did a program using python and pyGTK. Now, I'm translating it to Kivy, for use it with a tablet (Android). One archive.py is a custom widget with graphic information about a person (an image of ...
0
votes
2answers
41 views
django Downloaded image file not storing in a temp file
I am new in django.I have a project where user can download various images.I want to keep track on downloaded image.Thats why i want to store the downloaded image file in a temp file.i have create a ...