Tesseract 生成 box 时找不到相关文件

问题

tif 图片生成 box 的过程中出现如下错误:

read_params_file: Can't open batch.nochop
read_params_file: Can't open makebox

解决方法

下载源码,将 https://github.com/tesseract-ocr/tesseract/tree/master/tessdata 目录拷贝至 /usr/local/share/tessdata

之后使用 export TESSDATA_PREFIX=/usr/local/share/ 即可。

猜你喜欢

转载自www.cnblogs.com/StarUDream/p/9045525.html
Box