FlMlKitTextRecognizeController class Null safety

Inheritance

Constructors

FlMlKitTextRecognizeController()
factory

Properties

cameraEvent FlCameraEvent
read-onlyinherited
cameraFlash FlashState?
read-onlyinherited
cameraOptions FlCameraOptions?
read-onlyinherited
cameraResolution CameraResolution
read / writeinherited
cameras List<CameraInfo>?
read-onlyinherited
cameraZoom CameraZoomState?
read-onlyinherited
canScan bool
是否可以扫描
read-only
channel MethodChannel
read / writeinherited
currentFrequency double
当前间隔时间
read / write
currentRecognizedLanguage RecognizedLanguage
The currently recognized language
read-only
data AnalysisTextModel?
解析出来的数据 Recognized data
read / write
hashCode int
The hash code for this object.
read-onlyinherited
hasListeners bool
Whether any listeners are currently registered.
read-onlyinherited
hasPreview bool
read-onlyinherited
onDataChanged EventRecognizedListen?
解析出来的数据回调 Recognized data onChanged
read / write
previousCamera CameraInfo?
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
availableCameras() Future<List<CameraInfo>?>
获取可用摄像机 通常在第一次加载 Camera 后自动获取设备的可用相机,并且赋值给了cameras,所以后续可以不用再调用这个方法,可直接使用cameras
inherited
dispose() Future<bool>
dispose all
inherited
eventListen(dynamic data) → void
消息回调监听
inherited
initialize({CameraEventListen? listen}) Future<bool>
初始化消息通道和基础配置 Initialize the message channel and basic configuration
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pauseScan() Future<bool>
暂停扫描 Pause scanning
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
resetCamera() Future<bool>
重新预览相机 Reset the camera
inherited
scanImageByte(Uint8List uint8list, {int rotationDegrees = 0, bool useEvent = false}) Future<AnalysisTextModel?>
识别图片字节 Identify picture bytes useEvent 返回消息使用 FlCameraEvent The return message uses FlCameraEvent rotationDegrees Only Android is supported
setFlashMode(FlashState status) Future<bool>
打开/关闭 闪光灯 Turn flash on / off
inherited
setRecognizedLanguage(RecognizedLanguage recognizedLanguage) Future<bool>
设置设别的语言 Set recognized language
setZoomRatio(double ratio) Future<bool>
相机缩放 Camera zoom
inherited
startPreview(CameraInfo camera, {CameraResolution? resolution, Map<String, dynamic>? options, double? frequency}) Future<FlCameraOptions?>
开始预览 start Preview camera 需要预览的相机 Camera to preview frequency 解析频率 Analytical frequency resolution 预览相机支持的分辨率 Preview the resolution supported by the camera
override
startScan() Future<bool>
开始扫描 Start scanning
stopPreview() Future<bool>
暂停预览 stop Preview
inherited
switchCamera(CameraInfo camera) Future<bool>
切换摄像头 Switch Camera
inherited
toString() String
A string representation of this object.
inherited

Operators

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