错误:
tesserocr.cpp:653:10: fatal error: leptonica/allheaders.h: 没有那个文件或目录
#include "leptonica/allheaders.h"
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
解决办法: sudo apt install libleptonica-dev
sudo apt install libtesseract-dev
原文:https://blog.csdn.net/u011148366/article/details/75674845