On 08/07/17 09:05, marcus lütolf wrote:

> Is it possible to have python compare 2   subsequent  *.jpg  images
> in subtracting the pixel values of the second from the first image.

Yes

> If the images and are identical the result should be 0 and the first
> image could be deletet.

That's possible too although thee are easier ways
to compare files than manually comparing them pixel by pixel.
There are libraries that exist that you can use that do
much of the work for you. One of the good things about python
is that it has a huge catalog of existing code libraries
that can do most things you might need.

> If there is a difference (treshold pixel value  and pixel number to
> be determined)another action should be executed. 

That's possible too, if you really need to.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to