pub fn sort_quad_boxes(boxes: &[BoundingBox]) -> Vec<BoundingBox>Expand description
Sort quad boxes (4-point bounding boxes) in reading order.
The boxes are sorted from top to bottom, left to right. Boxes on the same horizontal line (within a threshold of 10 pixels) are sorted by their x-coordinate.
This follows standard quad box sorting implementation.
§Arguments
boxes- Slice of bounding boxes to sort
§Returns
A vector of sorted bounding boxes