Comments (8)
Same problem for me. I'm trying to have an app that reads qrcodes on android and ios.
I've tested QZXingLive on Windows 7 and Android and they both work well (with the only problem that in Android the image processing seems to be slow and the camera view every "certain" seconds freezes for a while).
On iOS (iphone 5c) the app starts correctly and the image processing seems to be smooth, but unfortunately it can only recognize barcodes, qrcodes are not recognized.
Could it be a problem with the camera image resolution (maybe too high)?
Please help, otherwise I will have to choose another library :-(
from qzxing.
indeed i have never tried the library on iOS due to my lack of iOS device. I only had reports of its functionality by people that have already used it.
I believe that i can acquire an iPhone 7 for the next few days so i will test it and get back to you.
Best regards
from qzxing.
That would be great. Thank you.
from qzxing.
Thanks too.
I just ran tests on my galaxy S4, and works smoothly.
J
from qzxing.
After some tests with the iPhone i saw that the image was flipped and rotated. To commit it properly i need to do some tests and further optimizations.
Though, if you need a quick fix for you to continue your development, you can apply the following change:
diff --git a/src/QZXingFilter.cpp b/src/QZXingFilter.cpp
index f37100b..3b89613 100644
--- a/src/QZXingFilter.cpp
+++ b/src/QZXingFilter.cpp
@@ -158,7 +159,7 @@ static QImage rgbDataToGrayscale(const uchar* data, const CaptureRect& captureRe
uchar* pixelInit = image.bits();
data += (captureRect.startY * captureRect.sourceWidth + captureRect.startX) * stride;
for (int y = 1; y <= captureRect.targetHeight; ++y) {
- uchar* pixel = pixelInit + (captureRect.targetHeight - y) * captureRect.targetWidth;
+ uchar* pixel = pixelInit + y * captureRect.targetWidth;
for (int x = 0; x < captureRect.targetWidth; ++x) {
uchar r = data[red];
uchar g = data[green];
It would be great if you could give it a try and share your results.
from qzxing.
Again, thanks for quick response and great project.
I confirm the patch works on my iphone 7+ now.
So far, both my galaxy s4 and iphone 7+ work great in daytime when QRCode is shown on my computer screen. I am using a MACBOOK retina screen.
The detection rate dropped when I tried on some product package qrcodes at home in house light condition.
I am wondering whether there are some recommendations on capturing video frames from QML?
E.g. Videofrom/image pre-processing etc.
Just for record, I am using the following QR test code.
https://www.printbusinesscards.com/marketing/qrcode/QR-Code-Quality-Standards-Test.php
from qzxing.
Hi thank you for the fast answer. Today I'm going to do some tests with my iphone 5 and I will let you know ASAP.
from qzxing.
Yes it works! Thank you!
from qzxing.
Related Issues (20)
- UPC-A addon decoding issue
- Crash of QZXingLive with Qt 6.2.3 on Android 12 HOT 6
- QZXingTests - The Tests should detect the Barcode format as well HOT 1
- QrCode with text
- QZXing Crashing on Qt6.4 on IOS for latest Iphone 13 HOT 4
- Segmentation fault on android HOT 1
- No QR code is detected on Qt6.4/Ubuntu
- pdf417 Fail
- Qt 6.4.2 Android Qml loader issue
- Cannot open input file 'debug\cameraimagewrapper.oby HOT 3
- QAbstractVideoFilter not found
- Ios and Android with Qt 6.4.1
- compiling example QZXingLive : application.cpp:(.text+0x234): undefined reference to `NativeHelpers::application_p_' HOT 1
- Android Qt 6.5.0 build error
- When trying to decode a large number of DataMatrix from png (fed 2500 DataMatrix), not all were decoded HOT 1
- crash on QT android 5.15.13 QZXingFilter HOT 1
- SberPay QR codes are never detected HOT 5
- QAbstractVideoFilter removed in Qt6
- QT6.5.1 Memory leak with function
- Shared Object
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qzxing.