Java 类com.google.zxing.multi.qrcode.QRCodeMultiReader 实例源码

项目:StreamingQR    文件:Receive.java   
/**
 * Detects and decode multiple QR codes from a single luminance image.
 * Collection of results may be empty if no QR codes were detected.
 *
 * @param lumSrc The luminance image containing QR codes to decode.
 * @param hints Hints to help the ZXing barcode reader find the QR code easier
 * @throws NotFoundException if there was problem detecting or decoding QR
 * code from image {@source lumSrc}.
 */
protected static Iterable<Result> decodeMultiple(LuminanceSource lumSrc,
    Map<DecodeHintType,?> hints) throws NotFoundException {
   BinaryBitmap bmap = toBinaryBitmap(lumSrc);
   Result rawResult[] = new QRCodeMultiReader().decodeMultiple(bmap, hints);
   return Arrays.asList(rawResult);
 }