Class OcrChar
- java.lang.Object
-
- com.microblink.documentverification.results.ocr.OcrChar
-
- All Implemented Interfaces:
android.os.Parcelable
public class OcrChar extends java.lang.Object implements android.os.Parcelable
-
-
Constructor Summary
Constructors Constructor Description OcrChar(long nativePtr, java.lang.Object parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()OcrFontgetFont()Returns the font of the characterintgetHeight()Returns the height of the char, in pixels.RectanglegetPosition()Returns the position of char in imageintgetQuality()Returns the recognition quality of the char.chargetValue()Returns the value of the char.booleanisUncertain()Returns true if OCR engine thinks this char is uncertainjava.lang.StringtoString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
@NonNull public static final android.os.Parcelable.Creator<OcrChar> CREATOR
-
-
Method Detail
-
getValue
public char getValue()
Returns the value of the char.- Returns:
- the value of the char
-
getHeight
public int getHeight()
Returns the height of the char, in pixels.- Returns:
- the height of the char, in pixels.
-
isUncertain
public boolean isUncertain()
Returns true if OCR engine thinks this char is uncertain- Returns:
- true if OCR engine thinks this char is uncertain
-
getQuality
@IntRange(from=0L, to=100L) public int getQuality()Returns the recognition quality of the char. Max quality is 100 and min quality is 0.- Returns:
- the recognition quality of the char.
-
getPosition
@Nullable public Rectangle getPosition()
Returns the position of char in image- Returns:
- the position of char in image
-
getFont
@Nullable public OcrFont getFont()
Returns the font of the character- Returns:
- the font of the character
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
-