FirebaseVisionCloudText.DetectedBreak

public static class FirebaseVisionCloudText.DetectedBreak extends Object

Detected start or end of a structural component.

Nested Class Summary

@interface FirebaseVisionCloudText.DetectedBreak.BreakType Detected start or end of a structural component type: UNKNOWN, SPACE SURE_SPACE, EOL_SURE_SPACE, HYPHEN, LINE_BREAK

Constant Summary

int EOL_SURE_SPACE Line-wrapping break.
int HYPHEN End-line hyphen that is not present in text; does not co-occur with `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
int LINE_BREAK Line break that ends a paragraph.
int SPACE Regular space.
int SURE_SPACE Sure space (very wide).
int UNKNOWN Unknown break label type.

Public Method Summary

int
getDetectedBreakType()
Gets detected break type.
boolean
getIsPrefix()
Returns true if break prepends an element.

Inherited Method Summary

Constants

public static final int EOL_SURE_SPACE

Line-wrapping break.

Constant Value: 3

public static final int HYPHEN

End-line hyphen that is not present in text; does not co-occur with `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.

Constant Value: 4

public static final int LINE_BREAK

Line break that ends a paragraph.

Constant Value: 5

public static final int SPACE

Regular space.

Constant Value: 1

public static final int SURE_SPACE

Sure space (very wide).

Constant Value: 2

public static final int UNKNOWN

Unknown break label type.

Constant Value: 0

Public Methods

public int getDetectedBreakType ()

Gets detected break type.

public boolean getIsPrefix ()

Returns true if break prepends an element.

Send feedback about...

Need help? Visit our support page.