3
votes
1answer
3k views

PIL image.open() working for some images but not others

I use PIL to open AREA files from NOAA on a regular basis. In the last batch of images I received, the image.open() command simply does not work. Here is a simple code I wrote which yields the same ...
-5
votes
3answers
58 views

How to open an image in python [on hold]

I'm trying to open an image in python, but I can't figure out how to. I tried to look it up all over the place but I couldn't find how. So I downloaded PIL and then I typed import PIL controller = ...
0
votes
1answer
22 views

Approximating surface area from an image with Python

I plan to calculate the surface area of this cone by Splitting the image into top/bottom halves of the cone Finding the brightest spot on top/bottom halves Finding the distance between brightest ...
0
votes
0answers
26 views

Can't import tinycss

I'm trying to import tinycss into my main.py so I can pull a URL from my css but I can't because the module doesn't exist to the version of python I'm using. Is there a place I have to import tincss ...
3
votes
2answers
658 views

Python: Colorize image while preserving transparency with PIL

Okay, here's the case: I want to use the Python Image Library to "theme" an image like this: Color: "#33B5E5" IN: http://mupload.nl/img/olpiyj9is.png OUT: http://mupload.nl/img/fiaoq6gk5.png I got ...
0
votes
1answer
15 views

function to remove red in an image using python module image

I am trying to trying to teach myself python from the net. Have no previous prg experience. need help on how to write a function to remove red from an imgae using the 'image' module in python. The ...
1
vote
1answer
68 views

Need to improve performance. Taking thousands of screenshots with PIL

So what I'm doing is taking screenshots of screen, getting the pixel RGB value, and putting it in another image. The code can be found here or below. Everything works fine, except it's slow, and makes ...
2
votes
2answers
297 views

superimpose an image over another image with python

Is there a built in function that allows an image to be added over another image in python? Thanks a lot
1
vote
1answer
341 views

Merge picture with video

I want to load an image then merge that image with realtime video frame. How can I do this with OpenCV? I would prefer to use Python, but am open to other languages. My code so far is (frame is video ...
0
votes
1answer
689 views

Add Text on Image using PIL.

I have an application that loads an Image and when the user clicks it, a text area appears for this Image (using jquery), where user can write some text on the Image. Which should be added on Image. ...
-1
votes
2answers
65 views

How to write lines and grid on image in Python?

import numpy as np from matplotlib import cm from matplotlib import pyplot as plt import Image from scipy import ndimage import Image, ImageDraw import PIL import cv import cv2 from scipy.ndimage ...
0
votes
1answer
12 views

Set a custom size grip in QStatusBar in PyQt4

How do i set a custom SizeGrip-icon in the lower right corner? I don't find any snippets and can't figure out. The only snippets are for a QSizeGrip and not for a grip inside a QStatusBar. Here is my ...
0
votes
1answer
40 views

How to compute colored pixel area on images using Python?

import numpy as np from matplotlib import cm from matplotlib import pyplot as plt import Image from scipy import ndimage import Image, ImageDraw import PIL import cv import cv2 from ...
0
votes
1answer
27 views

Python thresholding image, how to select pixels correctly

from scipy import ndimage import Image, ImageDraw import PIL import cv import cv2 from scipy.ndimage import measurements, morphology from PIL import Image from numpy import * from scipy.ndimage import ...
0
votes
1answer
28 views

filling a given colour in pygame

My objective is to create a function named findList() which holds the given parameter of a point and the screen surface. My aim is to calculate the colour of that point then return a list of the ...

1 2 3 4 5 70
15 30 50 per page