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: Barcode Scanner Sometimes Reads Incorrect Values for Code128 Barcode #171

Closed
5 of 11 tasks
umeshsarkar opened this issue Jul 24, 2024 · 1 comment
Closed
5 of 11 tasks
Labels
bug/fix Something isn't working duplicate This issue or pull request already exists needs: triage package: barcode-scanning platform: android Android platform

Comments

@umeshsarkar
Copy link

umeshsarkar commented Jul 24, 2024

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 a Code128 barcode, the scanner does not always return the correct value. For instance, as shown in the attached screenshots, I am trying to scan a Code128 barcode with the accurate value 8003012345678902345678901234. However, it returns 8243175366890234567580173, which is incorrect.

  • The incorrect return code may vary between scans.
  • The issue occurs frequently but not consistently on every scan.

scanning-barcode-real scan-result-with-wrong-value

Expected behavior

The barcode scanner should return the actual value of the Code128 barcode on every scan.

Reproduction

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

Steps to reproduce

  1. Clone the official barcode-scanning demo repository:
git clone https://github.com/robingenz/capacitor-mlkit-plugin-demo.git
  1. Change to the root directory of the project:
cd capacitor-mlkit-plugin-demo
  1. Install all dependencies:
npm i
  1. Prepare and launch the Android app:
npx ionic cap sync android
npx ionic cap run android
  1. Select the barcode scanning module in the app.
  2. In the barcode scanning module, select the format Code128 and click on START SCAN.
  3. Scan the barcode from the attached Code128 barcode sample.
  4. After a successful scan, the result values are displayed at the bottom of the barcode scanning page.
  5. Compare the Raw Value or Display Value to the value mentioned in the attached Code128 barcode sample. They do not match.
  • Note: The incorrect return code may vary.
  • The issue is frequent but not consistent on every scan.

sample-barcode-code128.pdf

Other information

The device used for testing: Google Pixel 6a (Android Version 14)

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/android: 6.0.0
@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/ios: 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.
@umeshsarkar umeshsarkar added bug/fix Something isn't working needs: triage labels Jul 24, 2024
@robingenz
Copy link
Member

I close this issue as duplicate of #96.

@robingenz robingenz closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2024
@robingenz robingenz added duplicate This issue or pull request already exists platform: android Android platform package: barcode-scanning labels Jul 25, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug/fix Something isn't working duplicate This issue or pull request already exists needs: triage package: barcode-scanning platform: android Android platform
Projects
None yet
Development

No branches or pull requests

2 participants