| class info |
| com.huawei.hms.mlplugin.card.gcr.MLGcrCapture.Callback |
| Represents the callback API of the general card recognition result. |
| Return type | Method name |
| void | onCanceled() |
| void | onDenied() |
| void | onFailure(int retCode, android.graphics.Bitmap bitmap) |
| int | onResult(MLGcrCaptureResult result, Object object) |
| Method |
| public void onCanceled() |
| The operation is canceled by the user. |
| Method |
| public void onDenied() |
| The camera is unavailable. |
| Method |
| public void onFailure(int retCode, android.graphics.Bitmap bitmap) |
| No text information is recognized or a system error occurs during recognition. |
Parameters
| Parameter name | Parameter desc |
| retCode | Result code. |
| bitmap | General card image that fails to be recognized. |
Parameters
| Parameter name | Parameter desc |
| result | Recognition result. |
| object | Reserved field. This field can be null. |
Return
| Type | desc |
| int | Notifies the plug-in of continuing or stopping recognition. CAPTURE_CONTINUE: Notifies the plug-in of continuing the recognition when the processing result does not meet the requirements. (This option is supported only in the camera stream mode.)CAPTURE_STOP: Notifies the plug-in of stopping the recognition and exiting when the processing result meets the requirements. |