Package boofcv.alg.fiducial.qrcode
Class QrCodePositionPatternDetector<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.fiducial.qrcode.SquareLocatorPatternDetectorBase<T>
boofcv.alg.fiducial.qrcode.QrCodePositionPatternDetector<T>
- All Implemented Interfaces:
VerbosePrint
public class QrCodePositionPatternDetector<T extends ImageGray<T>>
extends SquareLocatorPatternDetectorBase<T>
Detects position patterns for a QR code inside an image. This is done by detecting squares and seeing if they
have the expected shape.
If a lens distortion model is provided the returned pixel coordinates will be in an undistorted image
-
Field Summary
Modifier and TypeFieldDescriptionprotected DogArray<PositionPatternNode>
Returns a list of all the detected position pattern squares and the other PP that they are connected to.Fields inherited from class boofcv.alg.fiducial.qrcode.SquareLocatorPatternDetectorBase
interpolate, maxContourFraction, profilingMS, squareDetector, verbose
-
Constructor Summary
ConstructorDescriptionQrCodePositionPatternDetector
(DetectPolygonBinaryGrayRefine<T> squareDetector) Configures the detector -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Called after squares have been detected and you are using detected squares to identify locator patternsvoid
void
setVerbose
(@Nullable PrintStream out, @Nullable Set<String> configuration) Methods inherited from class boofcv.alg.fiducial.qrcode.SquareLocatorPatternDetectorBase
configureContourDetector, process, setLensDistortion
-
Field Details
-
positionPatterns
Returns a list of all the detected position pattern squares and the other PP that they are connected to. If a lens distortion model is provided then coordinates will be in an undistorted image.
-
-
Constructor Details
-
QrCodePositionPatternDetector
Configures the detector- Parameters:
squareDetector
- Square detector
-
-
Method Details
-
resetRuntimeProfiling
public void resetRuntimeProfiling() -
findLocatorPatternsFromSquares
protected void findLocatorPatternsFromSquares()Description copied from class:SquareLocatorPatternDetectorBase
Called after squares have been detected and you are using detected squares to identify locator patterns- Specified by:
findLocatorPatternsFromSquares
in classSquareLocatorPatternDetectorBase<T extends ImageGray<T>>
-
setVerbose
public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration) - Specified by:
setVerbose
in interfaceVerbosePrint
- Overrides:
setVerbose
in classSquareLocatorPatternDetectorBase<T extends ImageGray<T>>
-