com.abbyy.mobile.rtr

## Interface IImageCaptureService.Callback

- All Superinterfaces:
    IRecognitionService.Callback
  Enclosing interface:
    IImageCaptureService

      public static interface IImageCaptureService.Callback
      extends IRecognitionService.Callback

  A callback interface to interact with the image capture service: input the data and obtain the results. 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.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onFrameProcessed(IImageCaptureService.Status status, IImageCaptureService.Result result)` Delivers the feedback and result of image capture.

    - ### Methods inherited from interface com.abbyy.mobile.rtr.IRecognitionService.Callback

      `onError, onRequestLatestFrame`

- - ### Method Detail

    - #### onFrameProcessed

          void onFrameProcessed(IImageCaptureService.Status status,
                                IImageCaptureService.Result result)

      Delivers the feedback and result of image capture.

      The recognition confidence is also provided and should be used to determine if the accuracy is high enough for the result to be used for any practical purposes. We recommend not to use the data in any way until the confidence level has reached `Available`. When the confidence returned by this method has reached the desired level, the service may be stopped by calling the `stop` method.

      Parameters:
        `status` - The current status of capture (for UI feedback)
        `result` - The result of the capture