[Tutor] principal question
Alan Gauld
alan.gauld at yahoo.co.uk
Sat Jul 8 07:24:26 EDT 2017
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
More information about the Tutor
mailing list