Hello i have to decode qrcode using the otaliastudios.cameraview library
there is a frameprocessor
i have this result
direct decode exception
com.google.zxing.NotFoundException
DecodeHintType.PURE_BARCODE exception
com.google.zxing.NotFoundException
i try to decode directly the byte[] data
` if (frame.getDataClass() == byte[].class) {
byte[] data = frame.getData();
Decoder barcodeEncoder = new com.journeyapps.barcodescanner.Decoder();
InputStream is = new ByteArrayInputStream(data);
//convert the image to a binary bitmap source
LuminanceSource source = new BufferedImageLuminanceSource(is);
BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
//decode the barcode
QRCodeReader reader = new QRCodeReader();
Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5,
Android 5.0)
huawei mate xs
Does the same happen on other devices or an emulator?
Can you reproduce the issue in the sample project included with the library? If not, can you
provide your own sample project or sample code that produces this error?
In the case of an error do you have a stack trace or adb logs?
Description of the problem:
Hello i have to decode qrcode using the otaliastudios.cameraview library there is a frameprocessor
i have this result
direct decode exception com.google.zxing.NotFoundException DecodeHintType.PURE_BARCODE exception com.google.zxing.NotFoundException
i try to decode directly the byte[] data
` if (frame.getDataClass() == byte[].class) { byte[] data = frame.getData();
//convert the image to a binary bitmap source LuminanceSource source = new BufferedImageLuminanceSource(is); BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
//decode the barcode QRCodeReader reader = new QRCodeReader();
Which library version are you using? E.g. 3.2.0.
com.journeyapps:zxing-android-embedded:4.2.0
Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5, Android 5.0)
huawei mate xs
Does the same happen on other devices or an emulator?
Can you reproduce the issue in the sample project included with the library? If not, can you provide your own sample project or sample code that produces this error?
In the case of an error do you have a stack trace or adb logs?