-
Notifications
You must be signed in to change notification settings - Fork 34
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
How To #1
Comments
Changed repo's structure to use absolute imports, now your problem must be solved. If you want to import module outside the repo's folder, export path into PYTHONPATH (example in readme). |
Thanks its just says that
How can i see the Bounding box position in the picture? Thanks |
Thanks to you, i can have the bboxes and points but is it possible to use it on webcam? as a real time face detection? Thanks |
Yeah, you can. Follow this guide, but use my detector instead of Haar cascade. |
Thank you, Have you tries to add TENSORT for the model as there is in |
How did you proceed to draw the boxes ? Think it can be done by simply drawing boxes in bbox. Alright ? |
You can use PIL, opencv or any other drawing library to draw bboxes and facial points. Here is an example using opencv. for box,lm in zip(bboxes,points):
x1,y1,x2,y2 = box
orgimg = cv2.rectangle(orgimg,(x1,y1),(x2,y2),(255,0,0),3)
for i in lm:
x = i[0]
y = i[1]
orgimg = cv2.circle(orgimg, (x, y), 3, (0,255,0), -1) |
i got an issue unpacking box. This is how I fixed this
I get an issue drawing the circle. x and y are not numbers but lists. What do they represent ? |
But I notice that in RGB some faces are detected and not in BGR, then vice versa ! |
The models were trained with rgb images and opencv by default uses bgr color space, so ofc better accuracy in rgb. In opencv color space can be changed with cv2.cvtColor() method. If you need better accuracy for smaller faces, consider using other models from deepcam-cn repo, i use one of the lightest ones in my repo. |
Alright but look at this image I link. You will notice that, some face are only detected in BGR (blue boxes) and not in RGB, then some face are only detected in RGB (red boxes) and not in BGR. From hidden experience I think there is greater probability on detecting dark faces and faces with mufflers in BGR, but face detection in BGR outputs a little more false positives in these cases. |
Hi,
I can not use your Repo for inference.
I have 'cloned' your repo, 'cd' to it, then installed dependencies which has been mentioned in 'requirements.txt'
and then used
But it returns that yoloface is not installed!
How should i fix this?
Thanks
Best regards
The text was updated successfully, but these errors were encountered: