Facial Recognition for Raspberry Pi with OpenCV and Python (Updated Tutorial)

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 46

  • @trythelatest
    @trythelatest 20 дней назад +1

    You have brilliantly explained so much, so well, in 12 minutes.
    Folks have no idea how long this takes to do well!

    • @Core-Electronics
      @Core-Electronics  19 дней назад

      Thank you very much for the kind words, hope you enjoyed!

  • @fluffyninjamenace4661
    @fluffyninjamenace4661 Месяц назад +1

    Fantastic tutorial! This video was very easy to follow!

  • @sorenfirestar2657
    @sorenfirestar2657 Месяц назад

    This was legit an awesome tutorial

  • @bryanlee7295
    @bryanlee7295 Месяц назад +1

    you got yourself a subscriber

  • @spartandani3795
    @spartandani3795 20 дней назад +1

    awesome video man! By any chance have you tested something like this using the Hailo npu hat for raspberry??

    • @Core-Electronics
      @Core-Electronics  19 дней назад

      We have found that its not as flexible as this in terms of running it in a Python script. And while it does a lot of other computer vision tasks really well, you might be out of luck on face recognition. Right now its not very possible to just type in a line and off-load the processing to it, you need to find a model and then go through the conversion process to get it in the model format it accepts. So if you could find a compatible face recognition model and convert it, that might be possible. But as of now it might not be possible.

  • @tarunjeetsingh1111
    @tarunjeetsingh1111 Месяц назад +1

    Please make a video on pose detection with the same setup

  • @201crunt6
    @201crunt6 Месяц назад

    Sold out ✌️

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

    Hey man great video!
    do you know how to make the camera follow the pupil?
    i want to build an eye -tracker using the raspi 5 and raspi moudle 3
    thank you so much

  • @AlexBingham-v7j
    @AlexBingham-v7j 8 дней назад

    Hi Jaryd, great video. If I upgrade to a Pi AI Camera, does this still work?

    • @Core-Electronics
      @Core-Electronics  7 дней назад

      The AI Camera has its own workflows and needs its own custom model format so unfortunately its not as simple as plugging it in and running this off it. 😞

  • @kirilllee8800
    @kirilllee8800 12 дней назад

    Can you make tutorial using Face Recognition as attendance?

  • @aufu
    @aufu 11 дней назад

    Hey thank you for making these videos, just subscribed. I need about 5 of these kits and I'm hesitant to order this for real facial recognition.
    If I'm right, this doesn't distinct if the scanned face is real or the user putting a a photo in front of the camera.
    For this case, do you know any devkit like this but with some sort of 3D scanner that allows real facial recognition?
    Thanks!

    • @Core-Electronics
      @Core-Electronics  10 дней назад

      I haven't tried it but I'm fairly certain this will be tricked by a printed photo of someone. When you get into 3d scanning it starts to get quite involved as well. There are some projects like this:
      pypi.org/project/pifacecam/
      That use a 2 camera setup to fight against printed images, but we don't have a guide for that unfortunately.

  • @anseltom8471
    @anseltom8471 26 дней назад +2

    ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them. guys can you help to solve the error i am facing to install face recognition librarie in my raspberry pi 5

  • @madwilliamflint
    @madwilliamflint Месяц назад

    JUST got this built and working. Couple questions:
    - Is there a relatively simple way for it to capture a pic for unrecognized faces (at a limit of 1 a minute or something sane?)
    - I'd really like to set up a "once X has been in frame for a couple seconds, shoot a command off" function. (I want it to play a greeting file for people who's pictures I've trained it on, for instance.)
    It's 12:30 am and I'm about to start spelunking in to docs, but I'm getting a little loopy so I figured I'd ask here just in case.

    • @madwilliamflint
      @madwilliamflint Месяц назад

      Okay so...calculated fps x number of repeated frames with face_encoding...okay, I think I've got that.

    • @Core-Electronics
      @Core-Electronics  Месяц назад

      If you still need a hand, large language models like ChatGPT and Claude are very good at writing Python code. If you past in the entire script, as well as any questions or things you want it to do, they should be able to write it and explain it for your. They are free to use nowadays as well which is amazing!

    • @madwilliamflint
      @madwilliamflint Месяц назад

      @@Core-Electronics Oh I'm good, thanks. I was a little loopy because I was working on this at about 2:30 in the morning. A good night's sleep knocked the dust off my head. :)

  • @leoandcarb
    @leoandcarb День назад

    Is it possible if I use raspberry pi 4 model b on this project?

  • @lucutes2936
    @lucutes2936 Месяц назад

    thx

  • @AtinderKharoud-em5ol
    @AtinderKharoud-em5ol 6 дней назад

    Hello i got 2 questions 1. Where to download the face recognition file and 2. Can we use our laptops webcam ? Pls answer asap ❤❤

    • @Core-Electronics
      @Core-Electronics  5 дней назад

      Hey, the file is in the written guide (at the end of the very first paragraph):
      core-electronics.com.au/guides/raspberry-pi/face-recognition-with-raspberry-pi-and-opencv/
      and this will work with a laptop webcam, but the colours might be mixed up depending on what webcam you are using, its possible to correct it in the code though it will all depend on what webcam you use.

    • @AtinderKharoud-em5ol
      @AtinderKharoud-em5ol День назад

      K but my dumbass can't figure how to use the webcam pls tell me how to solve it , it says in thonny when I run the image capture script it says no module found cv2

  • @HnedWebTV
    @HnedWebTV Месяц назад

    Najs

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

    I tried the model, and when I turn it on, it works, but when it reveals my face, the image freezes. Why?

  • @kirilllee8800
    @kirilllee8800 19 дней назад

    Can I use it with Raspberry AI kit?

  • @vernievlog5495
    @vernievlog5495 14 дней назад

    Will this work with the AI camera?

    • @Core-Electronics
      @Core-Electronics  12 дней назад

      You can use the camera part of the AI camera as it can function like a regular Pi camera module, but you won't be able to use the onboard AI chip to speed this up. There is a different workflow and system for using the AI camera's processing power 😢

  • @amandapanda3750
    @amandapanda3750 18 дней назад

    I've been trying to attempt this tutorial. I'm using a 8 GB RAM raspberry pi on a 250GB SD card and the interface keeps on crashing on me. And I'm having storage issues due to the size of Tensor Flow and OpenCV. Any suggestions on how to mitigate this issue?

    • @Core-Electronics
      @Core-Electronics  17 дней назад

      That is very odd, OpenCV and Tensor Flow barely push into the Gigabyte range and I had no issues with this on a 32GB SD card. Is your SD card having issues?
      We don't do much support over RUclips, but we have a forum topic for this video that you can post to, we have lots of makers who can help out! Just give us a bit more info about which interface keeps crashing, and maybe some error messaged about your storage issues.
      forum.core-electronics.com.au/t/face-recognition-with-raspberry-pi-and-opencv/21033

  • @piotrek6948
    @piotrek6948 Месяц назад

    Hi, can I use a external usb webcam ?

    • @Core-Electronics
      @Core-Electronics  Месяц назад +1

      This code is untested on a webcam, but it should be possible. The colours may be off though as depending on your webcam, it may use a different colour space, so it may need a bit of tweaking to get the colours right!

  • @nsf8443
    @nsf8443 Месяц назад

    is it possible if using webcam?

    • @Core-Electronics
      @Core-Electronics  Месяц назад

      This code is untested on a webcam, but it should be possible. The colours may be off though as depending on your webcam, it may use a different colour space, so it may need a bit of tweaking to get the colours right!

    • @nsf8443
      @nsf8443 7 дней назад

      @Core-Electronics oooh i get it, thank you so much for your explainationn

  • @PPTMatkul
    @PPTMatkul 25 дней назад

    hello. Can I get the code ? thank you

  • @ambadaspatil2508
    @ambadaspatil2508 Месяц назад

    hi after running the face recgonition code in thonny it is showing "list index out of range " error please help

    • @Core-Electronics
      @Core-Electronics  Месяц назад

      Hmmm, I haven't come across that issue. If you are still having problems, feel free to post it on our forum topic for this post. Just give us your code and setup, as well as the error message. We do most of our technical support over there!
      forum.core-electronics.com.au/t/face-recognition-with-raspberry-pi-and-opencv/21033

    • @Core-Electronics
      @Core-Electronics  Месяц назад

      I think I have just encountered the same issue! My camera wasn't plugged in correctly and I received (possibly) the same error message.

    • @adarshshaji4329
      @adarshshaji4329 Месяц назад

      Did you solve this , I have been facing the same error

    • @leoandcarb
      @leoandcarb День назад

      ​@@Core-Electronics i have been receiving the same error. Is there another problem ir is it mainly my camera's connection

  • @Jon509h
    @Jon509h 24 дня назад

    Where is the code

    • @Core-Electronics
      @Core-Electronics  24 дня назад

      You can find it on our written guide page
      core-electronics.com.au/guides/raspberry-pi/face-recognition-with-raspberry-pi-and-opencv/
      But here is a direct link as well!
      core-electronics.com.au/attachments/uploads/facial-recognition-updated.zip