对于我想教 Tesseract 将复选框识别为单词的客户。当 Tesseract 应该识别一个空的复选框时,它工作得很好。
此命令与本教程结合使用,效果非常好,Tesseract 能够找到空复选框并将它们解释为“[_]”:
tesseract -psm 10 deu2.unchecked1.exp0.JPG deu2.unchecked1.exp0.box nobatch box.train
Run Code Online (Sandbox Code Playgroud)
这是我成功分析文档的命令:
tesseract test.png test -l deu1+deu2
Run Code Online (Sandbox Code Playgroud)
然后我尝试训练一个选中的复选框,但得到了这个错误:
Tesseract Open Source OCR Engine v3.04.00 with Leptonica
FAIL!
APPLY_BOXES: boxfile line 1/[X] ((60,30),(314,293)): FAILURE! Couldn't find a matching blob
APPLY_BOXES:
Boxes read from boxfile: 1
Boxes failed resegmentation: 1
Found 0 good blobs.
Generated training data for 0 words
Run Code Online (Sandbox Code Playgroud)
有没有人知道如何教 Tesseract 识别选中的复选框?
先感谢您!