b2WebcamBody!Weird question about Box2D and computer vision!

Hey all!
I'm new on this forum and I got some unusual questions to ask!

I'm actually working on an interactive installation involving camera inputs and computer vision, in simple, let's say that peoples pass in front of the screen and that the visual/ad react to their motions...

I was wondering if i could use Box2D to simulate the interactions/collisions between the virtual (b2) world and the real world... I'm actually doing it with some simple motion/blob detection but without box2D... so my question is do someone think it is possible to create each frame a new body or shape with the blob detection data...

Difficult to talk about my problem with my shitty english! 🙂

I'll explain differently: For each frame I got new polygons that i want to inject in my b2World,... I tryed to use only one body and at each frame destroy and recreate all shapes... but it doesn't work, everytime I got some strange assertion failed errors, like d.x>0.0f or area>1.99756979-10f and anyway I think it would not work well because sometimes the polygon are really moving/changing fast.

I've came across some posts on this forum talking about scaling shapes and about those assertions problems but each time without real solution for me...

Would be really nice if someone could give me some hints, or maybe tell me that it's impossible with box2D...

Thanks for your time 😉
Those errors are due to the polygons having no area. Make sure your polygons are not collinear.

Original thread: https://box2d.org/forum/viewtopic.php?t=1566