face detection as a trigger

Aug 19, 2009 at 11:00am

face detection as a trigger

I’m a student just starting with Jitter, and i desperately need some help.. I’m trying to use face detection to then trigger an effect (i.e distortion of users image, like data moshing or something similar), then when the user moves away from the camera the effect stops and returns to normal. It’s probably incredibly simple but have been confused for a few days on getting the idea together, I have come across patches for both face detection and for creating numerous effects with live video but am having problems connecting the two – any help or advice would be great….


Aug 19, 2009 at 4:12pm

Check out the [cv.jit.faces] object for face detection/tracking. Here’s a simple patch using it:

– Pasted Max Patch, click to expand. –

In this example I use [jit.streak], but any effect could be used. The main idea is that [cv.jit.faces] is queried for the number of faces in an image and then that data is used to decide how much of/ if an effect is applied to the original image. Hope this helps!


Aug 20, 2009 at 12:50pm

Brilliant! Thank you so much for your help – this gets me started, and just what I was looking for. Perfect.


May 31, 2011 at 2:41pm

Sorry for bumping this but how do I run the patcher described above?

I want to do something similar. I would like to have Jitter render a black screen over a movieclip when there is no face detected but I have no idea how to achieve this with Max/msp/Jitter. However, it is the only software package that is able to run opencv on my cam.

Jun 1, 2011 at 7:30am

Hello, could someone please explain this to me?

Jun 2, 2011 at 11:48am

I just want to see the example of above or be provided with a direction on how I can turn down the brightness of a movie clip when no face is detected.

Jun 2, 2011 at 6:24pm
Jun 3, 2011 at 1:46pm

The patcher does not seem to work (error 9505) but thank you so much for the link!

Jun 4, 2011 at 6:10pm

works fine here. did you make sure you copied everything including

– Pasted Max Patch, click to expand. –

You must be logged in to reply to this topic.