Skip to content

firebase_ml_vision scanning datamatrix is really not accurate. #30690

@kevin-sakemaer

Description

@kevin-sakemaer

Steps to Reproduce

  1. clone flutter/plugins
  2. cd packages/firebase_ml_vision/example
  3. flutter run (on a real device)
  4. scan some datamatrix

Here is an album with 4 almost exactly same photo but only one work :
https://photos.google.com/share/AF1QipOUTCX6xK77XqMfz4yBki2d3eygi_0GQqNwfiHgDkwl1x_eAodtMVSucjXLgBOIsA?key=Z2lUcnA5bzM5ZWtYOFAwaUNRNzNDOXNGLUlnZUFn
You can use it for testing

What is expected

The scanning should work and return the data in the datamatrix

What happen

The plugin doesn't find the datamatrix in the image most of the time.

Remark

On the emulator the plugins work as expected

Flutter doctor

Flutter (Channel stable, v1.2.1, on Linux, locale en_US.UTF-8)
    • Flutter version 1.2.1 at /home/kevin/Work/github.com/flutter/flutter
    • Framework revision 8661d8aecd (7 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/kevin/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /home/kevin/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/182.5314842/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.3)
    • Android Studio at /home/kevin/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/182.5314842
    • Flutter plugin version 33.3.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.33.0)
    • VS Code at /usr/share/code
    • Flutter extension version 2.25.0

[✓] Connected device (2 available)
    • TA 1012                   • NB1GAS3771407100 • android-arm64 • Android 9 (API 28)
    • Android SDK built for x86 • emulator-5554    • android-x86   • Android 9 (API 28) (emulator)

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions