Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielchristianschroeter/bioidwebservice-livedetection-sample-in-go
Simple LiveDetection Sample in Go for BioIDWebService
https://github.com/danielchristianschroeter/bioidwebservice-livedetection-sample-in-go
bioid face-recognition liveness-detection
Last synced: about 1 month ago
JSON representation
Simple LiveDetection Sample in Go for BioIDWebService
- Host: GitHub
- URL: https://github.com/danielchristianschroeter/bioidwebservice-livedetection-sample-in-go
- Owner: danielchristianschroeter
- License: mit
- Created: 2022-08-27T22:04:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-29T21:39:36.000Z (almost 2 years ago)
- Last Synced: 2023-09-30T21:00:52.141Z (about 1 year ago)
- Topics: bioid, face-recognition, liveness-detection
- Language: Go
- Homepage:
- Size: 993 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BioIDWebService-LiveDetection-Sample-in-Go
This repository contains a very simple example command line implementation of the **[LiveDetection REST API of the BioID WebService](https://developer.bioid.com/classicbws/bwsreference/webapi/livedetection)** in Go.
Two recorded images are required to perform a face liveness detection.
## Requirements
Before you can use the LiveDetection API, you need to create a BWS App identifier and App secret in the BWS Portal.
You can request trial access on https://bwsportal.bioid.com/register## Usage
1. Build or download prebuild executable
2. Execute following command to perform a face liveness detection with two images:```
./BioIDWebService-LiveDetection-Sample-in-Go -BWSAppID -BWSAppSecret -image1 ./example_images/live_image1_without_errors.jpg -image2 ./example_images/live_image2_without_errors.jpg
```You can use the example test images inside the example_images folder:
fake_image1,2_with_errors.jpg => LiveDetectionFailed, ImageOverExposure
fake_image1,2_without_errors.jpg => LiveDetectionFailed
live_image1,2_with_errors.jpg => ImageOverExposure
live_image1,2_without_errors.jpgExample Output:
`true` or `false`
### Available command line parameter
```
./BioIDWebService-LiveDetection-Sample-in-Go --help
-BWSAppID string
BioIDWebService AppID
-BWSAppSecret string
BioIDWebService AppSecret
-detailedResponse
Return detailed JSON output of response
-image1 string
1st source image
-image2 string
2nd source image
```## Clone and build the project
```
$ git clone https://github.com/danielchristianschroeter/BioIDWebService-LiveDetection-Sample-in-Go
$ cd BioIDWebService-LiveDetection-Sample-in-Go
$ go build .
```