mirror of
https://github.com/mii443/usls.git
synced 2025-08-22 15:45:41 +00:00
Quick Start
cargo run -r --example db
Or you can manully
1. Donwload ONNX Model
ppocr-v3-db-dyn ppocr-v4-db-dyn
2. Specify the ONNX model path in main.rs
let options = Options::default()
.with_model("ONNX_PATH") // <= modify this
.with_profile(false);
3. Run
cargo run -r --example db
Speed test
Model | Image size | TensorRT f16 |
TensorRT f32 |
CUDA f32 |
---|---|---|---|---|
ppocr-v3-db-dyn | 640x640 | 1.8585ms | 2.5739ms | 4.3314ms |
ppocr-v4-db-dyn | 640x640 | 2.0507ms | 2.8264ms | 6.6064ms |
Test on RTX3060