public static interface ITextCaptureService.Callback extends IRecognitionService.Callback
Modifier and Type | Method and Description |
---|---|
void |
onFrameProcessed(ITextCaptureService.TextLine[] lines,
IRecognitionService.ResultStabilityStatus resultStatus,
IRecognitionService.Warning warning)
Delivers the result after recognizing the frames that were supplied.
|
onError, onRequestLatestFrame
void onFrameProcessed(ITextCaptureService.TextLine[] lines, IRecognitionService.ResultStabilityStatus resultStatus, IRecognitionService.Warning warning)
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.
lines
- the result as an array of text linesresultStatus
- the estimate of how stable the result is. It may go up and down. It is not guaranteed
that it ever reaches desired levels for a particular scene.warning
- the warning which occurred, if any