Brought to you by FaceX.io, this iOS LivenessSDKOnline can now be used to integrate gesture-based liveness Detection into your iOS applications.
This LivenessSDK is Liveness based on Motion detection. Users will be directed by the screen to perform facial gestures and actions which will be analyzed to verify and identify live visitors.
Ensure Secure use of facial recognition-based applications by determining liveness of your users
With this iOSLiveness SDK, you can determine liveness of your users by detection of motion.
Users will be prompted by the screen to perform facial gestures and the response by the user is analyzed in a live streaming video.
CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Alamofire into your Xcode project using CocoaPods, specify it in your Podfile
:
Podfile
and add pod 'LivenessSDKOnline'
:use_frameworks!
target 'YourApp' do
pod 'LivenessSDKOnline'
end
$ pod install
Swift:
import LivenessSDKOnline
import LivenessSDK
var liveness = Liveness()
liveness.delegate = self
liveness.enableEyes = true
liveness.enableMouth = true
liveness.enableYaw = true
liveness.startLiveness()
// To stop and exit Liveness View
liveness.stopLiveness()
func livenessSuccess(live: Bool) {
}
func livenessError(live: Bool, error: NSError) {
}
You can set some properties for liveness.
| Steps | Value | Default |
| ——- | ——- |——- |
| Eyes(enableEyes) | Bool
| false
|
| Mouth(enableMouth) | Bool
| false
|
| Yaw(enableYaw) | Bool
| false
|
| Random Steps(randomSteps) | Bool
| true
|
| Property | Min. Value | Max. Value | Default |
| ——- | ——- | ——- |——- |
| Eyes closed Threshold(eyeThreshold) | 0.05
| 0.2
| 0.1
|
| Mouth opened Threshold(mouthThreshold) | 0.1
| 0.6
| 0.35
|
| Each step timer(timerSeconds) | Seconds
| Seconds
| 5 seconds
|
Add these strings to your respected Localization.Strings language file
"Please blink your eyes"
"Please open your mouth"
"Please turn your face to right and left"
"Thank You"
"No face Detected"
"Perfect"
"Please bring your face inside face outline above"