示例#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
文件: vidsk.java 项目: Gradonhf/ATP
  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();
  }