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
-
Constructor Summary
ConstructorDescriptionQrCodePreciseDetector
(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 processvoid
Processes the image and searches for fiducialsvoid
void
setLensDistortion
(int width, int height, @Nullable LensDistortionNarrowFOV model) Specifies transforms which can be used to change coordinates from distorted to undistorted and the opposite coordinates.void
setProfilerState
(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:QrCodeDetector
Processes the image and searches for fiducials- Specified by:
process
in interfaceQrCodeDetector<T extends ImageGray<T>>
- Parameters:
gray
- The image being processed
-
getDetections
Description copied from interface:QrCodeDetector
List of detected fiducials- Specified by:
getDetections
in 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:QrCodeDetector
List of likely fiducials that were rejected.- Specified by:
getFailures
in 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:QrCodeDetector
Type of image it can process- Specified by:
getImageType
in interfaceQrCodeDetector<T extends ImageGray<T>>
- Returns:
- input image type
-