jit.findbounds resets to zero when colour is lost

steprec's icon

I am tracking a color in a live webcam feed. Sometimes the color gets lost. When this happens the findbounds objects wants to go back to zero position. Is it possible to somehow make it stay at last known spot and then go from there when the color is found again?

Thank you for your help!

colortracking.maxpat
Max Patch
Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

you can simply filter the zeroes. many ways to do this, here's one:

steprec's icon

Thanks for your help!