美文网首页Tesseract
tesseract linux 安装与编译

tesseract linux 安装与编译

作者: RobertY | 来源:发表于2017-07-29 13:31 被阅读274次

    安装Leptonica依赖包

    下载Leptonica最新版本
    tar xvf leptonica* //解压
    cd leptonica
    ./configure
    make
    sudo make install

    安装以下依赖项

    sudo apt-get install g++ # or clang++ (presumably)
    sudo apt-get install autoconf automake libtool
    sudo apt-get install autoconf-archive
    sudo apt-get install pkg-config
    sudo apt-get install libpng12-dev
    sudo apt-get install libjpeg8-dev
    sudo apt-get install libtiff5-dev
    sudo apt-get install zlib1g-dev
    

    如果打算安装训练工具

    sudo apt-get install libicu-dev
    sudo apt-get install libpango1.0-dev
    sudo apt-get install libcairo2-dev
    

    安装tesseract

    cd tesseract
    ./autogen.sh
    ./configure --prefix=$HOME/local/
    make
    sudo make install
    
    make training
    sudo make training-install

    相关文章

      网友评论

        本文标题:tesseract linux 安装与编译

        本文链接:https://www.haomeiwen.com/subject/bttclxtx.html