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

QR Code Rate of recognition AVCamBarcode vs. CodeScanner #124

Closed
ralfebert opened this issue Jan 31, 2024 · 1 comment · Fixed by #127
Closed

QR Code Rate of recognition AVCamBarcode vs. CodeScanner #124

ralfebert opened this issue Jan 31, 2024 · 1 comment · Fixed by #127

Comments

@ralfebert
Copy link
Contributor

The Apple example project AVCamBarcode (https://developer.apple.com/documentation/avfoundation/capture_setup/avcambarcode_detecting_barcodes_and_faces) seems to do a few tricks to improve recognition of QR codes and seems to recognize small codes significantly better than CodeScanner.

A starting point could be the CameraViewController#setRecommendedZoomFactor method in the example project. But I am not sure if this is what makes the difference / there might be something else that improves the rate of recognition here – the example project doesn't use CIDetector at all.

Unfortunately I have no more time to investigate this further, the solution for my client will probably be "print bigger QR codes", just wanted to document our findings here.

@karolbielski
Copy link
Contributor

I opened PR #127 that applies zoom factor and chooses wide angle camera if possible.

nathanfallet added a commit that referenced this issue Feb 23, 2024
[#89] [#113] [#124] Focus improvements on dual and tripple cameras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants