public class Config
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static double | CENTERING_THRESHOLDMaximal difference between left and right margin to consider the area to be centered (percentage of the parent area width) | 
| static boolean | CONSISTENT_LINE_STYLEMaintain the same style during the line detection | 
| static boolean | DEBUG_AREAS | 
| static int | DEBUG_DELAY | 
| static double | FONT_SIZE_THRESHOLDThe maximal visual difference that is consideres as 'the same style' | 
| static double | FONT_STYLE_THRESHOLD | 
| static double | FONT_WEIGHT_THRESHOLD | 
| static float | MAX_LINE_EM_SPACEThe maximal distance of two areas allowed within a single line (in 'em' units) | 
| static int | SEPARATOR_WEIGHT_THRESHOLDThe maximal difference of separator weights that are considered to be 'the same' | 
| static double | TAG_PROBABILITY_THRESHOLDTag probability threshold for considering the tag. | 
| static double | TEXT_LUMINOSITY_THRESHOLD | 
| Constructor and Description | 
|---|
| Config() | 
| Modifier and Type | Method and Description | 
|---|---|
| static GroupAnalyzer | createGroupAnalyzer(AreaImpl root)Creates a group analyzer for an area using the selected implementation. | 
| static SeparatorSet | createSeparators(AreaImpl root)Creates the separators for an area using the selected algorithm | 
public static final boolean DEBUG_AREAS
public static final int DEBUG_DELAY
public static final float MAX_LINE_EM_SPACE
public static final int SEPARATOR_WEIGHT_THRESHOLD
public static final double CENTERING_THRESHOLD
public static final double FONT_SIZE_THRESHOLD
public static final double FONT_WEIGHT_THRESHOLD
public static final double FONT_STYLE_THRESHOLD
public static final double TEXT_LUMINOSITY_THRESHOLD
public static final boolean CONSISTENT_LINE_STYLE
public static final double TAG_PROBABILITY_THRESHOLD
public static GroupAnalyzer createGroupAnalyzer(AreaImpl root)
root - the root area for separator detectionpublic static SeparatorSet createSeparators(AreaImpl root)
root - the root area