0
votes
0answers
35 views

Finding small image inside large (PIL + OpenCV)

I'm trying to do as described here: Finding a subimage inside a Numpy image to be able to search an image inside screenshot. The code looks like that: import cv2 import numpy as np import gtk.gdk ...
-2
votes
3answers
84 views

Converting plain text list into array in python program [closed]

The TextFile.txt file contains: 1 one 2 two 3 three 4 four 5 five The python program: file = open ("x.txt", "r") for item in file: x = item.split ('\s') import numpy as np ...
2
votes
1answer
75 views

Loading a blob(Google app Engine) into PIL or NumPy

I'd like to be able to load a blob(image into the Python Image Processing Library or into a numpy array for analysis(such as mean, median, standard deviation) without using the serving url. Here is ...
1
vote
2answers
89 views

View a sequence of images using Python and NumPy

I am using python's pil library to display images. Now I have a sequence of frames to display as a video content. I have a np.array that contains the RGB values of all the frames. Could not find a ...
0
votes
1answer
72 views

Systematically moving through every number in a numpy array

I have a 500x500 array and I am trying to write a variable called "coordinate" that will pick out each value and then apply it to a function but I keep getting the output, AttributeError ...
1
vote
1answer
97 views

Data type error

When I run this code I get the output: TypeError: an integer is required I have no idea why this is happening because I set both of the data types to uint8 and uint64 respectively. Evidently I ...
0
votes
1answer
170 views

Read binary .pgm files with python and numpy

I need to read 64x64 pgm plain format image files and put the resulting values in a numpy matrix. I can do it only if I use Opencv and PIL functions to open the image, but the final numpy matrix ...
1
vote
1answer
257 views

Convert image from RGB to HSV color space

I couldn't fund such function in Scipy and Matplotlib documentation, and Google doesn't show pointers, except ActiveState recipe which demonstrates rgb2hsv function, thou not usable on Numpy array as ...
1
vote
1answer
136 views

loop binary image pixel

i have this image with two people in it. it is binary image only contains black and white pixels. first i want to loop over all the pixels and find white pixels in the image. than what i want to ...
3
votes
1answer
466 views

image processing using python and scipy

Hi I am trying to do image processing with python. what i actually want to do is i have image with human and i need to indetify human faces or detect circle (basically human face). what i have done ...
2
votes
1answer
373 views

Opencv integration with wxpython

I just wanted to integrate the opencv video stream from my web cam into a more complex gui than highgui can offer, nothing fancy just a couple of buttons and something else, however it's proven to be ...
1
vote
0answers
168 views

Detecting shape using numpy for image of people

hi i am trying to do face detection without using opencv. I am filtering the image to find edges of the image. I am widening the edges of the image for clear. I want to recognise the shape in the ...
2
votes
3answers
722 views

Grayscale image to NumPy array for Fourier transform

Currently I'm using PIL and NumPy. I have a colored png image and I want to: Read it in in grayscale Convert to NumPy array Perform a FFT on array Display the image This is what I'm trying (in ...
1
vote
1answer
418 views

Retain unchanged data when saving Numpy array to image with Scipy imsave

When saving a 2-dimensional Numpy array (of single values) with Scipy toimage or imsave the pixel values do not exactly match those in the Numpy array. Instead there are areas, mostly at edges, where ...
1
vote
1answer
62 views

numpy.equal with nested lists

I'll want to search a rectangle in a picture. The picture is gathered from PIL. This means I'll get a 2d-array where each item is a list with three entries for the colors. To get where's the ...

1 2 3 4 5
15 30 50 per page