Calibrate works?
This commit is contained in:
parent
26e34f7671
commit
cc711c6343
1104 changed files with 636510 additions and 75 deletions
|
|
@ -0,0 +1,25 @@
|
|||
import gab.opencv.*;
|
||||
import java.awt.Rectangle;
|
||||
|
||||
OpenCV opencv;
|
||||
Rectangle[] faces;
|
||||
|
||||
void setup() {
|
||||
opencv = new OpenCV(this, "test.jpg");
|
||||
size(opencv.width, opencv.height);
|
||||
|
||||
opencv.loadCascade(OpenCV.CASCADE_FRONTALFACE);
|
||||
faces = opencv.detect();
|
||||
}
|
||||
|
||||
void draw() {
|
||||
image(opencv.getInput(), 0, 0);
|
||||
|
||||
noFill();
|
||||
stroke(0, 255, 0);
|
||||
strokeWeight(3);
|
||||
for (int i = 0; i < faces.length; i++) {
|
||||
rect(faces[i].x, faces[i].y, faces[i].width, faces[i].height);
|
||||
}
|
||||
}
|
||||
|
||||
BIN
lib/opencv_processing/examples/FaceDetection/data/test.jpg
Normal file
BIN
lib/opencv_processing/examples/FaceDetection/data/test.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 100 KiB |
BIN
lib/opencv_processing/examples/FaceDetection/data/test.png
Normal file
BIN
lib/opencv_processing/examples/FaceDetection/data/test.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 100 KiB |
BIN
lib/opencv_processing/examples/FaceDetection/data/testImage.png
Normal file
BIN
lib/opencv_processing/examples/FaceDetection/data/testImage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
Loading…
Add table
Add a link
Reference in a new issue