1 Star 0 Fork 39

hxbank/Tesseract-OCR

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
Egor Pugin 提交于 2021-03-08 03:02 . Update .travis.yml
# Travis CI configuration for Tesseract
sudo: false
notifications:
email: false
language: cpp
os: linux
dist: focal
arch:
- amd64
- arm64
- ppc64le
- s390x
compiler:
- gcc
- clang
env:
- LEPT_VER=1.80.0
cache:
directories:
- leptonica-$LEPT_VER
before_install:
- sudo apt-get install libpango1.0-dev libicu-dev libtiff5-dev -y
- rm -rf leptonica-$LEPT_VER/usr
install:
- if test ! -d leptonica-$LEPT_VER/src; then curl -Ls https://github.com/DanBloomberg/leptonica/archive/$LEPT_VER.tar.gz | tar -xz; fi
- if test ! -d leptonica-$LEPT_VER/usr; then cmake -Hleptonica-$LEPT_VER -Bleptonica-$LEPT_VER/build -DCMAKE_INSTALL_PREFIX=leptonica-$LEPT_VER/usr; fi
- if test ! -e leptonica-$LEPT_VER/usr/lib/libleptonica.so; then make -C leptonica-$LEPT_VER/build install; fi
script:
- mkdir build
- cd build
- cmake .. -DLeptonica_DIR=leptonica-$LEPT_VER/build -DSW_BUILD=OFF
- make
- sudo make install
#after_script: # let those commands trigger build errors
- tesseract -v
- text2image -v
- lstmtraining -v
- ls /home/travis/build/tesseract-ocr/tesseract/test/testing/*.tif
- wget https://github.com/egorpugin/tessdata/raw/master/tessdata/eng.traineddata
- tesseract /home/travis/build/tesseract-ocr/tesseract/test/testing/phototest.tif - -l eng --tessdata-dir ./
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/luoshsh/Tesseract-OCR.git
git@gitee.com:luoshsh/Tesseract-OCR.git
luoshsh
Tesseract-OCR
Tesseract-OCR
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385