Can't detect DataMatrix unless UPC_E is enabled
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- computer-vision
Research direction
Start from the BarcodeReader and DecodingOptions setup in the report, and compare what happens when PossibleFormats is DATA_MATRIX alone versus UPC_E plus DATA_MATRIX. Reproduce with an image containing both a DataMatrix and a Code128 barcode, using TryHarder and AutoRotate as in the report. Done when DataMatrix is found with only DATA_MATRIX enabled, or when the cause of the dependency on UPC_E is identified and explained.
Written by the indexing model from the issue text.
Description
Is there a dependency between UPC_E and DataMatrix? For example with this config ZXing.Net fails to find a DataMatrix barcode in an image that also has a Code128 barcode:
var reader = new BarcodeReader
{
AutoRotate = true,
Options = new DecodingOptions
{
TryHarder = true,
PossibleFormats = [
BarcodeFormat.DATA_MATRIX
]
}
};
However if I use either of these configurations, it finds the DataMatrix:
var reader = new BarcodeReader
{
AutoRotate = true,
Options = new DecodingOptions
{
TryHarder = true,
PossibleFormats = [
BarcodeFormat.UPC_E,
BarcodeFormat.DATA_MATRIX
]
}
};
var reader = new BarcodeReader
{
AutoRotate = true,
Options = new DecodingOptions
{
TryHarder = true
}
};
I'd prefer to only enable the barcodes I'm interested in for efficiency, but leaving everything enabled is a workaround. ZXing.Net does find a UPC_E barcode in the image, but it's a false positive.
- Dominant language
- C#
- Stars
- 3.1k
- Forks
- 704
- Avg merge
- 13d 17h
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from micjahn/ZXing.Net
-
crop() overrides document "0 <= top <= Height"; should be top < Height like left < WidthPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 Half a day Newbie friendliness 22/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 12/100
All issues in micjahn/ZXing.Net
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area: core priority: low type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
RicoSuter/Namotion.Interceptor#863 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitfoundation/bitplatform#14428 · 1 comment ·
Maintainers usually reply within 1 day
-
area-cli
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
0.3.0
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day