vladmandic / face-api

FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS
https://vladmandic.github.io/face-api/demo/webcam.html
MIT License
830 stars 149 forks source link

fix face expression detection #56

Closed bettysteger closed 3 years ago

bettysteger commented 3 years ago

i just found another bug when using the face expression detection - every frame returned "neutral 0.99", so i need to change video.autoplay = true to video.play() - i don't know why it doesn't work with autoplay, but the code for the webcam also uses play(), so i think it is save to use it here as well, i already tested locally and then i got other expressions as well :)