May 13, 2015, 5:37:42 AM5/13/15
I've implemented an ImageJ plug-in that uses ZXing to detect and decode QR-codes in images. It works well but there are pathological cases that occasionally cause ZXing to fail to detect/decode a QR-code.
Such an example is attached where the QR-code is on a curved label.
Interestingly, I can use Barcode Scanner on my smartphone to successfully detect and decode this example when I point my phone at the screen. The on-line detector fails to detect/decode the QR-code when supplied with the example image.
I'm using the following code in my plug-in (ZXing 2.3.0; JRE7u71)
// Set hints.
final Map<DecodeHintType, Object> hints = new EnumMap<DecodeHintType, Object>(DecodeHintType.class);
// Decode -> results.
results = new QRCodeReader().decode(bitmap, hints);
Is there some additional processing that can be done to improve our chances of detecting and decoding such codes?
Curved QR label_cropped.JPG