public class LetterCandidate extends Object
SWTTextDetector
.Modifier and Type | Field and Description |
---|---|
protected float |
averageBrightness |
protected PixelSet |
cc |
protected Pixel |
centroid |
protected LineCandidate |
line |
protected float |
medianStrokeWidth |
protected Rectangle |
regularBoundingBox
The regular, axis-oriented bounds of this candidate.
|
protected WordCandidate |
word |
Modifier | Constructor and Description |
---|---|
protected |
LetterCandidate(PixelSet cc,
float medianStrokeWidth,
FImage image) |
Modifier and Type | Method and Description |
---|---|
static Rectangle |
computeBounds(List<LetterCandidate> letters)
Compute the regular bounding rectangle of the given list of letter
candidates
|
protected static List<LetterCandidate> |
findLetters(List<ConnectedComponent> components,
FImage swt,
FImage image,
SWTTextDetector.Options options)
Filter the components to find likely letter candidates.
|
Rectangle |
getRegularBoundingBox()
Get the regular (axis-oriented) bounding box around this object
|
String |
toString() |
protected WordCandidate word
protected LineCandidate line
protected float averageBrightness
protected float medianStrokeWidth
protected Rectangle regularBoundingBox
protected LetterCandidate(PixelSet cc, float medianStrokeWidth, FImage image)
public static Rectangle computeBounds(List<LetterCandidate> letters)
letters
- the letter candidatesprotected static List<LetterCandidate> findLetters(List<ConnectedComponent> components, FImage swt, FImage image, SWTTextDetector.Options options)
components
- the components to filterswt
- the swt imageimage
- the original imagepublic Rectangle getRegularBoundingBox()