OCR
Accura Scan’s OCR scans and extracts data from any government Id globally.
The method use to Scan OCR
accuraService.StartOCR(configObj, CountryId, CardId, CardName, CardType, appOriantation, new AccuraScanResultCallBack());
Parameter:
configObj: { enableLogs: false }
CountryId: integer
CardId: integer
CardName: String
CardType: integer
Orientation: String (Default portrait)
Response:
Success: JSON Response Error: String
Example Functions:
public partial class MainPage : ContentPage
{
public MainPage()
{
JObject configObj = JObject.Parse(@"{
'enableLogs' : false
}");
//Start OCR scanning.
accuraService.StartOCR(configObj.ToString(), (string)selected_country["id"], (string)selected_card["id"], (string)selected_card["name"], (string)selected_card["type"], appOriantation, new AccuraScanResultCallBack());
}
}
public class AccuraScanResultCallBack : AccuraServiceCallBack {
public void InvokeResult(string error, string result) {
if (error != null) {
// Error block.
}
else {
// Result from the SDK
}
}
}
Last updated