Then I used it and I got mixed results. Using the camera from my
smartphone, the QR code was being read fine. Using another application
from the same phone… no. I guess they are using different libraries,
and the latter program has a less advanced algorithm.
It turned out that the chocking program was expecting to read black
contents on a white background, whereas the camera was fine with the
reverse too (white on black). So I introduced a little update to the
program to address this, setting the reverse option to a true value
because… I like my terminal windows to have a black background.
The code has been updated but it’s still in its former location: