Skip to main content

parse_orientation_angle

Function parse_orientation_angle 

Source
pub fn parse_orientation_angle(
    label: &str,
    confidence: f32,
    threshold: Option<f32>,
    valid_angles: &[f32],
) -> OrientationResult
Expand description

Parses an orientation angle from a label, accepting numeric (“0”, “90.0”) and descriptive (“upright”, “inverted”, …) forms, validated against valid_angles. Unknown or out-of-set labels yield an uncertain result.