pub trait TableStructureModel: Send + Sync {
// Provided method
fn refine_table(&self, gray: &GrayImage) -> bool { ... }
}Expand description
Optional ML / table-structure model plugged into the Table branch.
Implementations (TableFormer, SLANet, …) refine cell geometry after the
heuristic classifier says ImageRegionKind::Table. The default is a
no-op that leaves lattice recovery to classical line detection.
Provided Methods§
Sourcefn refine_table(&self, gray: &GrayImage) -> bool
fn refine_table(&self, gray: &GrayImage) -> bool
Refine a table region. Return true when the model produced usable
structure that downstream OCR should prefer over pure heuristics.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".