3#include "../point_2d.hpp"
5#include "../size_2d.hpp"
6#include "../string.hpp"
7#include "../shims/stdoptional.hpp"
9#include "_decl/decl_config_base.hpp"
60 CCA = CExports::CVBCValueSymbology::CVBCVS_CCA,
62 CCB = CExports::CVBCValueSymbology::CVBCVS_CCB,
64 CCC = CExports::CVBCValueSymbology::CVBCVS_CCC
68 Result2D(
int quality,
int rows,
int columns,
const Size2D<float> &size,
int errorCorrectionErasureCodewords,
74 , errorCorrectionCodewords_(errorCorrectionCodewords)
75 , errorCorrectionErasureCodewords_(errorCorrectionErasureCodewords)
76 , compositeType_(compositeType)
126 return errorCorrectionCodewords_;
135 return errorCorrectionErasureCodewords_;
144 return compositeType_;
149 int errorCorrectionCodewords_ = 0;
150 int errorCorrectionErasureCodewords_ = 0;
175 , symbology_(symbology)
176 , decodeStatus_(decodeStatus)
177 , result2D_(result2D){};
224 return decodeStatus_;
Class for barcode decoding.
Definition: decl_decoder.hpp:73
Class for storing the results of 2D barcode decoding.
Definition: result.hpp:47
CompositeType CompositeType()
Gets the type of the composite component.
Definition: result.hpp:142
CompositeType
Enum class representing the type of composite barcode.
Definition: result.hpp:56
@ None
Is not a composite component.
int ErrorCorrectionErasureCodewords()
Gets the number of used error correction erasure codewords from a decoded 2D barcode.
Definition: result.hpp:133
int Columns() const noexcept
Gets number of columns in the barcode.
Definition: result.hpp:94
int ErrorCorrectionCodewords()
Gets the number of used error correction codewords from a decoded 2D barcode.
Definition: result.hpp:124
int Quality() const noexcept
Gets barcode quality.
Definition: result.hpp:115
Size2D< float > Size() const noexcept
Gets size of the barcode in pixels.
Definition: result.hpp:104
int Rows() const noexcept
Gets number of rows in the barcode.
Definition: result.hpp:85
Class for storing the results of barcode decoding.
Definition: result.hpp:166
Symbology SymbologyType() const noexcept
Gets symbology type of decoded barcode.
Definition: result.hpp:213
Cvb::optional< class Result2D > Result2D() const noexcept
Gets the result of a 2D barcode, if available.
Definition: result.hpp:233
std::array< Point2D< int >, 4 > Corners() const noexcept
Gets corner coordinates of decoded barcode.
Definition: result.hpp:204
DecodeStatus DecodeStatus() const noexcept
Gets decoding status of decoded barcode.
Definition: result.hpp:222
String Data() const
Gets the decoded barcode data.
Definition: result.hpp:186
Point2D< int > Center() const noexcept
Gets center coordinates of decoded barcode.
Definition: result.hpp:195
This class is a replacement for C++17 std::optional.
Definition: optional.hpp:60
Symbology
Enum class listing all supported barcode symbologies.
Definition: decl_config_base.hpp:36
@ Unknown
Unknown barcode symbology.
DecodeStatus
Enum class for decoding status.
Definition: result.hpp:32
@ Success
Decoding succeeded.
@ Failure
Decoding failed.
Root namespace for the Image Manager interface.
Definition: c_barcode.h:15