0

OCRサンプルアプリに小さなテキストを認識させようとしていますが、それをどのように行っているかは、画像のサイズを変更することです。画像のサイズを変更すると、すべて「pixel-ee」になります

SmothGaussian メソッドを使用してクリーンアップしたいのですが、メソッドを実行するたびにエラーが発生します

コードは次のとおりです。

Image<Bgr, Byte> image = new Image<Bgr, byte>(openImageFileDialog.FileName);

           using (Image<Gray, byte> gray = image.Convert<Gray, Byte>().Resize(800, 600, Emgu.CV.CvEnum.INTER.CV_INTER_LINEAR, true))
           {

               gray.Convert<Gray, Byte>()._SmoothGaussian(4);



              _ocr.Recognize(gray);
              Tesseract.Charactor[] charactors = _ocr.GetCharactors();
              foreach (Tesseract.Charactor c in charactors)
              {
                  image.Draw(c.Region, drawColor, 1);
              }

              imageBox1.Image = image;

              //String text = String.Concat( Array.ConvertAll(charactors, delegate(Tesseract.Charactor t) { return t.Text; }) );
              String text = _ocr.GetText();
              ocrTextBox.Text = text;
           }

画像は次のとおりです。

ここに画像の説明を入力

4

1 に答える 1