API Reference
setActivation
Name
setActivation
Description
Activate SDK
Input
var0 (String): The license string
Output
The SDK activation status code.
0: Success
Non-zero: Activation failed
init
Name
init
Description
Initiate SDK
Input
var0 (ContextWrapper ): An instance to access application assets
Output
The SDK initialization status code.
0: Success
-1: License Key Error
-2: License AppID Error
-3: License Expired
-4: Activate Error
-5: Initialize SDK Error
yuv2Bitmap
Name
yuv2Bitmap
Description
Convert YUV camera frame to Bitmap image
Input
var0 (byte[]): Byte array representing the YUV image data in NV21 format
var1 (int): Width of the image
var2 (int): Height of the image
var3 (int): Orientation of the image
1 -> No processing 2 -> Flip horizontally 3 -> Flip horizontally first and then flip vertically 4 -> Vertical flip 5 -> Transpose 6 -> Rotate 90° clockwise 7 -> Horizontal and vertical flip --> Transpose 8 -> Rotate 90° counterclockwise
Output
A Bitmap object representing the converted image
idcardRecognition
Name
idcardRecognition
Description
Extract data from ID Document
Input
var0 (Bitmap): The Bitmap image
Output
A string representing the extracted data.
Output Example for idcardRecognition
Last updated