-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Feature suggestion] Let CodeReader fully support landscape orientation #1
Comments
Not that I really feel the need for landscape orientation but I have redesigned the settings page which gets us one step closer to that. Regarding rotation, the app is trying to decode both straight and 90° rotated version of every captured picture. Rotating the preview wouldn't change anything. I'll consider other suggestions when I have time for that. |
The settings page in v1.0.10 is looking nice in portrait and landscape orientation. Thanks! WRT rotation:
|
If I might just point out that the Gemini PDA is a primary landscape devices. As it stands CodeReader will not work in that orientation because the scan now button falls off the bottom of the screen and you cannot scan. Reorientate it portrait and it works fine. But Landscape is the normal orientation. Thanks. |
@monich, I forgot to mention, that the detection in landscape is working fine (but, see below) and the detection rate has become really good (on par with barcode scanners for Android) and quick with the latest releases of CodeReader (tested with v1.0.11 from Jolla Store). Thanks! But unfortunately the redesigned viewfinder (with aspect ratio switch) has some flaws IMHO:
Hence my suggestions are:
|
In case if GlobalHistogramBinarizer::getBlackMatrix() throws an exception like this: #0 zxing::Exception::Exception () at Exception.h:34 #1 ReaderException::ReaderException () at ReaderException.h:30 #2 NotFoundException::NotFoundException () at NotFoundException.h:28 #3 zxing::GlobalHistogramBinarizer::estimateBlackPoint() at GlobalHistogramBinarizer.cpp:198 #4 zxing::GlobalHistogramBinarizer::getBlackMatrix () GlobalHistogramBinarizer.cpp:129 #5 zxing::BinaryBitmap::getBlackMatrix () BinaryBitmap.cpp:40 ...
Build 1.0.14 should fully support landscape. Just submitted it to the Jolla Store. Let me know if something is still missing. |
Nice, thanks! |
Icon button on the right of the zoom slider switches the aspect ratio. And no, aspect ratio is not in the database, settings are stored in dconf these days. The app copies old settings from the database to dconf when it finds them there, drops the "settings" table and keeps using dconf: https://github.com/monich/sailfish-barcode/blob/master/src/Database.cpp#L233 You can read aspect ratio setting from dconf like this:
|
Thanks for the prompt reply and the information WRT Codereader's settings. As this turned out to be simply a usage issue ("the real issue most often sits in front of the device"), I am glad that I did not reopen this issue, yesterday. |
@develroo, your comment made me trying to reproduce the behaviour of your Gemini:
Checking the exact behaviour on one of my Jolla 1s:
Hence I wonder, ...
I hesitate to reopen this issue yet (i.e., without further analysis), because on my devices everything is working well now, even though not completely as expected (as Coderader's orientation setting does nothing). |
I guess https://github.com/monich/sailfish-barcode/blob/master/qml/pages/ScanPage.qml#L49 |
Perhaps I should use landscape layout for |
That would make sense. The Screen Resolution for the Gemini is 2160×1080 @ 403 dpi Functionally it works fine though.. just the viewport is teeny weeny. FTR yes. is is v 1.0.14 and like I say works well otherwise :) Yes.. by default the orientation is set to dynamic. And the icon on the right does nothing when pressed. |
I'll consider using landscape layout for the capture view on all devices regardless of their sizeCategory. It does look wrong. In the meantime you can edit ScanPage.qml on your device and take out |
Background
Missing pieces
Without this measure (i.e. currently), aiming at a barcode in landscape orientation provides a clumsy experience, because movements of the hand and device are translated into orthogonal movements of the view within the preview window.
Notes
A likely easier way to accomplish this would be to use a square preview window, as most QR- and Barcode apps do.
@monich, thank you so much for maintaining this extremely useful app, providing functionality the SailfishOS (native) software ecosystem would be simply lacking without it.
The text was updated successfully, but these errors were encountered: