Checking Liveness and Face Biometry

circle-info

If you use our SDK just for capturing videos, omit this step.

OzCapsula (SDK v8.22 and newer)

At the Capturing Videos step you've created a data container with all the required information in it , so now just send it to analysis using the addContainer(container) and run methods.

Kotlin
private fun runAnalysis(container: DataContainer?) {
    if (container == null) return
    AnalysisRequest.Builder()
        .addContainer(container)
        .build()
        .run(
            { result ->
                val isSuccess = result.analysisResults.all { it.resolution == Resolution.SUCCESS }
            },
            { /* show error */ },
            { /* update status */ },
        )
}

SDK 8.21 and older

To check liveness and face biometry, you need to upload media to our system and then analyze them.

circle-info

To interpret the results of analyses, please refer to Types of Analyses.

Here’s an example of performing a check:

To delete media files after the checks are finished, use the clearActionVideos method.

Adding Metadata

To add metadata to a folder, use the addFolderMeta method.

Extracting the Best Shot

In the params field of the Analysis structure, you can pass any additional parameters (key + value), for instance, to extract the best shot on the server side.

Using Media from Another SDK

To use a media file that is captured with another SDK (not Oz Android SDK), specify the path to it in OzAbstractMedia:

Adding Media to a Certain Folder

If you want to add your media to the existing folder, use the setFolderId method:

Last updated

Was this helpful?