Simple Facial Recognition project with Raspberry Pi

Sdílet
Vložit
  • čas přidán 22. 03. 2023
  • This is a very short & simple project/tutorial about Facial Recognition with just a Raspberry Pi and camera.
    The commands for installing dependencies & cloning GitHub repo (in the right order)
    sudo apt install cmake build-essential pkg-config git
    sudo apt install libjpeg-dev libtiff-dev libjasper-dev libpng-dev libwebp-dev libopenexr-dev
    sudo apt install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libdc1394-22-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
    sudo apt install libgtk-3-dev libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5
    sudo apt install libatlas-base-dev liblapacke-dev gfortran
    sudo apt install libhdf5-dev libhdf5-103
    sudo apt install python3-dev python3-pip python3-numpy
    git clone github.com/opencv/opencv.git
    git clone github.com/opencv/opencv_cont...
    mkdir ~/opencv/build
    cd ~/opencv/build
    cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
    -D ENABLE_NEON=ON \
    -D ENABLE_VFPV3=ON \
    -D BUILD_TESTS=OFF \
    -D INSTALL_PYTHON_EXAMPLES=OFF \
    -D OPENCV_ENABLE_NONFREE=ON \
    -D CMAKE_SHARED_LINKER_FLAGS=-latomic \
    -D BUILD_EXAMPLES=OFF ..
    make -j$(nproc)
    sudo make install
    sudo ldconfig
    Note that there is no penalty for typing the wrong command, just retype the right command and press "Enter" if that happens.
    This cannot be done without the article from PiMyLifeUp:
    pimylifeup.com/raspberry-pi-o...
    Not sponsored but I thought would be helpful:
    Here are my gears
    Canon EOS M200 & 15-45mm EM F Lense: shorturl.at/lDLVX
    Favorite Portable Light: shorturl.at/lmzW3
    Studio Light: shorturl.at/hnsC0
    Blue Yeti X Mic: shorturl.at/fpGJX

