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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMicroQrCodePreciseDetector(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.voidsetVerbose(@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:MicroQrCodeDetectorProcesses the image and searches for fiducials- Specified by:
processin interfaceMicroQrCodeDetector<T extends ImageGray<T>>- Parameters:
gray- The image being processed
-
getDetections
Description copied from interface:MicroQrCodeDetectorList of detected fiducials- Specified by:
getDetectionsin 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:MicroQrCodeDetectorList of likely fiducials that were rejected.- Specified by:
getFailuresin 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:MicroQrCodeDetectorType of image it can process- Specified by:
getImageTypein interfaceMicroQrCodeDetector<T extends ImageGray<T>>- Returns:
- input image type
-
setVerbose
public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration) - Specified by:
setVerbosein interfaceVerbosePrint
-