IDE: Eclipse/IDEA
Device with Android

Hello to all!

i use zxing for scan QR from image from gallery:
RGBLuminanceSource rgbls = new RGBLuminanceSource(img.getWidth(), 
img.getHeight(), img.getRGB());
Binarizer binarizer = new HybridBinarizer(rgbls);
BinaryBitmap binBitmap = new BinaryBitmap(binarizer);
Result qrCodeResult = new MultiFormatReader().decode(binBitmap);

If image is sterile how https://ib43.ru/qr.gif then all ok
but if image like https://ib43.ru/qr3.jpg than the program hangs

Desktop version of zxing hood work with both via 
BufferedImageLuminanceSource(img)

How i can scan QR code from image, not from camera?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a11f671f-8504-4c6e-9e7e-50f04c9eef2e%40googlegroups.com.
  • [codenameone... 'Григорий Гилазев' via CodenameOne Discussions
    • [codena... Shai Almog
      • [co... 'Григорий Гилазев' via CodenameOne Discussions
        • ... Shai Almog
          • ... 'Григорий Гилазев' via CodenameOne Discussions

Reply via email to