Answer the question
In order to leave comments, you need to log in
Decoding oned code barcode with zxing from file?
Actually, it is interested in the possibility of decoding not with the help of a camera, but directly with a bitmap. For this I use the code
PlanarYUVLuminanceSource source = new PlanarYUVLuminanceSource(byte[] yuvData,
int dataWidth,
int dataHeight,
int left,
int top,
int width,
int height,
boolean reverseHorizontal)
BinaryBitmap bitmapBinary = new BinaryBitmap(new HybridBinarizer(source));
result = reader.decode(bitmapBinary);
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question