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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setDetectGlare(boolean detectGlare)
    Defines whether glare detector will be used during recognition process.
    boolean
    Returns whether glare detector is enabled.
  • Field Details

  • Method Details

    • setDetectGlare

      void setDetectGlare(boolean detectGlare)
      Defines whether glare detector will be used during recognition process. By default this option is set to true and glare detector is used. If the glare detector is used and GlareCallback is set to MetadataCallbacks, 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 returns false.