Package boofcv.abst.fiducial
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQrCodePreciseDetector(InputToBinary<T> inputToBinary, QrCodePositionPatternDetector<T> detectPositionPatterns, @Nullable String forceEncoding, String defaultEncoding, boolean copyBinary, Class<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionList of detected fiducialsList of likely fiducials that were rejected.Type of image it can processvoidProcesses the image and searches for fiducialsvoidvoidsetLensDistortion(int width, int height, @Nullable LensDistortionNarrowFOV model) Specifies transforms which can be used to change coordinates from distorted to undistorted and the opposite coordinates.voidsetProfilerState(boolean active)
-
Field Details
-
milliBinary
-
milliDecoding
-
-
Constructor Details
-
QrCodePreciseDetector
public QrCodePreciseDetector(InputToBinary<T> inputToBinary, QrCodePositionPatternDetector<T> detectPositionPatterns, @Nullable @Nullable String forceEncoding, String defaultEncoding, boolean copyBinary, Class<T> imageType)
-
-
Method Details
-
process
Description copied from interface:QrCodeDetectorProcesses the image and searches for fiducials- Specified by:
processin interfaceQrCodeDetector<T extends ImageGray<T>>- Parameters:
gray- The image being processed
-
getDetections
Description copied from interface:QrCodeDetectorList of detected fiducials- Specified by:
getDetectionsin interfaceQrCodeDetector<T extends ImageGray<T>>- Returns:
- List of detected QR-Codes. WARNING: Data might be recycled on next call to
QrCodeDetector.process(T)
-
getFailures
Description copied from interface:QrCodeDetectorList of likely fiducials that were rejected.- Specified by:
getFailuresin interfaceQrCodeDetector<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
-
setProfilerState
public void setProfilerState(boolean active) -
resetRuntimeProfiling
public void resetRuntimeProfiling() -
getSquareDetector
-
getImageType
Description copied from interface:QrCodeDetectorType of image it can process- Specified by:
getImageTypein interfaceQrCodeDetector<T extends ImageGray<T>>- Returns:
- input image type
-