Skip to content

Commit 685e4f8

Browse files
committed
moved demo
1 parent 793d4dc commit 685e4f8

6 files changed

+275
-254
lines changed

examples/webcam_demo/README.md

-120
This file was deleted.

examples/webcam_demo/compreface_webcam_detection_demo.py

-60
This file was deleted.

examples/webcam_demo/compreface_webcam_recognition_demo.py

-74
This file was deleted.

webcam_demo/README.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Webcam demo
2+
3+
This is an example of how to use CompreFace face recognition with python sdk.
4+
5+
# Requirements
6+
7+
1. [Python](https://www.python.org/downloads/) (Version 3.7+)
8+
2. [CompreFace](https://github.com/exadel-inc/CompreFace#getting-started-with-compreface)
9+
3. [Compreface-python-sdk](https://github.com/exadel-inc/compreface-python-sdk)
10+
4. [Opencv-python](https://pypi.org/project/opencv-python/)
11+
12+
# Face recognition demo
13+
14+
To run the demo, open `webcam_demo` folder and run:
15+
16+
```commandline
17+
python compreface_webcam_recognition_demo.py --api-key your_api_key --host http://localhost --port 8000
18+
```
19+
* `--api-key` is your Face Recognition service API key. API key for this demo was created on step 5 of [How to Use CompreFace](https://github.com/exadel-inc/CompreFace/blob/master/docs/How-to-Use-CompreFace.md#how-to-use-compreface). Optional value. By default, the value is `00000000-0000-0000-0000-000000000002` - api key with celebrities demo.
20+
* `--host` is the host where you deployed CompreFace. Optional value. By default, the value is `http://localhost`
21+
* `--port` is the port of CompreFace instance. Optional value. By default, the value is `8000`
22+
23+
# Face detection demo
24+
25+
To run the demo, open `webcam_demo` folder and run:
26+
27+
```commandline
28+
python compreface_webcam_detection_demo.py --api-key your_api_key --host http://localhost --port 8000
29+
```
30+
* `--api-key` is your Face Detection service API key. API key for this demo was created on step 5 of [How to Use CompreFace](https://github.com/exadel-inc/CompreFace/blob/master/docs/How-to-Use-CompreFace.md#how-to-use-compreface).
31+
* `--host` is the host where you deployed CompreFace. Optional value. By default, the value is `http://localhost`
32+
* `--port` is the port of CompreFace instance. Optional value. By default, the value is `8000`

0 commit comments

Comments
 (0)