Problem in converting image to BinaryBitmap..

47 views
Skip to first unread message

Abdul Shaikh

unread,
Dec 15, 2017, 5:07:17 AM12/15/17
to zxing
Hi,I want to decode QR code and have to find four points in QR code. Here is my code..

Reader reader=null;
Result result = null;
BinaryBitmap bitmap=null;
int width = bMap.getWidth();
int height = bMap.getHeight();
int[] intArray = new int[width * height];
bMap.getPixels(intArray, 0, width, 0, 0, width, height);
RGBLuminanceSource source = new RGBLuminanceSource(width, height, intArray);
bitmap = new BinaryBitmap(new HybridBinarizer(source));
reader = new MultiFormatReader();
result = reader.decode(bitmap);

The Problem is that BinaryBitmap is showing "object have been collected cannot evaluat com.google.zxing.common.BitMatrix.tostring" that's the reason my result showing everytime null value.can anybody have any idea about it??

Reply all
Reply to author
Forward
0 new messages