How to detect multiple barcodes / QR codes in a TIFF image and return their value + position?

I am currently trying to achieve this:

I have a very large TIFF image that contains scanned documents. The image contains invoices with barcodes / QR codes, followed by several other scanned documents related to the invoice issued by him. This can be repeated several times (the TIFF image may look like [invoice] + [documents] + [invoice] + [documents] ...)

I need a program (in fact, it doesnโ€™t matter which language, but I would prefer either Java, JavaScript, PHP, C ++, or Python), which takes the specified TIFF image, scans all the barcodes and returns their values โ€‹โ€‹and their position in the image (either on which page it is or in the absolute position, but the page is preferable, I know for sure that there will not be several barcodes on one page). The goal is to split this TIFF image into several PDF files, each of which contains only one invoice and all documents belonging to the account.

I have already done the last part. I intend to use ImageMagick to split a TIFF file into multiple files (verified, working). I also tried several barcode scanning methods, but ran into critical problems for everyone. And this is the question of my question:

Is any of my presumptions false? Is there a better way / library / SW that you know what might work?

Libraries / SW I have tried so far:

ZXing port for PHP . Unable to work with TIFF files.

Zxing github

Quagga for JavaScript . Unable to work with TIFF files.

Quagga github

ZBar code reader : the best of them. I managed to scan several QR codes in one TIFF image using CMD (Windows), but could not find a way to get my positions. It also turned out that versions of C ++ and Python exist, but have not yet had the opportunity to try them.

Thanks for any ideas / corrections.

+4
source share
1 answer

, , - -

, - , -.

Open Source..

0

Source: https://habr.com/ru/post/1651290/


All Articles