intp_flutter_liveness_sdk 1.2.0 copy "intp_flutter_liveness_sdk: ^1.2.0" to clipboard
intp_flutter_liveness_sdk: ^1.2.0 copied to clipboard

outdated

The Flutter SDK built incorporates the view of the liveness detection video recording feature.

LivenessCamera SDK Guide #

Platform Support #

Android iOS
✔️ ✔️

Installation #

iOS #

Add two rows to the ios/Runner/Info.plist:

  • one with the key Privacy - Camera Usage Description and a usage description.
  • and one with the key Privacy - Microphone Usage Description and a usage description.

If editing Info.plist as text, add:

<string>Camera Access</string>
<key>NSMicrophoneUsageDescription</key>
<string>Microphone Access</string>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>remote-notification</string>
</array>
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library Access Warning</string>

Android #

Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21

Usage #

You can use LivenessCamera SDK to detection step of your e-KYC flow. This works both on Android and iOS.

    import 'package:intp_flutter_liveness_sdk/intp_flutter_liveness_sdk.dart';
    
    LivenessCamera(
        livenessResponse: (Map<String, dynamic> response) {
          // handle your next event or navigation from below
          debugPrint("$response");
        },
        endpoint:"API_ENDPOINT"
        apiKey:"API_KEY",
    ),

Options #

Available options in LivenessCamera

Property Type Status
Default
Description
endpoint String required The API endpoint exclude /api/public/v1/face-liveness
or /api/public/v1/face-compare
apiKey String required The API key generated from Finema for the customer to use
livenessResponse Function required Receiving function for liveness result
actionsInstruction Map<String, dynamic> optional
{
'SHAKE_LEFT': 'Turn your head left',
'SHAKE_RIGHT': 'Turn your head right',
'NOD_HEAD': 'Nod your head',
'MOUTH': 'Open your mouth',
}
Custom text instruction each action
numberOfActions Int optional 1 The number of randomised action out of 2 actions ["NOD_HEAD", "MOUTH"] This value can be between 1 and 2
numberOfRetry Int optional 0 The number of retries that should be performed if the user fails the liveness check. The SDK will repeat up to and including this if the user fails the test repeatedly before failing the entire flow
backgroundColor Color optional Colors.white Background color
fontFamily String optional "Roboto" Font family in LivenessCamera widget
prepareText String optional "Ensure your face is in the circle" Prepare text
prepareFontColor Color optional Colors.black87 Font color
prepareFontSize Double optional 20 Font size
loadingColor Color optional Colors.white Loading indicator color
loadingSize Double optional 20 Loading indicator size
loadingText String optional "Loading..." Loading text
loadingFontColor Color optional Colors.white Loading text color
loadingFontSize Double optional 16 Loading Loading text size
verifyText String optional "Verify..." Verify text
verifyFontColor Color optional Colors.white Verify text color
verifyFontSize Double optional 16 Loading Verify text size
indicatorFontSize Double optional 12 Step indicator (record, upload) text size
recordText String optional "Recording in process..." Indicator record step
uploadText String optional "Upload in process..." Indicator upload step
buttonLabel String optional "Tap to start" Button label
buttonStyle ButtonStyle optional
ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.blue),
textStyle: MaterialStateProperty.all(TextStyle(fontFamily: widget.fontFamily)),
)
Custom button style for look and feel match your CI
buttonPadding EdgeInsets optional EdgeInsets.all(25) Padding of button
faceCompareText String optional "Face compare process..." Face compare text
faceCompareFontColor Color optional Colors.white Verify text color
faceCompareFontSize Double optional 16 Loading Verify text size
buttonChooseImageLabel String optional "Choose image from gallery" Button label
buttonChooseImageLabel String optional gallery icon icon path support .png, .jpg, .jpeg, .svg
iconGalleryWidth Double optional 150 Icon width
iconGalleryHeight Double optional 150 Icon height

Response #

Available properties in response

Property Type
Description
detectSuccess Boolean Detection status
detectActionsResult Array of object Array of detection results
totalRetry Int Total number of retry
confidence Int Result of face-compare (Percent)
statusCode Int HTTP response error status codes
statusMessage String HTTP response error message
1
likes
0
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

The Flutter SDK built incorporates the view of the liveness detection video recording feature.

Homepage

License

unknown (license)

Dependencies

camera, dio, file_picker, flutter, flutter_svg, logger, plugin_platform_interface, video_player

More

Packages that depend on intp_flutter_liveness_sdk

Packages that implement intp_flutter_liveness_sdk