Realtime Webcam Particles

Hello everyone! I’m a student, and I’m relatively new to the world of Openframeworks: I know the basics and all its possibilities, but I miss the extra step that I need to accomplish an averagely complex project. So I ask for some help here :slight_smile:

I want to create a project like this one on the video below:

There’s a similar topic on this forum, but unfortunately it’s not very useful. Do you have a general idea on how to implement a project like this? What’s the best (and the simplest) way to attach the particle system at the movements on the webcam?

Thanks for your help, and sorry for my ignorance :wink:

That type of stuff use a technic called “optical flow” ,with that you can calculate the movement of an image between frames.
So with that you can affect a particle system, for example the acceleration of the particle.
With optical flow you get an array with values of the difference between frames, so you can ask if that value y more than “0” for example, if that happened you create a new particle, for example.

I think the process to make that, first its try to make work some add-on of optical flow, and saw the results, then you can follow with the implementation of the particle system.

There is a lot of addons to get optical flow, for example:
You need to import opencv add-on too, to use this.

Thank you very much! I’ll try that :slight_smile:

Youre welcome!