dlenski / python-zxing

python wrapper for the ZXing barcode library
GNU Lesser General Public License v3.0
121 stars 36 forks source link

Use jpype for wrapper? #19

Closed ArlindNocaj closed 2 years ago

ArlindNocaj commented 2 years ago

I have been once creating a wrapper with jpype to zxing. The great thing would be that we avoid parsing issues.

It also allows you to get the metadata from the zxing barcode Object, eg for PDF_417 barcode.

It would simplify the problem a lot but require jpype as well.

You can also keep the java runtime warm and rerun things on demand with single requests.

Using jPype one can just use the main lines from CommandLineRunner of zxing.

Any thoughts on that?

dlenski commented 2 years ago

That'd be awesome… would make things much more efficient for batch processing and help solve annoying bugs/platform inconsistencies in the CommandLineRunner (like #17).

I don't have any bandwidth to work on this, but I'd gratefully accept a PR and try to review it quickly. :grin:

ArlindNocaj commented 2 years ago

I created a project for direct usage of zxing using jpype for barcode extraction. It also works on pdf documents, see https://github.com/ArlindNocaj/document-barcodes