Closed yosefahab closed 1 year ago
I am pretty sure there is a way to configure the logging verbosity in the C API, we just need to find it and expose it through the Rust interface.
@yosefahab you can get rid of the warning by calling set_source_resolution
explicitly after set_image
(more info), i.e.
let mut lt = leptess::LepTess::new(None, "eng").unwrap();
lt.set_image(img_uri).unwrap();
//in my case my source JPGs are 96 dpi
lt.set_source_resolution(96);
Is there a way to suppress logs like (Estimating resolution as X) from being printed to the std output? its really slowing down the performance.