Simple Facial Recognition project with Raspberry Pi

preview_player
Показать описание
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

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:

Not sponsored but I thought would be helpful:
Here are my gears

Рекомендации по теме
Комментарии
Автор

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

mrmamashow
Автор

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

joshuaolakanla
Автор

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

j.nphoenix
Автор

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

mohanraj
Автор

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.

romtham
Автор

Which algorithm you have used for face recognization

Tirumalachandra
Автор

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

MrAlstal
Автор

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

willsalpha
Автор

isnt this the same codes with core electronics?

nocap
Автор

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

NASAvideos-ywhd
Автор

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!

composeexpose
Автор

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. ???

squirralien
Автор

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

oleeolee
Автор

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

usefdoybenz
Автор

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

arrman
Автор

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

arpanthakur
Автор

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

arpanthakur
Автор

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

hamvok
Автор

What facial recognition system did you clone from github please?

franklyproducer
Автор

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

ec__virag