pub fn detect_rows(words: &[HocrWord], row_threshold_ratio: f64) -> Vec<u32>Expand description
Detect row positions from word positions
Groups words by their vertical center position and returns the median y-position for each detected row.
Optimized with O(n log n) complexity using sorted insertion.