Package com.microblink.results.ocr
Class OcrResult
- java.lang.Object
-
- com.microblink.results.ocr.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.
-
-
Constructor Summary
Constructors Constructor Description OcrResult(long nativePtr, java.lang.Object keep)
Constructor from native code
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OcrResult
clone()
Creates a clone of the object.int
describeContents()
void
dispose()
Disposes the object.protected void
finalize()
OcrBlock[]
getBlocks()
java.lang.String
toString()
void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
@NonNull public static final android.os.Parcelable.Creator<OcrResult> CREATOR
Parcelable creator.
-
-
Method Detail
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.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 classjava.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 classjava.lang.Object
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
-