Fix polygon drawing

* Support auto download ort feature
* Fix polygon drawing
This commit is contained in:
Jamjamjon
2024-09-03 00:01:34 +08:00
committed by GitHub
parent f6755a8be4
commit 9b969b9203
10 changed files with 90 additions and 33 deletions

View File

@ -75,16 +75,27 @@
</details>
## ⛳️ Linking
## ⛳️ ONNXRuntime Linking
- #### For detailed setup instructions, refer to the [ORT documentation](https://ort.pyke.io/setup/linking).
You have two options to link the ONNXRuntime library
- ### Option 1: Manual Linking
- #### For detailed setup instructions, refer to the [ORT documentation](https://ort.pyke.io/setup/linking).
- #### For Linux or macOS Users:
- Download the ONNX Runtime package from the [Releases page](https://github.com/microsoft/onnxruntime/releases).
- Set up the library path by exporting the `ORT_DYLIB_PATH` environment variable:
```shell
export ORT_DYLIB_PATH=/path/to/onnxruntime/lib/libonnxruntime.so.1.19.0
```
- ### Option 2: Automatic Download
Just use `--features auto`
```shell
cargo run -r --example yolo --features auto
```
- #### For Linux or macOS users</summary>
1. Download the ONNXRuntime package from the [Releases page](https://github.com/microsoft/onnxruntime/releases).
2. Set up the library path by exporting the `ORT_DYLIB_PATH` environment variable:
```shell
export ORT_DYLIB_PATH=/path/to/onnxruntime/lib/libonnxruntime.so.1.19.0
```
## 🎈 Quick Start