Loading...
Logo
Processing Forum

Particles and video image

in General Discussion  •  Other  •  1 year ago  
is there any way to use particle system with video image (motion detection or edge detection). I am trying to get the video image towards which the partcles will get attracted. I am using pbox2d library for particles system and using example of collision and detection in pbox2d library.

I want to use motion detection with particle system. please help me



Replies(1)

I'd suggest using JMyron ( http://webcamxtra.sourceforge.net/ ) or OpenCV ( http://opencv.willowgarage.com/wiki/ ) and take advantage of their motion/blob detection algorithms. JMyron is more suited for real time webcam input but you can feed a video image in (I think); I'm not sure how OpenCV works but I've heard good things about it. After you get the positions of various blobs, I'd say to iterate through all of the Bodies in your box2d instance and apply a force to each one, pointing towards the blob.