Package boofcv.alg.fiducial.aztec
Class AztecCode
java.lang.Object
boofcv.alg.fiducial.aztec.AztecCode
Information on a detected Aztec Code
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
At what stage did it fail at?static enum
Specifies which encoding is currently active in the data stream.static enum
Which symbol structure is used -
Field Summary
Modifier and TypeFieldDescriptionApproximate bounding box of the marker.byte[]
Raw byte data after error correction has been applied to it.int
Number of layers or rings outside the locator pattern that data is encoded onAt what stage did decoding fail atA homography transform from grid bit coordinates into image pixels.final AztecPyramid
Locations of extern contours around the squares in a locator pattern.The decoded messageint
Number of code words used to encode the message.byte[]
The raw byte data encoded into the QR Code.Which Structure does it have.int
Number of bit errors detected when apply error correction to the messageboolean
True if the marker was incorrectly encoded or is being viewed in a mirror because the bits locations are transposed. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
int
Returns the maximum number of bits that can be encoded.int
Returns the maximum number of codewords that can be stored in the marker.double
Returns ratio of words used for error correction over words used to store dataint
Number of rings in the locator patternint
Number of squares in locator patternint
Number of squares (data bits) wide the marker isint
Returns number bits in a code wordstatic int
getWordBitCount
(int dataLayers) void
reset()
-
Field Details
-
dataLayers
public int dataLayersNumber of layers or rings outside the locator pattern that data is encoded on -
messageWordCount
public int messageWordCountNumber of code words used to encode the message. Code words have variable bit count. -
rawbits
public byte[] rawbitsThe raw byte data encoded into the QR Code. data + ecc -
corrected
public byte[] correctedRaw byte data after error correction has been applied to it. Only contains the data portion -
message
The decoded message -
structure
Which Structure does it have. Determines shape of locator pattern and maximum number of data layers. -
failure
At what stage did decoding fail at -
transposed
public boolean transposedTrue if the marker was incorrectly encoded or is being viewed in a mirror because the bits locations are transposed. -
totalBitErrors
public int totalBitErrorsNumber of bit errors detected when apply error correction to the message -
locator
Locations of extern contours around the squares in a locator pattern. -
bounds
Approximate bounding box of the marker. Note that the corners are not directly measured but have to be inferred from other fixed structures. Order: top-left = 0. Top-right = 1, Bottom-Right = 2, Bottom-Left = 3. -
Hinv
A homography transform from grid bit coordinates into image pixels.
-
-
Constructor Details
-
AztecCode
public AztecCode()
-
-
Method Details
-
getMarkerWidthSquares
public int getMarkerWidthSquares()Number of squares (data bits) wide the marker is -
getLocatorRingCount
public int getLocatorRingCount()Number of rings in the locator pattern -
getLocatorWidthSquares
public int getLocatorWidthSquares()Number of squares in locator pattern -
getCapacityBits
public int getCapacityBits()Returns the maximum number of bits that can be encoded. Data and ECC combined -
getCapacityWords
public int getCapacityWords()Returns the maximum number of codewords that can be stored in the marker. -
getWordBitCount
public int getWordBitCount()Returns number bits in a code word -
getWordBitCount
public static int getWordBitCount(int dataLayers) -
getCorrectionLevel
public double getCorrectionLevel()Returns ratio of words used for error correction over words used to store data -
reset
public void reset() -
setTo
-
copy
-