reconstruct_table

Function reconstruct_table 

Source
pub fn reconstruct_table(
    words: &[HocrWord],
    column_threshold: u32,
    row_threshold_ratio: f64,
    debug: bool,
) -> Vec<Vec<String>>
Expand description

Reconstruct table structure from words

Takes detected words and reconstructs a 2D table by:

  1. Detecting column and row positions
  2. Assigning words to cells based on position
  3. Combining words within the same cell