Barcode reader for Sailfish OS.
Based on the original CodeReader app by Steffen Förster.
At some point the original one just stopped working and I had no choice but to fix it!
It scans all kinds of 1D and 2D barcodes (e.g. QR codes). Decoded barcodes can be copied to the clipboard, URLs can be opened in the browser, contacts and calendar events in various formats can be decoded and saved, and so on.
This is basically a copy of what can be installed from the Jolla Store.
Source code: https://github.com/monich/sailfish-barcode
Happy scanning!
Comments
rob_k
Fri, 2022/10/28 - 00:16
Permalink
Yes, it does work, 64-bit on X10ii. In Settings, choose Portrait, and the formerly unwilling button is working. Then while scanning the icon, normally for aspect ratio, will invert the image. Thank you, slava!
rob_k
Sun, 2022/10/23 - 14:34
Permalink
The option "Allow inverted orientation" cannot be activated, both OpenRepos and Chum versions. It's great anyway that you started implementing it!
slava
Sun, 2022/10/23 - 21:02
Permalink
Hmm, works for me. Note that this option can only be changed for portrait and landscape orientations, it doesn't make sense for the other two.
amaretzek
Mon, 2022/10/24 - 17:14
Permalink
Is it a toggle button? It seemed to me that it is to press and hold to scan in inverted mode.... Maybe this makes it apparently not working...
slava
Mon, 2022/10/24 - 17:40
Permalink
Are we talking about inverting UI orientation or inverting the colors? I'm a bit confused.
The color inversion button is supposed to show up in place of the aspect ratio button to the right of the zoom slider when you start scanning and yes, you need to hold it to keep the colors inverted. The program is decoding what's being shown on the screen.
amaretzek
Mon, 2022/10/24 - 20:00
Permalink
I was talking about color inversion button. So, maybe I'm the one who is confused/off topic...
daf0x
Sat, 2022/10/22 - 13:05
Permalink
I'm confused right now. In the appdrawer I have an app called 'CodeReader'. In storeman it says that both 'CodeReader' and 'BarCode' are installed. But I don't see that one in my appdrawer. I think I installed 'BarCode' because the other one probably isn't compatible with the 10III. I'm not sure if this is something that you can do anything about, but would it be possible to match the name in the drawer with storeman (i.e. 'BarCode')?
slava
Sat, 2022/10/22 - 14:32
Permalink
Could it be that you have this thing installed too? I picked a different name for the clone to avoid even more confusion.
daf0x
Thu, 2022/10/27 - 12:03
Permalink
I don't think so, but what is the way to check? According to `pkcon` I have `harbour-barcode-1.0.50-1.aarch64` installed. It doesn't show any other versions of barcode. I also don't think it would be possible, as both packages have the same name (I assume they would conflict), and CodeReader doesn't appear to have any 64-bit packages so I shouldn't be able to install it even on a Xperia 10III right?
amaretzek
Sun, 2022/10/16 - 19:54
Permalink
Today I saw an advertisment for QR code for sharing contacts...
SFOS had this working for a long time, but not anymore since the sharing API update.
You are going to add QR code color inversion (negative) detection, right?
Two fixes in one go?
;)
slava
Thu, 2022/10/20 - 02:42
Permalink
VideoOutput color inversion seems to be easy enough to implement with a bit of a shader magic. I'll add that option when I have time, hopefully soon. No ETA for QRShare though.
amaretzek
Fri, 2022/10/21 - 01:47
Permalink
Good news! ;) I presumed you are aware of: https://forum.sailfishos.org/t/xperia-10ii-cannot-scan-green-barcode/132...
amaretzek
Mon, 2022/05/02 - 00:09
Permalink
SFOS 4.4.0.58, BarCode 1.0.47, (on X, if it matters at all). To import contacts, I have now in the desktop file:
[X-Sailjail]
Permissions=Phone;MediaIndexing;UserDirs;Accounts;Contacts;Privileged;RemovableMedia;CommunicationHistory
OrganizationName=com.jolla
ApplicationName=CodeReader
This way I don't see the previous history, but it is not gone. Will hunt this down another day..
Regards
slava
Mon, 2022/05/02 - 00:19
Permalink
would work even better))
amaretzek
Mon, 2022/05/02 - 15:53
Permalink
Hmmm, I did this... For some reason, I concluded that it doesn't work. Have to retest... Thanks (problem between chair and kbd??;)
rolfa
Wed, 2021/11/17 - 18:52
Permalink
1) It was not able to read my Swiss Covid Certificate from paper (I'll blame Xperia XA2's camera).
2) It successfully decoded my Swiss Covid Certificate from a screenshot. Thanks for your work!
slava
Thu, 2021/11/18 - 01:33
Permalink
Yeah, the COVID Certificate QR-code is quite dense, devices with a poor camera may have trouble decoding it. I do have a few ideas how to increase the chances of a successful detection by applying some image processing magic to the captured image but there's always something else that grabs my attention when I have some time to spare on a side project...
amaretzek
Tue, 2021/10/26 - 21:57
Permalink
Hi. Version 1.0.42 drops VCF files in "Downloads", but for importing to work in 4.2.0.21 it has to be "Documents"... Thanks
slava
Sat, 2021/10/30 - 16:48
Permalink
Actually, it doesn't really matter - when jolla store apps get sandboxed (ain't they already?), vcf import will most likely be completely broken anyway, no matter where you put the temporary files))
amaretzek
Sun, 2021/10/31 - 16:10
Permalink
So, dropping the temporary file to "Documents" is not option? 43 drops them in "Downloads", which is a no-go...
amaretzek
Tue, 2021/11/02 - 04:03
Permalink
So I edited the contacts desktop file to make it work...
amaretzek
Fri, 2021/11/05 - 23:31
Permalink
SFOS 4.3 has "UserDirs", importing works out of the box.. (tested on XA2)
slava
Sat, 2021/11/06 - 01:01
Permalink
Which UserDirs, where?
amaretzek
Sat, 2021/11/06 - 02:21
Permalink
jolla-contacts.desktop:
4.2(X):
[X-Sailjail]
Permissions=Bluetooth;Phone;Email;MediaIndexing;Pictures;Accounts;Contacts;Synchronization;Privileged;Sharing;RemovableMedia;Documents;Downloads
(dir. Downloads added by me)
4.3(XA2):
[X-Sailjail]
Permissions=Phone;MediaIndexing;UserDirs;Accounts;Contacts;Privileged;Sharing;RemovableMedia
(original)
slava
Sat, 2021/11/06 - 02:48
Permalink
Oh man. It's such a moving target. At the moment I just don't feel like chasing this thing around. But I'll keep it in mind.
amaretzek
Sat, 2021/11/06 - 18:20
Permalink
ATM, it works (as is, in 4.3)... Concerning translation, I'll have a look later on this month...
slava
Tue, 2021/10/26 - 23:57
Permalink
Honestly speaking, this starts to be annoying. It used to be /tmp (where else you would drop temporary files) then it had to be moved under home (Downloads is kind of temporary place except that it never gets cleaned up) and now you say it has to be Documents. What's next?
amaretzek
Wed, 2021/10/27 - 00:50
Permalink
This is a consequence of sailjail, right? I don't know about others, but use your QR apps quite often. Also see "https://forum.sailfishos.org/t/4-0-1-45-can-not-import-vcard-vcf-file/48...". I just imported a few calendar events via QR and it was a PITA because of the hight density of the QR-code... And, for your question, what is next, you should be in a good position to get an official answer... ;)
slava
Wed, 2021/10/27 - 13:05
Permalink
Yes, this vcf issue is definitely caused by sailjail aka sadboxing, contact import is also broken and I'm sure we will keep discovering more issues. I guess it's time to start producing separate builds - a slightly broken one for Jolla Store and one for OpenRepos which opts out of sadboxing.
This sailjail thing is so destructive that I'd seriously consider stopping Sailfish OS app development when/if it becomes mandatory even for side-loaded apps e.g. OpenRepos. It just won't be possible to do anything non-trivial from a sadbox and doing trivial thing.. meh.
When I learned about upcoming sadboxing I stopped updating Sailfish OS on my daily phone))