Menu

#183 QRcode from screen photo not recognized

latest_mercurial
open
nobody
None
5
2022-06-12
2021-10-27
No

Hello,

my users submited some QR codes which are photos from the monitor, and some of them cannot be recognized. For some of them, I get the following assert failure:

WARNING: decoder/databar.c:1248: _zbar_decode_databar: Assertion "seg->finder >= 0" failed.
i=25 f=-1(010) part=0

I can't attach the original QR codes, as they are Digital COVID certificates containing personal info, but I made a sample containing random text, which also cannot be recognized (but does not trigger the assert() above). Both the attached files are not recognized by zbarimg, but can be recognized using BinaryEye android app from the F-Droid repository.

My system is Fedora 34, uname -a says:
Linux my.host.name 5.13.4-200.fc34.x86_64 #1 SMP Tue Jul 20 20:27:29 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ rpm -qf /usr/bin/zbarimg
zbar-0.23-8.fc34.x86_64

1 Attachments

Discussion

  • Jan Yenya Kasprzak

    Second sample

     
  • grustbal

    grustbal - 2022-06-12

    zbarimg version 0.23.91 can successfully read both images, but only after making them smaller: convert qr2.jpg -scale 500x small2.jpg

     

Log in to post a comment.

MongoDB Logo MongoDB