googlesamples / googlesamples/mlkit

[Bug report] Australian Covid pass QRCode's not recognised

Open
#449 3 comments 0 reactions 1 assignee Claimed by @zhouyiself View on GitHub
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

We are developing an app to scan Covid certificate QRCodes. EU, NZ QRCodes works great. ✔️

With Australia QRCodes, I'm having trouble detecting QR codes on any device. These QRCodes are dense compared to NZ and EU. I'm using CameraX and I tried multiple different configurations

- Set Target resolution for ImageAnalysis use case. If I set it to 1980X1080, it works randomly when I move back and forth.
- Continuos focus and metering
- Downgraded cameraX libraries from 1.1.0-beta to 1.0.2

**To Reproduce**

Steps to reproduce the behaviour in the sample app:
1. Go to 'Run the MLKit quickstart written in kotlin'
2. Click on 'LivePreviewActivity or CameraXLivePreviewActivity'
3. Select 'Barcode scanning' from the options
4. Scan barcodes named **Aus_*** from [here](https://github.com/harsha973/BarcodePlayground/tree/feature/issue_stack/sample_barcodes).
5. Observe, the barcode is not detected.

Please also see my [barcode demo app](https://github.com/harsha973/BarcodePlayground/tree/feature/issue_stack). Please see MLKitActivity in the demo. Steps as below

1. Run the app
2. Click on 'MLKit' button
3. Scan barcode
4. Scan result doesn't show in the bottom white display area

**Expected behaviour**
The scanned barcode should be detected

**SDK Info:**
- SDK Name & Version - com.google.mlkit:barcode-scanning:17.0.2
- CameraX - androidx.camera:camera-lifecycle:1.1.0-beta01, androidx.camera:camera-view:1.1.0-beta01 androidx.camera:camera-camera2:1.1.0-beta01. Also tried with camera 1.0.2

**Smartphone:**
- Device: Pixel 3, Android API 31
- Device: Nokia 6.1, Android API 29

Please find the recorded [video](https://vimeo.com/manage/videos/677921037)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.