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