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

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

120/ 160
pub points
63
downloads

We analyzed this package 7 hours ago, and awarded it 120 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

422 out of 444 API elements (95.0 %) have documentation comments.

Some symbols that are missing documentation: ocr_scan, ocr_scan.BarcodeFormatValue, ocr_scan.BarcodeFormatValue.fromRawValue, ocr_scan.BarcodeFormatValue.rawValue, ocr_scan.BarcodeValue.BarcodeValue.new.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:ocr_scan/ocr_scan.dart that imports:
  • package:ocr_scan/src/mixin/text_recognizer_mixin.dart that imports:
  • package:ocr_scan/src/utils/coordinates_translator.dart that imports:
  • package:google_mlkit_commons/google_mlkit_commons.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:ocr_scan/ocr_scan.dart that imports:
  • package:ocr_scan/src/mixin/text_recognizer_mixin.dart that imports:
  • package:ocr_scan/src/utils/coordinates_translator.dart that imports:
  • package:google_mlkit_commons/google_mlkit_commons.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:ocr_scan/ocr_scan.dart that imports:
  • package:ocr_scan/src/mixin/text_recognizer_mixin.dart that imports:
  • package:ocr_scan/src/utils/coordinates_translator.dart that imports:
  • package:google_mlkit_commons/google_mlkit_commons.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:ocr_scan/ocr_scan.dart that imports:
  • package:ocr_scan/src/mixin/text_recognizer_mixin.dart that imports:
  • package:ocr_scan/src/utils/coordinates_translator.dart that imports:
  • package:google_mlkit_commons/google_mlkit_commons.dart that declares support for platforms: Android, iOS.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:ocr_scan/ocr_scan.dart that imports:
  • package:ocr_scan/src/mixin/file_mixin.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

INFO: Angle brackets will be interpreted as HTML.

lib/src/mixin/barcode_scanner_mixin.dart:23:13

   ╷
23 │   /// - List<Barcode>: List barcodes
   │             ^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/mixin/barcode_scanner_mixin.dart

INFO: Statements in an if should be enclosed in a block.

lib/src/mixin/camera_mixin.dart:181:66

    ╷
181 │         (Platform.isIOS && format != InputImageFormat.bgra8888)) return null;
    │                                                                  ^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/mixin/camera_mixin.dart

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
camera any 0.11.2 0.11.2
google_mlkit_barcode_scanning ^0.12.0 0.12.0 0.14.1
google_mlkit_commons ^0.7.1 0.7.1 0.11.0
google_mlkit_text_recognition ^0.13.0 0.13.0 0.15.0
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
camera_android_camerax - 0.6.21 0.6.21
camera_avfoundation - 0.9.21+3 0.9.21+3
camera_platform_interface - 2.10.0 2.10.0
camera_web - 0.3.5 0.3.5
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
cross_file - 0.3.4+2 0.3.4+2
flutter_plugin_android_lifecycle - 2.0.30 2.0.30
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
plugin_platform_interface - 2.1.8 2.1.8
stream_transform - 2.1.1 2.1.1
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 3 issues. Showing the first 2:

The constraint `^0.12.0` on google_mlkit_barcode_scanning does not support the stable version `0.13.0`.

Try running dart pub upgrade --major-versions google_mlkit_barcode_scanning to update the constraint.

The constraint `^0.7.1` on google_mlkit_commons does not support the stable version `0.8.0`.

Try running dart pub upgrade --major-versions google_mlkit_commons to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • UNDEFINED_ENUM_CONSTANT - lib/src/mixin/camera_mixin.dart:104:32 - There's no constant named 'nv21' in 'ImageFormatGroup'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.23, Flutter 3.35.3, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
3
likes
120
points
63
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

camera, flutter, google_mlkit_barcode_scanning, google_mlkit_commons, google_mlkit_text_recognition

More

Packages that depend on ocr_scan