I'm kind of new to Max. I am making a patcher for an interactive art piece. I want to use cv.jit.faces to detect 1 face. Then i would like to track where the face is in the matrix. Based on where the face is in the matrix, i would like to scale a number of effects. for instances when the face is in the center of the matrix the effect would be off. Then when the face moves left or right the effect would gradually increase. So, when the face is detected on the left or right edge of the matrix, the effect would be all the way on. But, i want the final output, to be a jit.qt.movie. so the effect that the face detection tracking controls is applied to the imported movie file.
Also i would like to randomize the imported movie file. I would like the imported movie file to change every time a face is detected. so, the final output will be black when 0 faces are detected. Then, when 1 face is detected it will read in a random video, from a selection of 5 videos.
does anyone know of, or have any kind of patcher similar to what i want to do for reference? Any help with this would be greatly appreciated.