Crate openvino

Source
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");

Modules§

prepostprocess
See ov_prepostprocess_c_api.

Structs§

CompiledModel
See ov_compiled_model_t.
Core
See ov_core_t.
Dimension
See ov_dimension_t.
InferRequest
See ov_infer_request_t.
Layout
See ov_layout_t.
Model
See ov_model_t.
Node
See ov_node_c_api.
PartialShape
See ov_partial_shape_t.
Rank
See ov_rank_t.
Shape
See ov_shape_t.
Tensor
See ov_tensor_t.
Version
See ov_version.

Enums§

DeviceType
DeviceType represents accelerator devices.
ElementType
See ov_element_type_e.
InferenceError
See ov_status_e; enumerates errors returned by the OpenVINO implementation.
LoadingError
Enumerate the ways that library loading can fail.
PropertyKey
See ov_property_c_api. PropertyKey represents valid configuration properties for a crate::Core instance.
ResizeAlgorithm
Interpolation mode when resizing during preprocess steps.
RwPropertyKey
Read-write property keys.
SetupError
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).

Functions§

version
Emit the version of the OpenVINO C library backing this implementation.