5 Star 0 Fork 6

src-openEuler/zxing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Fix-SYMBOLOGY_IDENTIFIER-loss-in-QRCodeMultiReader.patch 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
From 34588d87a11a5d4626ed18c30a49238dcab72312 Mon Sep 17 00:00:00 2001
From: xiebaiyuan <xiebaiyuan@139.com>
Date: Thu, 1 Aug 2024 16:46:32 +0800
Subject: [PATCH] Fix SYMBOLOGY_IDENTIFIER loss in QRCodeMultiReader
---
.../java/com/google/zxing/multi/qrcode/QRCodeMultiReader.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/core/src/main/java/com/google/zxing/multi/qrcode/QRCodeMultiReader.java b/core/src/main/java/com/google/zxing/multi/qrcode/QRCodeMultiReader.java
index c3663498b8..e5699e4768 100644
--- a/core/src/main/java/com/google/zxing/multi/qrcode/QRCodeMultiReader.java
+++ b/core/src/main/java/com/google/zxing/multi/qrcode/QRCodeMultiReader.java
@@ -83,6 +83,9 @@ public Result[] decodeMultiple(BinaryBitmap image, Map<DecodeHintType,?> hints)
result.putMetadata(ResultMetadataType.STRUCTURED_APPEND_PARITY,
decoderResult.getStructuredAppendParity());
}
+ // Fix SYMBOLOGY_IDENTIFIER loss in QRCodeMultiReader
+ result.putMetadata(ResultMetadataType.SYMBOLOGY_IDENTIFIER, "]Q" + decoderResult.getSymbologyModifier());
+
results.add(result);
} catch (ReaderException re) {
// ignore and continue
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/zxing.git
git@gitee.com:src-openeuler/zxing.git
src-openeuler
zxing
zxing
master

搜索帮助