Skip to content
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

How to clear Сlassifier (clearFaces)? #129

Open
sinitsyn-alex opened this issue Oct 15, 2018 · 3 comments
Open

How to clear Сlassifier (clearFaces)? #129

sinitsyn-alex opened this issue Oct 15, 2018 · 3 comments

Comments

@sinitsyn-alex
Copy link

sinitsyn-alex commented Oct 15, 2018

In face-recognition.js has a method of adding faces to a specific classifier by name.
recognizer.addFaces(sheldonFaces, 'sheldon')
Is it possible to cancel the action? Clear classifier by name?
example:
recognizer.clearFaces('sheldon')
or
recognizer.clearFace('sheldon', 2) // index

@userSrv
Copy link

userSrv commented Oct 26, 2018

The problem is actual to this day.

@justadudewhohacks
Copy link
Owner

You can simply serialize the FaceRecognizer as shown in the examples and recreate it with the filtered descriptors.

If something like clearFaces is a desired feature, I am happy to take PRs.

@sinitsyn-alex
Copy link
Author

Recreate it with the filtered descriptors. Should I use the method recognizer.load(filteredDescriptors)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants