Skip to main content

table_rows

Function table_rows 

Source
pub fn table_rows(
    cells: &[TableCell],
    region: [f32; 4],
    words: &[TextCell],
) -> Option<Vec<Vec<String>>>
Expand description

The ONNX-free tail of TableFormer row prediction: match the page’s word cells into the predicted structure cells and expand spans into a dense rows × cols text grid. region is (l, t, r, b) in page points; cells are in the 448 image (normalized cxcywh). Shared by the native pipeline (after predict_table_structure) and the browser path (after the ort-web decode loop) — identical from here on. None when nothing matched.