Class OcrResult

  • All Implemented Interfaces:
    android.os.Parcelable

    public class OcrResult
    extends java.lang.Object
    implements android.os.Parcelable
    Represents a raw OCR result. OCR result contains one or more OCR blocks. Each OCR block contains one or more OCR lines. Each line contains one or more OCR chars. Each OCR char is represented with its value, position and possible alternatives.
    • 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<OcrResult> CREATOR
      Parcelable creator.
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      OcrResult​(long nativePtr, java.lang.Object keep)
      Constructor from native code
    • Field Detail

      • CREATOR

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

      • OcrResult

        public OcrResult​(long nativePtr,
                         @Nullable
                         java.lang.Object keep)
        Constructor from native code
    • Method Detail

      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • dispose

        public void dispose()
        Disposes the object. After the object has been disposed, all operations on it are illegal.
      • clone

        @NonNull
        public OcrResult clone()
        Creates a clone of the object.
        Overrides:
        clone in class java.lang.Object
        Returns:
        a clone of the object.
      • getBlocks

        @Nullable
        public OcrBlock[] getBlocks()
        Returns:
        the blocks
      • 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