openvino - Rust (original) (raw)
Expand description
The openvino crate provides high-level, ergonomic, safe Rust bindings to OpenVINO. See the repository README for more information, such as build instructions.
Check the loaded version of OpenVINO:
assert!(openvino::version().build_number.starts_with("2"))
Most interaction with OpenVINO begins with instantiating a Core:
let _ = openvino::Core::new().expect("to instantiate the OpenVINO library");
See ov_core_t.
Seeov_dimension_t.
See ov_layout_t.
See ov_model_t.
See ov_node_c_api.
See ov_rank_t.
See ov_shape_t.
See ov_tensor_t.
See ov_version.
DeviceType
represents accelerator devices.
Seeov_status_e; enumerates errors returned by the OpenVINO implementation.
Enumerate the ways that library loading can fail.
Seeov_property_c_api.PropertyKey
represents valid configuration properties for a crate::Core instance.
Interpolation mode when resizing during preprocess steps.
Read-write property keys.
Enumerate setup failures: in some cases, this library will call library-loading code that may fail in a different way (i.e., LoadingError) than the calls to the OpenVINO libraries (i.e.,InferenceError).
Emit the version of the OpenVINO C library backing this implementation.