Class CharWithVariants
- java.lang.Object
-
- com.microblink.documentverification.results.ocr.CharWithVariants
-
- All Implemented Interfaces:
android.os.Parcelable
public class CharWithVariants extends java.lang.Object implements android.os.Parcelable
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<CharWithVariants>CREATOR
-
Constructor Summary
Constructors Constructor Description CharWithVariants(long nativePtr, OcrLine parentLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()voiddispose()OcrChargetChar()Returns theOcrCharwhich contains information about the char.OcrChar[]getRecognitionVariants()Returns the recognition variants of this char or null if there are no variants.voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
@NonNull public static final android.os.Parcelable.Creator<CharWithVariants> CREATOR
-
-
Constructor Detail
-
CharWithVariants
public CharWithVariants(long nativePtr, @Nullable OcrLine parentLine)
-
-
Method Detail
-
dispose
public void dispose()
-
getChar
@NonNull public OcrChar getChar()
Returns theOcrCharwhich contains information about the char.- Returns:
- the
OcrCharwhich contains information about the char.
-
getRecognitionVariants
@Nullable public OcrChar[] getRecognitionVariants()
Returns the recognition variants of this char or null if there are no variants. Note that char is defined by all its parameters (value, font, position, quality, etc.), so in recognition variants it is possible to have same char value with different font.- Returns:
- the recognition variants of this char or null if there are no variants
-
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
-
-