Last updated:
0 purchases
flutter ocr text recognization
flutter_ocr_text_recognization #
依赖 google_mlkit_text_recognition 实现的 OCR 文本识别相机,支持局部识别。
使用方式 #
添加依赖:
dependencies:
flutter_ocr_text_recognization: x.x.x
copied to clipboard
import 'package:flutter_ocr_text_recognization/flutter_ocr_text_recognization.dart';
copied to clipboard
示例:
TextOrcScan(
paintboxCustom: Paint()
..style = PaintingStyle.stroke
..strokeWidth = 4.0
..color = const Color.fromARGB(153, 102, 160, 241),
boxRadius: 12,
painBoxLeftOff: 5,
painBoxBottomOff: 2.5,
painBoxRightOff: 5,
painBoxTopOff: 2.5,
widgetHeight: MediaQuery.of(context).size.height / 3,
getScannedText: (value) {
setText(value);
},
)
copied to clipboard
参考自 https://pub-web.flutter-io.cn/packages/flutter_scalable_ocr , 因项目需要,修复部分原库发现的问题,新建本库。
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.