A desktop application with facial recognition embedded. It's built with PyQt5 and using Azure Cognitive Service Face API.
Some of the libraries used in this project, such as azure-cognitiveservices-vision-face, are only working up to Python 3.8. Hence, it is recommended to develop this project using only Python 3.8.
- Checkout the codes to a working directory;
- Create a virtual environment in the working directory, execute the following command:
python3 -m venv venv
- Activate the virtual environment on Windows, run:
call venv/scripts/activate.bat
On Mac and Linux, use:
source venv/bin/activate
- Install the required packages with the command
pip install -r requirements.txt
; - Create Cognitive Service on the Azure Portal and set its API key and endpoint in the environment variables;
Note: The reason of setting the key and endpoint in the environment variables is to auto fill them into the app. You can choose not to set them in the environment but instead, manually key them to the app for every launch of the app;
SET AZURE_COGNITIVE_SERVICE_KEY=... SET AZURE_COGNITIVE_SERVICE_ENDPOINT=...
- Run the program with the command
python main.py
; - Browse an image with real human face;
- Enjoy the result.
This library is distributed under the GPL-3.0 License found in the LICENSE file.