4 FAQ
Last updated
Last updated
Please refer to the error code &
The resolution of the picture is related to the sessionPreset of the camera (the default is 640*480 pixels).
Relevant permissions need to be added into the info.plist.
<key>NSCameraUsageDescription</key> <string>cameraDesciption</string>
Return 1 picture.
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;
No license file was introduced before running the SDK demo directly.
The name of the xxx.lic license file is inconsistent with the one in the code.
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.
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.
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];
The provided SDK demo does not contain the authorization file by default, please refer to the detailed introduction in , the possible causes of the error are as follows: