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

ofxDLib, ofxLearn, ofxFaceTracker #3

Open
genekogan opened this issue Mar 28, 2016 · 8 comments
Open

ofxDLib, ofxLearn, ofxFaceTracker #3

genekogan opened this issue Mar 28, 2016 · 8 comments

Comments

@genekogan
Copy link

this looks awesome roy 👍 :)

i've been meaning to update ofxLearn to the newest dlib. you and i might be duplicating work -- is there any reason you didn't build this on top of ofxLearn (since it already has a bunch of other dlib wrappers).

also to my eyes the facetracker is not as robust as ofxFaceTracker. see
screen shot 2016-03-27 at 10 05 18 pm

also have you seen this.
does real-time facetracking with dlib which appears super robust, looks like there is an example included, have you seen that?

@roymacdonald
Copy link
Owner

Hey @genekogan Thanks!
Actually there's no reason for not having using ofxLearn as a starting point. All this begun when andy dayton was asking in the OF forum how to correctly add dlib in an of project in order to use the face tracker. I can't recall why I didn't use ofxLearn at that point, maybe because you were not using the latest version. I posted that project in the of forum and several people got interested. This addon is just porting that project into an addon and making it work correctly with PG.

Sure, we must unite forces. It would be a good thing to get ofxLearn and this to work together.
I haven't tried anything else . I've been quite busy lately thanks to Paul, here in Shanghai. ;)
I'll let you know if there's any progress.
best!

@antimodular
Copy link

@genekogan about the link you posted to dlib face tracker.
isn't that what roy did with the ofxDLib face tracker example:
https://github.com/roymacdonald/ofxDLib/blob/master/src/FaceTracker.cpp#L15

@ofZach
Copy link

ofZach commented Apr 20, 2016

@genekogan I found this https://github.com/TadasBaltrusaitis/CLM-framework which sits on top of dlib to be significantly better then ofxFaceTracker.... haven't tested dlib directly but CLM is great. (also in my experience CLAHE helps alot with face trackers http://imagej.net/Enhance_Local_Contrast_(CLAHE))

@genekogan
Copy link
Author

@ofZach i think @kylemcdonald has been playing with dlib for facetracking recently (https://twitter.com/kcimc/status/719563059673579520), not sure if he has tried CLM. it does look quite promising

@antimodular
Copy link

something to consider is that from my experience dlib gets pretty slow when processing images/video at higher resolutions 960x720 is almost too big already.
while i seem to remember ofxFaceTracker working well at HD res.

@ofZach
Copy link

ofZach commented Apr 21, 2016

yes I had to scale down the image I was passing into to CLM, I think it fine at 640x480 so it was something in that size range. Faces couldn't be smaller than about 70 pixels but that worked for my purposes. I think that might have to do with HoG vs haar for locating the face.

@stephanschulz
Copy link
Contributor

stephanschulz commented Oct 13, 2016

dlib version 19.2 is out with neural net face detection + etc.
here is my very first attempt at making it run. it runs very slow and not very good.
https://github.com/antimodular/ofxDLib/tree/development_dlib19.2/example-FaceTracker_DNN

@kylemcdonald
Copy link

i was testing dlib on my mbp and on an nvidia gtx780 with gpu acceleration and i was getting 3-5fps for images in the 800x800 to 1600x1600 range. and the results are perfect in terms of accuracy. i'm testing with modified example script that just outputs json for a list of images fed in via the command line: https://gist.github.com/kylemcdonald/b88f99d1d97f016a686c11bd378f3b5c

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

5 participants