Box2d + optical flow

hi all,

I want to use optical flow to applie force on my bodies, to avoid using kinect or 2d skeleton tracking.
pixelshader filter out the areas with the most movement + contour + center of movement and direction = apply force? just wild guessing here :)

would you care to share how you used the optical flow to control your bodies in box2d?

have a nice day

hi @schlonzo,

here is the screenshot of the part of the patch solving this task:


So basically the workflow is: OpticalFlow from Camera → Pipetting the OF-image with the center-positions of your Box2D-Objects → Assigning the value as an acceleration to the coresponding Box2D-body

That’s it.


very nice solution…

thank you!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.