Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.76 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.76 KB

Webcam demo

This is an example of how to use CompreFace face recognition with python sdk.

Requirements

  1. Python (Version 3.7+)
  2. CompreFace
  3. Compreface-python-sdk
  4. Opencv-python

Face recognition demo

To run the demo, open webcam_demo folder and run:

python compreface_webcam_recognition_demo.py --api-key your_api_key --host http://localhost --port 8000
  • --api-key is your Face Recognition service API key. API key for this demo was created on step 5 of How to Use CompreFace. Optional value. By default, the value is 00000000-0000-0000-0000-000000000002 - api key with celebrities demo.
  • --host is the host where you deployed CompreFace. Optional value. By default, the value is http://localhost
  • --port is the port of CompreFace instance. Optional value. By default, the value is 8000

Face detection demo

To run the demo, open webcam_demo folder and run:

python compreface_webcam_detection_demo.py --api-key your_api_key --host http://localhost --port 8000
  • --api-key is your Face Detection service API key. API key for this demo was created on step 5 of How to Use CompreFace.
  • --host is the host where you deployed CompreFace. Optional value. By default, the value is http://localhost
  • --port is the port of CompreFace instance. Optional value. By default, the value is 8000