I want to use the simple, attached facial detection code to scale images on my screen up and down. When someone
moves their head in, the red facial detection box gets larger as a face gets larger in the camera causing the image to get smaller or moving a face away from the camera (causing the red box to get smaller) the image would get larger. I do not know how to make this happen, still new to processing!
please help! I hope someone out there can spread some light on the subject.
best regards
Peter
import hypermedia.video.*;
import java.awt.Rectangle;
import processing.serial.*;
int gx = 15;
int gy = 35;
int spos=90;
Serial port;
OpenCV opencv;
// contrast/brightness values
int contrast_value = 0;
int brightness_value = 0;
void setup() {
size( 640, 480 );
opencv = new OpenCV( this );
opencv.capture( width, height ); // open video stream
opencv.cascade( OpenCV.CASCADE_FRONTALFACE_ALT ); // load detection description, here-> front face detection : "haarcascade_frontalface_alt.xml"
I am trying to make this code, which identifies faces right now, identify features as well: eyes, mouth, nose. How
can I modify this code to do that? I'm also interested in identification, or creating profiles so that one face is known from another i.e. this is Peter, that is Susan. I hope to also get the names to hover above the faces. Any help would be greatly appreciated!!!
All the best
import hypermedia.video.*;
import java.awt.Rectangle;
import processing.serial.*;
int gx = 15;
int gy = 35;
int spos=90;
Serial port;
OpenCV opencv;
// contrast/brightness values
int contrast_value = 0;
int brightness_value = 0;
void setup() {
size( 640, 480 );
opencv = new OpenCV( this );
opencv.capture( width, height ); // open video stream
opencv.cascade( OpenCV.CASCADE_FRONTALFACE_ALT ); // load detection description, here-> front face detection : "haarcascade_frontalface_alt.xml"
I want to make Processing understand that my mbox is attached so that I can utilize two input channels of audio
and two output channels of audio. Has anyone done this, or know how? Would really appreciate some info or an explanation. I am pretty new to programming.