项目作者: goh-chunlin

项目描述 :
A desktop application with facial recognition embedded. It's built with PyQt5 and using Azure Cognitive Service Face API.
高级语言: Python
项目地址: git://github.com/goh-chunlin/Lunar.Face.git
创建时间: 2021-09-12T04:45:35Z
项目社区:https://github.com/goh-chunlin/Lunar.Face

开源协议:GNU General Public License v3.0

下载


Lunar.Face



Python application
License: GPL v3
Donate

A desktop application with facial recognition embedded. It’s built with PyQt5 and using Azure Cognitive Service Face API.

Python Version

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.

Local Development and Use

  1. Checkout the codes to a working directory;
  2. Create a virtual environment in the working directory, execute the following command: \
    python3 -m venv venv
  3. Activate the virtual environment on Windows, run: \
    call venv/scripts/activate.bat \
    On Mac and Linux, use: \
    source venv/bin/activate
  4. Install the required packages with the command pip install -r requirements.txt;
  5. Create Cognitive Service on the Azure Portal and set its API key and endpoint in the environment variables;
    1. SET AZURE_COGNITIVE_SERVICE_KEY=...
    2. SET AZURE_COGNITIVE_SERVICE_ENDPOINT=...
    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;
  6. Run the program with the command python main.py;
  7. Browse an image with real human face;
  8. Enjoy the result.

Demo

Important Packages

License

This library is distributed under the GPL-3.0 License found in the LICENSE file.