pub fn create_expanded_ocr_for_table(
text_regions: &[TextRegion],
cells: &[TableCell],
config: Option<&SplitConfig>,
) -> (Vec<TextRegion>, HashSet<usize>)Expand description
Creates expanded OCR results after splitting cross-cell boxes.
This is a convenience function that takes the original text regions, detects cross-cell boxes, splits them, and returns an expanded list of text regions suitable for table stitching.
§Arguments
text_regions- Original text regions from OCR.cells- Table cells.config- Optional split configuration.
§Returns
A tuple of (expanded_regions, processed_indices) where:
- expanded_regions: New text regions after splitting
- processed_indices: Indices of original regions that were split