-
-
Notifications
You must be signed in to change notification settings - Fork 633
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
Replace harcascade with DNN #6
Comments
This project will help you: https://github.com/serengil/tensorflow-101/blob/master/python/age-gender-prediction-real-time.py Regards |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi again Serengil, Thanks for the help.
Im trying to replace the harcascade with the dnn module from opencv, Ive got the dnn working recogniseing the faces but the bounding box's return are rectangles, not box's.
The perfect ratio seems to be 1.35 * dnn_rect.width, here's the origninal code:
How is best to change the above code to take the bounding rectangle width from the dnn and do the 1.35 * dnn_rect.width to still be able to run the face emotion detector code on the resulting cropped square.
Cheers J
The text was updated successfully, but these errors were encountered: