Setup Accura MICR

To initialize sdk on app start:


import AccuraOCR
var accuraMICRWrapper: AccuraMICRWrapper? = nil
accuraMICRWrapper = AccuraMICRWrapper.init()
        let sdkModel = accuraMICRWrapper.loadEngine(your PathForDirectories)
        if (sdkModel.i > 0) {
                if(sdkModel?.isMICREnable) {
                
                }
        }

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

// 0 for clean document and 100 for Blurry document
self.accuraMICRWrapper?.setBlurPercentage(60/*blurPercentage*/)
  • Set Glare Percentage to detect Glare on document

// Set min and max percentage for glare
accuraMICRWrapper?.setGlarePercentage(6/*minPercentage*/, 98/*maxPercentage*/)

Set CameraView

Important Grant Camera and storage Permission. supports Landscape Camera

Last updated