Skip to main content

eas_passport_ocr 0.2.9 copy "eas_passport_ocr: ^0.2.9" to clipboard
eas_passport_ocr: ^0.2.9 copied to clipboard

On-device passport MRZ recognition for Flutter Android and iOS.

120/ 160
pub points
327
downloads

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

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

Failed check 0/10 points: Provide a valid pubspec.yaml

  • pubspec.yaml doesn't have a homepage entry.

  • pubspec.yaml doesn't have a repository entry.

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

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

Failed check 0/10 points: Use an OSI-approved license

No license was recognized.

Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.

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

23 out of 97 API elements (23.7 %) have documentation comments.

Some symbols that are missing documentation: eas_passport_ocr, eas_passport_ocr.EasPassportOcr.EasPassportOcr.new, eas_passport_ocr.EasPassportOcr.createScanSession, eas_passport_ocr.PassportFrameTextEngine.PassportFrameTextEngine.new, eas_passport_ocr.PassportFrameTextEngine.recognizeFrameLines.

Passed check 10/10 points: Package has an example

Partially passed report section
Platform support
10 / 20trigger folding of the section

Partially passed check 10/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:eas_passport_ocr/eas_passport_ocr.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:eas_passport_ocr/eas_passport_ocr.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:eas_passport_ocr/eas_passport_ocr.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:eas_passport_ocr/eas_passport_ocr.dart that declares support for platforms: Android, iOS.

Swift Package Manager support:

Package does not support the Swift Package Manager on iOS

The package does not contain ios/eas_passport_ocr/Package.swift.

Note: This iOS or macOS plugin does not support the Swift Package Manager, resulting in a partial score. See https://docs.flutter.dev/to/spm 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 29 issues. Showing the first 2:

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

lib/eas_passport_ocr.dart:44:7

   ╷
44 │       throw const PassportOcrException('DISPOSED', 'SDK 已释放,请创建新实例。');
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

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

lib/eas_passport_ocr.dart:46:7

   ╷
46 │       throw const PassportOcrException('BUSY', '扫描会话正在使用此实例,请先停止会话。');
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

Partially passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Partially passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
google_mlkit_text_recognition 0.17.1 0.17.1 1.0.0
image 4.12.0 4.12.0 4.12.0
Transitive dependencies
Package Constraint Compatible Latest Notes
archive - 4.6.0 4.6.0
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
ffi - 2.2.0 2.2.0
google_mlkit_commons - 0.13.0 1.0.0
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
path - 1.9.1 1.9.1
posix - 6.5.4 6.5.4
vector_math - 2.4.4 2.4.4

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

The constraint `0.17.1` on google_mlkit_text_recognition does not support the stable version `1.0.0`, that was published 0 days ago.

When google_mlkit_text_recognition is 30 days old, this package will no longer be awarded points in this category.

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.19, Flutter 3.47.8, Dart 3.13.7.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
120
points
327
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

On-device passport MRZ recognition for Flutter Android and iOS.

Topics

#ocr #passport #mrz

License

unknown (license)

Dependencies

flutter, google_mlkit_text_recognition, image

More

Packages that depend on eas_passport_ocr

Packages that implement eas_passport_ocr