This repository contains a very simple example command line implementation of the PhotoVerify REST API of the BioID WebService in Go.
One reference image and one or two live images are required to perform a photoverify request.
Before you can use the PhotoVerify API, you need to create a BWS App ID and BWS AppSecret in the BWS Portal. You can request trial access on https://bwsportal.bioid.com/register
- Build or download prebuild executable
- Execute following command to perform a photo verify with two images:
.\BioIDWebService-PhotoVerify-REST-Sample-In-Go -BWSAppID <BWSAppID> -BWSAppSecret <BWSAppSecret> -photo example_images\photo.jpg -image1 example_images\testimage1.jpg -image2 example_images\testimage2.jpg
Example Output:
Total execution time: 1.9729677s
Verification Status: false
Verification Accuracy Level: 0
Sample 1 Errors:
Code: LiveDetectionFailed, Message: The sample has been discarded as it cannot be proven that it has been recorded from a live person., Details:
Sample 2 Errors:
Code: ImageOverExposure, Message: The image is over-exposed, i.e. it has too many very light pixels., Details: The amount of very bright pixels is 1.10%, where only 1.00% are allowed.
Code: UnnaturalMotionDetected, Message: The 3D detector observed some unnatural motion., Details:
./BioIDWebService-PhotoVerify-REST-Sample-In-Go --help
-BWSAppID string
BioIDWebService AppID
-BWSAppSecret string
BioIDWebService AppSecret
-image1 string
Path to the first live image
-image2 string
Path to the second live image (optional)
-photo string
Path to the reference photo image
$ git clone https://github.com/danielchristianschroeter/BioIDWebService-PhotoVerify-REST-Sample-In-Go
$ cd BioIDWebService-PhotoVerify-REST-Sample-In-Go
$ go build .