public static interface IRecognitionCoreAPI.TextRecognitionCallback
Modifier and Type | Method and Description |
---|---|
void |
onError(java.lang.Exception error)
Reports an error.
|
boolean |
onProgress(int percentage,
IRecognitionCoreAPI.Warning warning)
Approximate progress of the operation.
|
void |
onTextOrientationDetected(int angle)
Text orientation is detected.
|
boolean onProgress(int percentage, IRecognitionCoreAPI.Warning warning)
percentage
- The percentage of the current work that has already been done.
It is in the range from 0 to 100.warning
- A warning reported. Perhaps something should be correctedtrue
if the recognition process should be terminated; false
, otherwise.void onTextOrientationDetected(int angle)
angle
- The angle in degrees (0, 90, 180, 270) for the detected text orientationvoid onError(java.lang.Exception error)
error
- The Exception
object for the error that has occurred.