Skip to content

Commit ce42a41

Browse files
fixed webcam example
1 parent 3e1ad1e commit ce42a41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/views/webcamFaceTracking.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@
184184
? drawLandmarks
185185
: drawDetections
186186

187-
drawFunction(videoEl, $('#overlay').get(0), result || [], withBoxes)
187+
if (result) {
188+
drawFunction(videoEl, $('#overlay').get(0), [result], withBoxes)
189+
}
188190

189191
setTimeout(() => onPlay())
190192
}

0 commit comments

Comments
 (0)