Setup Accura Barcode with PDF417

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!.isBarcodeEnable) {
			self.arrCountryList.add("Barcode")
		}
	}

Optional: Load License File Dynamically

If you prefer to place the license file dynamically, you can use the following function. This method allows you to specify the license file path at runtime

let documentDirectory = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as String

let sdkModel = accuraCameraWrapper?.loadEngine("Your License Path", documentDirectory: documentDirectory)
  • Note:- For a demo of dynamic licensing, please refer to the branch "dynamic_license_demo".

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


Set CameraView

Last updated