![]() |
Zivid C++ API 2.19.0+b5c53d0f-1
|
Information about a detected matrix (2D) barcode. More...
#include <Zivid/Experimental/Toolbox/Barcode.h>
Public Member Functions | |
| ZIVID_CORE_EXPORT std::string | code () const |
| Get the code encoded in the barcode. | |
| ZIVID_CORE_EXPORT MatrixBarcodeFormat | codeFormat () const |
| Get the format of the code. | |
| ZIVID_CORE_EXPORT PointXY | centerPosition () const |
| Get the location of the barcode in the 2D image. | |
| ZIVID_CORE_EXPORT BoundingBox | boundingBox () const |
| Get the bounding box of the barcode in the 2D image. | |
| ZIVID_CORE_EXPORT VectorXY | orientation () const |
| Get the orientation of the barcode in the 2D image. | |
| ZIVID_CORE_EXPORT std::string | toString () const |
| Get string representation of the object. | |
Information about a detected matrix (2D) barcode.
| ZIVID_CORE_EXPORT BoundingBox Zivid::Experimental::Toolbox::MatrixBarcodeDecodingResult::boundingBox | ( | ) | const |
Get the bounding box of the barcode in the 2D image.
| ZIVID_CORE_EXPORT PointXY Zivid::Experimental::Toolbox::MatrixBarcodeDecodingResult::centerPosition | ( | ) | const |
Get the location of the barcode in the 2D image.
| ZIVID_CORE_EXPORT std::string Zivid::Experimental::Toolbox::MatrixBarcodeDecodingResult::code | ( | ) | const |
Get the code encoded in the barcode.
| ZIVID_CORE_EXPORT MatrixBarcodeFormat Zivid::Experimental::Toolbox::MatrixBarcodeDecodingResult::codeFormat | ( | ) | const |
Get the format of the code.
| ZIVID_CORE_EXPORT VectorXY Zivid::Experimental::Toolbox::MatrixBarcodeDecodingResult::orientation | ( | ) | const |
Get the orientation of the barcode in the 2D image.
The orientation is the direction from the symbol's left edge to its right edge, as seen with the symbol upright. An upright symbol points along the positive x-axis, and a symbol turned a quarter turn clockwise points along the positive y-axis.
Image pixel coordinates have x pointing right and y pointing down. So VectorXY::angleInDegrees() on the result is 0 for an upright symbol, and increases clockwise as the image is displayed.
| ZIVID_CORE_EXPORT std::string Zivid::Experimental::Toolbox::MatrixBarcodeDecodingResult::toString | ( | ) | const |
Get string representation of the object.