Module ffi

Source
Expand description

FFI module for Edge Impulse C++ SDK bindings

This module provides safe Rust bindings for the Edge Impulse C++ SDK, allowing direct FFI calls to run inference on trained models.

§Features

  • Model Metadata: Access to model configuration and parameters
  • Signal Processing: Safe wrappers for audio and sensor data
  • Inference: Direct model inference with error handling
  • Classification Results: Structured access to model outputs

§Usage

This module is only available when the ffi feature is enabled:

[dependencies]
edge-impulse-runner = { version = "2.0.0", features = ["ffi"] }

Modules§

wrapper 🔒
Safe Rust wrapper for Edge Impulse FFI bindings

Structs§

BoundingBox
ClassificationResult
EdgeImpulseClassifier
Main Edge Impulse classifier
EdgeImpulseHandle
Opaque handle for Edge Impulse operations
InferenceResult
Result structure for Edge Impulse inference
ModelMetadata
Helper functions to access model metadata
ModelMetadataInfo
Signal
Signal structure for holding audio or sensor data
TimingResult

Enums§

EdgeImpulseError
Error type for Edge Impulse operations

Type Aliases§

EdgeImpulseResult
Result type for Edge Impulse operations