OCR Tesseract,空页错误?

Jim*_*Jim 7 ocr tesseract-ocr

我从源代码编译它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


小智 2

Tesseract 没有经过训练来识别手写体。也不知道这些颜色有什么作用。

你可以尝试用那个笔迹来训练超正方体......