docker安装tesseract镜像的坑

docker安装tesseract镜像的坑

欢迎使用Markdown编辑器

1号坑位:
[root@VM_0_15_centos docker]# tesseract 1.png out
Tesseract Open Source OCR Engine v4.00.00alpha with Leptonica
Error in fopenReadStream: file not found
Error in findFileFormat: image file not found
Error during processing.
ObjectCache(0x7f321acc1bc0)::~ObjectCache(): WARNING! LEAK! object 0x20e93d0 still has count 1 (id /usr/local/share/tessdata/eng.traineddatapunc-dawg)
ObjectCache(0x7f321acc1bc0)::~ObjectCache(): WARNING! LEAK! object 0x20e91e0 still has count 1 (id /usr/local/share/tessdata/eng.traineddataword-dawg)
ObjectCache(0x7f321acc1bc0)::~ObjectCache(): WARNING! LEAK! object 0x20e9290 still has count 1 (id /usr/local/share/tessdata/eng.traineddatanumber-dawg)
ObjectCache(0x7f321acc1bc0)::~ObjectCache(): WARNING! LEAK! object 0x20e9340 still has count 1 (id /usr/local/share/tessdata/eng.traineddatabigram-dawg)
ObjectCache(0x7f321acc1bc0)::~ObjectCache(): WARNING! LEAK! object 0x20f12a0 still has count 1 (id /usr/local/share/tessdata/eng.traineddatafreq-dawg)
docker安装tesseract镜像的坑_第1张图片
docker安装tesseract镜像的坑_第2张图片

2号坑位:语言包目录
ocr语言包放置路径
拷贝进这个路径/usr/local/share/tessdata/ 没有就自己新建
docker安装tesseract镜像的坑_第3张图片

使用的docker镜像
vimagick/tesseract
docker安装tesseract镜像的坑_第4张图片

你可能感兴趣的:(docker安装tesseract镜像的坑)