Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 2566545

Browse files
authored
fixed GPU webcam face detection
1 parent 97f3f40 commit 2566545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/faceDetect/webcamFaceDetectionGpu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function detectFaces(img) {
1515
scaleFactor: 1.2,
1616
minNeighbors: 10
1717
};
18-
return classifier.detectMultiScaleGpu(img.bgrToGray(), options);
18+
return classifier.detectMultiScaleGpu(img.bgrToGray(), options).objects;
1919
}
2020

2121
runVideoFaceDetection(webcamPort, detectFaces);

0 commit comments

Comments
 (0)