Skip to content

A simple facial recognition system using OpenCV and Raspberry Pi 4. Haar cascade classifier is used to detect faces in input image. Steps to set up system and required libraries are outlined in README. Ideal starting point for learning about facial recognition and open-source implementation.

License

Notifications You must be signed in to change notification settings

calapsss/face_detection_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Facial Recognition with OpenCV and Raspberry Pi 4

This repository contains a simple facial recognition system using OpenCV and Raspberry Pi 4. The system uses the Haar cascade classifier for facial detection and the Raspberry Pi's Picamera for video capture.

The full tutorial is in: http://bit.ly/3ldDkj0

Prerequisites

Raspberry Pi 4 Picamera OpenCV

Installation

Check that your Picamera is working properly by running the following command: libcamera-hello

Update and upgrade your Raspberry Pi by running the following commands:

sudo apt-get update
sudo apt-get upgrade

Install the required libraries by running the following command:

sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libxvidcore-dev libx264-dev
sudo apt-get install qt4-dev-tools

Install OpenCV by running the following command:

pip install opencv-python

Usage

Clone the repository by running the following command:

git clone https://github.com/calapsss/face_detection_tutorial.git

Run the code by using the following command:

python face_detection_tutorial.py

Conclusion

With this project, you can now build your own facial recognition system and get a hands-on experience in computer vision and machine learning. If you encounter any issues or have any questions, feel free to reach out to us through the GitHub repository. Our team will be happy to assist you in resolving any issues and answering any questions you may have.

License

This project is licensed under the MIT License.

About

A simple facial recognition system using OpenCV and Raspberry Pi 4. Haar cascade classifier is used to detect faces in input image. Steps to set up system and required libraries are outlined in README. Ideal starting point for learning about facial recognition and open-source implementation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages