Skip to content

Commit

Permalink
Initial commit for using devel, currently v5
Browse files Browse the repository at this point in the history
  • Loading branch information
dinurp committed May 27, 2020
1 parent e3e5c27 commit ce9d32e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ mkdir -p tesseract-ocr-mrz/DEBIAN
cat - > tesseract-ocr-mrz/DEBIAN/control <<EOF
Package: tesseract-ocr-mrz
Source: tesseract-lang
Version: 4.00~git-0f039b
Version: 5.00~git-0f039b
Architecture: all
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Recommends: tesseract-ocr (>= 3.99)
Breaks: tesseract-ocr (<< 3.99)
Recommends: tesseract-ocr (>= 4.99)
Breaks: tesseract-ocr (<< 4.99)
Replaces: tesseract-ocr-data (<< 2)
Provides: tesseract-ocr-lang, tesseract-ocr-language
Section: graphics
Expand All @@ -26,8 +26,8 @@ Description: tesseract-ocr language files for Machine Readable Zone (MRZ)
needed for processing images of MRZ in ID documents..
EOF
mkdir -p tesseract-ocr-mrz/usr/share/tesseract-ocr/4.00/tessdata
wget -O tesseract-ocr-mrz/usr/share/tesseract-ocr/4.00/tessdata/mrz.traineddata \
mkdir -p tesseract-ocr-mrz/usr/share/tesseract-ocr/5/tessdata
wget -O tesseract-ocr-mrz/usr/share/tesseract-ocr/5/tessdata/mrz.traineddata \
https://github.com/DoubangoTelecom/tesseractMRZ/raw/master/tessdata_best/mrz.traineddata
find tesseract-ocr-mrz -type d | xargs chmod 755
Expand Down
6 changes: 5 additions & 1 deletion apt.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---
cleancache: true
keys:
- https://keyserver.ubuntu.com/pks/lookup?op=hget&search=f62da1192e5f8be6fed611fb367b3e8a
repos:
- deb http://ppa.launchpad.net/alex-p/tesseract-ocr-devel/ubuntu bionic main
packages:
- tesseract-ocr
- https://github.com/dinurp/tesseract-in-cf/releases/download/v0.01-staging/tesseract-ocr-mrz.deb
- https://github.com/dinurp/tesseract-in-cf/releases/download/v0.01-v5-staging/tesseract-ocr-mrz.deb
4 changes: 2 additions & 2 deletions manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
applications:
- name: tesseract-v4
- name: tesseract-v5
random-route: true
path: .
memory: 128M
command: python server.py
env:
TESSDATA_PREFIX: ../deps/0/apt/usr/share/tesseract-ocr/4.00/tessdata
TESSDATA_PREFIX: ../deps/0/apt/usr/share/tesseract-ocr/5/tessdata
FLASK_ENV: development
buildpacks:
- https://github.com/cloudfoundry/apt-buildpack
Expand Down

0 comments on commit ce9d32e

Please sign in to comment.