5 unstable releases
0.3.2 | Aug 14, 2024 |
---|---|
0.3.0 | Aug 13, 2024 |
0.2.1 | Feb 28, 2024 |
0.2.0 | Feb 18, 2024 |
0.1.0 | Dec 16, 2023 |
#937 in Machine learning
209 downloads per month
Used in 2 crates
(via kalosm-vision)
95KB
852 lines
Kalosm OCR
A rust wrapper for TR OCR
Usage
use kalosm_ocr::*;
let mut model = Ocr::builder().build().await.unwrap();
let image = image::open("examples/ocr.png").unwrap();
let text = model
.recognize_text(
OcrInferenceSettings::new(image)
.unwrap(),
)
.unwrap();
println!("{}", text);
Dependencies
~34–58MB
~1M SLoC