flutter_ocr_text_recognization 0.0.1 flutter_ocr_text_recognization: ^0.0.1 copied to clipboard
依赖 google_mlkit_text_recognition 实现的 OCR 文本识别相机,支持局部识别
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_ocr_text_recognization
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_ocr_text_recognization: ^0.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_ocr_text_recognization/flutter_ocr_text_recognization.dart';