Setup Accura License and Configurations
To generate your Accura Scan license contact [email protected]
Step 1: Add license file in to your project.
key.license
Step 2: To initialize sdk on app start:
import AccuraOCR
var accuraCameraWrapper: AccuraCameraWrapper? = nil
var arrCountryList = NSMutableArray()
accuraCameraWrapper = AccuraCameraWrapper.init()
let sdkModel = accuraCameraWrapper.loadEngine(your PathForDirectories)
if (sdkModel.i > 0) {
if(sdkModel!.isBankCardEnable) {
self.arrCountryList.add("Bank Card")
}
if(sdkModel!.isMRZEnable) {
self.arrCountryList.add("All MRZ")
// ID MRZ
// Visa MRZ
// Passport MRZ
// All MRZ
}
// if sdkModel.isOCREnable then get card data
if (sdkModel.isOCREnable) let countryListStr = self.videoCameraWrapper?.getOCRList();
if (countryListStr != null) {
for i in countryListStr!{
self.arrCountryList.add(i)
}
}
}
if(sdkModel!.isBarcodeEnable) {
self.arrCountryList.add("Barcode")
}
}
arrCountryList to get value(forKey: "card_name") //get card Name
arrCountryList to get value(forKey: "country_id") //get country id
arrCountryList to get value(forKey: "card_id") //get card idStep 2.1: Update filters config like below.
Call this function after initialize sdk if license is valid(sdkModel.i > 0)
Set Blur Percentage to allow blur on document
Set Blur Face Percentage to allow blur on detected Face
Set Glare Percentage to detect Glare on document
Set Photo Copy to allow photocopy document or not
Set Hologram detection to verify the hologram on the face
Set Low Light Tolerance to allow lighting to detect documant
Set motion threshold to detect motion on camera document
Sets camera Facing front or back camera
Flip camera
Set Front/Back Side Scan
Enable Print logs in OCR and Liveness SDK
Last updated