Cargo Features
[dependencies]
oar-ocr = { version = "0.6.1", default-features = false, features = ["cuda", "tensorrt", "directml", "coreml", "webgpu", "openvino", "download-binaries"] }
- default = download-binaries
-
The
download-binariesfeature is set by default wheneveroar-ocris added withoutsomewhere in the dependency tree.default-features = false - cuda
-
ONNX Runtime execution provider features
Enables cuda of oar-ocr-core
Core library with all types and predictors
- tensorrt
-
Enables tensorrt of oar-ocr-core
- directml
-
Enables directml of oar-ocr-core
- coreml
-
Enables coreml of oar-ocr-core
- webgpu
-
Enables webgpu of oar-ocr-core
- openvino
-
Enables openvino of oar-ocr-core
- download-binaries default
-
Auto-download ONNX Runtime binaries during build (enabled by default).
Set ORT_LIB_LOCATION to use a custom installation (skips download).
Use --no-default-features for offline/enterprise environments.Enables download-binaries of oar-ocr-core