Use sizeof instead of constant.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Check if Tesseract Init failed.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>