10个版本 (破坏性)
0.8.0 | 2024年5月25日 |
---|---|
0.7.0 | 2024年5月16日 |
0.6.0 | 2024年4月29日 |
0.5.0 | 2024年2月28日 |
0.1.0 | 2023年12月31日 |
#227 in 图像
每月705次下载
用于 3 crate
275KB
2K SLoC
ocrs
这个crate包含了一个作为库的ocrs
OCR引擎。有关项目的详细信息,请参阅主项目README。
性能注意
请确保以ocrs
crate和其rten*
依赖项的发布模式
进行构建。这些crate的调试构建将会非常慢。
用法
有关在Rust应用程序中使用此库的最小示例,请参阅examples/hello_ocr.rs。
cd examples/
# Download models in .rten format.
./download-models.sh
# Run OCR on an image and print the extracted text.
cargo run --release --example hello_ocr rust-book.jpg
依赖项
~5MB
~107K SLoC