rust_ocr 0.1.5

A library to convert png to text with windows api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod libs;
fn main() {

    let img = "image.png";
    let image_path = "./list.json";

    libs::ocr_with_bounds(img, Some(image_path)).unwrap();

    let text = libs::png_to_text(img).unwrap();

    println!("Text: {}",&text);
    assert_eq!("Read the given path to .png file and return the text".to_string(),text);

}