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"
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
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
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
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