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
981 stars 205 forks source link

decoding time when unable to decode barcode #130

Open pepeverde9 opened 3 years ago

pepeverde9 commented 3 years ago

Hello I'm using the zbar library in an application written in C++/Qt. When it can decode the barcode, zbar is fast, and everything is great. But sometimes it can't decode the barcode in the image. This is not so great, but it's normal. The issue is that when this happens, instead of needing fractions of a second to do the decoding, it takes over 10 seconds until the failure is reported, on a i7 desktop CPU. The file where the zbar library is used is here: https://bitbucket.org/guenterneust/examinator/src/traindnn/barcode.cpp Any idea how this can be fixed?

mchehab commented 3 years ago

No idea. you would need to profile ZBar with your dataset and see what it is doing along those 10 seconds.