Remote image processing in JavaScript

posted Mar 7th 2009 11:37pm by
filed under: digital cameras hacks, downloads hacks

[Tom] wrote in to tell us about his JavaScript project for motion detection. It ties together two ideas we’ve talked about recently. The first is doing image processing in-browser using Canvas(), which we’ve seen employed in captcha breaking. The second is offloading heavy processing to browsers, which we saw recently in the MapReduce implementation. [Tom] is using JavaScript to compare consecutive images to determine if there’s any motion. He did this as part of MJPG-Streamer, a program for streaming images from webcams. It can run on very limited hardware, but image processing can be very intensive. Doing the image processing in-browser makes up for this limitation and means that a custom client program doesn’t have to be written. You can find the code here and a PDF about the proof of concept.



2 Responses to Remote image processing in JavaScript

  • rompush says:

    Nice, but it must do something now…

  • Mutant says:

    I cant believe this didn’t get more than one comment. Motion detection in JS is quite a fantastic idea if I do say so myself. I personally like the canvas() method a lot, however; I would have to admit that the GD library for PHP is much better.

  • Leave a Reply

    XHTML: You can use these tags: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

    Send us your hacks










         




    Hacks

    Resources