public static class SWTTextDetector.Options extends Object
SWTTextDetector
.Modifier and Type | Field and Description |
---|---|
CannyEdgeDetector |
canny
The canny edge detector to use for the SWT.
|
SWTTextDetector.Direction |
direction
The "direction" to perform the SWT
|
boolean |
doubleSize
Upscale the image to double size before applying the SWT.
|
float |
intensityThreshold
Maximum difference in intensity for two letters to be considered to
be related
|
float |
intersectRatio
Ratio of vertical intersection for character pairing.
|
float |
letterHeightRatio
Maximum ratio of height for two letters to be considered to be
related
|
double |
letterVarianceMean
Maximum allowed variance of stroke width in a single character as a
percentage of the mean.
|
double |
maxAspectRatio
Maximum allowed aspect ratio for a single letter
|
double |
maxDiameterStrokeRatio
Maximum allowed ratio of diameter to stroke width for a single
character.
|
float |
maxHeight
Maximum character height
|
int |
maxNumOverlappingBoxes
Maximum allowed number of overlapping characters
|
int |
maxStrokeWidth
Maximum allowed stroke width
|
float |
medianStrokeWidthRatio
Maximum ratio of stroke width for two letters to be considered to be
related
|
int |
minArea
Minimum allowed component size; used to quickly filter out small
components.
|
float |
minHeight
Minimum character height
|
int |
minLettersPerLine
Minimum number of allowed letters on a line
|
float |
strokeWidthRatio
Maximum allowed ratio of a pair of stroke widths for them to be
considered part of the same connected component.
|
float |
widthMultiplier
The width multiplier for two letters to be considered to be related.
|
float |
wordBreakdownRatio
Ratio of the interclass std dev of the letter spacings to the mean to
suggest a word break.
|
Constructor and Description |
---|
Options() |
public SWTTextDetector.Direction direction
public CannyEdgeDetector canny
public boolean doubleSize
public float strokeWidthRatio
public double letterVarianceMean
public double maxAspectRatio
public double maxDiameterStrokeRatio
public int minArea
public float minHeight
public float maxHeight
public int maxNumOverlappingBoxes
public int maxStrokeWidth
public float medianStrokeWidthRatio
public float letterHeightRatio
public float intensityThreshold
public float widthMultiplier
public int minLettersPerLine
public float intersectRatio
public float wordBreakdownRatio
public Options()