RecognizeCallbackHandler class

baidu_ocr_plugin 的识别回调。

Constructors

RecognizeCallbackHandler.new({required void onStart(Uint8List imageBytes), required void onResult(String jsonRes), required void onError(OCRError ocrError)})

Properties

hashCode int
The hash code for this object.
no setterinherited
onError ↔ void Function(OCRError ocrError)
识别失败。网络返回失败时调用。
getter/setter pair
onResult ↔ void Function(String jsonRes)
识别成功。网络返回成功时调用。
getter/setter pair
onStart ↔ void Function(Uint8List imageBytes)
开始识别。网络请求开始时调用。
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited