Class ConfigMicroQrCode

All Implemented Interfaces:
Configuration, Serializable

public class ConfigMicroQrCode
extends Object
implements Configuration
Configuration for MicroQrCodePreciseDetector
See Also:
Serialized Form
  • Field Details

    • threshold

      public ConfigThreshold threshold
      Specifies how images are thresholded and converted into a binary format
    • polygon

      public ConfigPolygonDetector polygon
      Configuration for polygon detector that's used to find position patterns
    • forceEncoding

      @Nullable public @Nullable String forceEncoding
      This forces the encoding in byte mode to use the specified encoding, unless one is specified by the ECI mode. If null an attempt to automatically determine the encoding is done, but will default to UTF-8 if there is any ambiguity. ISO 18004:2015 says it should be 8859-1 but most encoders and decoders use UTF-8 instead
    • considerTransposed

      public boolean considerTransposed
      If true it will consider QR codes which have been incorrectly encoded with transposed bits. Set to false if you know your markers are standard compliant and want a modest speed boost.
  • Constructor Details

    • ConfigMicroQrCode

      public ConfigMicroQrCode()
  • Method Details

    • fast

      public static ConfigMicroQrCode fast()
      Default configuration for a QR Code detector which is optimized for speed
    • setTo

      public ConfigMicroQrCode setTo​(ConfigMicroQrCode src)
    • checkValidity

      public void checkValidity()
      Description copied from interface: Configuration
      Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.
      Specified by:
      checkValidity in interface Configuration