Interface GlareDetectorOptions
-
public interface GlareDetectorOptionsInterface that should be implemented by settings for all recognizers that use glare detector.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLASS_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetDetectGlare(boolean detectGlare)Defines whether glare detector will be used during recognition process.booleanshouldDetectGlare()Returns whether glare detector is enabled.
-
-
-
Field Detail
-
CLASS_NAME
@NonNull static final java.lang.String CLASS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDetectGlare
void setDetectGlare(boolean detectGlare)
Defines whether glare detector will be used during recognition process. By default this option is set totrueand glare detector is used. If the glare detector is used andGlareCallbackis set toMetadataCallbacks, it will receive glare status will. Also when glare is detected OCR will not be performed on the affected document position to prevent errors in the extracted data. By default, this is set to 'true'.- Parameters:
detectGlare- whether glare detector will be used during recognition process.
-
shouldDetectGlare
boolean shouldDetectGlare()
Returns whether glare detector is enabled. By default, this is set to 'true'.- Returns:
- it the glare detector is enabled returns
true, otherwise returnsfalse.
-
-