Komentáře • 42

  • @mrmamashow
    @mrmamashow Před rokem

    Great editing man! ill have to try this out for a vid eventually. Nice Kang Statue

  • @joshuaolakanla3993
    @joshuaolakanla3993 Před 6 měsíci +2

    Thanks for this. But the issue now is that the new pi camera module V3 only works with picamera2 library. Which doesn't seem to include the PiRGBarray

  • @j.nphoenix
    @j.nphoenix Před 3 měsíci

    thanks for the video, i still have a question though, how do you clone the facial recognition thing from github in the first place after inputting all the commands you have put in the description? i am a bit lost on that please help me out

  • @romtham2505
    @romtham2505 Před 11 měsíci

    My code needs to use the values ​​from the pickle file so cd myfolder must be used before it can run. Is there a way to write a script run? Please.

  • @mohanraj1010
    @mohanraj1010 Před 7 měsíci

    Thank you uploading. Could you please get the Raspberry Pi hardware, OS version, Python version, opencv version ? Does 64-bit OS work for you ?

  • @sekharpothana2123
    @sekharpothana2123 Před 3 měsíci

    Which algorithm you have used for face recognization

  • @MrAlstal
    @MrAlstal Před měsícem

    Hi, I've installed opencv, but getting errors during cmake.
    Which part gives you the "face-recognition" folder that you show in the video?
    Thanks

  • @nocap3154
    @nocap3154 Před 25 dny +1

    isnt this the same codes with core electronics?

  • @chandrasekharuppu4971
    @chandrasekharuppu4971 Před 3 měsíci +2

    Give code for the project

  • @willsalpha8300
    @willsalpha8300 Před 10 měsíci

    Bro can I do this for a final year project. I need the repos please

  • @milomoores
    @milomoores Před 8 měsíci

    is there any way to improve the fps?

  • @composeexpose8009
    @composeexpose8009 Před 7 měsíci

    Hi! Would it be possible have the Raspberry Pi adjust the exposure so that the face is always properly exposed? If so, any idea how I can achieve this? Thank you!

    • @thomasthemaker
      @thomasthemaker  Před 7 měsíci

      That could be done with another ML algorithm or some light sensor

  • @NASAvideos-yw3hd
    @NASAvideos-yw3hd Před 10 měsíci

    Thanks man, you didn't mentioned to clone the actual face_recognition folder?

  • @oleeolee4549
    @oleeolee4549 Před 8 měsíci

    which version of operating system are you using, Legacy bullseye or bookworm 64 or 32 bit, I'm trying for more than 1 week , and some of the packages are missing and cannot be installed . Thank you

    • @mr.s8671
      @mr.s8671 Před 7 měsíci

      he is using buster. I was using bookworm but switching to buster

  • @usefdoybenz
    @usefdoybenz Před 9 měsíci

    hi, but where are those python codes you are using in this video? I installed both repo but nothing are there....and why we have to install 2 GitHub repo, i guess is a a bit confused

    • @thomasthemaker
      @thomasthemaker  Před 8 měsíci

      I used bullseye 64 bit. Bullseye 32 would work just less efficiently. Bookworm is a mystery to me.

  • @squirralien1863
    @squirralien1863 Před 3 měsíci

    I like your videos, keeping it simple, I am curious, Could this facial recognition be integrated to the next video's chatgpt chatbot so it can recognise who it is talking to.
    It would be cool to have something that when you walk in the room it recognises you and asks how you are going, beginning the possibility of a conversation.
    If it doesn't recognise you it could ask what your name is.
    I may be getting way ahead of the basic abilities of connecting the two together. ???

    • @thomasthemaker
      @thomasthemaker  Před 3 měsíci +1

      Thanks for the good words! I think it can be hard to get to it, but not impossible. There are so many cool APIs and libraries now so you would be surprised how easy these things can be. I will definitely make a vid on this!

  • @arrman1351
    @arrman1351 Před 7 měsíci

    when i try to run sudo apt install libjpeg-dev libtiff-dev libjasper-dev libpng-dev libwebp-dev libopenexr-dev it shoes me E: Unable to locate package libjasper-dev
    how do i fix that?
    running on latest bullseyes(64 bit), everything updated

    • @Urukog_
      @Urukog_ Před 7 měsíci

      Same u found somethings ?

  • @arpanthakur5822
    @arpanthakur5822 Před rokem

    Can I used this method on Ubuntu os in Raspberry 4 ? I'm in lab now please reply..brother

    • @thomasthemaker
      @thomasthemaker  Před rokem

      Yes you can, there might be some libraries/dependencies missing but whenever a "missing dependency" error pops up, just Google how to install it, and continue with my tutorial.

  • @arpanthakur5822
    @arpanthakur5822 Před rokem

    Can I use Hp Webcam instead of a raspberry Pi camera? Please reply...

    • @thomasthemaker
      @thomasthemaker  Před rokem +1

      You certainly can, most USB camera should work

    • @bbbbbb2958
      @bbbbbb2958 Před 9 měsíci

      @@thomasthemaker how about my laptop camera?

  • @hamvok
    @hamvok Před 2 měsíci

    I followed every step but I cant find the facial_recognition file please help

    • @KCHunter
      @KCHunter Před 3 dny

      pip install face-recognition --no-cache-dir

  • @franklyproducer1
    @franklyproducer1 Před rokem

    What facial recognition system did you clone from github please?

    • @thomasthemaker
      @thomasthemaker  Před rokem

      I have the github repo clone and all necessary commands in the description section. Let me know if you have any other questions

    • @franklyproducer1
      @franklyproducer1 Před rokem

      @@thomasthemaker hi Thomas thank you for your speedy response, I have followed all the steps you have kindly described yet I have no face recognition repo, like yours is lated out, I'm not very good at this unfortunately

    • @franklyproducer1
      @franklyproducer1 Před rokem

      Sorry that is mean to say layed out

    • @thomasthemaker
      @thomasthemaker  Před rokem

      @@franklyproducer1 Hi, can you clarify further what do you mean not having face recog repo? At which step (command) did you encounter the error and can you paste the error in here?

    • @dornubariimeah415
      @dornubariimeah415 Před 3 měsíci

      @@thomasthemaker Thank you for the video, but you did not provide a link to the facial_recognition repo

  • @ec_043_virag9
    @ec_043_virag9 Před 4 měsíci

    I want to make a project on vehicle Anti theft system using raspberry Pi and face recognition

    • @ec_043_virag9
      @ec_043_virag9 Před 4 měsíci

      Will you help me

    • @ec_043_virag9
      @ec_043_virag9 Před 4 měsíci

      First time i am using raspberry Pi

    • @thomasthemaker
      @thomasthemaker  Před 4 měsíci

      Try looking into motionEye!
      raspberry-valley.azurewebsites.net/MotionEye-OS/