The native AVFoundation QR code scanner just can't see a low-contrast QR code that I need to be able to scan. I know it's possible to scan the code though, because it works fine with WeChat's QR scanner.
How do I scan this QR code? Is there a way to adjust my AVCaptureSession to allow for lower-constrast QR codes? Is there a package I can use that would be better?
Try to set capture quality to high.
session.sessionPreset = .high
I got it working with Zbar. Super easy to use, too. Here's a tiny demo (Xcode 9.3 and Swift 4.1): https://github.com/philipshen/ZBar-Demo-Swift-4
Related
I'm trying to create an application that detects all the QR Codes in my current camera frame, but am limited in that AVFoundation seems to only give me 4 QR Codes focused near the middle. Is it possible to detect more QR Codes simultaneously in one frame?
Code: pretty much this
Welcome!
It seems you can use Vision to detect all QR codes in an image.
From the docs of VNDetectBarcodesRequest:
By default, a barcode request first locates all barcodes in the input image, then analyzes each to decode payload.
(Note that even though it's named "barcodes", the symbologies also support QR.)
This tutorial might be helpful.
I am trying to build an iOS application that uses Firebase MLKit to recognize text from live camera frame.
I found an Android sample here.
https://medium.com/digital-curry/firebase-mlkit-textdetection-in-android-using-firebase-ml-vision-apis-with-live-camera-72ef47ad4ebd
Does anyone know good sample in iOS?
Text Detection From Firebase MLKit:
You can find demo code for Image to Text conversion using Firebase MLKit in iOS.
https://github.com/sayaleepote/TextDetect
For live recognization, you can create a custom camera and take a picture in the background periodically and detect a text from an image.
Custom Camera View for Capture Images:
For custom camera view, you can use below sample code.
Link: https://github.com/AlexLittlejohn/ALCameraViewController
Note: You can achieve this feature using iOS native MLKit + Vision framework
Refer This link for iOS native framework.
https://stackoverflow.com/questions/50918310
Let me know if you have any query.
Thanks.
Use system native SDK AVFoundation scan qr code, when the qr code contrast is not high, scanning not to come out
QRCode
my demo
Currently i am using ZBAR reader for decoding the QR codes. It is working fine. The problem occurs when QR code is heavily populated. ZBAR takes some time to read the content and due to this delay, the camera is kept open which annoys some users. So is there any way to capture the QR code as image and store in local and decode the image of QR code from local. This will stop the camera immediately and user won't see the camera opened for a long time. Thanks in advance
You didn't say anything about platform or language, but the the answer is "yes". See these examples.
I have integrate the zxing lib for qr code decoding in blackberry with OS 6.
i want to know how small image can be read the QR code any possibility to read minimum small image.I have try this that it is not working for 2.5x2.5 cm image.
The device contains the 5 MP camera.
EDITED:i have check the using the default camera looking nice but in camera open by the zxing lib is not look great.so is there any way to change the quality of camera view.
Please provide me help me.
As well as the size of the code, you also need to factor in how far away the code is from the camera and whether the camera supports macro-focus mode.
I would suggest using a larger code.