The DeepFace Scanner is a Python program that utilizes the DeepFace library to extract information from JPEG files containing human faces. The program describes the age, gender, emotion, and race of the person in each photograph. It outputs the results to the terminal and also saves them in a CSV file in the program directory.
Before you begin, ensure you have the following requirements:
-
Python: Make sure you have Python installed on your system. You can download it from python.org.
-
Libraries: Install the DeepFace, CV2, and Pandas library using the following commands:
pip install deepface pip install cv2 pip install pandas
Follow these steps to set up the DeepFace Scanner program:
git clone https://github.com/AJDevCode/deepface-scanner.git
To run the DeepFace Scanner program, execute the following command:
python main.py
The program will process JPEG files in the program directory, describe the age, gender, emotion, and race of the person in each photograph, and output the results to the terminal. It will also save the results in a CSV file.
Furthermore, add any additional JPEG files to the faces_pic folder for testing in the program.
-
The DeepFace Scanner program offers the following key features:
-
Utilizes the DeepFace library for face analysis.
-
Describes age, gender, emotion, and race of a person in each JPEG file.
-
Outputs results to the terminal and saves them in a CSV file.
- Python
- DeepFace Library
- CV2
- Pandas