Class for storing the results of decoding. More...
#include <result.hpp>
Public Member Functions | |
| String | Data () const |
| Gets the decoded decoded data. | |
| Point2D< int > | Center () const noexcept |
| Gets center coordinates of read code. | |
| std::array< Point2D< int >, 4 > | Corners () const noexcept |
| Gets corner coordinates of read code. | |
| Symbology | SymbologyType () const noexcept |
| Gets symbology type of read code. | |
| CodeReader::DecodeStatus | DecodeStatus () const noexcept |
| Gets decoding status of read code. | |
| Cvb::optional< class Result2D > | Result2D () const noexcept |
| Gets the result of a 2D code, if available. | |
Class for storing the results of decoding.
This class holds the results of a read code. After executing the decoding process with Decoder::Execute(), a vector of Result objects is returned, containing the decoding outcomes.
|
inlinenoexcept |
Gets center coordinates of read code.
|
inlinenoexcept |
Gets corner coordinates of read code.
The corners define the bounding box of the decoded code, listed in clockwise order starting from corner 0. Corner 0 corresponds to the upper-left corner of the code in its standard, un-rotated orientation.
|
inline |
Gets the decoded decoded data.
|
inlinenoexcept |
Gets decoding status of read code.
Gets the result of a 2D code, if available.
This function returns a 2D code result if the read code is of a 2D type. If the read code is not a 2D code, an empty result is returned.