qreator-discuss team mailing list archive
-
qreator-discuss team
-
Mailing list archive
-
Message #00088
More progress on the scanner
Hi,
I just wanted to report some of the progress on the scanner. I've not
had much time to work on it, but I thought I'd share some findings.
The code is as usual in lp:~dpm/qreator/touch-scanner, but it's far from
being ready to even send a merge proposal.
I've added a feature to upload a local image to decode it, along with
some sample data (pictures I took with my phone) to test it. To use it,
just pull the bottom toolbar on the Scanner view and give it the
absolute path to the image to decode.
# Findings
- For images captured from a device (i.e. hi-res), the C++ decoder is
significantly faster than the JavaScript one (< 1s vs. 20s).
- I was rather surprised by the speed of the C++ plugin, now I just
need to get it to work on a device (where it didn't seem to emit
signals, unlike on the desktop).
# Caveats
- The bottom toolbar on the Scanner view does not appear the first time
the app is loaded. To make it appear, switch to another tab, and then
back to the scanner. It's a rather annoying issue, but I've no idea
where it's coming from.
Cheers,
David.
(*) I tested this using the new image upload feature and switching
between the decoders. This requires the 'qzxing-plugin' package from
https://launchpad.net/~qreator-hackers/+archive/qreator-experimental to
be installed.
To switch see the comment on
http://bazaar.launchpad.net/~dpm/qreator/touch-scanner/view/head:/qreator-touch.qml#L423