public class WordCandidate extends Object
SWTTextDetector
.Modifier and Type | Field and Description |
---|---|
protected List<LetterCandidate> |
letters
The letters in this word
|
protected LineCandidate |
line
The line to which this word belongs
|
protected Rectangle |
regularBoundingBox
The regular, axis-oriented bounds of this candidate.
|
Constructor and Description |
---|
WordCandidate() |
Modifier and Type | Method and Description |
---|---|
protected static List<WordCandidate> |
extractWords(LineCandidate line,
SWTTextDetector.Options options) |
List<LetterCandidate> |
getLetters()
Get the letters within this word.
|
LineCandidate |
getLine()
Get the line containing this word.
|
Rectangle |
getRegularBoundingBox()
Get the regular (axis-oriented) bounding box around this object
|
protected LineCandidate line
protected List<LetterCandidate> letters
protected Rectangle regularBoundingBox
public WordCandidate()
protected static List<WordCandidate> extractWords(LineCandidate line, SWTTextDetector.Options options)
public List<LetterCandidate> getLetters()
public LineCandidate getLine()
public Rectangle getRegularBoundingBox()