BarCode

Rating: 
4.941175
Your rating: None Average: 4.9 (17 votes)

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.

Images from the Gallery can be scanned too, not just the ones taken by live camera.

This is basically a copy of what can be installed from the Jolla Store.

Source code: https://github.com/monich/sailfish-barcode

Happy scanning!

Screenshots: 
Application versions: 
AttachmentSizeDate
File harbour-barcode-1.0.54-1.aarch64.rpm411.33 KB09/11/2024 - 06:41
File harbour-barcode-1.0.54-1.armv7hl.rpm363.15 KB09/11/2024 - 06:41
File harbour-barcode-1.0.53-1.aarch64.rpm408.63 KB08/05/2024 - 05:34
File harbour-barcode-1.0.53-1.armv7hl.rpm361.21 KB08/05/2024 - 05:34
File harbour-barcode-1.0.52-1.aarch64.rpm410.21 KB04/05/2024 - 06:05
File harbour-barcode-1.0.52-1.armv7hl.rpm362.87 KB04/05/2024 - 06:05
File harbour-barcode-1.0.51-1.aarch64.rpm416.5 KB06/04/2024 - 22:16
File harbour-barcode-1.0.51-1.armv7hl.rpm369.19 KB06/04/2024 - 22:16
File harbour-barcode-1.0.50-1.aarch64.rpm413.48 KB23/10/2022 - 03:22
File harbour-barcode-1.0.50-1.armv7hl.rpm408.14 KB23/10/2022 - 03:22
File harbour-barcode-1.0.49-1.aarch64.rpm412.11 KB22/10/2022 - 03:10
File harbour-barcode-1.0.49-1.armv7hl.rpm406.99 KB22/10/2022 - 03:10
File harbour-barcode-1.0.48-1.aarch64.rpm409.7 KB18/09/2022 - 18:39
File harbour-barcode-1.0.48-1.armv7hl.rpm403.72 KB18/09/2022 - 18:39
File harbour-barcode-1.0.47-1.aarch64.rpm403.49 KB28/03/2022 - 06:59
File harbour-barcode-1.0.47-1.armv7hl.rpm398 KB28/03/2022 - 06:59
File harbour-barcode-1.0.46-1.aarch64.rpm403.43 KB28/03/2022 - 06:28
File harbour-barcode-1.0.46-1.armv7hl.rpm398.11 KB28/03/2022 - 06:28
File harbour-barcode-1.0.45-1.aarch64.rpm404.76 KB02/01/2022 - 07:08
File harbour-barcode-1.0.45-1.armv7hl.rpm400.44 KB02/01/2022 - 07:08
File harbour-barcode-1.0.44-1.aarch64.rpm427.05 KB31/10/2021 - 22:45
File harbour-barcode-1.0.44-1.armv7hl.rpm421.77 KB31/10/2021 - 22:45
File harbour-barcode-1.0.43-1.aarch64.rpm426.34 KB31/10/2021 - 01:55
File harbour-barcode-1.0.43-1.armv7hl.rpm421.66 KB31/10/2021 - 01:55
File harbour-barcode-1.0.42-1.aarch64.rpm417.5 KB18/07/2021 - 04:25
File harbour-barcode-1.0.42-1.armv7hl.rpm417.1 KB18/07/2021 - 04:25
File harbour-barcode-1.0.41-1.aarch64.rpm418.38 KB17/07/2021 - 21:31
File harbour-barcode-1.0.41-1.armv7hl.rpm416.75 KB17/07/2021 - 21:31
File harbour-barcode-1.0.40-1.aarch64.rpm416.15 KB15/07/2021 - 07:35
File harbour-barcode-1.0.40-1.armv7hl.rpm416.38 KB15/07/2021 - 07:35
File harbour-barcode-1.0.39-48.1.aarch64.rpm381.91 KB15/05/2021 - 17:27
File harbour-barcode-1.0.39-48.1.armv7hl.rpm371.24 KB15/05/2021 - 17:27
File harbour-barcode-1.0.38-47.1.aarch64.rpm381.68 KB15/05/2021 - 14:41
File harbour-barcode-1.0.38-47.1.armv7hl.rpm371.04 KB15/05/2021 - 14:41
Changelog: 
  • 1.0.54 (Nov 9 2024)
    - Added option to use the front camera
    - Run the app in the compatibility mode
    - Updated Slovak translation (@okruhliak)
  • 1.0.53 (May 8 2024)
    - Fixed scanning small images from Gallery
    - Use the standard image picker
    - Removed disallowed permissions
  • 1.0.52 (May 4 2024)
    - Fixed beep on scan from Gallery
    - Dropped dependency on WebView
    - Declared sailjail permissions
  • 1.0.51 (Apr 6 2024)
    - Added history search
    - Allow gallery image to be zoomed with a pinch gesture
    - Fixed the history size limit (was always 100)
  • 1.0.50 (Oct 23 2022)
    - Made saved images zoomable
    - Updated value sets for COVID certificates
  • 1.0.49 (Oct 22 2022)
    - Detect camera resolution at run time (fix aspect ratio switch)
    - Added invert button for scanning inverted QR codes
    - Updated Portuguese translation (@amaretzek)
    - Updated Polish translation (Atlochowski)
    - Updated Slovak translation (@okruhliak)
  • 1.0.48 (Sep 18 2022)
    - Replaced system contact card UI with a builtin viewer
    - Handle ORG field in MECARD
  • 1.0.47 (Mar 28 2022)
    - Added Chum metadata
  • 1.0.46 (Mar 28 2022)
    - Don't lock the audio playback when scanning
    - Reduced dependency on Qt versions
    - Updated Hungarian translation (@1Zgp)
  • 1.0.45 (Jan 2 2022)
    - Allow to choose barcode formats
    - Improved scanning performance
    - Updated Slovak translation (@okruhliak)
  • 1.0.44 (Oct 31 2021)
    - Updated Polish translation (Atlochowski)
  • 1.0.43 (Oct 31 2021)
    - Handle various incompatibilities with latest Sailfish OS
    - Updated Slovak translation (@okruhliak)
  • 1.0.42 (Jul 18 2021)
    - Updated Swedish translation (Åke Engelbrektson)
  • 1.0.41 (Jul 17 2021)
    - Tweaked EU digital COVID certificate page
    - Added calendar import shortcut to the main page
  • 1.0.40 (Jul 15 2021)
    - Decode EU digital COVID certificates
    - Added 172x172 icon
  • 1.0.39 (May 15 2021)
    - Updated Slovak translation (@okruhliak)
  • 1.0.38 (May 15 2021)
    - Pushed to OpenRepos

