Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: PDF417 from a Driver's License does not scan. #169

Open
5 of 11 tasks
seanrallSRS opened this issue Jul 19, 2024 · 4 comments
Open
5 of 11 tasks

bug: PDF417 from a Driver's License does not scan. #169

seanrallSRS opened this issue Jul 19, 2024 · 4 comments
Labels
bug/fix Something isn't working package: barcode-scanning platform: android Android platform

Comments

@seanrallSRS
Copy link

Plugin(s)

  • Barcode Scanning
  • Face Detection
  • Face Mesh Detection
  • Selfie Segmentation
  • Translation

Version

6.1.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

When Scanning using the Demo app capacitor-mlkit-plugin-demo and selecting PDF417 and try and scan a US Driver's License or another complex PDF417 barcode the scanner does not return anything and can't scan the barcode.

Expected behavior

Expect the Drivers License PDF417 barcodes can be scanned.

Reproduction

https://github.com/robingenz/capacitor-mlkit-plugin-demo

Steps to reproduce

  1. Build the demo app
  2. Select PDF417
  3. Select Start Scan / also tested the just Scan function both dont scan the PDF417
  4. Sanner opens and does not scan

Other information

No response

Capacitor doctor

Capacitor Doctor

Latest Dependencies:

@capacitor/cli: 6.1.1
@capacitor/core: 6.1.1
@capacitor/android: 6.1.1
@capacitor/ios: 6.1.1

Installed Dependencies:

@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/ios: 6.0.0
@capacitor/android: 6.0.0

[success] Android looking great! 👌
[error] Xcode is not installed

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@seanrallSRS seanrallSRS added bug/fix Something isn't working needs: triage labels Jul 19, 2024
@robingenz
Copy link
Member

Please provide a sample barcode and the expected value.

Copy link
Contributor

This issue has been labeled as needs: reproduction. This label is added to issues that need a code reproduction.

Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so we can debug the issue.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for us to reproduce the issue.

@robingenz robingenz added the platform: android Android platform label Jul 20, 2024
@seanrallSRS
Copy link
Author

Please provide a sample barcode and the expected value.

Here is an example of a back of a Pennsylvania Drivers license PDF417 barcode that the sample app cant scan with StartScan https://websdk-vin.demos.scandit.com/vin_pdf.pdf

@robingenz
Copy link
Member

Reading PDF417 codes is not a problem per se (for example, it works with this code). But I was able to reproduce the problem with your code. I think there are two reasons for this:

  1. the demo app uses a square detection area, but the code is obviously not square. You need to adjust this in your code.
  2. because the code is so wide, the device has to be held further away and in my case the image was no longer focused. Here I have to check whether I can implement an autofocus. But I can only do that when I'm back in the office (I'm currently on vacation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Something isn't working package: barcode-scanning platform: android Android platform
Projects
None yet
Development

No branches or pull requests

2 participants