Package 

Class ValidicOCRController


  • 
    public final class ValidicOCRController
    
                        

    ValidicOCRController is the primary interface for getting records via OCR. The live results and final record are given to the ValidicOCRResultListener object registered by calling setListener.

    The controller is initialized with a OCRPeripheral object. A OCRPeripheral object can be obtained by calling getSupportedPeripherals or if you know the peripheral id: getPeripheralForID.

    The recognition process involves a fragment that contains the camera preview and an overlay image. The fragment must be injected into your view to operate by calling injectOCRFragment. Be sure to commit the transaction returned! OCR processing begins (and therefore callbacks begin) as soon as the fragment is injected into the view. The camera capture session ends when the fragment is paused or converges on a final result. The ocr session may be restarted at any point by calling restartOCR