Class QrCodeDecoderImage<T extends ImageGray<T>>


public class QrCodeDecoderImage<T extends ImageGray<T>> extends Object
Uses position pattern graph to find candidate QR Codes. From those it attempts to decode each QR Code.
  • Field Details

    • considerTransposed

      public boolean considerTransposed
      Should it consider a QR code which has been encoded with a transposed bit pattern?
      See Also:
  • Constructor Details

    • QrCodeDecoderImage

      public QrCodeDecoderImage(@Nullable @Nullable String forceEncoding, String defaultEncoding, Class<T> imageType)
      forceEncoding - Force the default encoding to be this. Null for default
  • Method Details

    • process

      public void process(List<PositionPatternNode> pps, T gray)
      Detects QR Codes inside image using position pattern graph
      pps - position pattern graph
      gray - Gray input image
    • transposeCorners

      public static void transposeCorners(Polygon2D_F64 c)
      Transposes the order of corners in the quadrilateral
    • setLensDistortion

      public void setLensDistortion(int width, int height, @Nullable @Nullable LensDistortionNarrowFOV model)

      Specifies transforms which can be used to change coordinates from distorted to undistorted and the opposite coordinates. The undistorted image is never explicitly created.

      width - Input image width. Used in sanity check only.
      height - Input image height. Used in sanity check only.
      model - distortion model. Null to remove a distortion model.