Barcode and Bankcard
Accura Scan’s solution scans and extracts data from Barcodes as well as Bank cards.
Barcode
Method use to start Barcode scanning is
AccuraOcr.startBarcode(config);
In the above method, the 'config' parameter is an array that consists of the 'Selected Barcode' value. The specific value for the 'Selected Barcode' will be provided by the license.
var config= [barcodeSelected];
The example function is shown below
Future<void> startBarcode() async{
var config= barcodeSelected; //Barcode Selected(String)
await AccuraOcr.startBarcode([config]).then((value) => {
setState((){
dynamic result = json.decode(value);
})
});
}
Response:
On Success: JSON String Response
Error: String
Bankcard
Method use to start Bankcard scanning is
AccuraOcr.startBankCard()
The example function is shown below
Future<void> startBankCard() async{
try{
await AccuraOcr.startBankCard().then((value) => {
setState((){
dynamic result = json.decode(value);
})
});
}on PlatformException{}
}
Response:
On Success: JSON String Response
Error: String
Last updated