Comments

robang74's picture

 Barcode app requires too much priviledges. Can you fix this aspect, please?

slava's picture

It's the default set of permissions. But yeah, I can reduce it a bit next time I touch this app, if I don't forget. If it's really bothering you, you can fix (and test) it yourself and submit a pull request, that would speed up the process.

amaretzek's picture

Hi.
(SFOS 4.4 + 4.5, barcode 1.0.50)
Importing a calendar event from files with VCS and ICS extensions has diferences for ORGANIZER and VALARM (TRIGGER).
The very same file(-content) but with ICS extension (imported from file-browser, after scanning with barcode) respects those two fields.
(BTW, Calendar app import in 4.5 is broken, it shows the reminder before import but it is lost on import, not yet reported.)
Patching ScanPage.qml and CodeItem.qml does the trick.
So, why VCS?
Thanks

slava's picture

It was whatever worked at the time, I guess. I can try ics and if that works for older releases of Sailfish OS too, I can use that. In the worst case, some OS version checking would have to be applied.

amaretzek's picture

OS version check: I saw some comments regarding "/tmp" and version 4.... ;)

rob_k's picture

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's picture

The option "Allow inverted orientation" cannot be activated, both OpenRepos and Chum versions. It's great anyway that you started implementing it!

slava's picture

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's picture

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's picture

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's picture

I was talking about color inversion button. So, maybe I'm the one who is confused/off topic...

daf0x's picture

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's picture

Could it be that you have this thing installed too? I picked a different name for the clone to avoid even more confusion.

daf0x's picture

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's picture

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's picture

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's picture
amaretzek's picture

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's picture
Sandboxing=Disabled

would work even better))

amaretzek's picture

Hmmm, I did this... For some reason, I concluded that it doesn't work. Have to retest... Thanks (problem between chair and kbd??;)

rolfa's picture

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's picture

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's picture

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's picture

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's picture

So, dropping the temporary file to "Documents" is not option? 43 drops them in "Downloads", which is a no-go...

amaretzek's picture

So I edited the contacts desktop file to make it work...

amaretzek's picture

SFOS 4.3 has "UserDirs", importing works out of the box.. (tested on XA2)

slava's picture

Which UserDirs, where?

amaretzek's picture

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's picture

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.

Pages