Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.16 KB

File metadata and controls

35 lines (27 loc) · 1.16 KB

Passive Liveness Webservice Integration Samples

Available Samples

  1. Evaluate Passive Liveness

Build and Run

You can use attached Gradle wrapper for build and run of samples. Build task will also create and build API client files from attached plw-swagger.yml.

For project build run:

./gradlew clean build

Application can be configured by modifying properties in file ./src/main/resources/application.properties.
Mostly you will use:

dot-passive-liveness-service-url=url_address_of_running_dot_passive_liveness_service
example-base64-encoded-image=Base64_encoded_image_to_use_in_samples

Passive Liveness Evaluation Samples

Evaluate Passive Liveness

This sample sends detection request for image under example-base64-encoded-image and evaluates score for passive liveness detection.

sequenceDiagram
    participant Client
    participant PLW

    Client->>PLW: Create passive liveness selfie
    Client->>PLW: Evaluate passive liveness
    PLW-->>Client: Passive liveness result
Loading