Skip to main content

width_batches

Function width_batches 

Source
pub fn width_batches(lines: &[PrepLine]) -> Vec<(usize, Vec<usize>)>
Expand description

Deterministic recognition batching: page-order line indices grouped by exact width (equal widths share a run — bit-identical to one-at-a-time recognition, see ocr.rs), each group split into REC_BATCH chunks.