mirror of
https://github.com/opencv/opencv.git
synced 2024-12-18 11:28:02 +08:00
Merge pull request #10047 from meganetaaan:master
Fix sample code in js_tutorials
This commit is contained in:
commit
0a7c60b439
@ -65,7 +65,7 @@ for (let i = 0; i < faces.size(); ++i) {
|
|||||||
for (let j = 0; j < eyes.size(); ++j) {
|
for (let j = 0; j < eyes.size(); ++j) {
|
||||||
let point1 = new cv.Point(eyes.get(j).x, eyes.get(j).y);
|
let point1 = new cv.Point(eyes.get(j).x, eyes.get(j).y);
|
||||||
let point2 = new cv.Point(eyes.get(j).x + eyes.get(j).width,
|
let point2 = new cv.Point(eyes.get(j).x + eyes.get(j).width,
|
||||||
eyes.get(j).y + eyes.get(i).height);
|
eyes.get(j).y + eyes.get(j).height);
|
||||||
cv.rectangle(roiSrc, point1, point2, [0, 0, 255, 255]);
|
cv.rectangle(roiSrc, point1, point2, [0, 0, 255, 255]);
|
||||||
}
|
}
|
||||||
roiGray.delete(); roiSrc.delete();
|
roiGray.delete(); roiSrc.delete();
|
||||||
|
Loading…
Reference in New Issue
Block a user