Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<p align="center">
|
| 2 |
+
<a href="https://play.google.com/store/apps/dev?id=7086930298279250852" target="_blank">
|
| 3 |
+
<img alt="" src="https://github-production-user-asset-6210df.s3.amazonaws.com/125717930/246971879-8ce757c3-90dc-438d-807f-3f3d29ddc064.png" width=500/>
|
| 4 |
+
</a>
|
| 5 |
+
</p>
|
| 6 |
+
|
| 7 |
+
## Product & Resources
|
| 8 |
+
For more information, visit [KBY AI's GitHub Repository](https://github.com/kby-ai/Product).
|
| 9 |
+
|
| 10 |
+
# FaceLivenessDetection-Docker
|
| 11 |
+
## Overview
|
| 12 |
+
|
| 13 |
+
This Docker image implements face liveness detection technology via a `Flask API` and `Gradio`.<br/>
|
| 14 |
+
It includes features for testing face liveness detection using both image files and `base64-encoded` images.
|
| 15 |
+
|
| 16 |
+
## Docker Run
|
| 17 |
+
Pull docker image
|
| 18 |
+
```bash
|
| 19 |
+
sudo docker pull kbyai/face-liveness-detection:latest
|
| 20 |
+
```
|
| 21 |
+
- Run run docker container with license key file.
|
| 22 |
+
```bash
|
| 23 |
+
sudo docker run -v ./license.txt:/root/kby-ai-live/license.txt -p 8080:8080 -p 9000:9000 kbyai/face-liveness-detection:latest
|
| 24 |
+
```
|
| 25 |
+
- Or run docker container with license key string.
|
| 26 |
+
```bash
|
| 27 |
+
sudo docker run -e LICENSE="xxxxx" -p 8080:8080 -p 9000:9000 kbyai/face-liveness-detection:latest
|
| 28 |
+
```
|
| 29 |
+
## SDK License
|
| 30 |
+
|
| 31 |
+
This Docker image utilizes `KBY-AI`'s `Face Liveness Detection Server SDK`, which requires a license for each machine or instance on which it runs.</br>
|
| 32 |
+
|
| 33 |
+
- To get the machine code for license, use the following command:
|
| 34 |
+
|
| 35 |
+
```bash
|
| 36 |
+
sudo docker run -e LICENSE="xxxxx" kbyai/face-liveness-detection:latest
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
- To request the license, please provide us with the machine code obtained from your console.
|
| 40 |
+
<img alt="Postman" src="https://github.com/kby-ai/FaceLivenessDetection-Docker/assets/125717930/793d6452-1260-4ba5-a268-058bcf407aa2" width=800/>
|
| 41 |
+
|
| 42 |
+
Contact us:</br>
|
| 43 |
+
🧙`Email:` contact@kby-ai.com</br>
|
| 44 |
+
🧙`Telegram:` [@kbyaisupport](https://t.me/kbyaisupport)</br>
|
| 45 |
+
🧙`WhatsApp:` [+13348402323](https://wa.me/+13348402323)</br>
|
| 46 |
+
🧙`Discord:` [KBY-AI](https://discord.gg/vBUMRJJe)</br>
|
| 47 |
+
🧙`Teams:` [KBY-AI](https://teams.live.com/l/invite/FBAYGB1-IlXkuQM3AY)</br>
|
| 48 |
+
|
| 49 |
+
## Try the API
|
| 50 |
+
### Gradio Demo
|
| 51 |
+
To test the `Gradio` demo from the Docker image, access it at [http://127.0.0.1:9000](http://127.0.0.1:9000) or [http://localhost:9000](http://localhost:9000).
|
| 52 |
+
|
| 53 |
+
<img alt="Gradio Demo" src="https://github.com/kby-ai/FaceLivenessDetection-Docker/assets/125717930/141efa28-32d2-4d5f-bc77-d51875be13a0" width=1000/>
|
| 54 |
+
|
| 55 |
+
### Postman
|
| 56 |
+
To test the `API`, use `Postman`. Here are the endpoints for testing:
|
| 57 |
+
- Test with an image file: Send a `POST` request to [http://127.0.0.1:8080/check_liveness](http://127.0.0.1:8080/check_liveness).
|
| 58 |
+
- Test with a `base64-encoded` image: Send a `POST` request to [http://127.0.0.1:8080/check_liveness_base64](http://127.0.0.1:8080/check_liveness_base64).
|
| 59 |
+
|
| 60 |
+
Download the `Postman` collection to access and use these endpoints easily. [Click here](https://github.com/kby-ai/FaceLivenessDetection-Docker/blob/main/postman/kby-ai-live.postman_collection.json)
|
| 61 |
+
<img alt="Postman" src="https://github.com/kby-ai/FaceLivenessDetection-Docker/assets/125717930/3ac4bfcd-ad0a-4eb1-bcf1-ad37c6175dad" width=800/>
|