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().starts_with("2"))
Most interaction with OpenVINO begins with instantiating a Core:
let _ = openvino::Core::new(None).expect("to instantiate the OpenVINO library");
Macros
Convert a Rust string into a string to pass across the C boundary.
Drop one of the Rust wrapper structures using the provided free function. This relies on all
Rust wrapper functions having an
instance
field pointing to their OpenVINO C structure.Convert an unsafe call to openvino-sys into an
InferenceError
.Structs
See
CNNNetwork
.See
TensorDesc
.Enums
Enumerate errors returned by the OpenVINO implementation. See
IEStatusCode
.@enum layout_e
@brief Layouts that the inference engine supports
Enumerate the ways that library loading can fail.
@enum precision_e
@brief Precisions that the inference engine supports
@enum resize_alg_e
@brief Represents the list of supported resize algorithms.
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
Emit the version string of the OpenVINO C API backing this implementation.