mchehab / zbar

ZBar is an open source software suite for reading bar codes from various sources, including webcams. As its development stopped in 2012, I took the task of keeping it updated with the V4L2 API. This is the main repository for it. There's a clone at at LinuxTV.org, and another one at gitlab.
https://linuxtv.org/downloads/zbar/
GNU Lesser General Public License v2.1
1k stars 206 forks source link

Error decoding QR code ROI #223

Closed adrianca88 closed 2 years ago

adrianca88 commented 2 years ago

Hello,

I am working with QR codes. I have no problems if I use the full image: all codes are detected and decoded successfully.

full

However, if I get the ROI where the QR code is located, the decoding is not working. Here you have an example:

ROI

I have tested it with different margin sizes (to get more or less background information from the source image) and it doesn't work either.

The most amazing here is that it works if I add an small black or white border of 1px on the image. Here is an example:

ROI_with_border

Any idea or suggestion?

Thanks so much in advance.