theadambyrne / facedetection

This is a simple face detection program. Using OpenCV and a Haar Cascade Classifier, it is able to detect faces in a video stream. It will save the frame with the most faces in it to a file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Face Detection

Demo

 Description

This is a simple face detection program. Using OpenCV and a Haar Cascade Classifier, it is able to detect faces in a video stream. It will save the frame with the most faces in it to a file.

Video

The video used in the demo is from Pexels

Setup

  1. Install dependencies

    pip3 install -r requirements.txt
  2. Run the program

    python3 main.py

TODO

  • Add a GUI
  • Add a way to save the frames to a folder
  • Add a way to save the frames to a video
  • Add a way to save the frames to a video with the faces highlighted and the name of the person

About

This is a simple face detection program. Using OpenCV and a Haar Cascade Classifier, it is able to detect faces in a video stream. It will save the frame with the most faces in it to a file.


Languages

Language:Python 100.0%