Пример #1
0
  public void setup() {
    webcam = new Capture(this, width, height);
    cv = new OpenCV(this, width, height);

    webcam.start();

    cv.loadCascade(OpenCV.CASCADE_FRONTALFACE);
  }
Пример #2
0
  public void setup() {
    size(640, 480);
    PFont metaBold;
    // The font "Meta-Bold.vlw" must be located in the
    // current sketch's "data" directory to load successfully
    metaBold = loadFont("SansSerif-48.vlw");
    textFont(metaBold, 36);

    cam = new Capture(this, WIDTH, HEIGHT);
    cam.start();
  }