Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shyakachaste/facedetection

This C++ program utilizes the OpenCV library for real-time face detection. It captures video from a camera and employs Haar cascades to identify and highlight faces in each frame. The detected faces are outlined with rectangles, and the application displays the count of faces found on the top left corner.
https://github.com/shyakachaste/facedetection

ai cpp face-detection learn opencv visual-studio

Last synced: 6 days ago
JSON representation

This C++ program utilizes the OpenCV library for real-time face detection. It captures video from a camera and employs Haar cascades to identify and highlight faces in each frame. The detected faces are outlined with rectangles, and the application displays the count of faces found on the top left corner.

Awesome Lists containing this project

README

        

# Face Detection with OpenCV

This repository contains a simple C++ program for face detection using OpenCV. The program captures video from a camera and uses Haar cascades for face detection.

## Prerequisites

Before running the program, make sure you have the following installed:

- OpenCV: You can install it using your preferred package manager or by building it from source. Ensure that OpenCV is properly linked in your project.
## Program Features

- Face detection using Haar cascades.
- Displays the number of faces found in each frame.
- Draws rectangles around detected faces.
- Shows a count of the faces found on the top left corner.

## Usage

The program captures video from the default camera (camera index 1). Adjust the camera index in the code if needed.

Press the 'Esc' key to exit the program.

## Haar Cascade XML File

The program uses the Haar cascade file `haarcascade_frontalface_default.xml` for face detection. Ensure that this file is present in the same directory as the executable or provide the correct path in the code.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

Feel free to modify and use the code according to your needs.