detect_columns

Function detect_columns 

Source
pub fn detect_columns(words: &[HocrWord], column_threshold: u32) -> Vec<u32>
Expand description

Detect column positions from word positions

Groups words by their x-position and returns the median x-position for each detected column.

Optimized with O(n log n) complexity using sorted insertion.