ocr_scan 0.0.3 copy "ocr_scan: ^0.0.3" to clipboard
ocr_scan: ^0.0.3 copied to clipboard

OCR scan library for Flutter. It can scan text form zones in preview.

OCR Scan #

Pub Version

OCR scan library for Flutter. It can scan text form zones in preview.

How to use #

  1. Add ocr_scan to your pubspec.yaml
  2. Import the desired package or class.
import 'package:ocr_scan/ocr_scan.dart';

...
OcrScanPreview(
    ocrZonePainter: OcrScanZonePainter(
        elements: [
            const OcrScanZone(Rect.fromLTWH(0, 0, 1280, 100)),   // Zone1: Top center
            const OcrScanZone(Rect.fromLTWH(0, 620, 1280, 100)), // Zone2: Bottom center
        ],
        previewSize: const Size(1280, 720),
        rotation: InputImageRotation.rotation0deg,
        cameraLensDirection: CameraLensDirection.back,
    ),
    onOcrTextLine: ((int, List<TextLine>) value) {
      print(value);
    },
);
...

Contributing #

Contributions are always welcome!

Please check out our contribution guidelines for more details.

License #

Bloc Architecture Core is licensed under the MIT License.

3
likes
0
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

OCR scan library for Flutter. It can scan text form zones in preview.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

camera, flutter, google_mlkit_commons, google_mlkit_text_recognition

More

Packages that depend on ocr_scan