9 releases (4 breaking)

✓ Uses Rust 2018 edition

0.5.2 Feb 2, 2020
0.5.1 Dec 27, 2019
0.4.1 Nov 13, 2019
0.4.0 Oct 17, 2019
0.1.0 Feb 25, 2017

#127 in Images

Download history 35/week @ 2020-03-16 44/week @ 2020-03-23 12/week @ 2020-03-30 47/week @ 2020-04-06 64/week @ 2020-04-13 25/week @ 2020-04-20 21/week @ 2020-04-27 47/week @ 2020-05-04 64/week @ 2020-05-11 37/week @ 2020-05-18 28/week @ 2020-05-25 46/week @ 2020-06-01 21/week @ 2020-06-08 36/week @ 2020-06-15 24/week @ 2020-06-22 34/week @ 2020-06-29

174 downloads per month
Used in 3 crates

MIT license

80KB
94 lines

tesseract-sys

Rust bindings for Tesseract

Building

This links to the C libraries leptonica and tesseract.

On Ubuntu and derivatives the additional dependencies can be installed by running:

sudo apt-get install libleptonica-dev libtesseract-dev clang

On Fedora 30 the additional dependencies can be installed by running:

sudo dnf install leptonica-devel tesseract-devel clang

On Termux 2019 (Android, Android on Chromebooks) the additional dependencies can be installed by running:

pkg install libclang leptonica-dev tesseract-dev

Building on Windows

On Windows, this library uses Microsoft's vcpkg to provide tesseract.

Please install vcpkg and set up user wide integration or vcpkg crate won't be able to find a library. By default vcpkg installs 32 bit libraries. If you need 64 bit libraries then set following environment variable

To install tesseract

REM from the vcpkg directory

REM 32 bit
.\vcpkg install tesseract:x86-windows

REM 64 bit
.\vcpkg install tesseract:x64-windows

vcpkg allows building either dynamically or statically linked application

if you prefer dynamic linking

SET VCPKGRS_DYNAMIC=true

for statically linked libraries

SET RUSTFLAGS=-Ctarget-feature=+crt-static

To run the tests please download the English trained data to this directory and set

SET TESSDATA_PREFIX=.

Dependencies

~0–1.4MB
~29K SLoC