On Wed, 2014-07-02 at 16:58 +0200, Per Jessen wrote:
For running motion detect on a network camera that is delivering individual JPEGs, I'm thinking of comparing/subtracting two jpegs - with imagemagick, "composite img1 img2 -compose difference difference.jpeg" works quite well. To do it programmatically however, I seem to have a number of options - libgd imagemagickcore libjpeg libgd has a nice an easy interface, but is a little primitive for this. The imagecompare function isn't sufficiently flexible, and occasionally even abends. imagemagickcore seems to be a big gun, but looks okay. I can't find a way to read in an image already in memory though, only from file. I don't now libjpeg at all, but that's where I'm going next. Any other I might want to consider?
I'd look into OpenCV for this task. http://derek.simkowiak.net/motion-tracking-with-python/ -- Adam Tauno Williams mailto:awilliam@whitemice.org GPG D95ED383 Systems Administrator, Python Developer, LPI / NCLA -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-programming+owner@opensuse.org