Interface GlareDetectorOptions
- All Known Implementing Classes:
MrtdRecognizer
,PassportRecognizer
,TemplatingRecognizer
,VisaRecognizer
public interface GlareDetectorOptions
Interface that should be implemented by settings for all recognizers that use glare detector.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setDetectGlare
(boolean detectGlare) Defines whether glare detector will be used during recognition process.boolean
Returns whether glare detector is enabled.
-
Field Details
-
CLASS_NAME
- See Also:
-
-
Method Details
-
setDetectGlare
void setDetectGlare(boolean detectGlare) Defines whether glare detector will be used during recognition process. By default this option is set totrue
and glare detector is used. If the glare detector is used andGlareCallback
is 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
.
-