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

Question about zbar QR code version calculation #262

Closed FengMu1995 closed 1 year ago

FengMu1995 commented 1 year ago

In qrdec.c line 1000, ''' uversion=(_width-8*usize)/(usize<<2); ''' I know it estimated the version of x direction, but from the context, the width is the width of the image, not the width of the qr code, but the result is right. why? Someone can help me?