我从源代码编译它leptonica。这是一个具有透明背景的 png 图像,我对其进行了编辑,添加了蓝色,但仍然出现此错误:
Tesseract Open Source OCR Engine v3.02.02 with Leptonica
Empty page!!
Empty page!!
Run Code Online (Sandbox Code Playgroud)
这是图像输入:

小智 6
试试psm选项。
-psm N
Set Tesseract to only run a subset of layout analysis and assume a certain form of image. The options for N 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.
Run Code Online (Sandbox Code Playgroud)
参考:http : //hilojack.sinaapp.com/?p=866
| 归档时间: |
|
| 查看次数: |
20578 次 |
| 最近记录: |