https://github.com/riz4d/genpredictor
Python script Using OpenCV and pre-trained models to detect faces in an image and predict the gender of each detected face.
https://github.com/riz4d/genpredictor
face-recognition gender-recognition opencv
Last synced: 6 months ago
JSON representation
Python script Using OpenCV and pre-trained models to detect faces in an image and predict the gender of each detected face.
- Host: GitHub
- URL: https://github.com/riz4d/genpredictor
- Owner: riz4d
- License: mit
- Created: 2023-06-25T11:15:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-30T11:31:01.000Z (about 2 years ago)
- Last Synced: 2025-02-08T07:13:59.892Z (8 months ago)
- Topics: face-recognition, gender-recognition, opencv
- Language: Python
- Homepage:
- Size: 41.5 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GenPredictor
A Python script Using OpenCV and pre-trained models to detect faces in an image and predict the gender of each detected face.### Requirements
» Python 3
» OpenCV (pip install opencv-python)
» NumPy (pip install numpy)
### UsageOpen your favorite Terminal and run these commands.
##### 1. Clone This Repository in to Local Machine:
```sh
gitclone https://github.com/riz4d/GenPredictor/
```##### Install Requirements:
```sh
pip install -r requirements.txt
```##### Run the script :
```sh
python3 main.py
```### Note
» The script uses a confidence threshold (conf_threshold) to filter out weak face detections. You can adjust this value to control the sensitivity of the detection.
» If no faces are detected in the image, the script will display a message indicating that no faces were Detected.### Acknowledgments
the pre-trained models are taken from the [opencv](https://github.com/opencv) repositories further reference take look on their repositories for the models and their usage.