Class CharWithVariants

  • All Implemented Interfaces:

    public class CharWithVariants
    extends java.lang.Object
    implements android.os.Parcelable
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Modifier and Type Field Description
      static android.os.Parcelable.Creator<CharWithVariants> CREATOR  
      • Fields inherited from interface android.os.Parcelable

    • Constructor Summary

      Constructor Description
      CharWithVariants​(long nativePtr, OcrLine parentLine)  
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<CharWithVariants> CREATOR
    • Constructor Detail

      • CharWithVariants

        public CharWithVariants​(long nativePtr,
                                OcrLine parentLine)
    • Method Detail

      • dispose

        public void dispose()
      • getChar

        public OcrChar getChar()
        Returns the OcrChar which contains information about the char.
        the OcrChar which contains information about the char.
      • getRecognitionVariants

        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.
        the recognition variants of this char or null if there are no variants
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(@NonNull
                                  android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable