pub struct ParkTuning {
pub fps: f64,
pub left_frac: f64,
pub ema_seconds: f64,
pub abs_floor: f64,
pub mad_k: f64,
pub merge_gap_s: f64,
pub max_island_s: f64,
pub min_sep_s: f64,
pub candidate_frac: f64,
pub warmup_s: f64,
pub baseline_s: f64,
}Expand description
Park-detection heuristics for ONE camera/printer setup. Deserialized from a config
(e.g. scripts/tuning.example.json); there are deliberately NO defaults, so a
missing field fails to parse rather than running with a wrong baked value. Extra
keys in the JSON (the batch/select knobs, _comments) are ignored.
Fields§
§fps: f64Stream sampling rate (frames/s) the detector is fed at.
left_frac: f64Park zone = the left this-fraction of the frame (camera framing).
ema_seconds: f64EMA background time-constant (seconds).
abs_floor: f64Minimum left_mass for a real park (scales with framing/lighting/scale).
mad_k: f64Threshold = rolling median + mad_k * MAD of left_mass.
merge_gap_s: f64Above-threshold frames within this gap (seconds) form one island/park.
max_island_s: f64An island whose spike SPAN exceeds this (seconds) is a wipe/purge, not a park.
min_sep_s: f64Parks closer than this (seconds) keep only the stronger.
candidate_frac: f64Pick the sharpest frame among those >= this * the island’s max left_mass.
warmup_s: f64Settle the background this long (seconds) before emitting.
baseline_s: f64Rolling-baseline window (seconds) for the threshold.
Trait Implementations§
Source§impl Clone for ParkTuning
impl Clone for ParkTuning
Source§fn clone(&self) -> ParkTuning
fn clone(&self) -> ParkTuning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParkTuning
impl Debug for ParkTuning
Source§impl<'de> Deserialize<'de> for ParkTuning
impl<'de> Deserialize<'de> for ParkTuning
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ParkTuning
impl PartialEq for ParkTuning
Source§fn eq(&self, other: &ParkTuning) -> bool
fn eq(&self, other: &ParkTuning) -> bool
self and other values to be equal, and is used by ==.