1.2 KiB
1.2 KiB
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
3. Run
cargo run -r --example db
Speed test
| Model | Image size | TensorRT f16 batch=1 (ms) |
TensorRT f32 batch=1 (ms) |
CUDA f32 batch=1 (ms) |
|---|---|---|---|---|
| ppocr-v3-db-dyn | 640x640 | 1.8585 | 2.5739 | 4.3314 |
| ppocr-v4-db-dyn | 640x640 | 2.0507 | 2.8264 | 6.6064 |
Test on RTX3060
