pub struct DefaultEpochPolicy {
pub segment_angle_threshold: f32,
pub segment_zoom_threshold: f32,
pub segment_displacement_threshold: f32,
pub compensate_min_confidence: f32,
pub degrade_on_small_motion: bool,
pub ptz_deadband: f32,
}Expand description
Default epoch policy based on configurable thresholds.
Covers the common case: large PTZ jumps → segment, small motions → degrade, high-confidence transforms → compensate.
Fields§
§segment_angle_threshold: f32Pan/tilt delta (degrees) above which a PTZ move triggers Segment.
Below this, triggers Degrade. Default: 15.0.
segment_zoom_threshold: f32Zoom ratio change above which a zoom move triggers Segment.
Default: 0.3.
segment_displacement_threshold: f32Inferred-motion displacement (normalized coords) above which
triggers Segment. Default: 0.25.
compensate_min_confidence: f32Minimum confidence for a Compensate decision (instead of Segment)
when a transform is available. Default: 0.8.
degrade_on_small_motion: boolIf true, small motions below segment thresholds produce Degrade
instead of Continue. Default: true.
ptz_deadband: f32Minimum PTZ telemetry delta (degrees for pan/tilt, ratio for zoom)
below which changes are treated as sensor noise and ignored.
Prevents floating-point jitter from triggering spurious Degrade
events when the camera is at rest. Default: 0.01.
Trait Implementations§
Source§impl Clone for DefaultEpochPolicy
impl Clone for DefaultEpochPolicy
Source§fn clone(&self) -> DefaultEpochPolicy
fn clone(&self) -> DefaultEpochPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more