-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
face-detector img with no face error handling #60
Comments
And one more question. How can i save recogniser with added faces to database? Is there some way to save this variable there? (Because I want to use prediction more time and is non effective to train recognizer again and again with the same images). |
Hi, if no faces are detected then the returned faceImages array is empty. In you case faceImage[0] is simply undefined I guess. How to serialize a model to json and load it again is described in the readme:
Simply serialize the model and store the json object or the stringified json in your db. |
|
|
// file1.js
// file2.js
|
Hi if i take a photo without any face is some way to handle this error with face detection? If so how can i handle this error? Because when i tried do that program returned this error:
The text was updated successfully, but these errors were encountered: