Gender Detection using CNN, Python, Keras, OpenCV | Detect gender & faces on real-time video streams

  Рет қаралды 72,453

Balaji Srinivasan

Balaji Srinivasan

Күн бұрын

In this Python programming video, we will learn how to build a Gender Detector using Keras, Tensorflow, and OpenCV. We will also see how to apply this on a Live Video Camera.
Face region is cropped by applying face detection using cvlib package on the images.
This is a very beginner friendly project and try to use Anaconda Terminal to install the dependencies and running the model. Feel free to play around with the code, change the parameters and come up with better accuracy. Let me know the changes in the comment section.
GitHub: github.com/bal...
Matplotlib: • Matplotlib Tutorial Pa...
LinkedIn: LinkedIn: / balaji2512
Stay tuned for more such videos and subscribe to the channel
#python #GenderDetection #keras #tensorflow #opencv

Пікірлер: 128
@akrana722
@akrana722 4 жыл бұрын
The code is so clean and precised. Praise to you for explaining it in such easy way. If possible please make some video on image segmentation (medical use), thanks.
@Neek0tine
@Neek0tine 2 жыл бұрын
THANK YOU! For not just grabbing an already available model and call it a "tutorial"
@photorealm
@photorealm 3 жыл бұрын
This code worked with zero changes in 3 minutes up and running (even on windows). How often does that happen :) Great work thank you for sharing.
@meghana9876
@meghana9876 Жыл бұрын
can you tell me how to download the dataset
@pomeyprince7226
@pomeyprince7226 4 жыл бұрын
Great work respect from Pakistan🤗🤗
@shashankjois5452
@shashankjois5452 3 жыл бұрын
Please keep uploading these type of vedios ,,,, We always support you ,,,,,
@brianthomas9148
@brianthomas9148 3 жыл бұрын
Thank you soo much Balaji, one of the best explanations even gotten to see!!!!
@rajkumarmaity1243
@rajkumarmaity1243 Жыл бұрын
thank you sir for such video, this video is so clean and easily understandable, and sir please post this kind of video in the future so that we can understand any concept from the root.
@solveunsolvable1024
@solveunsolvable1024 4 жыл бұрын
sir could u please specify the requirements that needed to be installed in a seperate file as if u did in the last video
@gokulsrinath7714
@gokulsrinath7714 4 жыл бұрын
Really good bro!! I watched the whole video without skipping,it was very good. I have a doubt ,how do you determine no. Of conv2d layers & its size for your model? And about batch normalization you said it depends on the model you're working.so,what all scenario should i consider using batch norm? Would really appreciate if you could help me with this!! Thankyou
@rajalakshmirajalakshmi5706
@rajalakshmirajalakshmi5706 7 ай бұрын
Sir supr sir....Super Explanation with Coding...But,Where you do this Coding?
@muskaanvyas90
@muskaanvyas90 3 жыл бұрын
Thank you so much it really really helped me in my project. You have such a great work. Keep posting and spreading knowledge thank you sir
@purplehouse5808
@purplehouse5808 3 жыл бұрын
wonderful video and surely it solved my problem
@sandeepkumaar7176
@sandeepkumaar7176 3 жыл бұрын
Amazinflg bro ur work helped my assignment 🙂🙂
@muskaanvyas90
@muskaanvyas90 3 жыл бұрын
Can u help me?
@madalanrupenchakravarthi1830
@madalanrupenchakravarthi1830 3 жыл бұрын
bro can you helo me
@SANJAY2ROKA
@SANJAY2ROKA 3 жыл бұрын
I have subscrived to your channel wonderful explanation.................................to all topics...... please upload more video in deep learning image classification object detection in image and video behaviour detection..................Good Video Sir....................
@akd9977
@akd9977 4 жыл бұрын
Great work!! How to identify gender from group of person in an image
@jay-rathod-01
@jay-rathod-01 4 жыл бұрын
Awesome tutorials
@binitfofariya3071
@binitfofariya3071 4 жыл бұрын
Amazing bro.. 💯% accurate code
@digcompare1948
@digcompare1948 3 жыл бұрын
bhai yaar mere to work hi nhi kar raha help kar de plz
@dhinakaran4075
@dhinakaran4075 3 жыл бұрын
I got some error bro please. Send your mail id
@Sweet5695
@Sweet5695 3 жыл бұрын
Thanks for the video. How do you know which steps to take to make code work? Do you read documentation on the libraries or some other way? Im trying to build something on my own i just dont know which steps to take. I understand we load the data but how do you learn what to do with the data afterwards
@SanjaySahu-be9ll
@SanjaySahu-be9ll 2 жыл бұрын
good explanation bro ....
@muzafpanasonic1683
@muzafpanasonic1683 4 жыл бұрын
Nice one...Very interesting
@BalajiSrinivasan25
@BalajiSrinivasan25 4 жыл бұрын
Thank you 😊
@kollivenkatamadhukar5059
@kollivenkatamadhukar5059 3 жыл бұрын
@@BalajiSrinivasan25 That was a great video, Could you please leave a link to the paper which you referred to for the architecture used. It would be of great help thanks.
@moneissha.g.3985
@moneissha.g.3985 Ай бұрын
bro mass broo
@aliniaz6448
@aliniaz6448 2 ай бұрын
the video is so helpful but the problem though is that video is 3 years old, there should be an updated needed with keras 3.3. Thanks in advance.😄
@sandrej5598
@sandrej5598 3 жыл бұрын
nice video, thanks
@sherifeletriby
@sherifeletriby 3 жыл бұрын
I have a code that reads the photo or video and determines if a mask is wearing or not. The question is how to calculate the quality
@shashankjois5452
@shashankjois5452 3 жыл бұрын
Please,,,,,,, make a vedio on ,,, how to do similar thing with other thing ,,,,,,,like,,,,,,machine/device detection,,, programming I love your vedios,,,,,,,,,,,,,,,,,,,,thanks a lot
@Display670
@Display670 3 жыл бұрын
Sir in this project requirement.txt file not there please give me
@sach2274
@sach2274 4 жыл бұрын
Who else got this video in recommendation and liked it without even watching the first 1 minute.
@ashugoyal8207
@ashugoyal8207 4 жыл бұрын
can u help with this problem from tensorflow.keras.preprocessing.image import ImageDataGenerator ModuleNotFoundError: No module named 'tensorflow'
@sach2274
@sach2274 4 жыл бұрын
@@ashugoyal8207 all you need to do is pip install tensorflow in your cmd or powershell
@sach2274
@sach2274 4 жыл бұрын
@@ashugoyal8207 all you need to do is pip install tensorflow in your cmd or powershell ...after that you need to import in your ide and use it
@solveunsolvable1024
@solveunsolvable1024 4 жыл бұрын
sir i am getting this error , With n_samples=0, test_size=0.2 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters.
@priyanayak2000
@priyanayak2000 Жыл бұрын
Am also getting same error bro
@matovushafik2372
@matovushafik2372 3 жыл бұрын
Thanks for the good work man. How can I take my dataset/ images from a webcam and directly save them to the database according to the stipulated number of images in my code that I want to save
@CGCSMAHESHAC
@CGCSMAHESHAC 3 жыл бұрын
.model file format is not working ,how to save the model in .model extension, but i tried with keras .h5 format for saving model
@gsayesh
@gsayesh 3 жыл бұрын
issue comes from Tensorflow... model.fit_genarator method is deprected... please use model.fit
@pcharith395
@pcharith395 4 жыл бұрын
Btw great work
@devinpython5555
@devinpython5555 4 жыл бұрын
hello @Balaji srinivasan hope you are doing could you please tell why are you using sublime text instead of jupyter notebook
@kreifuentes6949
@kreifuentes6949 3 жыл бұрын
Can you make a gui for this ,I appreciate if you do this
@sriramgk130
@sriramgk130 2 жыл бұрын
While detecting it says man for everyone...Can anyone help me with that
@xeweultechinsight
@xeweultechinsight Жыл бұрын
Thank you for this amazing tuto. Can I use the same method to detect if someone is minor or adult ?
@bapuraoanilkundale
@bapuraoanilkundale 10 күн бұрын
will this CNN using python, openCV, and Keras will work offline also?
@universalreels3183
@universalreels3183 4 жыл бұрын
Brother make video on number plate detection and text extraction
@Nithin_3424
@Nithin_3424 Ай бұрын
My webcam sometimes Not responding how can i solve the problem. but the cam working good.the recognition is strucked sometimes. please help
@kaustubhraikar5272
@kaustubhraikar5272 3 жыл бұрын
Hello sir i really appreciate you, for the simplifying a project. Can you can take a minute out of your busy schedule and review my code.
@fiyazkhan6460
@fiyazkhan6460 3 жыл бұрын
Hi Balaji, Can you please make videos on NLP
@knowledgedoctor3849
@knowledgedoctor3849 4 жыл бұрын
Don't get the correct output. When i checked it it can say female. Why
@artamjeku
@artamjeku 4 жыл бұрын
same here
@masthanjinostra2981
@masthanjinostra2981 3 жыл бұрын
Hello, any solution
@aniketjaiin
@aniketjaiin 3 жыл бұрын
Hello brother... can you tell about cvlib. I was trying to run it in jupyter notebook.. all gone well but while implementing it gives that no module named cvlib. I tried to do everything but the error remained same. Can you please tell?
@nithishgowdam6486
@nithishgowdam6486 2 жыл бұрын
Even I got the same prblm bro do u have any solutions to that
@aniketjaiin
@aniketjaiin 2 жыл бұрын
@@nithishgowdam6486 Actually I was working on jupyter notebook in Anaconda. So as and when I run that there was a notification to install this library. I installed them and now it's working Also I set up a different environment tensorflow for my project
@princesyal2518
@princesyal2518 3 жыл бұрын
In this we using supervised learning or unsupervised learning ????
@debabratapaul6397
@debabratapaul6397 3 жыл бұрын
I have taken another dataset to run the model.. but the graph plot is not showing....i hve stuck in this problem.
@aliensonmars3662
@aliensonmars3662 4 жыл бұрын
Please make a video on how to get started with machine learning ? I mean everything weather it could be time how to master, time taken, how to learn, mathematics requirements, where to learn, required skills to start. We hope you will make a video
@rajichandran2272
@rajichandran2272 3 жыл бұрын
how to calculate performance metrices like precission recall accuracy..etc
@sudhirmanandhar4818
@sudhirmanandhar4818 Жыл бұрын
should the image type also be same i.e it must be jpg only or can be any thing like jpg,png,jpeg and all ?
@mohammedaasif9707
@mohammedaasif9707 3 жыл бұрын
Sir Do you have video on Chest-X-Ray-Images-Pneumonia-Prediction?
@dungnguyen_ute
@dungnguyen_ute Жыл бұрын
Hi everyone, i tried like video but I have an error "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 14: invalid continuation byte" when I load_model('gender_detection.model'). How can I solve an error ??. Thank you!!
@ranjancom2000
@ranjancom2000 3 жыл бұрын
Please let me know we can do this ML using drag and drop using Azure work flow pipe line module
@paulcosta6142
@paulcosta6142 3 жыл бұрын
are you use data augmentatio? for pre processing?
@raghulsubramani5146
@raghulsubramani5146 5 ай бұрын
DLL load failed while importing _pywrap_tf2: A dynamic link library (DLL) initialization routine failed. this error occurs sir while compling the code but i installed all the libraries correctly
@shaimakulavoor271
@shaimakulavoor271 2 ай бұрын
can we use jupiter notebook?
@shanmukhabhiram3526
@shanmukhabhiram3526 3 жыл бұрын
hello i was trying training program i downloaded every thing from gethub link i deleted the model in the downloaded folder and wanted to train it again as the training completes the model is being saved as a folder can you help me how to make it as an normal model file
@desikristiyani4647
@desikristiyani4647 2 жыл бұрын
what CNN architecture are you used Sir? Thank you
@sreethasetty
@sreethasetty 2 ай бұрын
what are the requirements to run this code , can anyone explain please
@prajwalrao6381
@prajwalrao6381 3 ай бұрын
bro does these work on vs code
@mukthaaa3506
@mukthaaa3506 3 жыл бұрын
sir which function in cvlib should be used in hand gesture recognition
@zainabhassan8622
@zainabhassan8622 2 жыл бұрын
Hello, I can't seem to download the file. I'm really in need of it for my project.
@anushkaparikh2560
@anushkaparikh2560 19 күн бұрын
How to run all these files. Please please explain
@saphead-invader3100
@saphead-invader3100 4 жыл бұрын
I am a. Newbie just learning python wanna ask although funny could we with the help of ML and AI can make application To read Doctors hand writing infact any vernacular writing style and able to print in. Normal font ???
@Ashley-nh4ez
@Ashley-nh4ez 2 жыл бұрын
About the plot, seems like they are not working anymore. Can you check it out please?
@mytop5602
@mytop5602 3 жыл бұрын
Can I apply this to another webcam source, i.e. XPath from a website?
@amsaprabhaa8879
@amsaprabhaa8879 4 жыл бұрын
i have an error like no module named tensorlow.keras
@The-Whole-Universe
@The-Whole-Universe 3 жыл бұрын
i have error when i used this code i don't know why ? ValueError: With n_samples=0, test_size=0.2 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters.
@ZuesNgcobo
@ZuesNgcobo Жыл бұрын
in my case I needed to change the way I access my data from my drive
@vijua847
@vijua847 3 жыл бұрын
FailedPreconditionError: gender_detection.model is not a directory showing like this error
@pcharith395
@pcharith395 4 жыл бұрын
Can u do a video on modules in keras like layers
@yagizseven7
@yagizseven7 3 жыл бұрын
Does not work on Ubuntu as there are lots of errors (detecting wrong faces and genders) while detecting faces via webcam
@amirulhafiz8951
@amirulhafiz8951 3 жыл бұрын
Sir, could you make gender classification by walk movement ?
@relaxmindzone6578
@relaxmindzone6578 3 жыл бұрын
Plz help!!!!!!!!!! i am getting this warning W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found
@DhanunjayaSrisailamTTT
@DhanunjayaSrisailamTTT 4 жыл бұрын
I am stuck with this error. Please Help. ImportError: No module named '_pywrap_tensorflow'
@406_meghana2
@406_meghana2 10 ай бұрын
what libraries have to install init
@relaxmindzone6578
@relaxmindzone6578 3 жыл бұрын
I don't have webcam so can i identify gender using photos. How to do it?
@Hitesh-Salgotra
@Hitesh-Salgotra 3 жыл бұрын
sir can we use Resnet 50 using transfer learning anyone plz suggest
@supreethu2308
@supreethu2308 6 ай бұрын
in which software we have to do this ??
@patrickpuentelml4958
@patrickpuentelml4958 4 жыл бұрын
Hey Mr Balaji could you make a video only training a simple objec detection in other words only detectin one object. I'm very new in the shields of the object detections and i can understand a little plese could you make a video like this but only for detect one object
@patrickpuentelml4958
@patrickpuentelml4958 4 жыл бұрын
sorry I was trying to said that I'm very new in the field of object detection. My english is so bad jaja Please help me
@slapstickamigos2435
@slapstickamigos2435 2 жыл бұрын
hello bro, i need some help can we add age code in that and how pls tell
@vinaykarandi836
@vinaykarandi836 3 жыл бұрын
how can we implement the same for helmet detection
@user-kj7yn2lh8j
@user-kj7yn2lh8j 2 жыл бұрын
hello my friend how can i download the man and woman folder ? can you help me
@amsaprabhaa8879
@amsaprabhaa8879 4 жыл бұрын
ModuleNotFoundError: No module named 'tensorflow.keras' plz provide solution.ffffffffffffffffffff
@jatinbhoirjb
@jatinbhoirjb 3 жыл бұрын
Can u tell me your gpu specifications?
@amruthavarshini7999
@amruthavarshini7999 4 жыл бұрын
can u post videos on ml algorithms and also on opencv?
@mdmahinulalamtanjid4798
@mdmahinulalamtanjid4798 3 ай бұрын
Which IDE is this
@kamilmuhdtaufeeq1002
@kamilmuhdtaufeeq1002 11 ай бұрын
Please sir can i get the dataset you use for this project?
@priyanayak2000
@priyanayak2000 Жыл бұрын
Bro explain in detail for better understanding
@CurryCravingsIndia
@CurryCravingsIndia 4 жыл бұрын
Bro can u make video on segmentaion using unet
@BalajiSrinivasan25
@BalajiSrinivasan25 4 жыл бұрын
Sure.
@yadvendarSingh84
@yadvendarSingh84 3 жыл бұрын
is this able to recognise transgender
@amnarehman2485
@amnarehman2485 4 жыл бұрын
Which tool is used here and how
@harikk7872
@harikk7872 3 жыл бұрын
Sir i am getting model is not defined
@HarvLittGaming
@HarvLittGaming 3 жыл бұрын
Can u make a discord servers for us so we can talk and ask our queries please
@madalanrupenchakravarthi1830
@madalanrupenchakravarthi1830 3 жыл бұрын
can anyone help me with the project
@nsk6914
@nsk6914 Жыл бұрын
Iam getting error iam using pycharm
@aliap1177
@aliap1177 2 жыл бұрын
Sir can u make it for detecting Transgender too...
@mohan.r2155
@mohan.r2155 3 жыл бұрын
bro can t import tensorflow what will i do?
@ritikthakur6270
@ritikthakur6270 3 жыл бұрын
Use python version 3.6 to install the tensorflow
@jdw4578
@jdw4578 2 жыл бұрын
Is there any database in this project
@CGCSMAHESHAC
@CGCSMAHESHAC 3 жыл бұрын
how to save the model in .model format
@gsayesh
@gsayesh 3 жыл бұрын
Issue comes from Tenserflow... model.fit_genrator method is deprecated please use model.fit
@kelixoderamirez
@kelixoderamirez 22 күн бұрын
permission to learn sir. thank you. can you have an email? I am interested to learning with you
@dtrgaming6566
@dtrgaming6566 3 жыл бұрын
bro plot is not getting saved
@as_sulthoni
@as_sulthoni 4 жыл бұрын
i got out of sample error too high
@plab9034
@plab9034 4 жыл бұрын
why don't you get a better camera?
Cute
00:16
Oyuncak Avı
Рет қаралды 11 МЛН
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,4 МЛН
Python Age & Gender Detection Tutorial | Python OpenCV & CNN Guide
34:08
Hussain Mustafa
Рет қаралды 1,7 М.
YOLO (You Only Look Once) algorithm for Object Detection Explained!
30:21
Balaji Srinivasan
Рет қаралды 90 М.
Color Detection using Python - OpenCV and Pandas
13:32
Balaji Srinivasan
Рет қаралды 53 М.
Самое простое объяснение нейросети
16:30
Программный Кот
Рет қаралды 121 М.
How I Would Learn Python FAST in 2024 (if I could start over)
12:19
Thu Vu data analytics
Рет қаралды 317 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 11 МЛН