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"
62 CCA = CExports::CVCRValueSymbology::CVCRVS_CCA,
64 CCB = CExports::CVCRValueSymbology::CVCRVS_CCB,
66 CCC = CExports::CVCRValueSymbology::CVCRVS_CCC
78 friend class ResultHandle;
81 Result2D(
int quality,
int rows,
int columns,
const Size2D<double> &size,
int errorCorrectionErasureCodewords,
87 , errorCorrectionCodewords_(errorCorrectionCodewords)
88 , errorCorrectionErasureCodewords_(errorCorrectionErasureCodewords)
89 , compositeType_(compositeType)
140 return errorCorrectionCodewords_;
149 return errorCorrectionErasureCodewords_;
158 return compositeType_;
163 int errorCorrectionCodewords_ = 0;
164 int errorCorrectionErasureCodewords_ = 0;
181 friend class ResultHandle;
189 , symbology_(symbology)
190 , decodeStatus_(decodeStatus)
191 , result2D_(result2D) {};
194 DecodeStatus decodeStatus,
const Cvb::optional<class Result2D> &result2D = {})
198 , symbology_(symbology)
199 , decodeStatus_(decodeStatus)
200 , result2D_(result2D) {};
249 return decodeStatus_;
258 Cvb::optional<class Result2D>
Result2D() const noexcept
270 Cvb::optional<class Result2D> result2D_;
CodeReader::CompositeType CompositeType() const noexcept
Gets the type of the composite component.
Definition result.hpp:156
int Columns() const noexcept
Gets number of columns in the code.
Definition result.hpp:107
int ErrorCorrectionErasureCodewords() const noexcept
Gets the number of used error correction erasure codewords from a decoded 2D code.
Definition result.hpp:147
int Quality() const noexcept
Gets code quality.
Definition result.hpp:129
Size2D< double > Size() const noexcept
Gets size of the code in pixels.
Definition result.hpp:117
int ErrorCorrectionCodewords() const noexcept
Gets the number of used error correction codewords from a decoded 2D code.
Definition result.hpp:138
int Rows() const noexcept
Gets number of rows in the code.
Definition result.hpp:98
Symbology SymbologyType() const noexcept
Gets symbology type of read code.
Definition result.hpp:238
CodeReader::DecodeStatus DecodeStatus() const noexcept
Gets decoding status of read code.
Definition result.hpp:247
Cvb::optional< class Result2D > Result2D() const noexcept
Gets the result of a 2D code, if available.
Definition result.hpp:258
std::array< Point2D< int >, 4 > Corners() const noexcept
Gets corner coordinates of read code.
Definition result.hpp:229
String Data() const
Gets the decoded decoded data.
Definition result.hpp:209
Point2D< int > Center() const noexcept
Gets center coordinates of read code.
Definition result.hpp:218
Multi-purpose 2D vector class.
Definition point_2d.hpp:20
Stores a pair of numbers that represents the width and the height of a subject, typically a rectangle...
Definition size_2d.hpp:20
Namespace for all decoding functionalities.
Definition decl_config_2d_codes.hpp:10
Symbology
Enum class listing all supported symbologies.
Definition decl_config_base.hpp:35
@ Unknown
Unknown symbology.
Definition decl_config_base.hpp:37
@ None
No additional processing is applied.
Definition decl_decoder.hpp:34
CompositeType
Enum class representing the type of composite code.
Definition result.hpp:58
@ None
Is not a composite component.
Definition result.hpp:60
@ CCB
Composite Component B (CC-B).
Definition result.hpp:64
@ CCA
Composite Component A (CC-A).
Definition result.hpp:62
@ CCC
Composite Component C (CC-C).
Definition result.hpp:66
DecodeStatus
Enum class for decoding status.
Definition result.hpp:46
@ Success
Decoding succeeded.
Definition result.hpp:50
@ Failure
Decoding failed.
Definition result.hpp:48
Root namespace for the Image Manager interface.
Definition version.hpp:11
std::string String
String for wide characters or unicode characters.
Definition string.hpp:49