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

Document using the image crate to load images #44

Closed ccouzens closed 2 years ago

ccouzens commented 2 years ago

My comment about tiff and windows is because of this documentation https://tpgit.github.io/Leptonica/leptprotos_8h.html#a027a927dc3438192e3bdae8c219d7f6a

On windows, this will only read tiff formatted files from memory. For other formats, it requires fmemopen(3). Attempts to read those formats will fail at runtime. (3)

Whilst it won't resolve the issue, this is my first step at tackling https://github.com/houqp/leptess/issues/43. The next step will be to add and use the leptonica methods that support tiff from disk and PixA.