Need help on realtime video contour tracking

Shi Cheng's icon

Hello all,
Recently I'm doing a music system related to water. I want to track the contour/fluctuation of the water placed in a tank/glass with camera, and use the contour data extracted to do some analyzing and mapping. I have tried cv.jitter.binedge and cv.jitter.canny objects, but I'm not quite sure how to use the extracted from these two objects. Can I realize my system based on these two objects? If so, how? If I can't, is there any other algorithms/libraries/patches that is helpful to my project?
Thanks!

Jonny's icon

Hi

I'm looking for something similar (10 years later) and then remembered this excellent library, so adding it here in case it helps someone one day...

TFL's icon

You might also want to look at [jit.fx.sobel] for a full GPU pipeline.

Max Patch
Copy patch and select New From Clipboard in Max.