Developer's Documentation for free mobile OCR SDK

Documentation Menu

Callback interface

A callback interface to interact with the recognition service: input the data and obtain the results. This interface and its methods are to be implemented on the client side.

Extends the IRecognitionService.Callback interface.

interface Callback extends IRecognitionService.Callback

noteNote: While the service is being stopped, frames continue to be requested and calls to this callback continue to be queued, so this callback can be called after the service has been stopped.

Methods

Name

Description

onError

Called to report an error. Inherited from IRecognitionService.Callback.

onFrameProcessed

Called to deliver the result after recognizing the frames that were provided.

onRequestLatestFrame

Called to request the latest video frame. Inherited from IRecognitionService.Callback.