Class OcrChar
java.lang.Object
com.microblink.photopay.results.ocr.OcrChar
- All Implemented Interfaces:
android.os.Parcelable
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetFont()Returns the font of the characterintReturns the height of the char, in pixels.Returns the position of char in imageintReturns the recognition quality of the char.chargetValue()Returns the value of the char.booleanReturns true if OCR engine thinks this char is uncertaintoString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
OcrChar
-
-
Method Details
-
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
Returns the position of char in image- Returns:
- the position of char in image
-
getFont
Returns the font of the character- Returns:
- the font of the character
-
toString
-
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
-