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

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.

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)

### Usage

Open 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.