'Zxing custom Decoder that rotetes image
I was trying to make a vertical barcode scanner in portrait mode with the usage of DecoratedBarcodeView. After reading this issue zxing-android-embedded/issues/243 I tried to create a custom Decoder but I don't really know how to rotate an image before decoding.
class RotatedDecoder(reader: Reader) : Decoder(reader) {
override fun toBitmap(source: LuminanceSource?): BinaryBitmap {
return super.toBitmap(source).rotateCounterClockwise()
}
}
Doing this throws an error This luminance source does not support rotation by 90 degrees.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
