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"
48 CCA = CExports::CVCRValueSymbology::CVCRVS_CCA,
50 CCB = CExports::CVCRValueSymbology::CVCRVS_CCB,
52 CCC = CExports::CVCRValueSymbology::CVCRVS_CCC
64 friend class ResultHandle;
67 Result2D(
int quality,
int rows,
int columns,
const Size2D<double> &size,
int errorCorrectionErasureCodewords,
73 , errorCorrectionCodewords_(errorCorrectionCodewords)
74 , errorCorrectionErasureCodewords_(errorCorrectionErasureCodewords)
75 , compositeType_(compositeType)
126 return errorCorrectionCodewords_;
135 return errorCorrectionErasureCodewords_;
144 return compositeType_;
149 int errorCorrectionCodewords_ = 0;
150 int errorCorrectionErasureCodewords_ = 0;
167 friend class ResultHandle;
175 , symbology_(symbology)
176 , decodeStatus_(decodeStatus)
177 , result2D_(result2D) {};
184 , symbology_(symbology)
185 , decodeStatus_(decodeStatus)
186 , result2D_(result2D) {};
233 return decodeStatus_;
165 class Result final {
…};
CodeReader::CompositeType CompositeType() const noexcept
Gets the type of the composite component.
Definition result.hpp:142
int Columns() const noexcept
Gets number of columns in the code.
Definition result.hpp:93
int ErrorCorrectionErasureCodewords() const noexcept
Gets the number of used error correction erasure codewords from a decoded 2D code.
Definition result.hpp:133
int Quality() const noexcept
Gets code quality.
Definition result.hpp:115
Size2D< double > Size() const noexcept
Gets size of the code in pixels.
Definition result.hpp:103
int ErrorCorrectionCodewords() const noexcept
Gets the number of used error correction codewords from a decoded 2D code.
Definition result.hpp:124
int Rows() const noexcept
Gets number of rows in the code.
Definition result.hpp:84
Symbology SymbologyType() const noexcept
Gets symbology type of read code.
Definition result.hpp:222
CodeReader::DecodeStatus DecodeStatus() const noexcept
Gets decoding status of read code.
Definition result.hpp:231
Cvb::optional< class Result2D > Result2D() const noexcept
Gets the result of a 2D code, if available.
Definition result.hpp:242
std::array< Point2D< int >, 4 > Corners() const noexcept
Gets corner coordinates of read code.
Definition result.hpp:213
String Data() const
Gets the decoded decoded data.
Definition result.hpp:195
Point2D< int > Center() const noexcept
Gets center coordinates of read code.
Definition result.hpp:204
Multi-purpose 2D vector class.
Definition point_2d.hpp:20
This class is a replacement for C++17 std::optional.
Definition optional.hpp:61
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:44
@ None
Is not a composite component.
Definition result.hpp:46
@ CCB
Composite Component B (CC-B).
Definition result.hpp:50
@ CCA
Composite Component A (CC-A).
Definition result.hpp:48
@ CCC
Composite Component C (CC-C).
Definition result.hpp:52
DecodeStatus
Enum class for decoding status.
Definition result.hpp:32
@ Success
Decoding succeeded.
Definition result.hpp:36
@ Failure
Decoding failed.
Definition result.hpp:34
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
std::string String
String for wide characters or unicode characters.
Definition string.hpp:49