Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/melgoharyme/face-detection-python-customtkinter

Face Detection application built with Python using OpenCV for face recognition and customTkinter for an enhanced graphical user interface. Users can upload images, detect faces, and view indexed results with a modern, customizable appearance.
https://github.com/melgoharyme/face-detection-python-customtkinter

custom-tkinter customtkinter dark-mode dark-theme frontend-app macos python python-ui python3 tkinter tkinter-gui user-interface windows

Last synced: 1 day ago
JSON representation

Face Detection application built with Python using OpenCV for face recognition and customTkinter for an enhanced graphical user interface. Users can upload images, detect faces, and view indexed results with a modern, customizable appearance.

Awesome Lists containing this project

README

        

This project provides a graphical user interface (GUI) for face detection using Python, `customtkinter`, and `OpenCV`. The application allows users to upload images, detect faces, and view a list of detected faces with indexed display.

![Face Detection GUI](images/demo.png)

## Features

- **Modern GUI**: Built with `customtkinter` for a sleek and contemporary appearance.
- **Image Upload**: Supports image formats including `.jpg`, `.png`, and `.bmp`.
- **Face Detection**: Utilizes OpenCV’s Haar Cascade Classifier for accurate face detection.
- **Indexed Display**: Detected faces are shown with index numbers for easy identification.
- **Appearance Modes**: Choose between light, dark, and system default appearance modes.

## Requirements

- Python 3.x
- `customtkinter`
- `opencv-python`
- `Pillow`

## Installation

1. Clone the repository:
```bash
git clone https://github.com/melgoharyme/face-detection-python-customtkinter.git
cd face-detection-python-customtkinter
```

2. Install the required Python packages:
```bash
pip install customtkinter opencv-python Pillow
```

## Usage

1. Run the script:
```bash
python main.py
```

2. The GUI will launch. Upload an image by clicking "Upload Image".

3. Click "Detect Faces" to start face detection.

4. Detected faces will be displayed with index numbers, and rectangles will be drawn around each face in the image.

## Project Structure

- `main.py`: Contains the GUI and face detection logic.

## License

This project is licensed under The Unlicense. You are free to use, modify, and distribute this software for any purpose without restrictions.

## GUI Framework

The GUI framework used is `CustomTkinter`.

## Acknowledgments

Face detection is implemented using OpenCV’s Haar Cascade Classifier.