I converted the old webcam motion detection thing to AS3 today. Not that it improves the performance much, just wanted to play around with it (source).
part designer. part developer. all creative
I converted the old webcam motion detection thing to AS3 today. Not that it improves the performance much, just wanted to play around with it (source).
14 Responses to “Webcam motion detection in AS3”
hi ? i want to know which direction the man or the hand move? left or right? how to know it?
Great sample
See some of my Flash webcam experiments & interactive samples on http://www.SillyWebcam.com .
Cool stuff gig, some nice things there. I intend to play around with webcam stuff more, now that I finally have a working webcam again!
Appreciate the compliment, thanks
thanks mate,this was a very useful resource. I’ve been putting together a motion tracking class in AS3, which will track the motion of an object using a webcam. An early demo is up here: http://blog.soulwire.co.uk/flash/actionscript-3/webcam-motion-detection-tracking/
Thanks again for the example.
Ooh, very nice. Yeah, just the kind of thing I want to get into. I was thinking to use colour bounds to track blobs, though I guess I might need some subdivision to refine motion areas in more accurate blob tracking.
Not you again Justin, stop posting here. You have not post your source what we are waiting for long time
the webcam base motion track programe is really fantastic.
Hi Liam,
I appreciated you work here but you should back off on Justin. He has provided source code (http://blog.soulwire.co.uk/download/as3-motion-tracking)
thanks,
Ralph
Um… I said nothing rsklarew. I think Nikon was complaining to Justin. Seems Justin and I went about the same way with the motion tracking, but Justin’s is more refined.
I’ve been doing other things, but will get back into this if/when I get time.
on December 2nd, 2009 at 10:24 am #
[...] utgick från detta scriptet och byggde vidare. Resultatet blev ett enkelt objekt som letar efter mörka fläckar och räknar ut [...]
on December 14th, 2009 at 12:02 am #
[...] process of determining the changed pixels from previous frame to current frame simply put on his blog where he explains it as drawing the current frame to a BitmapData object, then using the blend mode [...]
on May 17th, 2010 at 11:42 am #
[...] à pas mal de sources sur Internet, un solution (peut-être définitive) s’est présentée à nous. En gros, il [...]
on January 14th, 2011 at 8:35 pm #
[...] location, or even use it to control external hardware.) Some websites you could look at for info: http://www.spikything.com/blog/index.php/2007/10/09/webcam-motion-detection-in-as3/ [...]