public final class DeepOCREngineOptions extends AbstractOCREngineOptions
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator |
CREATOR
Parcelable creator.
|
mNativeContext| Constructor and Description |
|---|
DeepOCREngineOptions()
Default constructor.
|
DeepOCREngineOptions(long nativeContext,
java.lang.Object keep)
Constructor from native object.
|
| Modifier and Type | Method and Description |
|---|---|
DeepOCREngineOptions |
clone()
Returns a copy of
DeepOCREngineOptions object. |
protected void |
deserializeNative(byte[] bytes) |
float |
getMaximumLineHeight()
Returns the maximum height of the line of text given in float from range <0, 1>, which
represents height percentage of the input image that is being processed.
|
float |
getMinimumCharHeight()
Returns the minimum height of char that can be classified given in float from range <0, 1>, which
represents height percentage of the input image that is being processed.
|
float |
getMinimumLineHeight()
Returns the minimum height of the line of text given in float from range <0, 1>, which
represents height percentage of the input image that is being processed.
|
DeepOCRModel |
getOCRModel()
Returns the current Deep OCR model.
|
protected byte[] |
serializeNative() |
DeepOCREngineOptions |
setMaximumLineHeight(float maximumLineHeight)
Sets the maximum height of the line of text given in float from range <0, 1>, which
represents height percentage of the input image that is being processed.
|
DeepOCREngineOptions |
setMinimumCharHeight(float minimumCharHeight)
Sets the minimum height of the char that can be classified given in float from range <0, 1>, which
represents height percentage of the input image that is being processed.
|
DeepOCREngineOptions |
setMinimumLineHeight(float minimumLineHeight)
Sets the minimum height of the line of text given in float from range <0, 1>, which
represents height percentage of the input image that is being processed.
|
DeepOCREngineOptions |
setOCRModel(DeepOCRModel model)
Specifies the Deep OCR model that will be used.
|
protected void |
terminateNative(long nativeContext) |
describeContents, finalize, getMaximumAllowedCharRecognitionVariants, getMaximumCharsExpected, getNativeContext, isColorDropoutEnabled, setColorDropoutEnabled, setMaximumAllowedCharRecognitionVariants, setMaximumCharsExpected, writeToParcel@NonNull public static android.os.Parcelable.Creator CREATOR
public DeepOCREngineOptions()
public DeepOCREngineOptions(long nativeContext,
@Nullable
java.lang.Object keep)
nativeContext - Native engine options object.keep - Owner of the native engine options object.@NonNull public DeepOCREngineOptions clone()
DeepOCREngineOptions object.clone in class java.lang.Objectprotected void terminateNative(long nativeContext)
terminateNative in class AbstractOCREngineOptions@NonNull protected byte[] serializeNative()
serializeNative in class AbstractOCREngineOptionsprotected void deserializeNative(@NonNull
byte[] bytes)
deserializeNative in class AbstractOCREngineOptionspublic final float getMinimumLineHeight()
@NonNull public final DeepOCREngineOptions setMinimumLineHeight(float minimumLineHeight)
minimumLineHeight - minimum height of the line from range <0, 1>public final float getMaximumLineHeight()
@NonNull public final DeepOCREngineOptions setMaximumLineHeight(float maximumLineHeight)
maximumLineHeight - maximum height of the linepublic final float getMinimumCharHeight()
@NonNull public final DeepOCREngineOptions setMinimumCharHeight(float minimumCharHeight)
DeepOCREngineOptions.setMinimumLineHeight(float), this value refers to individual
chars, while DeepOCREngineOptions.setMinimumLineHeight(float) refers to line height, which equals to height
of largest char in line.minimumCharHeight - minimum height of the char@NonNull public DeepOCREngineOptions setOCRModel(@NonNull DeepOCRModel model)
By default, it is set to DeepOCRModel.BlinkInput
model - Desired Deep OCR model that will be used.@NonNull public DeepOCRModel getOCRModel()
DeepOCREngineOptions.setOCRModel(DeepOCRModel).