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§

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 a ptr field pointing to their OpenVINO C structure.
  • Convert an unsafe call to openvino-sys into an InferenceError.

Structs§

Enums§

Functions§

  • Emit the version string of the OpenVINO C API backing this implementation.