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

Update function for fallback resolution, mimick behavior of tesseract #8

Closed timvisee closed 4 years ago

timvisee commented 4 years ago

This PR updates the behavior of the set_fallback_source_resolution function. It shouldn't only fallback if the DPI is 0, and it should only fallback if the user didn't explicitly specify a DPI.

More information: https://github.com/houqp/leptess/issues/6#issuecomment-541464674

Fixes #6