Class OcrChar

  • All Implemented Interfaces:
    android.os.Parcelable

    public class OcrChar
    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

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

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      OcrChar​(long nativePtr, java.lang.Object parent)  
    • Field Detail

      • CREATOR

        @NonNull
        public static final android.os.Parcelable.Creator<OcrChar> CREATOR
    • Constructor Detail

      • OcrChar

        public OcrChar​(long nativePtr,
                       @Nullable
                       java.lang.Object parent)
    • 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:
        toString in class java.lang.Object
      • 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