Class QrCodeDecoderImage<T extends ImageGray<T>>

java.lang.Object
boofcv.alg.fiducial.qrcode.QrCodeDecoderImage<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)
      Parameters:
      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
      Parameters:
      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.

      Parameters:
      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.
    • getAlignmentLocator

      public QrCodeAlignmentPatternLocator<T> getAlignmentLocator()
    • getFound

      public List<QrCode> getFound()
    • getFailures

      public List<QrCode> getFailures()