public class QrCode
extends java.lang.Object
implements java.lang.Cloneable
Position Patterns (PP) have their vertices CCW order. The polygons are oriented such that the following sides are paired: ppCorner[1,2] paired ppRight[3,0] and ppCorner[2,3] paired ppDown[0,1].
| Modifier and Type | Class and Description |
|---|---|
static class |
QrCode.Alignment
Information related to a specific alignment pattern.
|
static class |
QrCode.BlockInfo
Specifies the format for a data block.
|
static class |
QrCode.ErrorLevel
Error correction level
|
static class |
QrCode.Failure
Specifies the step at which decoding failed
|
static class |
QrCode.Mode
The encoding mode.
|
static class |
QrCode.VersionInfo |
| Modifier and Type | Field and Description |
|---|---|
org.ddogleg.struct.FastQueue<QrCode.Alignment> |
alignment
Alignment pattern information
|
georegression.struct.shapes.Polygon2D_F64 |
bounds
Approximate bounding box for QR-Code.
|
byte[] |
corrected
Raw byte data after error correction has been applied to it.
|
QrCode.ErrorLevel |
error
Level of error correction
|
QrCode.Failure |
failureCause
Specifies where the QR code parsing failed
|
georegression.struct.homography.Homography2D_F64 |
Hinv
A homography transform from grid bit coordinates into image pixels.
|
static java.util.List<georegression.struct.point.Point2D_I32>[] |
LOCATION_BITS
Location of data bits in the code qr for each version.
|
QrCodeMaskPattern |
mask
Which masking pattern is applied
|
static int |
MAX_VERSION
Maximum possible version of a QR Code
|
java.lang.String |
message
If applicable the message is decoded into a sequence of characters.
|
QrCode.Mode |
mode
Text encoding mode
|
georegression.struct.shapes.Polygon2D_F64 |
ppCorner |
georegression.struct.shapes.Polygon2D_F64 |
ppDown |
georegression.struct.shapes.Polygon2D_F64 |
ppRight
The finder pattern that is composed of the 3 position patterns.
|
byte[] |
rawbits
The raw byte data encoded into the QR Code.
|
double |
threshCorner |
double |
threshDown |
double |
threshRight |
int |
version
which version of QR code was found.
|
static int |
VERSION_ENCODED_AT
The QR code version after which and including version information is encoded into the QR code
|
static QrCode.VersionInfo[] |
VERSION_INFO |
| Constructor and Description |
|---|
QrCode() |
| Modifier and Type | Method and Description |
|---|---|
QrCode |
clone() |
int |
getNumberOfDataBytes() |
int |
getNumberOfModules() |
void |
reset()
Resets the QR-Code so that it's in its initial state.
|
void |
set(QrCode o)
Sets 'this' so that it's equivalent to 'o'.
|
static int |
totalModules(int version) |
public static final int MAX_VERSION
public static final int VERSION_ENCODED_AT
public static final QrCode.VersionInfo[] VERSION_INFO
public static final java.util.List<georegression.struct.point.Point2D_I32>[] LOCATION_BITS
public georegression.struct.shapes.Polygon2D_F64 ppRight
public georegression.struct.shapes.Polygon2D_F64 ppCorner
public georegression.struct.shapes.Polygon2D_F64 ppDown
public double threshRight
public double threshCorner
public double threshDown
public int version
public QrCode.ErrorLevel error
public QrCodeMaskPattern mask
public org.ddogleg.struct.FastQueue<QrCode.Alignment> alignment
public QrCode.Mode mode
public byte[] rawbits
public byte[] corrected
public java.lang.String message
public QrCode.Failure failureCause
public georegression.struct.shapes.Polygon2D_F64 bounds
public georegression.struct.homography.Homography2D_F64 Hinv
public int getNumberOfModules()
public int getNumberOfDataBytes()
public static int totalModules(int version)
public void reset()
public QrCode clone()
clone in class java.lang.Objectpublic void set(QrCode o)
o - The target object