Skip to content

Commit

Permalink
Update faceapi-recognition_video.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Oct 10, 2023
1 parent d7cb002 commit 5e174c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function loadCaptureImages() {
facelabels.map(async function(label, index) {
const descriptions = []
var n = prompt("Label name");
if (n!="") {
if (n) {
context.drawImage(source,0,0,source.width,source.height);
var img = document.createElement('img');
img.src = canvas.toDataURL("image/jpeg", 1.0);
Expand All @@ -142,4 +142,4 @@ function loadCaptureImages() {
}
})
)
}
}

0 comments on commit 5e174c3

Please sign in to comment.