Class QrCodeAlignmentPatternLocator<T extends ImageGray<T>>

java.lang.Object
boofcv.alg.fiducial.qrcode.QrCodeAlignmentPatternLocator<T>

public class QrCodeAlignmentPatternLocator<T extends ImageGray<T>> extends Object
Searches the image for alignment patterns. First it computes a transform that removes perspective distortion using previously detected position patterns. Then it searches inside the image for the position patterns. If available, adjacent position patterns are used to adjust the search so that locations distant from position patterns can be compensated for. NOTE: The current algorithm is a bit brittle and is a good target for further improvement. It has issues converging when its initial guess is off.
  • Constructor Details

    • QrCodeAlignmentPatternLocator

      public QrCodeAlignmentPatternLocator(Class<T> imageType)
  • Method Details

    • process

      public boolean process(T image, QrCode qr)
      Uses the previously detected position patterns to seed the search for the alignment patterns
    • setLensDistortion

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