Leptess
High level Rust binding for Tesseract and Leptonica.
On top of the vanilla C API, it adds the following features:
- Iterator for array like types
- Drop trait for automatic memory management
Build dependencies
Make sure you have Leptonica and Tesseract installed.
For Ubuntu user:
Usage
Minimal example:
let api = new;
api.init;
let pix = pix_read.unwrap;
api.set_image;
println!;
api.destroy;
pix.destroy;
For more examples, see examples
directory.
Development
Regenerate capi binding:
make gen