Re: [Image-SIG] Make the difference between a picture and a photo

2008-02-04 Thread Fredrik Lundh
Seed wrote: > Is there a way with or without PIL python librairy to detect if an > image looks like a picture more than a photography and the opposite? assuming you mean a (computer) drawing vs. a photo, a simple way is to count the number of colors in the image. you can use the "getcolors"

Re: [Image-SIG] Memory Error

2008-02-04 Thread Fredrik Lundh
Dennis Kepler wrote: > I seem to be having a memory problem, except all I'm doing is applying a > contrast enhancement to a .tiff or .jpg. I get this error: *return > im1._new(core.blend(im1.im, im2.im, alpha)) MemoryError* > ** > The JPEG is about 45mb. > The TIFF is about 600mb. > > My code

[Image-SIG] Memory Error

2008-02-04 Thread Dennis Kepler
I seem to be having a memory problem, except all I'm doing is applying a contrast enhancement to a .tiff or .jpg. I get this error: return im1._new(core.blend(im1.im, im2.im, alpha)) MemoryError The JPEG is about 45mb. The TIFF is about 600mb. My code looks like this: import sys, os import gl

image-sig@python.org

2008-02-04 Thread Dennis Kepler
Mark, Did you get an answer or did you figure out your MemoryError issue concerning the python program you sent to Image-SIG on June 14, 2007? I seem to be having the same type of problem, except all I'm doing is applying a contrast enhancement to a .tiff or .jpg. I get this error: return im

[Image-SIG] Make the difference between a picture and a photo

2008-02-04 Thread Seed
Hi, Is there a way with or without PIL python librairy to detect if an image looks like a picture more than a photography and the opposite? Any help will be appreciated. Thanks in advance. -- Sidney Amani ___ Image-SIG maillist - Image-SIG@python