Skip to main content

recognize

Function recognize 

Source
pub fn recognize(stroke: &[(f64, f64)]) -> HandDrawShape
Expand description

Classify a raw uv stroke into one recognized HandDrawShape. See the module docs for the tolerance rules. A stroke of fewer than 2 samples degenerates to a zero-length line (callers guard against tiny strokes before recognizing).