Skip to content

YashPatel04/Face-Detection-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Face Detection System using OpenCV

  1. Introduction
  2. Dependencies
  3. Installation
  4. Usage
  5. Contribution

Images

Introduction

This project is a Java-based face recognition system developed using OpenCV. It utilizes a webcam to capture live video, effectively detecting and highlighting faces in the streaming video feed. With applications spanning from surveillance to various industries, this system employs OpenCV's VideoCapture functionality and Haar cascades classifiers to proficiently recognize and outline faces in real-time video streams.

Prerequisites and Dependencies

  • Java JDK 21
  • OpenCV 4.9.0

Installation

  1. Clone the repository: git clone https://github.com/YashPatel04/Face-Detection-System.git
  2. Navigate to the project directory: cd Face Detection System
  3. Make sure you have the required JDK and OpenCV installed.

Usage

Running in IDE

  1. Update the paths of the file, icon.jpg, icons8-npc-face-32.png and haarcascade_frontalface_default.xml in your IDE if necessary.
  2. Run the main.java file to start the application.
  3. Click on the openCameraButton to start the camera.
  4. Click on the detectButton to start face detection.
  5. Click on the back button to stop the camera or detection.
  6. Click on the exitButton to close the application.

Executing the .jar file

  • Navigate to out/artifacts/Face_Recognition_System_jar and double click on the .jar file.

NOTE: If you are having any problems with executing the jar file kindly open src/detect.java in your IDE and change the path of the haar cascade classifier to the absolute path of the file in your system

Contribution

Pull requests and improvements are always welcome.For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Releases

No releases published

Packages

No packages published

Languages