Package io.scanbot.sdk.documentdata
Class GlareDetectionConfiguration
java.lang.Object
io.scanbot.sdk.documentdata.DocumentDataExtractorConfigurationElement
io.scanbot.sdk.documentdata.GlareDetectionConfiguration
Glare detection configuration.
The recognizer will detect whether fields are obstructed by glare. This feature is enabled by default.
This configuration has no effect in SINGLE_SHOT mode.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs GlareDetectionConfiguration with default parameters.GlareDetectionConfiguration(double glareDetectionThreshold) Constructs GlareDetectionConfiguration with the given params. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGetter for glareDetectionThreshold field.voidsetGlareDetectionThreshold(double glareDetectionThreshold) Setter for glareDetectionThreshold field.
-
Constructor Details
-
GlareDetectionConfiguration
public GlareDetectionConfiguration(double glareDetectionThreshold) Constructs GlareDetectionConfiguration with the given params.- Parameters:
glareDetectionThreshold- Glare detection threshold. The value should be in the range [0.0, 1.0]. Determines how much glare is acceptable relative to the text size. So 0.5 means that the glare can be up to 50% of the text size. If set to 0.0, the feature is disabled. Default is `0.5`.
-
GlareDetectionConfiguration
public GlareDetectionConfiguration()Constructs GlareDetectionConfiguration with default parameters.
-
-
Method Details
-
getGlareDetectionThreshold
public double getGlareDetectionThreshold()Getter for glareDetectionThreshold field. See constructor documentation for more information about the field.- Returns:
- glareDetectionThreshold
-
setGlareDetectionThreshold
public void setGlareDetectionThreshold(double glareDetectionThreshold) Setter for glareDetectionThreshold field. See constructor documentation for more information about the field.- Parameters:
glareDetectionThreshold- Value to set.
-