dni_peru_ocr 0.15.2 copy "dni_peru_ocr: ^0.15.2" to clipboard
dni_peru_ocr: ^0.15.2 copied to clipboard

Peruvian DNI OCR helpers — ML Kit text recognition denoise, MRZ parsing, address extraction, and surname normalization for the Peruvian Documento Nacional de Identidad.

130/ 160
pub points
0
downloads

We analyzed this package 20 hours ago, and awarded it 130 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

148 out of 575 API elements (25.7 %) have documentation comments.

Some symbols that are missing documentation: dni_peru_ocr.AddressExtractor, dni_peru_ocr.AddressExtractor.AddressExtractor.new, dni_peru_ocr.AddressExtractor.extract, dni_peru_ocr.AddressFieldStrategy.AddressFieldStrategy.new, dni_peru_ocr.AddressNoiseFilter.kAddressConnectors.

Passed check 10/10 points: Package has an example

Passed 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:dni_peru_ocr/dni_peru_ocr.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

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

Because:

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

Because:

  • package:dni_peru_ocr/dni_peru_ocr.dart that declares support for platforms: Android, iOS.
Passed report section
Pass static analysis
50 / 50trigger folding of the section

Passed check 50/50 points: code has no errors, warnings, lints, or formatting issues

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 ^0.11.0+2 0.11.4 0.12.0+1
dio >=5.0.0 <6.0.0 5.9.2 5.9.2
flutter_image_compress ^2.3.0 2.4.0 2.4.0
google_mlkit_face_detection ^0.13.2 0.13.2 0.13.2
google_mlkit_text_recognition ^0.15.0 0.15.1 0.15.1
image ^4.5.4 4.9.1 4.9.1
logger ^2.5.0 2.7.0 2.7.0
mrz_parser ^2.0.1 2.0.1 2.0.1
path_provider ^2.1.5 2.1.5 2.1.5
Transitive dependencies
Package Constraint Compatible Latest Notes
archive - 4.0.9 4.0.9
args - 2.7.0 2.7.0
async - 2.13.1 2.13.1
camera_android_camerax - 0.6.30 0.7.2+1
camera_avfoundation - 0.9.23+2 0.10.1
camera_platform_interface - 2.13.0 2.13.0
camera_web - 0.3.5+3 0.3.5+3
characters - 1.4.1 1.4.1
clock - 1.1.2 1.1.2
code_assets - 1.2.1 1.2.1
collection - 1.19.1 1.19.1
cross_file - 0.3.5+2 0.3.5+2
crypto - 3.0.7 3.0.7
dio_web_adapter - 2.1.2 2.1.2
ffi - 2.2.0 2.2.0
flutter_image_compress_common - 1.0.6 1.0.6
flutter_image_compress_macos - 1.0.3 1.0.3
flutter_image_compress_ohos - 0.0.3 0.0.3
flutter_image_compress_platform_interface - 1.0.5 1.0.5
flutter_image_compress_web - 0.1.5 0.1.5
flutter_plugin_android_lifecycle - 2.0.35 2.0.35
google_mlkit_commons - 0.11.1 0.11.1
hooks - 2.0.2 2.0.2
http_parser - 4.1.2 4.1.2
jni - 1.0.0 1.0.0
jni_flutter - 1.0.1 1.0.1
logging - 1.3.0 1.3.0
material_color_utilities - 0.13.0 0.13.0
meta - 1.18.0 1.18.3
mime - 2.0.0 2.0.0
objective_c - 9.4.1 9.4.1
package_config - 2.2.0 3.0.0
path - 1.9.1 1.9.1
path_provider_android - 2.3.1 2.3.1
path_provider_foundation - 2.6.0 2.6.0
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
petitparser - 7.0.2 7.0.2
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
posix - 6.5.0 6.5.0
pub_semver - 2.2.0 2.2.0
record_use - 0.6.0 0.6.0
source_span - 1.10.2 1.10.2
stream_transform - 2.1.1 2.1.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.4.0
web - 1.1.1 1.1.1
xdg_directories - 1.1.0 1.1.0
xml - 7.0.1 7.0.1
yaml - 3.1.3 3.1.3

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

The constraint `^0.11.0+2` on camera does not support the stable version `0.12.0`.

Try running dart pub upgrade --major-versions camera 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:

  • NON_TYPE_IN_CATCH_CLAUSE - lib/src/lookup/http/dio_dni_http_client.dart:26:10 - The name 'DioException' isn't a type and can't be used in an on-catch clause.

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.23.12, Flutter 3.44.0, Dart 3.12.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
130
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Peruvian DNI OCR helpers — ML Kit text recognition denoise, MRZ parsing, address extraction, and surname normalization for the Peruvian Documento Nacional de Identidad.

Repository (GitHub)
View/report issues

Topics

#ocr #flutter #identity #peru #mrz

License

MIT (license)

Dependencies

camera, dio, flutter, flutter_image_compress, google_mlkit_face_detection, google_mlkit_text_recognition, image, logger, mrz_parser, path_provider

More

Packages that depend on dni_peru_ocr