mirror of
https://github.com/mii443/usls.git
synced 2025-08-22 15:45:41 +00:00
* Update imageproc crates * Add top-p method for sampling * Add SVTR for text recognition & bug fix
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