flutter_ocr_text_recognization 0.0.1 copy "flutter_ocr_text_recognization: ^0.0.1" to clipboard
flutter_ocr_text_recognization: ^0.0.1 copied to clipboard

依赖 google_mlkit_text_recognition 实现的 OCR 文本识别相机,支持局部识别

flutter_ocr_text_recognization #

依赖 google_mlkit_text_recognition 实现的 OCR 文本识别相机,支持局部识别。

使用方式 #

添加依赖:

dependencies:
  flutter_ocr_text_recognization: x.x.x
import 'package:flutter_ocr_text_recognization/flutter_ocr_text_recognization.dart';

示例:

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);
      },
)

参考自 https://pub-web.flutter-io.cn/packages/flutter_scalable_ocr , 因项目需要,修复部分原库发现的问题,新建本库。

2
likes
120
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

依赖 google_mlkit_text_recognition 实现的 OCR 文本识别相机,支持局部识别

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

camera, flutter, google_mlkit_commons, google_mlkit_text_recognition

More

Packages that depend on flutter_ocr_text_recognization