public class QrCodePositionPatternDetector<T extends boofcv.struct.image.ImageGray<T>>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected georegression.struct.line.LineSegment2D_F64 |
connectLine |
protected georegression.struct.point.Point2D_F64 |
intersection |
protected georegression.struct.line.LineSegment2D_F64 |
lineA |
protected georegression.struct.line.LineSegment2D_F64 |
lineB |
protected boofcv.misc.MovingAverage |
milliGraph |
protected boolean |
profiler |
| Constructor and Description |
|---|
QrCodePositionPatternDetector(boofcv.alg.shapes.polygon.DetectPolygonBinaryGrayRefine<T> squareDetector,
int maxVersionQR)
Configures the detector
|
| Modifier and Type | Method and Description |
|---|---|
SquareGraph |
getGraph() |
org.ddogleg.struct.FastQueue<PositionPatternNode> |
getPositionPatterns()
Returns a list of all the detected position pattern squares and the other PP that they are connected to.
|
boofcv.alg.shapes.polygon.DetectPolygonBinaryGrayRefine<T> |
getSquareDetector() |
void |
process(T gray,
boofcv.struct.image.GrayU8 binary)
Detects position patterns inside the image and forms a graph.
|
protected void |
recycleData() |
void |
resetRuntimeProfiling() |
void |
setProfilerState(boolean active) |
protected georegression.struct.line.LineSegment2D_F64 lineA
protected georegression.struct.line.LineSegment2D_F64 lineB
protected georegression.struct.line.LineSegment2D_F64 connectLine
protected georegression.struct.point.Point2D_F64 intersection
protected boofcv.misc.MovingAverage milliGraph
protected boolean profiler
public QrCodePositionPatternDetector(boofcv.alg.shapes.polygon.DetectPolygonBinaryGrayRefine<T> squareDetector, int maxVersionQR)
squareDetector - Square detectormaxVersionQR - Maximum QR code version it can detect.public void resetRuntimeProfiling()
public void setProfilerState(boolean active)
public void process(T gray, boofcv.struct.image.GrayU8 binary)
gray - Gray scale input imagebinary - Thresholed version of gray image.protected void recycleData()
public org.ddogleg.struct.FastQueue<PositionPatternNode> getPositionPatterns()
public boofcv.alg.shapes.polygon.DetectPolygonBinaryGrayRefine<T> getSquareDetector()
public SquareGraph getGraph()