cv.jit camera vision

drifting's icon

I am trying to find an object that can recognize the human face in front of a camera and turn the camera on. I heard cv.jit can do it. I checked cv.jit and found out there are so many objects. Which one am I supposed to use?

Dg's icon

cv.jit.faces?

drifting's icon

oh, thanks. I will try it

drifting's icon

I got cv.jit.faces on my computer. I got the flashing square when my face is showing up in the video but how to get the data? How to set the switch when the face is there, the camera starts to recording. And when the face is not there, the camera stops recording? I have no clue.

drifting's icon

Pleeeze help.

Nicolas Lelievre's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Check the cv.jit.faces help. This object gives you the number of detected faces when you send the "getnfaces" message. Just link the getnfaces message to your metro and you'll know if you have 0, 1, or more faces… in real time.
Try this: