Tesseract OCR - recognize checkboxes as word
<p>for a customer I want to teach Tesseract to recognize checkboxes as a word. It worked fine when Tesseract should recognize a empty checkbox.</p>

<p>This command in combination with <a href="http://www.joyofdata.de/blog/a-guide-on-ocr-with-tesseract-3-03/" rel="noreferrer">this</a> tutorial worked like a charm and Tesseract was able to find empty checkboxes and interpret them to "[_]":</p>

<pre><code>tesseract -psm 10 deu2.unchecked1.exp0.JPG deu2.unchecked1.exp0.box nobatch box.train
</code></pre>

<p>Here is my command to successful analyze a document:</p>

<pre><code>tesseract test.png test -l deu1+deu2
</code></pre>

<p>Then I tried to train a checked checkbox, but got this error:</p>

<pre><code>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
</code></pre>

<p>Does anyone have an idea how to teach Tesseract recognize checked checkboxes as well?</p>

<p>Thank you in advance!</p>