4 FAQ

Q1. What types of detection failures does the SDK provide?

Please refer to the error code STSilentLivenessEnumTypeHeader & STSilentLivenessFaceEnumType

Q2.What is the resolution of the face image returned after the silent liveness SDK detection is successful?

The resolution of the picture is related to the sessionPreset of the camera (the default is 640*480 pixels).

Q3. What should I do when I call the system album and camera functions during debugging the system on iOS 10 or later using Xcode 8 or later, and encounter a crash?

Relevant permissions need to be added into the info.plist.

<key>NSCameraUsageDescription</key> <string>cameraDesciption</string>

Q4. How many pictures are returned after the silent liveness SDK test is successful?

Return 1 picture.

Q5. What should I do if an error occurs during integration or use?

If an error occurs during integration or use, you can call the callback function to view detailed error information. Handle the error according to the error message.

-(void)silentLivenessDidFailWithLivenessResult:(STIDSilentLivenessResult)livenessResult faceError:(STIDSilentLivenessFaceError)faceError protobufData:(NSData )protobufData images:(NSArray )imageArr faceRects:(NSArray *)faceRectArr;

Q6. The error code STIDSilentLiveness_E_LICENSE_FILE_NOT_FOUND is returned. What are the reasons for "the authorization file does not exist"?

The provided SDK demo does not contain the authorization file by default, please refer to the detailed introduction in License introduction, the possible causes of the error are as follows:

  1. No license file was introduced before running the SDK demo directly.

  2. The name of the xxx.lic license file is inconsistent with the one in the code.

  3. Check whether the xxx.lic file exists in Project > TARGETS > Build Phases > Copy Bundle Resources.

If the error persists after the above checking steps, it is recommended to clear the cache or restart the project.

Q7. What are the reasons for "the authorization file does not exist"?

1. The imported SDK is incomplete and the model file is missing. It is recommended to integrate it again.

2. Previously integrated with other versions. It is recommend to remove the old version of the SDK and integrate it again.

Q8. What are the main functions of the SDK's face quality detection?

The quality detection module excludes low quality conditions such as too dark, too bright, too much occlusion, too blurry, etc. to collect and output high quality facial images during the liveness detection process and displays real-time quality reminders on the front end. At the same time, the quality detection module also reduces the pass rate of SDK check by filtering low quality scenes.

Select whether to enable quality detection-related settings and set appropriate threshold values according to your actual use scene. In the sample, quality detection is disabled by default. If you need to enable it, you can do so according to the documentation.

How to enable iOS quality detection:

// Sets whether to filter dark and strong light. If not set, the default is off.

[livenessVC.detector setIlluminationFilterEnable:YES darkLightThreshold:kSenseIdLivenessDefaultDarkLightThreshold strongLightThreshold:kSenseIdLivenessDefaultStrongLightThreshold];

// Sets whether to filter blurriness. If not set, the default is off.

[livenessVC.detector setBlurryFilterEnable:YES threshold:kSenseIdLivenessDefaultBlurThreshold];

Last updated