Skip to content

Barcode scanner not scanning PDF417 barcode on south african driving license #53

@ostwalankit

Description

@ostwalankit

Step 1: Describe your environment

  • Android device: _Google Pixel
  • Android OS version: 9
  • Google Play Services version: "com.google.firebase:firebase-ml-vision:19.0.2"
  • Firebase/Play Services SDK version: _____

Step 2: Describe the problem:

I am not able to scan PDF417 barcode on south african driving license (attached below) . It dosent scan anything. I am using default mlkit project of github. I have added Firebase to the project.

Following are dependencies used.

// ML Kit dependencies
implementation 'com.google.firebase:firebase-ml-vision:19.0.2'
implementation 'com.google.firebase:firebase-ml-vision-image-label-model:17.0.2'
implementation 'com.google.firebase:firebase-ml-vision-face-model:17.0.2'
implementation 'com.google.firebase:firebase-ml-model-interpreter:17.0.3'

Steps to reproduce:

  1. Load the project ML kit.
  2. Select Java ML Kit
  3. Select Live Preview Activity
  4. Select Barcode detection from spinner at bottom
  5. Now scan the south african driving license.

Observed Results:

There are constant recurring logs.
2019-02-28 21:10:34.172 3508-3746/com.google.firebase.samples.apps.mlkit D/MIDemoApp:CameraSource: Process an image
2019-02-28 21:10:34.172 3508-3746/com.google.firebase.samples.apps.mlkit D/skia: onFlyCompress

Expected Results:

Scan the PDF417 barcode and show appropriate result in context to it. I scanned the same driving license via. Microblink app and it scans perfectly.

Relevant Code:

Used the mlkit code on github.

drivers - back

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