com.pax.dal
Interface IOCR.IOCRListener
-
- Enclosing interface:
- IOCR
public static interface IOCR.IOCRListener
扫描结果回调。Callback of scan results.- Since:
- V3.16.00
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidonError(int code)错误回调。Error callback.voidonSuccess(OCRResult result)成功回调。Success callback.
-
-
-
Method Detail
-
onSuccess
void onSuccess(OCRResult result)
成功回调。Success callback.- Parameters:
result-根据IOCR.startPreview(int, int, IOCRListener)的type,强制转换成对应的OCRResult。IOCR.TYPE_MRZ:OCRMRZResultIOCR.TYPE_MRZ_EX:OCRMRZExResultCast to the corresponding OCRResult according to the type ofIOCR.startPreview(int, int, IOCRListener).IOCR.TYPE_MRZ:OCRMRZResultIOCR.TYPE_MRZ_EX:OCRMRZExResult- Since:
- V3.16.00
-
onError
void onError(int code)
错误回调。Error callback.- Parameters:
code-- 1:获取失败
- 2:扫描超时
- 3:取消扫描
- 4:OCR服务初始化失败
- 1:Scan failure
- 2:Scan timeout
- 3:Cancel scan
- 4:OCR service initialization failure
- Since:
- V3.16.00
-
-