{"id":20815825,"url":"https://github.com/mhdbs/face_detection_recognition_opencv_raspberrypi_python","last_synced_at":"2026-05-06T19:35:14.246Z","repository":{"id":219216521,"uuid":"144308068","full_name":"mhdbs/Face_Detection_Recognition_OpenCV_RaspberryPi_Python","owner":"mhdbs","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-11T07:07:01.000Z","size":475,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T15:51:27.614Z","etag":null,"topics":["embedded","facedetection","gpio","haarcascade","opencv","python","raspberrypi"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhdbs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-10T16:14:33.000Z","updated_at":"2020-07-14T11:57:49.000Z","dependencies_parsed_at":"2024-01-26T05:13:10.253Z","dependency_job_id":"b3ff5a4d-6f6f-4128-bcc3-2b6fd988f164","html_url":"https://github.com/mhdbs/Face_Detection_Recognition_OpenCV_RaspberryPi_Python","commit_stats":null,"previous_names":["mhdbs/face_detection_recognition_opencv_raspberrypi_python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhdbs%2FFace_Detection_Recognition_OpenCV_RaspberryPi_Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhdbs%2FFace_Detection_Recognition_OpenCV_RaspberryPi_Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhdbs%2FFace_Detection_Recognition_OpenCV_RaspberryPi_Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhdbs%2FFace_Detection_Recognition_OpenCV_RaspberryPi_Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhdbs","download_url":"https://codeload.github.com/mhdbs/Face_Detection_Recognition_OpenCV_RaspberryPi_Python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243163204,"owners_count":20246475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embedded","facedetection","gpio","haarcascade","opencv","python","raspberrypi"],"created_at":"2024-11-17T21:26:17.014Z","updated_at":"2026-05-06T19:35:09.211Z","avatar_url":"https://github.com/mhdbs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RaspberryPi-Face-Recognition\nUse Python and Open CV to recognize multi face and show the name\n\n# Some Packages to be installed in Raspberry Pi 3 - Raspbian OS\n$ sudo apt-get purge wolfram-engine\n$ sudo apt-get purge libreoffice*\n$ sudo apt-get clean\n$ sudo apt-get autoremove\n$ sudo apt-get update \u0026\u0026 sudo apt-get upgrade\n$ sudo apt-get install build-essential cmake pkg-config\n$ sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev\n$ sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev\n$ sudo apt-get install libxvidcore-dev libx264-dev\n$ sudo apt-get install libgtk2.0-dev libgtk-3-dev\n$ sudo apt-get install libatlas-base-dev gfortran\n$ sudo apt-get install python2.7-dev python3-dev\n$ sudo apt-get install libjpeg-dev\n$ sudo apt-get install libtiff5-dev\n$ sudo apt-get install libjasper-dev\n$ sudo apt-get install libpng12-dev\n$ sudo apt-get install libavcodec-dev\n$ sudo apt-get install libavformat-dev\n$ sudo apt-get install libswscale-dev\n$ sudo apt-get install libeigen3-dev\n$ sudo apt-get install libxvidcore-dev\n$ sudo apt-get install libx264-dev\n$ sudo apt-get install libgtk2.0-dev\n\n# Raspberry pi camera installation commands\n$ sudo apt-get -y install libv4l-dev v4l-utils\n$ sudo modprobe bcm2835-v4l2\n$ v4l2-ctl —list-devices\n\n# Install Numpy \n$ sudo apt-get install python2.7-dev python2.7-numpy\n$ sudo apt-get install python3-dev python3-numpy \n\n# Opencv packages\n$  mkdir opencv\n$  cd opencv \n$  wget https://github.com/opencv/opencv/archive/3.2.0.zip -O opencv_source.zip\n$  wget https://github.com/opencv/opencv_contrib/archive/3.2.0.zip -O opencv_contrib.zip\n\n# unzip\n$  cd opencv \n$  unzip opencv_source.zip\n$  unzip opencv_contrib.zip\n\n#Create folder\n$  cd opencv \n$  cd opencv-3.2.0\n$  mkdir build \n$  cd build\n\n#Install python package manager\n$ cd\n$ wget https://bootstrap.pypa.io/get-pip.py\n$ sudo python get-pip.py\n$ sudo python3 get-pip.py \n\n#Run your python Codes in virtuals so we need to workon with virtuals\n$  sudo pip install virtualenv virtualenvwrapper\n$  sudo rm -rf ~/.cache/pip\n\nexport WORKON_HOME=$HOME/.virtualenvs\nsource /usr/local/bin/virtualenvwrapper.sh\n\n$ echo -e \"\\n# virtualenv and virtualenvwrapper\" \u003e\u003e ~/.profile\n$ echo \"export WORKON_HOME=$HOME/.virtualenvs\" \u003e\u003e ~/.profile\n$ echo \"source /usr/local/bin/virtualenvwrapper.sh\" \u003e\u003e ~/.profile\n$ source ~/.profile\n$ mkvirtualenv cv -p python2\n\n$ mkvirtualenv cv -p python3\n$ source ~/.profile\n$ workon cv\n$ pip install numpy\n\n#Cmake files\n#inside build folder you should make this cmake\ncmake -D CMAKE_BUILD_TYPE=RELEASE \\\n-D CMAKE_INSTALL_PREFIX=/usr/local \\\n-D BUILD_WITH_DEBUG_INFO=OFF \\\n-D BUILD_DOCS=OFF \\\n-D BUILD_EXAMPLES=OFF \\\n-D BUILD_TESTS=OFF \\\n-D BUILD_opencv_ts=OFF \\\n-D BUILD_PREF_TESTS=OFF \\\n-D INSTALL_C_EXAMPLES=ON \\\n-D INSTALL_PYTHON_EXAMPLES=ON \\\n-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.2.0/modules \\\n-D ENABLE_NEON=ON \\\n-D WITH_LIBV4L=ON \\\n../\n\ncmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_WITH_DEBUG_INFO=OFF -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_opencv_ts=OFF -D BUILD_PREF_TESTS=OFF -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.2.0/modules -D ENABLE_NEON=ON -D WITH_LIBV4L=ON ../\n\nCONF_SWAPSIZE=1024\n\n$ sudo /etc/init.d/dphys-swapfile stop\n$ sudo /etc/init.d/dphys-swapfile start\n\n#Opencv installation\n$ make -j4\n$ sudo make install \n$ sudo ldconfig\n$ ls -l /usr/local/lib/python2.7/site-packages/\ntotal 1852\n-rw-r--r-- 1 root staff 1895772 Mar 20 20:00 cv2.so\n\n\n$ cd ~/.virtualenvs/cv/lib/python2.7/site-packages/\n$ ln -s /usr/local/lib/python2.7/site-packages/cv2.so cv2.so\n\n$ ls -l /usr/local/lib/python3.5/site-packages/\ntotal 1852\n-rw-r--r-- 1 root staff 1895932 Mar 20 21:51 cv2.cpython-34m.so\n\n$ cd /usr/local/lib/python3.5/site-packages/\n$ sudo mv cv2.cpython-35m-arm-linux-gnueabihf.so cv2.so\n\n$ cd ~/.virtualenvs/cv/lib/python3.5/site-packages/\n$ ln -s /usr/local/lib/python3.5/site-packages/cv2.so cv2.so\n\n#Finally swap the conf size\n\nCONF_SWAPSIZE=100\n$ sudo /etc/init.d/dphys-swapfile stop\n$ sudo /etc/init.d/dphys-swapfile start\n\n$ sudo apt-get install build-essential\n$ sudo apt-get install python-dev \n$ sudo apt-get install gfortran \n$ sudo apt-get install python-opencv\n$ sudo apt-get install python-matplotlib\n$ sudo apt-get install python-numpy \n\n#RPI-DOCKER-TENSORFLOW\n#If you want to work on rpi docker with tensorflow follow this link \n\nhttps://github.com/romilly/rpi-docker-tensorflow \n\n##THANKS","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhdbs%2Fface_detection_recognition_opencv_raspberrypi_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhdbs%2Fface_detection_recognition_opencv_raspberrypi_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhdbs%2Fface_detection_recognition_opencv_raspberrypi_python/lists"}