[ale] image diff utility?

Geoffrey esoteric at 3times25.net
Thu Jun 3 23:07:09 EDT 2004


Christopher Bergeron wrote:
> Does anyone know of any command line utilities that can compare two 
> images (jpg, pngs, whatever), and if they visually differ by a set 
> threshold they will output a true or false flag?
> 
> I've seen this done in big bloated security applications, but I'm 
> looking for a simple command line utility or method of doing something 
> like this:
> 
> if (image1.png) is more than n percent different from (image2.png), exit 
> with a true; if not, exit with a false

You might check out the source for 'motion,' it's a motion detection 
package used with capture hardware.  I use it on a couple of my boxes. 
You have the ability to control the detection threshold which is kinda 
what you want to do.  I would think you could find something useful in it.


-- 
Until later, Geoffrey                     Registered Linux User #108567
Building secure systems in spite of Microsoft



More information about the Ale mailing list