pub fn sort_boxes(boxes: &mut [DetBox])
TextDetector.sorted_boxes: by top edge, rows joined while consecutive tops are closer than [BOX_SORT_Y_THRESHOLD], then left to right in a row.
TextDetector.sorted_boxes
BOX_SORT_Y_THRESHOLD