我使用 编译了它leptonica
。这是一个具有透明背景的 png 图像,我对其进行了编辑,添加了蓝色,但仍然出现此错误:
Tesseract Open Source OCR Engine v3.02.02 with Leptonica
Empty page!!
Empty page!!
这是图像输入:
答案1
尝试 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.
答案2
答案3
Tesseract 未经过手写识别训练。也不知道它如何处理这些颜色。
您可以尝试使用该笔迹来训练四面体......