unable to read DataMatrix

オープン
#459 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp

調査の方向性

Start with the reader setup in the issue: a DecodingOptions with TryInverted, TryHarder and AssumeGS1, passed to a BarcodeReader with AutoRotate set to true. Reproduce against the three attached DataMatrix images, where the first decodes, the second decodes only after manual inversion and rotation, and the third fails. Comparing how the detector handles the inverted and rotated cases is where the work lies. Done would mean the third image decodes with AutoRotate enabled, which the issue does not yet show a path to.

索引モデルが issue の本文から書いたものです。

説明

I'm having hard time decoding a certain DM barcode.

  1. this one is decoded just fine:
    Unknown_Code_img250p0 03

  2. this one is decoded just after I invert and rotate the bitmap manually until i get the code:
    bcr_dtmx_25

  3. but this one is not working:
    Unknown_Code

this is the reader:
var options = new DecodingOptions()
{
TryInverted = true,
TryHarder = true,
AssumeGS1 = true,
PossibleFormats = new List()
{
BarcodeFormat.QR_CODE,
BarcodeFormat.CODE_39,
BarcodeFormat.CODE_93,
BarcodeFormat.CODE_128,
BarcodeFormat.CODABAR,
BarcodeFormat.DATA_MATRIX
}
};

         var reader = new ZXing.BarcodeReader()
        {
            AutoRotate = true,
            Options = options
        };

       zxingResult = reader.Decode(bitmap);

as you can see, the autoRotate=true, but the second barcode is decoded just when I rotate it manualy.

does anyone have an idea what can i do?

主要言語
C#
スター
3.1k
フォーク
704
平均マージ
13日 17時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

micjahn/ZXing.Net のほかの issue

micjahn/ZXing.Net の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。