public void setup() { webcam = new Capture(this, width, height); cv = new OpenCV(this, width, height); webcam.start(); cv.loadCascade(OpenCV.CASCADE_FRONTALFACE); }
public void captureEvent(Capture c) { c.read(); }