That is an interactive display and I want to use the face tracking to know the position on "x" of the face of the person that is walking in front of the "Interactive Display". With the position of the face, I will know the time in that the video is.
I already have the face recognition using the
OpenCV library and I´m using the
GSVideo library to manipulate the time of a video with the mouse pointer, but i don't know how to replace the mouse pointer with the face tracking, I don´t know how to combine that codes. Could someone help me how to do this please. :D
------------------------------------------------
This is the face recgnition code:
import hypermedia.video.*;
import java.awt.Rectangle;
OpenCV opencv;
// contrast/brightness values
int contrast_value = 0;
int brightness_value = 0;
void setup() {
size( 320, 240 );
opencv = new OpenCV( this );
opencv.capture( width, height ); // open video stream
opencv.cascade( OpenCV.CASCADE_PROFILEFACE ); // load detection description, here-> front face detection : "haarcascade_frontalface_alt.xml"
// print usage
println( "Drag mouse on X-axis inside this sketch window to change contrast" );
println( "Drag mouse on Y-axis inside this sketch window to change brightness" );