Checking Liveness and Face Biometry
OzCapsula (SDK v8.22 and newer)
Send the encrypted container to your own backend as raw bytes (application/octet-stream). Your backend forwards it to Oz API and returns the analysis response.
Do not run the analysis directly from the mobile SDK. In the embedded-SDK integration flow, the analysis call must go through your own backend.
private fun handleContainer(container: DataContainer?) {
if (container == null) return
YourBackend.uploadOzContainer(
container = container.getBytes(),
contentType = "application/octet-stream"
)
}Your backend submits the container to Oz API in a single synchronous POST request as shown here.
SDK 8.21 and older
To check liveness and face biometry, you need to upload media to our system and then analyze them.
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?
