-
-
Notifications
You must be signed in to change notification settings - Fork 403
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Allow scanning more GS1 barcodes #8911
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8911 +/- ##
==========================================
+ Coverage 46.09% 46.32% +0.23%
==========================================
Files 64 64
Lines 19837 19897 +60
Branches 4801 4810 +9
==========================================
+ Hits 9143 9217 +74
+ Misses 9513 9501 -12
+ Partials 1181 1179 -2
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Currently missing: |
@hangy We're having the Product Opener call in 20 minutes if you'd like to present the PR >>> https://meet.google.com/nnw-qswu-hza |
7ba9537
to
fdb84b7
Compare
- Remove redundant `$` - Fix scope of `$ai_data_str` - Some regexes
- libzxing-dev requires a the current Debian stable, bookworm. - libapache2-request-perl is only available via backports for bookworm.
test: Add first unittest for GS1 DataMatrix code Thanks to @tonycoz (TONYC on cpan) for implementing Imager::zxing!
- Ensure that more GS1 Data Link URI formats can be 'normalized' - URIs that cannot be a GS1 Data Link should not be treated as an product code
fc27db2
to
074b1cc
Compare
074b1cc
to
16ebb60
Compare
Kudos, SonarCloud Quality Gate passed! |
* chg: Support GS1 barcodes for code normalization * fix: Minor mistakes - Remove redundant `$` - Fix scope of `$ai_data_str` - Some regexes * fix: perl tidy and critic * test: Add additional test for normalization * chg: Catch GS1::SyntaxEngine exceptions * test: Some more cases * fix: Don't try to normalize undef code * test: Add additional tests for `normalize_code` - Ensure that more GS1 Data Link URI formats can be 'normalized' - URIs that cannot be a GS1 Data Link should not be treated as an product code * docs: Update POD for `normalize_code()` * fix: URI and URL should both be valid in code * test: Add some image test [WIP] * test: Some more cases * deps(cpan): Add Imager::zxing to support DataMatrix barcodes - libzxing-dev requires a the current Debian stable, bookworm. - libapache2-request-perl is only available via backports for bookworm. * feat: Use Imager::zxing to decode DataMatrix codes test: Add first unittest for GS1 DataMatrix code Thanks to @tonycoz (TONYC on cpan) for implementing Imager::zxing! * test: Add tests for GS1 Data URI with QR Code and DataMatrix * test: Add tests for some GS1 DataBar variants * deps: Revert to debian bullseye, and install zxing-cpp 2.1.0 manually See #8911 (comment) for discussion * style: Fix indentation --------- Co-authored-by: Alex Garel <[email protected]>
What
Use the official GS1 parser library to extract more types of barcodes from images, as to support the GS1 "Sunrise 2027" initiative.
Related issue(s) and discussion