Thanks to visit codestin.com
Credit goes to lib.rs

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-binaries feature is set by default whenever oar-ocr is added without default-features = false somewhere in the dependency tree.

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