Home > Back-end >  Zbar library decoding qr code failed
Zbar library decoding qr code failed

Time:03-31

Problem description: can't decode correctly the qr code version number

Problem analysis: I am Zbar through the modification of the source code, compiled into library after debugging to see the debug information to analyze, in a source file qrdec. C, before properly get QR code Angle points of QR code and print out the ncenters=3, but in the executive function qr_reader_try_configuration fmt_info=qr_finder_fmt_info_decode (& amp; Ul, & amp; Ur, & amp; Dl, & amp; Hom, _img _width _height); Findings fmt_info to 1, leading to no execution qr_code_decode down; Look inside the function qr_finder_fmt_info_decode print again, found that processed UL, UR, DL corner after data analysis, the implementation of ret=bch15_5_correct (& amp; V); The return value is wrong, after normal decoding (pay with WeChat yards) ret return a value of 0, error decoding ret return a value of 1, here don't know how to analysis, solve the great god help ~

  • Related