-
Notifications
You must be signed in to change notification settings - Fork 68
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
Web cam #3
Comments
also if we want it to count the faces, how can we do it? |
Hello @aliraza1616 , In this repository I have demonstrated how to train a neural network from scratch (without using transfer learning / fine tuning pre-trained model weights) for a task like 'gender detection'. The accuracy of the detection will be low mostly due to
I am working on building more accurate gender detector. I will be adding it to cvlib in the next release. Keep on eye on the blog for new posts. Regarding counting faces, you can just keep a counting variable inside the loop and keep incrementing them whenever a face is detected and the control comes inside the loop. |
Hi.
I am trying to add images to data sets fkr its complete training.
Secondly i have to add counter too. Can you please add a line in code for me? I will be highly obliged if you can. As i am new to this field and i dont know much. Please if possible.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Arun Ponnusamy <[email protected]>
Sent: Saturday, October 13, 2018 1:09:18 PM
To: arunponnusamy/gender-detection-keras
Cc: aliraza1616; Mention
Subject: Re: [arunponnusamy/gender-detection-keras] Web cam (#3)
Hello @aliraza1616<https://github.com/aliraza1616> , In this repository I have demonstrated how to train a neural network from scratch (without using transfer learning / fine tuning pre-trained model weights) for a task like 'gender detection'. The accuracy of the detection will be low mostly due to
1. very small training dataset and
2. shallow / lightweight network architecture (in this case SmallerVGGNet).
I am working on building more accurate gender detector. I will be adding it to cvlib<http://cvlib.net> in the next release. Keep on eye on the blog<http://arunponnusamy.com> for new posts.
Regarding counting faces, you can just keep a counting variable inside the loop<https://github.com/arunponnusamy/gender-detection-keras/blob/cb922b07c8189a967fbd8b24d12cdf9dd5846b41/detect_gender_webcam.py#L85> and keep incrementing them whenever a face is detected and the control comes inside the loop.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ak2iaOvtnVMw_kAYKG-58LTkJBfLZp_Cks5ukZ-ugaJpZM4XZ7hO>.
|
Hi,
Can i run any Video in Gender recognition code? if yes kindly tell how to?
…________________________________
From: Arun Ponnusamy <[email protected]>
Sent: Saturday, October 13, 2018 1:09 PM
To: arunponnusamy/gender-detection-keras
Cc: aliraza1616; Mention
Subject: Re: [arunponnusamy/gender-detection-keras] Web cam (#3)
Hello @aliraza1616<https://github.com/aliraza1616> , In this repository I have demonstrated how to train a neural network from scratch (without using transfer learning / fine tuning pre-trained model weights) for a task like 'gender detection'. The accuracy of the detection will be low mostly due to
1. very small training dataset and
2. shallow / lightweight network architecture (in this case SmallerVGGNet).
I am working on building more accurate gender detector. I will be adding it to cvlib<http://cvlib.net> in the next release. Keep on eye on the blog<http://arunponnusamy.com> for new posts.
Regarding counting faces, you can just keep a counting variable inside the loop<https://github.com/arunponnusamy/gender-detection-keras/blob/cb922b07c8189a967fbd8b24d12cdf9dd5846b41/detect_gender_webcam.py#L85> and keep incrementing them whenever a face is detected and the control comes inside the loop.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ak2iaOvtnVMw_kAYKG-58LTkJBfLZp_Cks5ukZ-ugaJpZM4XZ7hO>.
|
Hello @aliraza1616 , you can replace the zero in
|
Hello.
Let me check.
Bro i have requested you for face count in the same code. How can we count faces and display in output screen? Plz support this case.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Arun Ponnusamy <[email protected]>
Sent: Saturday, October 20, 2018 10:35:05 AM
To: arunponnusamy/gender-detection-keras
Cc: aliraza1616; Mention
Subject: Re: [arunponnusamy/gender-detection-keras] Web cam (#3)
Hello @aliraza1616<https://github.com/aliraza1616> , you can replace the zero in VideoCapture(0) with path to video file name to work with video input. VideoCapture('video_input.mp4')
https://github.com/arunponnusamy/gender-detection-keras/blob/cb922b07c8189a967fbd8b24d12cdf9dd5846b41/detect_gender_webcam.py#L23
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ak2iaBDm_wE9ZDoXWqu9eYbv5aY6OWfiks5umrYJgaJpZM4XZ7hO>.
|
Hi!!
I need t know that some of the faces are not detected by model. Like in attached pic. How to increase accuracy of detecting? Kindly reply for both the queries. Face count and face detection.
BR,
Ali
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: Arun Ponnusamy <[email protected]>
Sent: Saturday, October 20, 2018 10:35:05 AM
To: arunponnusamy/gender-detection-keras
Cc: aliraza1616; Mention
Subject: Re: [arunponnusamy/gender-detection-keras] Web cam (#3)
Hello @aliraza1616<https://github.com/aliraza1616> , you can replace the zero in VideoCapture(0) with path to video file name to work with video input. VideoCapture('video_input.mp4')
https://github.com/arunponnusamy/gender-detection-keras/blob/cb922b07c8189a967fbd8b24d12cdf9dd5846b41/detect_gender_webcam.py#L23
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ak2iaBDm_wE9ZDoXWqu9eYbv5aY6OWfiks5umrYJgaJpZM4XZ7hO>.
|
Can you attach the image please ? Regarding face count, as I have mentioned earlier, you can just keep a counting variable inside the loop and keep incrementing them whenever a face is detected and the control comes inside the loop. If you are new to Python, I would suggest to go through some introductory material on realpython or codecademy. |
Image is already attached bro.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Arun Ponnusamy <[email protected]>
Sent: Monday, October 22, 2018 4:31:36 PM
To: arunponnusamy/gender-detection-keras
Cc: aliraza1616; Mention
Subject: Re: [arunponnusamy/gender-detection-keras] Web cam (#3)
Can you attach the image please ?
Regarding face count, as I have mentioned earlier, you can just keep a counting variable inside the loop and keep incrementing them whenever a face is detected and the control comes inside the loop.
https://github.com/arunponnusamy/gender-detection-keras/blob/cb922b07c8189a967fbd8b24d12cdf9dd5846b41/detect_gender_webcam.py#L85
If you are new to Python, I would suggest to go through some introductory material on realpython<http://realpython.com> or codecademy<http://codecademy.com>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ak2iaMEy9OabT8zzOei5kzkWo4vPSq6Jks5unayYgaJpZM4XZ7hO>.
|
Can you visit the current issue on github and attach the image ? replying to email directly with image doesn't actually help. |
@arunponnusamy thanks for a great contribution. |
Hey @nyck33, If you are using ResNet / VGG16 I would suggest to start with ImageNet weights for transfer learning. |
@arunponnusamy Thanks for the reply and I'm very sorry for the bomb of questions. |
I haven't worked much with VGGFace but I guess you can do that too. |
HI. i have checked Your code and its working fine on still. When i ran the model of Webcam, it always displayed man and women as man. can you please provide some help?
The text was updated successfully, but these errors were encountered: