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

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • 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

  • @Neek0tine
    @Neek0tine 2 года назад +1

    THANK YOU! For not just grabbing an already available model and call it a "tutorial"

  • @akrana722
    @akrana722 4 года назад +10

    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.

  • @photorealm
    @photorealm 3 года назад +4

    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

  • @solveunsolvable1024
    @solveunsolvable1024 4 года назад +13

    sir could u please specify the requirements that needed to be installed in a seperate file as if u did in the last video

  • @pomeyprince7226
    @pomeyprince7226 4 года назад +2

    Great work respect from Pakistan🤗🤗

  • @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.

  • @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

  • @brianthomas9148
    @brianthomas9148 3 года назад

    Thank you soo much Balaji, one of the best explanations even gotten to see!!!!

  • @shashankjois5452
    @shashankjois5452 3 года назад +1

    Please keep uploading these type of vedios ,,,, We always support you ,,,,,

  • @Display670
    @Display670 3 года назад +2

    Sir in this project requirement.txt file not there please give me

  • @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

  • @bapuraoanilkundale
    @bapuraoanilkundale 2 дня назад

    will this CNN using python, openCV, and Keras will work offline also?

  • @rajalakshmirajalakshmi5706
    @rajalakshmirajalakshmi5706 7 месяцев назад +1

    Sir supr sir....Super Explanation with Coding...But,Where you do this Coding?

  • @sriramgk130
    @sriramgk130 2 года назад +1

    While detecting it says man for everyone...Can anyone help me with that

  • @sherifeletriby
    @sherifeletriby 3 года назад +2

    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

  • @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

  • @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!!

  • @gokulsrinath7714
    @gokulsrinath7714 4 года назад +2

    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

  • @sach2274
    @sach2274 3 года назад +12

    Who else got this video in recommendation and liked it without even watching the first 1 minute.

    • @ashugoyal8207
      @ashugoyal8207 3 года назад

      can u help with this problem
      from tensorflow.keras.preprocessing.image import ImageDataGenerator
      ModuleNotFoundError: No module named 'tensorflow'

    • @sach2274
      @sach2274 3 года назад

      @@ashugoyal8207 all you need to do is pip install tensorflow in your cmd or powershell

    • @sach2274
      @sach2274 3 года назад

      @@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 года назад +2

    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.

  • @CGCSMAHESHAC
    @CGCSMAHESHAC 3 года назад +1

    .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

  • @sreethasetty
    @sreethasetty 2 месяца назад

    what are the requirements to run this code , can anyone explain please

  • @Sweet5695
    @Sweet5695 3 года назад +2

    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

  • @anushkaparikh2560
    @anushkaparikh2560 10 дней назад

    How to run all these files. Please please explain

  • @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.😄

  • @prajwalrao6381
    @prajwalrao6381 3 месяца назад +1

    bro does these work on vs code

  • @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

  • @purplehouse5808
    @purplehouse5808 3 года назад

    wonderful video and surely it solved my problem

  • @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.

  • @devinpython5555
    @devinpython5555 4 года назад

    hello @Balaji srinivasan hope you are doing could you please tell why are you using sublime text instead of jupyter notebook

  • @sandeepkumaar7176
    @sandeepkumaar7176 3 года назад +1

    Amazinflg bro ur work helped my assignment 🙂🙂

  • @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

  • @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 ?

  • @zainabhassan8622
    @zainabhassan8622 2 года назад

    Hello,
    I can't seem to download the file. I'm really in need of it for my project.

  • @Ashley-nh4ez
    @Ashley-nh4ez 2 года назад

    About the plot, seems like they are not working anymore. Can you check it out please?

  • @yagizseven7
    @yagizseven7 3 года назад

    Does not work on Ubuntu as there are lots of errors (detecting wrong faces and genders) while detecting faces via webcam

  • @DhanunjayaSrisailamTTT
    @DhanunjayaSrisailamTTT 4 года назад

    I am stuck with this error. Please Help. ImportError: No module named '_pywrap_tensorflow'

  • @shaimakulavoor271
    @shaimakulavoor271 2 месяца назад

    can we use jupiter notebook?

  • @aniketjaiin
    @aniketjaiin 3 года назад +1

    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

  • @relaxmindzone6578
    @relaxmindzone6578 3 года назад

    I don't have webcam so can i identify gender using photos. How to do it?

  • @supreethu2308
    @supreethu2308 6 месяцев назад

    in which software we have to do this ??

  • @akd9977
    @akd9977 4 года назад +2

    Great work!! How to identify gender from group of person in an image

  • @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....................

  • @vijua847
    @vijua847 3 года назад

    FailedPreconditionError: gender_detection.model is not a directory showing like this error

  • @ranjancom2000
    @ranjancom2000 3 года назад

    Please let me know we can do this ML using drag and drop using Azure work flow pipe line module

  • @princesyal2518
    @princesyal2518 3 года назад

    In this we using supervised learning or unsupervised learning ????

  • @mytop5602
    @mytop5602 3 года назад

    Can I apply this to another webcam source, i.e. XPath from a website?

  • @n.harshavardhanreddy6185
    @n.harshavardhanreddy6185 Год назад

    i want this project bro can u explain i tried to implement but it is not working

  • @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 ???

  • @406_meghana2
    @406_meghana2 9 месяцев назад

    what libraries have to install init

  • @mukthaaa3506
    @mukthaaa3506 3 года назад

    sir which function in cvlib should be used in hand gesture recognition

  • @knowledgedoctor3849
    @knowledgedoctor3849 4 года назад

    Don't get the correct output.
    When i checked it it can say female.
    Why

  • @slapstickamigos2435
    @slapstickamigos2435 2 года назад

    hello bro, i need some help can we add age code in that and how pls tell

  • @user-kj7yn2lh8j
    @user-kj7yn2lh8j 2 года назад

    hello my friend how can i download the man and woman folder ? can you help me

  • @kreifuentes6949
    @kreifuentes6949 3 года назад +1

    Can you make a gui for this ,I appreciate if you do this

  • @matovushafik2372
    @matovushafik2372 3 года назад +1

    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

  • @paulcosta6142
    @paulcosta6142 3 года назад

    are you use data augmentatio?
    for pre processing?

  • @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

  • @desikristiyani4647
    @desikristiyani4647 2 года назад

    what CNN architecture are you used Sir? Thank you

  • @amsaprabhaa8879
    @amsaprabhaa8879 3 года назад

    i have an error like no module named tensorlow.keras

  • @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

  • @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

  • @vinaykarandi836
    @vinaykarandi836 3 года назад

    how can we implement the same for helmet detection

  • @amsaprabhaa8879
    @amsaprabhaa8879 3 года назад

    ModuleNotFoundError: No module named 'tensorflow.keras' plz provide solution.ffffffffffffffffffff

  • @xeweultechinsight
    @xeweultechinsight Год назад

    Thank you for this amazing tuto.
    Can I use the same method to detect if someone is minor or adult ?

  • @kamilmuhdtaufeeq1002
    @kamilmuhdtaufeeq1002 11 месяцев назад

    Please sir can i get the dataset you use for this project?

  • @jay-rathod-01
    @jay-rathod-01 4 года назад

    Awesome tutorials

  • @Hitesh-Salgotra
    @Hitesh-Salgotra 3 года назад

    sir can we use Resnet 50 using transfer learning anyone plz suggest

  • @mdmahinulalamtanjid4798
    @mdmahinulalamtanjid4798 3 месяца назад

    Which IDE is this

  • @rajichandran2272
    @rajichandran2272 3 года назад

    how to calculate performance metrices like precission recall accuracy..etc

  • @SanjaySahu-be9ll
    @SanjaySahu-be9ll 2 года назад

    good explanation bro ....

  • @moneissha.g.3985
    @moneissha.g.3985 27 дней назад

    bro mass broo

  • @kaustubhraikar5272
    @kaustubhraikar5272 3 года назад +1

    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.

  • @mohammedaasif9707
    @mohammedaasif9707 3 года назад

    Sir Do you have video on Chest-X-Ray-Images-Pneumonia-Prediction?

  • @yadvendarSingh84
    @yadvendarSingh84 3 года назад +1

    is this able to recognise transgender

  • @amnarehman2485
    @amnarehman2485 4 года назад

    Which tool is used here and how

  • @jatinbhoirjb
    @jatinbhoirjb 3 года назад

    Can u tell me your gpu specifications?

  • @harikk7872
    @harikk7872 3 года назад

    Sir i am getting model is not defined

  • @nsk6914
    @nsk6914 Год назад

    Iam getting error iam using pycharm

  • @sandrej5598
    @sandrej5598 3 года назад

    nice video, thanks

  • @amirulhafiz8951
    @amirulhafiz8951 3 года назад

    Sir, could you make gender classification by walk movement ?

  • @jdw4578
    @jdw4578 Год назад

    Is there any database in this project

  • @universalreels3183
    @universalreels3183 4 года назад

    Brother make video on number plate detection and text extraction

  • @fiyazkhan6460
    @fiyazkhan6460 3 года назад

    Hi Balaji, Can you please make videos on NLP

  • @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.

  • @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

  • @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

  • @madalanrupenchakravarthi1830
    @madalanrupenchakravarthi1830 3 года назад

    can anyone help me with the project

  • @pcharith395
    @pcharith395 4 года назад

    Can u do a video on modules in keras like layers

  • @mohan.r2155
    @mohan.r2155 3 года назад

    bro can t import tensorflow what will i do?

    • @ritikthakur6270
      @ritikthakur6270 3 года назад +1

      Use python version 3.6 to install the tensorflow

  • @pcharith395
    @pcharith395 4 года назад

    Btw great work

  • @amruthavarshini7999
    @amruthavarshini7999 4 года назад

    can u post videos on ml algorithms and also on opencv?

  • @priyanayak2000
    @priyanayak2000 Год назад

    Bro explain in detail for better understanding

  • @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

  • @dtrgaming6566
    @dtrgaming6566 3 года назад

    bro plot is not getting saved

  • @aliap1177
    @aliap1177 2 года назад

    Sir can u make it for detecting Transgender too...

  • @HarvLittGaming
    @HarvLittGaming 3 года назад

    Can u make a discord servers for us so we can talk and ask our queries please

  • @plab9034
    @plab9034 4 года назад

    why don't you get a better camera?

  • @as_sulthoni
    @as_sulthoni 4 года назад

    i got out of sample error too high

  • @CurryCravingsIndia
    @CurryCravingsIndia 4 года назад

    Bro can u make video on segmentaion using unet