- Notifications
You must be signed in to change notification settings - Fork9.4k
Fix SYMBOLOGY_IDENTIFIER Loss in QRCodeMultiReader to Ensure Data Integrity and Functional Consistency with QRCodeReader#1839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
srowen commentedAug 1, 2024
I think this is probably OK but can you explain it? |
xiebaiyuan commentedAug 1, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thx~ In some scenarios, it is necessary to use this marker to determine that the QR code is also a GS1 code, i.e., ]Q3. QrCodeReader already supports this capability. In some cases, having multiple codes is also necessary, hence this PR. |
srowen commentedAug 1, 2024
Right, can you explain the value here, any reference to specs or sources? |
xiebaiyuan commentedAug 2, 2024
Thank you for your feedback. I have updated the PR description and added references to the relevant specifications and sources. Please review the latest PR description and comments to ensure they meet your requirements. |
Uh oh!
There was an error while loading.Please reload this page.
Background
The current use of
QRCodeMultiReaderhas an issue with the loss ofSYMBOLOGY_IDENTIFIER. This affects the ability to accurately determine if a QR code is GS1-compliant, as GS1-QR codes can be identified by theSYMBOLOGY_IDENTIFIERfield being]Q3(refer toGS1 Barcode Specifications).Changes
Added handling logic for
SYMBOLOGY_IDENTIFIERin theQRCodeMultiReaderclass, incorporating it into the decoding result metadata.Benefits
SYMBOLOGY_IDENTIFIERinformation is preserved, improving the completeness of decoding results.SYMBOLOGY_IDENTIFIERinformation, such as ]Q3 for GS1-QR.QRCodeMultiReadercapabilities with those ofQRCodeReader.Technical Details
result.putMetadata(ResultMetadataType.SYMBOLOGY_IDENTIFIER, "]Q" + decoderResult.getSymbologyModifier());in thedecodeMultiplemethod.Reference