leptess 0.14.0

Productive Rust binding for Tesseract and Leptonica.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate leptess;

use leptess::{leptonica, tesseract};
use std::path::Path;

fn main() {
    let mut api = tesseract::TessApi::new(None, "eng").unwrap();

    let pix = leptonica::pix_read(Path::new("./tests/di.png")).unwrap();
    api.set_image(&pix);

    if api.get_source_y_resolution() <= 0 {
        api.set_source_resolution(70)
    }
}