zxing-android-embedded icon indicating copy to clipboard operation
zxing-android-embedded copied to clipboard

Capturing rotated barcodes

Open vincentnock opened this issue 8 years ago • 3 comments

Description of the problem:

Zxing handles 90 degrees rotated One dimension barcodes when TRY_HARDER is enabled, but only if the LuminanceSource implementation return true for isRotateSupported.

if (tryHarder && image.isRotateSupported()) {
   BinaryBitmap rotatedImage = image.rotateCounterClockwise();
   ...
}

But the PlanarYUVLuminanceSource implementation which is used doesn't implement that.

Would it be possible to handle this feature in this library ?

vincentnock avatar Sep 12 '16 09:09 vincentnock

We're considering using it for the new Open Food Facts app, and 90° support would be very useful to our contributors :)

teolemon avatar May 27 '18 19:05 teolemon

Did anybody find a workaround? Tried to make both as true - tryHarder and isRotateSupported(). But it doesn't work

iRYO400 avatar Dec 13 '18 08:12 iRYO400

We're now using zxing-android-embedded in Open Food Facts :-)

teolemon avatar May 17 '20 18:05 teolemon