Machine Learning for Facial Recognition in Python in 60 Seconds

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 มิ.ย. 2022
  • In this video we use Mediapipe to run a Machine Learning for Facial Recognition in Python.#python
    machinelearning #ai #datascience #python #coding

ความคิดเห็น • 112

  • @alext5497
    @alext5497 ปีที่แล้ว +263

    Lib does all the work. We take all the credit.

    • @robmulla
      @robmulla  ปีที่แล้ว +26

      True

    • @HB-kl5ik
      @HB-kl5ik ปีที่แล้ว +1

      I got this video recommended after 10 videos of "How can you earn $5000 per day using chatGPT, chatGPT is craaaziest AI technology and you need to ask it 'How to write a TH-cam Script for..'" I'm not complaining 🙂

    • @JimMaz
      @JimMaz ปีที่แล้ว +44

      No need to reinvent the wheel.
      As technology evolves, this will only escalate. You can't be an expert on every subject.

    • @HB-kl5ik
      @HB-kl5ik ปีที่แล้ว +12

      @@JimMaz we live in a world of abstractions for sure

    • @anerdtravels
      @anerdtravels ปีที่แล้ว +3

      @@JimMaz Whilst I agree, the more external libraries we rely on the more chance we have for another log4j incident

  • @razzakahmad8731
    @razzakahmad8731 ปีที่แล้ว +45

    So many libraries can do this but honestly I always feel more motivated when it is done from scratch like using transfer learning.

    • @robmulla
      @robmulla  ปีที่แล้ว +6

      Yea, fine tuning models can be fun, but you need labeled data which is expensive.

    • @JohnWalz97
      @JohnWalz97 9 หลายเดือนก่อน +1

      Yeah but like that’s not from scratch lol

  • @tophat593
    @tophat593 ปีที่แล้ว +86

    Using a library like that, you may as well open an app on your phone.

    • @robmulla
      @robmulla  ปีที่แล้ว +15

      That's why I love python. 😅

    • @Yippie37
      @Yippie37 ปีที่แล้ว +6

      The difference is you can do with this whatever you want next, not just a result

  • @alexxander6326
    @alexxander6326 8 หลายเดือนก่อน +5

    Please can you make a full video on this

  • @KAZZinteractive
    @KAZZinteractive 6 หลายเดือนก่อน +1

    can you expand on this and also teach us how to get mediapipe to recognize facial expressions realtime?

  • @zackadam2598
    @zackadam2598 ปีที่แล้ว +2

    great short!

  • @jiyanshsonofdr.rajesh8516
    @jiyanshsonofdr.rajesh8516 ปีที่แล้ว +2

    Great work

  • @udaykumarrcse2450
    @udaykumarrcse2450 ปีที่แล้ว +2

    Nice sir

  • @spll4346
    @spll4346 4 หลายเดือนก่อน

    can this also work on existing footage aswell? instead of webcam footage

  • @gabrudude3
    @gabrudude3 ปีที่แล้ว +2

    Thanks for sharing. Can the same library be used for full-body 3D mesh as well? For example, if I rotate a camera around 6' tall person and take 120 pictures vs using this library to create that mesh easily?
    One more question, what type of camera you used? Do you need LiDAR sensor or just a regular camera to get depth or photogrammetry?

    • @robmulla
      @robmulla  ปีที่แล้ว

      I think you are asking about pose estimation? There are a few libraries that can do that like openpose and mediapipe. This is just a normal webcam, no LiDAR!

    • @gabrudude3
      @gabrudude3 ปีที่แล้ว

      Thanks for the response and pointers. I’ll look into those libraries.

  • @rqvage4756
    @rqvage4756 6 หลายเดือนก่อน

    I really love the idea, but I would greatly prefer if I myself made the algorithms. Though I feel like this a good starting point for facial recognition ML.

  • @anatoliypotapchuk8174
    @anatoliypotapchuk8174 ปีที่แล้ว +20

    Isn't it face detection(find a face on the image), not face recognition?(recognize one face among others)

    • @robmulla
      @robmulla  ปีที่แล้ว +5

      True! Check out my full TH-cam video on deepface for true face recognition.

  • @mak2033y
    @mak2033y ปีที่แล้ว +1

    Great

  • @gustavojuantorena
    @gustavojuantorena ปีที่แล้ว +1

    Great! 😃

    • @robmulla
      @robmulla  ปีที่แล้ว +1

      Thanks! 😃

    • @dailymemeez
      @dailymemeez 4 หลายเดือนก่อน +1

      ​@@robmullai am coming to your house.
      Check your front porch:)

  • @RealHigherLevel
    @RealHigherLevel ปีที่แล้ว +2

    Rob what software you using in the video to demonstrate how it works?

    • @robmulla
      @robmulla  ปีที่แล้ว

      Check out my youtube page for a longer video on deepface.

    • @RealHigherLevel
      @RealHigherLevel ปีที่แล้ว

      @@robmulla thanks 👍

  • @sivalingeswaranv9159
    @sivalingeswaranv9159 8 หลายเดือนก่อน +2

    Can I get Source code 🤔

  • @paul1panter2
    @paul1panter2 ปีที่แล้ว +2

    Hi. Can you make a Video how to train a AI so it can identify a face?

    • @robmulla
      @robmulla  ปีที่แล้ว

      I have a video about it on my channel! DeepFace

  • @goktrenks
    @goktrenks ปีที่แล้ว +1

    Interesting

  • @shanksshaki
    @shanksshaki 3 หลายเดือนก่อน

    How start for beginners ?

  • @draculadrac9566
    @draculadrac9566 ปีที่แล้ว +1

    Can you do a realtime shape detection with codes?

    • @robmulla
      @robmulla  ปีที่แล้ว

      You would just need to train the detector on example images of the shapes, but yes it is possible.

  • @shafaitahir4728
    @shafaitahir4728 10 หลายเดือนก่อน

    but how to save the points then train and load?

  • @PhilipDenys
    @PhilipDenys ปีที่แล้ว +1

    Wow

  • @codex1758
    @codex1758 ปีที่แล้ว +4

    could i use this for authentication ?

    • @robmulla
      @robmulla  ปีที่แล้ว

      Probably not good enough for that.

  • @tilakraj3082
    @tilakraj3082 ปีที่แล้ว +1

    I made a face recognition but it hangs after running for 10-20 seconds.....any ways to make it run faster ?

    • @robmulla
      @robmulla  ปีที่แล้ว

      Are you using a GPU? If not you might need to invest in one.

    • @abidson690
      @abidson690 3 หลายเดือนก่อน

      ​@@robmullais Kaggle GPU enough to solve his problem

  • @charlessilva5005
    @charlessilva5005 ปีที่แล้ว

    Pls can I get the source code?

  • @momsspaghetti21
    @momsspaghetti21 2 หลายเดือนก่อน

    How to use this in game

  • @nathansuarez5543
    @nathansuarez5543 11 หลายเดือนก่อน +1

    How to extract the face that has been detected in real-time?

    • @ahsenkhan3255
      @ahsenkhan3255 9 หลายเดือนก่อน

      can you find the solution? Because i want to detect persons from video with their names.

  • @udaykumarrcse2450
    @udaykumarrcse2450 ปีที่แล้ว

    I want face Emotion detection for song recommendation

    • @robmulla
      @robmulla  ปีที่แล้ว +1

      Check this out. It has a model for emotion but I can't vouch for how well it works: github.com/serengil/deepface

    • @udaykumarrcse2450
      @udaykumarrcse2450 ปีที่แล้ว

      Tq sir

  • @yehiaibrahim1381
    @yehiaibrahim1381 ปีที่แล้ว +2

    Hi, i want to build a device that uses image recognition API to help the blind for my school project and idk how to start can you help me ?

    • @robmulla
      @robmulla  ปีที่แล้ว

      That sounds like an interesting project. Check out some of my other videos on the topic, hopefully they will help you get started.

  • @bonzogaming4333
    @bonzogaming4333 2 หลายเดือนก่อน

    CAN YOU PLS SEND ME THE WEBSITE LINK

  • @ismailhosenjames
    @ismailhosenjames ปีที่แล้ว +2

    I will get face encoding only...
    Am I right?
    But I can't recognize with this.

    • @robmulla
      @robmulla  ปีที่แล้ว +1

      True. It’s recognizes faces within a camera but not who the face is of.

  • @sfincione2000
    @sfincione2000 10 หลายเดือนก่อน

    60 seconds eh? Riiiiight

  • @priyasamanta8805
    @priyasamanta8805 6 หลายเดือนก่อน

    Whats the code?

  • @TauGeneration
    @TauGeneration ปีที่แล้ว +1

    i wonder if it can be used to identify someone

    • @robmulla
      @robmulla  ปีที่แล้ว

      Check out my full video on deepface. It's possible but the open source models are pretty bad at it.

    • @TauGeneration
      @TauGeneration ปีที่แล้ว

      @@robmulla goddamn it. thanks

  • @benjaminbilgehan
    @benjaminbilgehan ปีที่แล้ว +1

    i thought that you are a doctor 😂

    • @robmulla
      @robmulla  ปีที่แล้ว

      Haha. Oh yea? Why is that?

    • @CodX710
      @CodX710 11 หลายเดือนก่อน

      ​@@robmullathe kind of clothes you wear

    • @robmulla
      @robmulla  11 หลายเดือนก่อน

      @@CodX710 LOL. Ok

  • @animania4074
    @animania4074 หลายเดือนก่อน

    Its no running nor showing any error

  • @jasonnn12
    @jasonnn12 ปีที่แล้ว

    Is that face detection only and not recognition?

    • @robmulla
      @robmulla  ปีที่แล้ว +1

      Good point. It’s recognizes a face but doesn’t match with a specific person.

    • @ismailhosenjames
      @ismailhosenjames ปีที่แล้ว

      I will get face encoding only...
      Am I right?

  • @MindWhisperer
    @MindWhisperer 10 หลายเดือนก่อน +1

    hey bro whats, IDE you use ?

    • @sfincione2000
      @sfincione2000 10 หลายเดือนก่อน +1

      He's using a Jupiter Notebook to write the code. It allows you to write code, put some docs in between and then run individual blocks or the whole program if you need to.

    • @MindWhisperer
      @MindWhisperer 10 หลายเดือนก่อน

      Thanks! ​ @sfincione2000. Im gonna try this.

  • @adhi_yustisio
    @adhi_yustisio ปีที่แล้ว +2

    what IDE do you use?

    • @robmulla
      @robmulla  ปีที่แล้ว

      Jupyterlab!

  • @junkynioy
    @junkynioy ปีที่แล้ว +1

    I can finally make my own vtubing software 🤡

  • @anonymosly
    @anonymosly 11 หลายเดือนก่อน +1

    pls share code

    • @robmulla
      @robmulla  11 หลายเดือนก่อน

      github.com/googlesamples/mediapipe/blob/main/examples/face_detector/python/face_detector.ipynb

  • @luisramon783
    @luisramon783 7 หลายเดือนก่อน

    How much you make a year as a ML

    • @robmulla
      @robmulla  7 หลายเดือนก่อน

      a few bucks.

  • @Avshack
    @Avshack ปีที่แล้ว +1

    Sir please can we get source code

  • @anyb5020
    @anyb5020 ปีที่แล้ว +1

    Ban facial recognition!!!!

    • @wave8060
      @wave8060 ปีที่แล้ว +1

      Ban you

    • @robmulla
      @robmulla  ปีที่แล้ว

      Band of horses.

  • @WWG1-WGA
    @WWG1-WGA ปีที่แล้ว +1

    Now we can clone you and you wouldn’t know

    • @robmulla
      @robmulla  ปีที่แล้ว +1

      I would know though…. Or would I?

    • @WWG1-WGA
      @WWG1-WGA ปีที่แล้ว

      @@robmulla keep in mind birth marks. They don’t copy them .

  • @jack-bx1xh
    @jack-bx1xh 10 หลายเดือนก่อน

    0:00

  • @lee7265
    @lee7265 ปีที่แล้ว +1

    software name

    • @robmulla
      @robmulla  ปีที่แล้ว

      mediapipe is a python package.

  • @otkurbeck4795
    @otkurbeck4795 ปีที่แล้ว +2

    Source code plz

    • @robmulla
      @robmulla  ปีที่แล้ว

      Try googling mediapipe facemesh that’s where I found the source code.

  • @Wineblood
    @Wineblood ปีที่แล้ว +1

    Please not aliased imports

    • @robmulla
      @robmulla  ปีที่แล้ว

      Did I use them here?

  • @santhnu
    @santhnu 11 หลายเดือนก่อน

    Wanted to see if I would be able to take up Machine Learning/Python from being a Web Developer all these years....decided not to after reading the code written in this video (no offense to @robmulla)...just not my cup of tea, thank you.

  • @jacakopl
    @jacakopl ปีที่แล้ว +1

    In frikkin 5 sec bunch of code just magically appeared 😂. Bs click bait

    • @robmulla
      @robmulla  ปีที่แล้ว

      sorry you feel that way. Just intended to show what's possible. I don't explain everything in 60 seconds!

  • @theKevatron
    @theKevatron 3 หลายเดือนก่อน

    z

  • @Reemo3
    @Reemo3 11 หลายเดือนก่อน

    This is copying someone else’s code. Lame

    • @robmulla
      @robmulla  11 หลายเดือนก่อน +2

      That is how software engineering works. Shoulders of giants. Making something interesting is the hard part.