houqp / leptess

Productive and safe Rust binding for leptonica and tesseract
https://houqp.github.io/leptess/leptess/index.html
MIT License
258 stars 28 forks source link

Supported image types #52

Closed yosefahab closed 1 year ago

yosefahab commented 1 year ago

Is the image crate (or others) supported ? i need to apply intensive image processing tasks before passing them to leptess and i'm not sure if Pix is flexible enough.

ccouzens commented 1 year ago

Hi, yes indirectly

See this example

https://github.com/houqp/leptess/blob/master/examples/set_from_image_crate.rs

Probably we should make it easier by having an optional feature that provides a more direct method.