HELP with blob detection and jitter scissors

5mg3's icon

I have divided the video from the webcam into 16 sections using jit.scissors. Now I am trying to use cv.jit.touches on each of the sections so that I can detect blob touches in each different section independently. The idea that from each I can then trigger other events.

However, if I use cv.jit.touches before jit.scissors I get the entire webcam image being blob detected and not the different sections independently. If i use cv.jit.touches after jit.scissors I seem to get no blob detection happening at all in the one section that I have attached it to as an example.

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

Please take a look at my patch and shed some light on where I am going wrong if you can please and suggest possible solutions or alternative methods. Thank you :)

2027.Dividedwtouchblobs1.maxpat
Max Patch
5mg3's icon

Can no-one offer any support on this?

joseph's icon

Hi,
Try changing the default radius and threshold values of your cv.jit.touches objects, and replacing the > by < in your jit.op
Good luck,
J