2017-02-03 14:37:39 +08:00
|
|
|
name: tesseract
|
2018-09-03 16:17:47 +08:00
|
|
|
version: git
|
2017-02-03 14:37:39 +08:00
|
|
|
summary: open source optical character recognition engine
|
|
|
|
description: |
|
|
|
|
Tesseract has unicode (UTF-8) support, and can recognize more than 100
|
|
|
|
languages "out of the box". It can be trained to recognize other languages.
|
|
|
|
Tesseract supports various output formats: plain-text, hocr(html), pdf.
|
|
|
|
|
2018-09-03 16:45:08 +08:00
|
|
|
If you want to access the files under /media/* or /run/media/* you'll have
|
|
|
|
to connect the snap to the `core` snap's `removable-media` interface:
|
|
|
|
|
|
|
|
$ sudo snap connect tesseract:removable-media
|
|
|
|
|
2018-09-03 16:20:15 +08:00
|
|
|
grade: stable # must be 'stable' to release into candidate/stable channels
|
2017-02-03 14:37:39 +08:00
|
|
|
confinement: strict
|
2023-03-31 04:42:33 +08:00
|
|
|
base: core22
|
2017-02-03 14:37:39 +08:00
|
|
|
|
|
|
|
apps:
|
|
|
|
tesseract:
|
2023-03-31 04:42:33 +08:00
|
|
|
command: usr/local/bin/tesseract
|
|
|
|
environment:
|
|
|
|
TESSDATA_PREFIX: $SNAP_USER_COMMON
|
2018-09-03 16:45:08 +08:00
|
|
|
plugs:
|
|
|
|
- home
|
|
|
|
- removable-media
|
2017-02-03 14:37:39 +08:00
|
|
|
|
|
|
|
parts:
|
|
|
|
tesseract:
|
|
|
|
source: .
|
|
|
|
plugin: autotools
|
|
|
|
build-packages:
|
|
|
|
- pkg-config
|
2023-03-31 04:42:33 +08:00
|
|
|
- libpng-dev
|
|
|
|
- libjpeg-dev
|
|
|
|
- libtiff-dev
|
2017-02-03 14:37:39 +08:00
|
|
|
- zlib1g-dev
|
|
|
|
- libicu-dev
|
|
|
|
- libpango1.0-dev
|
|
|
|
- libcairo2-dev
|
2018-09-03 17:13:06 +08:00
|
|
|
stage-packages:
|
|
|
|
- libgomp1
|
2017-02-03 14:37:39 +08:00
|
|
|
after: [leptonica]
|
|
|
|
leptonica:
|
2023-04-03 21:09:22 +08:00
|
|
|
source: https://github.com/DanBloomberg/leptonica/archive/1.83.1.tar.gz
|
2017-02-03 14:37:39 +08:00
|
|
|
plugin: autotools
|
2018-09-03 17:13:06 +08:00
|
|
|
stage-packages:
|
|
|
|
- libjbig0
|
|
|
|
- libjpeg-turbo8
|
|
|
|
- libopenjp2-7
|
2018-09-03 17:13:45 +08:00
|
|
|
- libtiff5
|