-
Notifications
You must be signed in to change notification settings - Fork 119
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
Doesn't detect faces in most images - matlab code does #20
Comments
I tried compiling with cvmatio to read the original model (face_p146_small.mat) and it fails to read because the model doesn't contain fields "biasid" for the components. I am guessing the original matlab implementation at http://www.ics.uci.edu/~xzhu/face/ and the C++ version are not equivalent in performance. As is, with the provided xml models, the detection is rate is very low and not usable. Am I missing something or the C++ demo, as is, hasn't even been tested with some images? |
@sivavenkatay I am having the same problem. Did you figure out the solution? |
I am having the same problem. Anyone able to get the solution? |
@adtadhikari The issue seems to be with the threshold values. I don't know the reason as to why same threshold values are behaving differently in the matlab code and the c++ code (after having compared both codes line by line to find no difference). However, for now, try changing the thresholds in the xml files to a large negative value (something like -5.9 ). |
Ok thanks. I will try. |
Still it doesn't work for me. Did changing the threshold value gave you the same result? |
What is the threshold value and the xml file you are using? Try experimenting with the threshold eg. give a ridiculously large negative value (like -100), see if it works. Change it to -10, and similarly change threshold values based on your observation. |
I tried giving large negative values but it does not seem to affect the output.The threshold value does not seem to affect the output strange. I am using the Person_26parts model. |
The threshold didn't affect my output but when I change the interval it did. So may me adjusting the interval will help?Not sure as how it changes but still. |
oh. I assumed you are using the face detection. For me person_26parts was On Wed, Oct 16, 2013 at 2:20 PM, adtadhikari [email protected]:
Regards, |
You didn't had to change anything to run the person_26parts is it? Can you send me a sample image for which it works for you? |
hi @adtadhikari, please take the discussion to my email id. Let us not flood the comment section. |
hi @ankitsingh @AASanchezA and @hbristow, Sorry to bother you guys on this old issue. I am wondering if PartsBasedDetector is equivalent to Zhu's algorithm after modelTransfer ? (i.e do they give the same results? ignoring rounding errors etc) |
Hi,
On Thu, Nov 21, 2013 at 10:31 AM, keithzhou [email protected]:
Regards, |
Thank you @ankitsingh ! yes, that is my question. So I guess there is currently no known direct port of of the matlab code at "http://www.ics.uci.edu/~xzhu/face/ " to c++ implementation? |
The demo of the matlab version contains the following lines:
demo.cpp in this implementation does not change the threshold. |
Any one of you executed this code successfully in C++. |
I am testing this with a bunch of images with the Face_small_146filters.xml but am getting poor results.
However, the same images work well with the original matlab code at http://www.ics.uci.edu/~xzhu/face/ (face_p146_small.mat). I am not sure if the difference is in the models or the implementation.
Has anyone encountered this before?
Sample test: http://www.pwc.com/us/en/careers/campus/assets/img/homepage/hero-people.jpg
The text was updated successfully, but these errors were encountered: