58 inline bool isValid()
const override;
122 ocean_assert(
false &&
"This should never happen!");
QRCodeBase()=default
Creates an invalid QR code instance.
CodeType codeType_
The variant of this QR code.
Definition QRCodeBase.h:246
std::vector< uint8_t > data_
The plain data.
Definition QRCodeBase.h:249
ErrorCorrectionCapacity errorCorrectionCapacity_
The error correction capacity that was used to generated this QR code.
Definition QRCodeBase.h:255
const std::vector< uint8_t > & modules() const
Returns the modules of this QR code The modules are stored in a vector and will have modulesPerSide()...
Definition QRCodeBase.h:290
std::vector< uint8_t > modules_
The modules of the QR code that store the data.
Definition QRCodeBase.h:258
@ CT_STANDARD
Indicates a standard QR codes.
Definition QRCodeBase.h:43
unsigned int version() const
Returns the version of the QR code.
Definition QRCodeBase.h:305
unsigned int version_
The version of the QR code.
Definition QRCodeBase.h:261
const std::vector< uint8_t > & data() const
Returns a constant reference to the plain data of the QR code.
Definition QRCodeBase.h:280
EncodingMode
Definition of encoding modes.
Definition QRCodeBase.h:72
@ EM_INVALID_ENCODING_MODE
Indicator for an invalid encoding mode.
Definition QRCodeBase.h:92
ErrorCorrectionCapacity
Enumeration of the levels of error correction The value of the enums correspond to the standard-defin...
Definition QRCodeBase.h:53
@ ECC_INVALID
Indicator for an invalid error correction capacity.
Definition QRCodeBase.h:65
@ ECC_DETECTION_ONLY
Indicates that the capacity is limited to error detection only (used only by Micro QR Code version M1...
Definition QRCodeBase.h:63
ErrorCorrectionCapacity errorCorrectionCapacity() const
Returns the error correction capacity of the QR code.
Definition QRCodeBase.h:300
EncodingMode encodingMode_
The encoding mode that was used to generate this QR code.
Definition QRCodeBase.h:252
EncodingMode encodingMode() const
Returns the encoding mode of the QR code.
Definition QRCodeBase.h:295
Definition of a QR code.
Definition QRCode.h:35
static constexpr unsigned int MIN_VERSION
Indicates the smallest valid version number of QR codes.
Definition QRCode.h:42
friend class QRCodeEncoder
Definition QRCode.h:36
static constexpr unsigned int MAX_VERSION
Indicates the largest valid version number of QR codes.
Definition QRCode.h:45
friend class QRCodeDecoder
Definition QRCode.h:37
unsigned int modulesPerSide() const override
Returns the number of modules per side of the QR code.
Definition QRCode.h:129
bool isValid() const override
Returns whether this is a valid QR code instance.
Definition QRCode.h:93
QRCode()=default
Creates an invalid QR code instance.
Definition AlignmentPatternDetector.h:30
std::vector< QRCode > QRCodes
Definition of a vector of QR codes.
Definition QRCode.h:28
Namespace of the CV Detector library.
Definition Barcode.h:19
Namespace of the CV library.
Definition Advanced.h:17
The namespace covering the entire Ocean framework.
Definition Accessor.h:15