[Tutor] [tutor] Comparing two images using PIL

Kent Johnson kent37 at tds.net
Thu Jan 17 03:59:47 CET 2008


Varsha Purohit wrote:
> Hello Everyone,
>         I have an application where i am comparing two images(jpg) which 
> are almost identical but have little difference. I wanted to mark the 
> difference with a different colour to highlight the region which is 
> different from 1st image. Can you tell me if there is any image funciton 
> in PIL which will help me to calculate the differences between two 
> different JPEG images.

The ImageChops and ImageMath modules look like they might be helpful.

Kent


More information about the Tutor mailing list