public abstract class AbstractOCREngineOptions
extends java.lang.Object
implements android.os.Parcelable
BlinkOCREngineOptions
and DeepOCREngineOptionsModifier and Type | Field and Description |
---|---|
protected long |
mNativeContext |
Modifier | Constructor and Description |
---|---|
protected |
AbstractOCREngineOptions(long nativeContext,
java.lang.Object keep) |
protected |
AbstractOCREngineOptions(long nativeContext,
android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
protected abstract void |
deserializeNative(byte[] bytes) |
protected void |
finalize() |
int |
getMaximumAllowedCharRecognitionVariants()
Returns the maximum allowed number of char recognition variants OCR engine will produce
for each
OcrChar . |
int |
getMaximumCharsExpected()
Returns the maximum number of chars expected in the image.
|
long |
getNativeContext() |
boolean |
isColorDropoutEnabled()
Returns true if the additional image processing which drops background colors will be performed.
|
protected abstract byte[] |
serializeNative() |
AbstractOCREngineOptions |
setColorDropoutEnabled(boolean colorDropoutEnabled)
Specifies if the additional image processing which drops the background colors should be performed.
|
AbstractOCREngineOptions |
setMaximumAllowedCharRecognitionVariants(int maximumAllowedCharRecognitionVariants)
Sets the maximum allowed number of char recognition variants OCR engine will produce
for each OcrChar.
|
AbstractOCREngineOptions |
setMaximumCharsExpected(int maximumCharsExpected)
Sets the maximum number of chars expected in the image.
|
protected abstract void |
terminateNative(long nativeContext) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
protected AbstractOCREngineOptions(long nativeContext, @Nullable java.lang.Object keep)
protected AbstractOCREngineOptions(long nativeContext, @NonNull android.os.Parcel in)
public final long getNativeContext()
public final int getMaximumAllowedCharRecognitionVariants()
OcrChar
.OcrChar
.@NonNull public final AbstractOCREngineOptions setMaximumAllowedCharRecognitionVariants(int maximumAllowedCharRecognitionVariants)
maximumAllowedCharRecognitionVariants
- maximum allowed number of char recognition
variants OCR engine will produce for each OcrCharOcrChar
public final int getMaximumCharsExpected()
@NonNull public final AbstractOCREngineOptions setMaximumCharsExpected(int maximumCharsExpected)
maximumCharsExpected
- the maximum number of chars expected in the image.public final boolean isColorDropoutEnabled()
@NonNull public final AbstractOCREngineOptions setColorDropoutEnabled(boolean colorDropoutEnabled)
colorDropoutEnabled
- whether dropping of colors from image should be performedprotected final void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
protected abstract void terminateNative(long nativeContext)
@NonNull protected abstract byte[] serializeNative()
protected abstract void deserializeNative(@NonNull byte[] bytes)
public final int describeContents()
describeContents
in interface android.os.Parcelable
public final void writeToParcel(@NonNull android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable