face detection as a trigger

Aug 19, 2009 at 11:00am

face detection as a trigger

hello,
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….

Thanks
Nick

#45154
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!

Eli

#162695
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.

Nick.

#162696
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.

#162697
Jun 1, 2011 at 7:30am

Hello, could someone please explain this to me?

#162698
Jun 2, 2011 at 11:48am

Please,someone?
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.

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

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

#162701
Jun 4, 2011 at 6:10pm

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

– Pasted Max Patch, click to expand. –
#162702

You must be logged in to reply to this topic.