pub struct ModelParameters {Show 19 fields
pub axis_count: u32,
pub frequency: f32,
pub has_anomaly: RunnerHelloHasAnomaly,
pub has_object_tracking: bool,
pub image_channel_count: u32,
pub image_input_frames: u32,
pub image_input_height: u32,
pub image_input_width: u32,
pub image_resize_mode: String,
pub inferencing_engine: u32,
pub input_features_count: u32,
pub interval_ms: f32,
pub label_count: u32,
pub labels: Vec<String>,
pub model_type: String,
pub sensor: i32,
pub slice_size: u32,
pub thresholds: Vec<ModelThreshold>,
pub use_continuous_mode: bool,
}Expand description
Parameters that define a model’s configuration and capabilities.
These parameters are received from the model during initialization and describe the model’s input requirements, processing settings, and output characteristics.
Fields§
§axis_count: u32Number of axes for motion/positional data (e.g., 3 for xyz accelerometer)
frequency: f32Sampling frequency in Hz for time-series data
has_anomaly: RunnerHelloHasAnomalyIndicates if the model supports anomaly detection
has_object_tracking: boolIndicates if the model supports object tracking (0 = no, 1 = yes)
image_channel_count: u32Number of color channels in input images (1 = grayscale, 3 = RGB)
image_input_frames: u32Number of consecutive frames required for video input
image_input_height: u32Required height of input images in pixels
image_input_width: u32Required width of input images in pixels
image_resize_mode: StringMethod used to resize input images (“fit” or “fill”)
inferencing_engine: u32Type of inferencing engine (0 = TensorFlow Lite, 1 = TensorFlow.js)
input_features_count: u32Total number of input features expected by the model
interval_ms: f32Time interval between samples in milliseconds
label_count: u32Number of classification labels
labels: Vec<String>Vector of classification labels
model_type: StringType of model (“classification”, “object-detection”, etc.)
sensor: i32Type of input sensor (see SensorType enum)
slice_size: u32Size of the processing window for time-series data
thresholds: Vec<ModelThreshold>Vector of thresholds for different types of detections
use_continuous_mode: boolWhether the model supports continuous mode operation
Trait Implementations§
Source§impl Clone for ModelParameters
impl Clone for ModelParameters
Source§fn clone(&self) -> ModelParameters
fn clone(&self) -> ModelParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more