Updated the version of the image library from 0.23.14 to 0.24 to resolve type mismatch
Previously, using the latest version of the image library (0.24) resulted in a type mismatch error when interfacing with rusty_tesseract, which uses version 0.23.14 of the image library. This update resolves that issue by aligning the version of the image library used in the main code with the version used by rusty_tesseract.
fn main() {
// image version is 0.24
let dynamic_image = image::io::Reader::open("img/string.png")
.unwrap()
.decode()
.unwrap();
// rusty_tesseract image version is 0.23.14
let img = rusty_tesseract::tesseract::input::Image::from_dynamic_image(&dynamic_image).unwrap(); // Error
}
Updated the version of the image library from 0.23.14 to 0.24 to resolve type mismatch
Previously, using the latest version of the image library (0.24) resulted in a type mismatch error when interfacing with rusty_tesseract, which uses version 0.23.14 of the image library. This update resolves that issue by aligning the version of the image library used in the main code with the version used by rusty_tesseract.
This update ensures that our usage of the image library is compatible with rusty_tesseract, eliminating the type mismatch error.