goja-rapid/src/main/java/goja/rapid/qrcode/QRCode.java
public static String from(BufferedImage qrcodeImage) {
        final LuminanceSource source = new BufferedImageLuminanceSource(qrcodeImage);
        final BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
        String content;
        try {
            Result result = new QRCodeReader().decode(bitmap);
            content = result.getText();
        } catch (NotFoundException e) {
            throw new RuntimeException(e);
        } catch (ChecksumException e) {
            throw new RuntimeException(e);
        } catch (FormatException e) {
            throw new RuntimeException(e);
        }
        return content;
    }
public static String from(BufferedImage qrcodeImage) {
        final LuminanceSource source = new BufferedImageLuminanceSource(qrcodeImage);
        final BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
        String content;
        try {
            Result result = new QRCodeReader().decode(bitmap);
            content = result.getText();
        } catch (NotFoundException e) {
            throw new RuntimeException(e);
        } catch (ChecksumException e) {
            throw new RuntimeException(e);
        } catch (FormatException e) {
            throw new RuntimeException(e);
        }
        return content;
    }
public static String from ( BufferedImage qrcodeImage ) { final LuminanceSource source = new BufferedImageLuminanceSource ( qrcodeImage ) ; final BinaryBitmap bitmap = new BinaryBitmap ( new HybridBinarizer ( source ) ) ; String content ; try { Result result = new QRCodeReader ( ) . decode ( bitmap ) ; content = result . getText ( ) ; } catch ( NotFoundException e ) { throw new RuntimeException ( e ) ; } catch ( ChecksumException e ) { throw new RuntimeException ( e ) ; } catch ( FormatException e ) { throw new RuntimeException ( e ) ; } return content ; }
从指定的 QRCode 图像对象中解析出其内容。

@param qrcodeImage QRCode 图像对象
@return QRCode 中的内容
从指定的 QRCode 图像对象中解析出其内容。