-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Tracking multiple faces #7
Comments
Not out of the box. Theoretically it might be possible to track two faces by creating two instances of clmtrackr, and initializing them on separate bounding boxes on different parts of the screen. But you would have to fiddle with the code to get this to work properly. In practice, I think the biggest problem would be that it would run very slow, since running one instance of clmtrackr is already pretty heavy on most computers. |
hmm, isn't the face tracking using viola-jones tracking of haar-like features? meaning it will detect ALL the present faces in an image - this is the most resource hungry process by the way. then you would only have to keep track of the face models in some array. this is definitely a valid feature request |
@verybigelephants : it's very possible to detect multiple faces using viola-jones, but it's not precise enough to track facial points. The method I use in clmtrackr is unfortunately very computationally demanding, so I don't think it will work very well for multiple faces. But it's worth a try if someone wants to give it a shot! |
I just started using clmtrackr (and am very impressed btw)...but I too would be interested in multiple face functionality. I realize tracking multiples would be too resource intensive for some computers/devices...so...how hard would it be to at least detect multiple faces and expose that to the api so we could cycle through them or manually choose which one to track? |
@jb41997 do you want to just detect multiple faces? or actually track their features? |
@verybigelephants being able to detect them is all that I would really need. I can probably work around the need to track features of multiples. Tracking features of multiples would be awesome but I realize there are resource limitations, so I won't get my hopes up on that one. (are there already methods in this library that allow you to detect multiples?) |
I noticed that various functions can get passed an element and a box. For instance. Without any docs to say otherwise, it seems like the box might be a specific set of dimensions to scan within an image or video. Is that correct? |
well you could of course user part of the clmtrack but i think if just detecting face positions is the question, there are other libraries designed specifically for this task https://github.com/jaysalvat/jquery.facedetection |
What about such scenario:
Should it works effectively? |
Hi,
Is it possible to detect and get information about two faces at the same time?
thanks
The text was updated successfully, but these errors were encountered: