示例#1
0
  public void draw() {
    image(webcam, 0, 0);
    stroke(0xffFF0000);
    strokeWeight(3);

    cv.loadImage(webcam);
    Rectangle[] faces = cv.detect();
    for (int i = 0; i < faces.length; i++) {
      rect(faces[i].x, faces[i].y, faces[i].width, faces[i].height);
    }
  }