1

私は Tess4j を使用して光学認識を行います。これは、プログラムに与えるほとんどの写真で非常にうまく機能します。Sudoku でスキャンしたグリッドを 81 個のボックスにカットしました。しかし、数字を含む正方形を取得すると、Tess4j は数字を検出できません。なぜかわかりませんが、数字は白地に黒です。誰でも私を助けてくれますか?

ご回答ありがとうございます。

4

1 に答える 1

0

Tesseract が最適な結果を得るために必要なさまざまなページ セグメンテーション モード (PSM) を試すことができます。

pagesegmode values are:
0 = Orientation and script detection (OSD) only.
1 = Automatic page segmentation with OSD.
2 = Automatic page segmentation, but no OSD, or OCR
3 = Fully automatic page segmentation, but no OSD. (Default)
4 = Assume a single column of text of variable sizes.
5 = Assume a single uniform block of vertically aligned text.
6 = Assume a single uniform block of text.
7 = Treat the image as a single text line.
8 = Treat the image as a single word.
9 = Treat the image as a single word in a circle.
10 = Treat the image as a single character.
于 2013-03-28T23:38:10.187 に答える