Class QrCodePreciseDetector<T extends ImageGray<T>>

java.lang.Object
boofcv.abst.fiducial.QrCodePreciseDetector<T>
All Implemented Interfaces:
QrCodeDetector<T>

public class QrCodePreciseDetector<T extends ImageGray<T>>
extends Object
implements QrCodeDetector<T>
A QR-Code detector which is designed to find the location of corners in the finder pattern precisely.
  • Field Details

  • Constructor Details

  • Method Details

    • process

      public void process​(T gray)
      Description copied from interface: QrCodeDetector
      Processes the image and searches for fiducials
      Specified by:
      process in interface QrCodeDetector<T extends ImageGray<T>>
      Parameters:
      gray - The image being processed
    • getDetections

      public List<QrCode> getDetections()
      Description copied from interface: QrCodeDetector
      List of detected fiducials
      Specified by:
      getDetections in interface QrCodeDetector<T extends ImageGray<T>>
      Returns:
      List of detected QR-Codes. WARNING: Data might be recycled on next call to QrCodeDetector.process(T)
    • getFailures

      public List<QrCode> getFailures()
      Description copied from interface: QrCodeDetector
      List of likely fiducials that were rejected.
      Specified by:
      getFailures in interface QrCodeDetector<T extends ImageGray<T>>
      Returns:
      List of rejected candidate QR-Codes. WARNING: Data might be recycled on next call to QrCodeDetector.process(T)
    • 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.
    • getBinary

      public GrayU8 getBinary()
    • setProfilerState

      public void setProfilerState​(boolean active)
    • resetRuntimeProfiling

      public void resetRuntimeProfiling()
    • getSquareDetector

      public DetectPolygonBinaryGrayRefine<T> getSquareDetector()
    • getImageType

      public Class<T> getImageType()
      Description copied from interface: QrCodeDetector
      Type of image it can process
      Specified by:
      getImageType in interface QrCodeDetector<T extends ImageGray<T>>
      Returns:
      input image type