Skip to main content

Module layout

Module layout 

Source
Expand description

Page layout analysis and text ordering for OCR

Re-exports§

pub use crate::utils::OcrError;
pub use crate::utils::Result;
pub use analyzer::*;
pub use classifier::*;
pub use column_detector::*;
pub use detection_cnn::*;
pub use detector::*;
pub use form_extractor::*;
pub use line_detector::*;
pub use text_ordering::*;
pub use union_find_ccl::*;

Modules§

analyzer
Layout analysis operations
classifier
Region classifier for document layout analysis
column_detector
Column detection for multi-column document layout analysis
detection_cnn
Lightweight detection CNN for text region heatmaps
detector
Region detection operations
form_extractor
Form field extraction
line_detector
Line detection for text layout analysis
text_ordering
Text ordering for proper reading sequence
union_find_ccl
Union-Find (Disjoint Set) based Connected Component Labeling

Structs§

TextLineFeatures
Features extracted from a text line

Enums§

BaselineEstimate
Baseline estimate for a text line

Functions§

estimate_ascender_descender
Estimate ascender and descender heights
estimate_baseline
Estimate baseline for a text line using bottom pixel analysis
estimate_cap_height
Estimate cap height (height of uppercase letters)
estimate_x_height
Estimate x-height for a text line
extract_text_line_features
Extract all text line features