If you use our SDK just for capturing videos, omit this step.
To check liveness and face biometry, you need to upload media to our system and then analyze them.
To interpret the results of analyses, please refer to Types of Analyses.
Below, you'll see the example of performing a check and its description.
let analysisRequest =AnalysisRequestBuilder()// create one or more analyseslet analysis = Analysis.init( media: mediaToAnalyze, // mediaToAnalyze is an array of OzMedia that were captured or otherwise created type: .quality, // check the analysis types in iOS methods mode: .serverBased)// or .onDevice if you want the on-device analysisanalysisRequest.uploadMedia(mediaToAnalyze)analysisRequest.addAnalysis(analysis)// initiate the analysesanalysisRequest.run( statusHandler: { state in }, // scenario steps progress handler errorHandler: { _in } ) { result in// receive and handle analyses results here }
To delete media files after the checks are finished, use the cleanTempDirectory method.
Adding Metadata
To add metadata to a folder, use AnalysisRequest.addFolderMeta.
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.