Package boofcv.abst.fiducial
Class MicroQrCodePreciseDetector<T extends ImageGray<T>>
java.lang.Object
boofcv.abst.fiducial.MicroQrCodePreciseDetector<T>
- All Implemented Interfaces:
MicroQrCodeDetector<T>
,VerbosePrint
public class MicroQrCodePreciseDetector<T extends ImageGray<T>>
extends Object
implements MicroQrCodeDetector<T>, VerbosePrint
A Micro QR-Code detector which is designed to find the location of corners in the finder pattern precisely.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMicroQrCodePreciseDetector
(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
setVerbose
(@Nullable PrintStream out, @Nullable Set<String> configuration)
-
Field Details
-
milliBinary
-
milliDecoding
-
-
Constructor Details
-
MicroQrCodePreciseDetector
public MicroQrCodePreciseDetector(InputToBinary<T> inputToBinary, QrCodePositionPatternDetector<T> detectPositionPatterns, @Nullable @Nullable String forceEncoding, String defaultEncoding, boolean copyBinary, Class<T> imageType)
-
-
Method Details
-
process
Description copied from interface:MicroQrCodeDetector
Processes the image and searches for fiducials- Specified by:
process
in interfaceMicroQrCodeDetector<T extends ImageGray<T>>
- Parameters:
gray
- The image being processed
-
getDetections
Description copied from interface:MicroQrCodeDetector
List of detected fiducials- Specified by:
getDetections
in interfaceMicroQrCodeDetector<T extends ImageGray<T>>
- Returns:
- List of detected QR-Codes. WARNING: Data might be recycled on next call to
MicroQrCodeDetector.process(T)
-
getFailures
Description copied from interface:MicroQrCodeDetector
List of likely fiducials that were rejected.- Specified by:
getFailures
in interfaceMicroQrCodeDetector<T extends ImageGray<T>>
- Returns:
- List of rejected candidate QR-Codes. WARNING: Data might be recycled on next call to
MicroQrCodeDetector.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
-
resetRuntimeProfiling
public void resetRuntimeProfiling() -
getSquareDetector
-
getImageType
Description copied from interface:MicroQrCodeDetector
Type of image it can process- Specified by:
getImageType
in interfaceMicroQrCodeDetector<T extends ImageGray<T>>
- Returns:
- input image type
-
setVerbose
public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration) - Specified by:
setVerbose
in interfaceVerbosePrint
-