public class LineCandidate extends Object
SWTTextDetector
.Modifier and Type | Field and Description |
---|---|
protected List<LetterCandidate> |
letters |
protected Rectangle |
regularBoundingBox
The regular, axis-oriented bounds of this candidate.
|
protected List<WordCandidate> |
words |
Modifier | Constructor and Description |
---|---|
protected |
LineCandidate() |
Modifier and Type | Method and Description |
---|---|
protected static List<LineCandidate> |
extractLines(List<LetterCandidate> letters,
SWTTextDetector.Options options)
Computes lines of text by merging pairs of characters that have similar
directions.
|
List<LetterCandidate> |
getLetters()
Get the letters corresponding to this line.
|
Rectangle |
getRegularBoundingBox()
Get the regular (axis-oriented) bounding box around this object
|
List<WordCandidate> |
getWords()
Get the words corresponding to this line
|
protected List<LetterCandidate> letters
protected List<WordCandidate> words
protected Rectangle regularBoundingBox
protected LineCandidate()
protected static List<LineCandidate> extractLines(List<LetterCandidate> letters, SWTTextDetector.Options options)
letters
- options
- public List<LetterCandidate> getLetters()
public List<WordCandidate> getWords()
public Rectangle getRegularBoundingBox()