FaceDetectionApp is a JavaFX desktop application that performs real-time face detection using OpenCV’s Haar Cascade classifier. It provides a user-friendly GUI for capturing video or images and detecting human faces instantly. Ideal for learning, prototyping, or building advanced face recognition systems.
- Real-Time Detection: Detect faces from webcam or video input instantly.
- Intuitive GUI: Built with JavaFX (
UI.fxml&UIController.java) for smooth interaction. - Modular Architecture: Clean code structure with
FaceDetector,Main, andUIController. - Customizable Design: Interface styled via
styles.css. - Extensible: Expandable for face recognition, tracking, or AI applications.
| Component | Technology |
|---|---|
| Programming Language | Java |
| GUI Framework | JavaFX |
| Computer Vision Library | OpenCV (Haar Cascade) |
| IDE | Eclipse |
| Styling | CSS (styles.css) |
- Clone the repository:
git clone https://github.com/aadityaguptaaa/FaceDetectionApp.git-
Open the project in Eclipse IDE.
-
Add OpenCV library to the build path:
- Download OpenCV: https://opencv.org/releases/
- Configure native library location in Eclipse
-
Run the project:
- Execute
Main.javaas a Java Application - GUI window opens to start real-time face detection
- Execute
- Launch the application from Eclipse.
- Click Start Webcam to begin video capture.
- Detected faces will be highlighted in real-time.
Tip: Adjust Haar Cascade parameters in
FaceDetector.javafor better accuracy.
We welcome contributions!
- Fork the repository
- Create a branch (
git checkout -b feature-name) - Commit changes (
git commit -m "Add feature") - Push branch (
git push origin feature-name) - Open a Pull Request
This project is open-source under the MIT License
- Face recognition using deep learning models
- Export detected faces as images
- Multi-face tracking
- Standalone executable for distribution
Developed by aadityaguptaaa | JavaFX & OpenCV Enthusiast