Smoother triggering of audio with CV.jits.faces

OTB's icon

Hey Guys,
I have been building this patch for a uni project, i'm quite new to jitter so not the best at understanding it, it's is doing what I want it to do, apart from when cv.jit.faces recognises more than one face or partly picks up my face, it keeps re triggering the audio sample which I dont want to happen is there anyway I could stop this from happening, any help would be much appreciated. Thanks

O

4756.FaceDetectionAudioTrigger.maxpat
Max Patch
Nikolas K's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Try this. I do not have a camera to test it, but i thing it works the way you want

Nikolas

Nikolas K's icon

also note, that the [toggle] object, passes the integer its fed, to the outlet. if you send it 1 and then 2, then it show its is checked but actually at its output it send 1 and then 2, so the zl changes passes two different numbers each one triggering the [sfplay~]
so, there is your problem!

esnho's icon

why does't track my face?

4757.faceTracking.JPG
JPG
Nikolas K's icon

might be the beard...

OTB's icon

sorry for the late reply, thanks very much for your help this has done the trick :)

esnho's icon

For info: I've mailed Jean-Marc Pelletier and he told me that cv.jit.faces doesn't works on Windows7 64bit. That's why it doesn't track my face.