• 【Linux】linux部署tesseract


    依赖

    安装centos系统依赖

    • yum install -y automake autoconf libtool gcc gcc-c++ 

    • yum install -y libpng-devel libjpeg-devel libtiff-devel

    安装leptonica

    github: https://github.com/danbloomberg/leptonica

    • git clone https://github.com/danbloomberg/leptonica
    • cd leptonica
    • ./autogen.sh
    • ./configure
    • make
    • make install

    安装tesseract-ocr

    github: https://github.com/tesseract-ocr/tesseract

    • git clone https://github.com/tesseract-ocr/tesseract
    • cd tesseract
    • ./autogen.sh
    • ./configure
    • make
    • make install
    • ldconfig

    下载训练库

    https://github.com/jiangxd0716/tessdata

    放入 /usr/local/share/tessdata

    检查

    [root@booking conf.d]# tesseract --version
    tesseract 5.0.0
     leptonica-1.82.0
      libjpeg 6b (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11
     Found AVX2
     Found AVX
     Found FMA
     Found SSE4.1
     Found OpenMP 201511

    代码部署

    添加依赖包,可在 http://tess4j.sourceforge.net/ 下载。

    github代码:https://github.com/jiangxd0716/ocr

  • 相关阅读:
    java后台打开浏览器代码
    java国际化
    Struts2之action 之 感叹号 ! 动态方法调用
    ssh框架总结之action接收参数的三种方式
    电脑开机过程
    4.18quaternion rotation
    4.2
    "hello,world"lena
    bash 简介
    SCHEDULE
  • 原文地址:https://www.cnblogs.com/jxd283465/p/15796555.html
Copyright © 2020-2023  润新知