piobab
piobab

Reputation: 1352

Barcode scanning in every direction using Zbar or Zxing

I would like to scan barcode (especially code128) in every direction. I integrated zbar and zxing libraries which scanned the code only horizontally or vertically but in other direction I couldn't. Is it possible to configure these libraries to scan barcodes in every direction?

Upvotes: 2

Views: 1467

Answers (1)

Sean Owen
Sean Owen

Reputation: 66886

No for zxing, although it scans back and forth. but you can simply rotate the image at will and retry. Given the dimensions of a barcode you only need about 10 rotations to cover all possibilities. This is 10 lines of code or so.

Upvotes: 1

Related Questions