I'm searching the internet (lynda.com, google, various examples), for a good API step-by-step guide that I can use with processing? The API I'm looking to explore is here:
http://api.bigoven.com/documentation/. (Pulling items to the screen, and onClick, next item appears.. Nothing crazy').
Trying to work with the camera and I occasionally get this error.. SGIdle failed in icvGrabFrame_QT_Cam with error -1
What can I disable with QT so that the camera may be reliably accessed with processing? Thank you
code:
import hypermedia.video.*; import java.awt.Rectangle; boolean foundIt; int timer;
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"
}
public void stop() { opencv.stop(); super.stop(); }
I'm looking to create an alarm (buzz/sound, etc), when the face is out of frame for a 30 seconds. I'm not sure where to put an if statement using, Rectangle[] faces = opencv.detect( 1.2, 2, OpenCV.HAAR_DO_CANNY_PRUNING, 40, 40 );. Can anyone point a direction? Thanks!
I'm using the following code:
import hypermedia.video.*;
import java.awt.Rectangle;
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