Skip to content

Performing Offline OneShotLiveness estimation#

With LUNA ID, you can check liveness directly on your device. Unlike Online OneShotLiveness estimation, you do not have to send requests to the LUNA PLATFORM 5 /liveness endpoint to determine if the person in the image is a living person or a photograph.

In LUNA ID for Android#

To perform Offline OneShotLiveness estimation:

1․ Specify the neural network used for Offline OneShotLiveness estimation:

    implementation("ai.visionlabs.lunaid:oslm:X.X.X@aar")

2․ Specify the estimation type in LunaConfig:

LunaConfig.create(
    LivenessType.Offline
)

In LUNA ID for iOS#

To perform Offline OneShotLiveness estimation:

1․ Make sure that you have the following .plan files in your deploy:

  • fsdk.framework/data/oneshot_rgb_liveness_v7_model_3_arm.plan
  • fsdk.framework/data/oneshot_rgb_liveness_v7_model_4_arm.plan

2․ In the LCLunaConfiguration structure, set the useOfflineLiveness parameter to true:

LCLunaConfiguration.useOfflineLiveness = true