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

Tracking multiple faces #7

Closed
manorius opened this issue Jan 14, 2014 · 9 comments
Closed

Tracking multiple faces #7

manorius opened this issue Jan 14, 2014 · 9 comments

Comments

@manorius
Copy link

Hi,

Is it possible to detect and get information about two faces at the same time?

thanks

@auduno
Copy link
Owner

auduno commented Jan 14, 2014

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.

@auduno auduno closed this as completed Jan 19, 2014
@verybigelephants
Copy link

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

@auduno
Copy link
Owner

auduno commented Oct 6, 2015

@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!

@jb41997
Copy link

jb41997 commented Feb 14, 2016

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?

@verybigelephants
Copy link

@jb41997 do you want to just detect multiple faces? or actually track their features?

@jb41997
Copy link

jb41997 commented Feb 17, 2016

@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?)

@dehuszar
Copy link

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?

@verybigelephants
Copy link

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
https://github.com/eduardolundgren/tracking.js
(and many others i believe)

@hyzhak
Copy link

hyzhak commented Jul 8, 2016

What about such scenario:

  1. user one of the existing algorithms (which is quicker than what we have here to track facial points and just track faces)
  2. cut the whole scene to a small peaces with a faces
  3. input those faces to the facial points tracker

Should it works effectively?

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

6 participants