Open kousu opened 5 years ago
Hmm. I built from master
just now and instead see:
$ ./zxing -v code.png
Hybrid binarizer succeeded:
{2-3}LZ7BDOso7qsr7cs0MV5NDQPYxEVeCMxsupw5zFGQf4GBn3u+nOcRjmKZT6UZO886fmqy/i6NTuUlc+otO6ZlpvXEVc0Dfvw1G+2s/zKElUi552dZv8bDvP88q89DmylL4bu6mtzTUKaDr+GI4WgoTZ
Global binarizer succeeded:
{2-3}LZ7BDOso7qsr7cs0MV5NDQPYxEVeCMxsupw5zFGQf4GBn3u+nOcRjmKZT6UZO886fmqy/i6NTuUlc+otO6ZlpvXEVc0Dfvw1G+2s/zKElUi552dZv8bDvP88q89DmylL4bu6mtzTUKaDr+GI4WgoTZ
$ ./zxing -v --search-multi code.png
Hybrid binarizer failed: zxing::IllegalArgumentException: This luminance source does not support cropping.
Global binarizer failed: zxing::IllegalArgumentException: This luminance source does not support cropping.
It's not binary compatible, but have you looked into https://github.com/nu-book/zxing-cpp?
I'm very seriously considering deprecating this repository because their port is an fresh idiomatic port to C++, rather than the attempted 1-to-1 Java to C++ port that exists here.
Ah, no I hadn't seen that. I found yours because it's what the python and brew versions use.
I also found https://github.com/dlbeer/quirc/ which is interesting: it's written in a minimalist BSD style, but it still comes with both encoding, decoding, and even webcam support (on OpenBSD and Linux, no Darwin 😢 )
I'm getting a segfault if I use
GenericMultipleBarcodeReader
. I'm on OS X Mojave and I installed zxing-cpp from brew.It triggers on this image:
It does not trigger on this image:
( I discovered this while trying to use the python wrapper: https://github.com/lubo/zxinglight/issues/5 )
It seems like for some reason the thing ..compiled..wrong?? It's crashing in GenericMultipleBarcodeReader::translateResultPoints(). The disassembly is showing that it's trying to execute
%rdi=*((void*)0x18)
which doesn't make any sense.