102 static bool extractModulesFromImage(
const AnyCamera& anyCamera,
const uint8_t*
const yFrame,
const unsigned int width,
const unsigned int height,
const unsigned int paddingElements,
const unsigned int version,
const HomogenousMatrix4& code_T_camera,
const bool isNormalReflectance,
const unsigned int grayThreshold, std::vector<uint8_t>& modules,
const Scalar scale =
Scalar(1));
Definition of a class for finder patterns of QR codes (squares in the top-left, top-right and bottom-...
Definition FinderPatternDetector.h:58
This class implements common functionality of QR code detectors but is not a stand-alone detector.
Definition QRCodeDetector.h:33
static bool computeProvisionalVersionRange(const FinderPattern &topLeft, const FinderPattern &bottomLeft, const FinderPattern &topRight, unsigned int &versionX, unsigned int &versionY)
Determines the version of the QR code symbols from the size and distance of its three finder patterns...
static bool computeModuleSizeInPlane(const AnyCamera &anyCamera, const Plane3 &plane, const Vector2 &imagePoint, const Vector3 &planePoint, const Scalar moduleSizeInImage, Scalar &moduleSizeInPlane)
Convert the module size in pixels of a finder pattern to the size in a given plane that contains undi...
static bool computePoses(const AnyCamera &anyCamera, const uint8_t *const yFrame, const unsigned int width, const unsigned int height, const unsigned int paddingElements, const FinderPattern *finderPatterns, const unsigned int version, HomogenousMatrices4 &code_T_cameras, const Scalar scale=Scalar(1))
Computes poses of a QR code given a specific version number Given the locations of the three finder p...
static bool extractModulesFromImage(const AnyCamera &anyCamera, const uint8_t *const yFrame, const unsigned int width, const unsigned int height, const unsigned int paddingElements, const unsigned int version, const HomogenousMatrix4 &code_T_camera, const bool isNormalReflectance, const unsigned int grayThreshold, std::vector< uint8_t > &modules, const Scalar scale=Scalar(1))
Extracts all modules of a QR code from an image.
static bool computeProvisionalVersionRange(const AnyCamera &anyCamera, const FinderPattern *finderPatterns, const unsigned int maxAllowedVersionDifference, unsigned int &versionLow, unsigned int &versionHigh)
Estimates the range of version numbers based on pixel distances of pairs of finder patterns Estimates...
static bool computeProvisionalVersion(const Vector3 ¢erA, const Vector3 ¢erB, const Scalar moduleSizeA, const Scalar moduleSizeB, const unsigned int maxAllowedVersionDifference, unsigned int &versionLow, unsigned int &versionHigh)
Estimates the version numbers based on pixel distances of a pair of finder patterns.
PlaneT3< Scalar > Plane3
Definition of the Plane3 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION either with single ...
Definition Plane3.h:31
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
VectorT2< Scalar > Vector2
Definition of a 2D vector.
Definition Vector2.h:28
AnyCameraT< Scalar > AnyCamera
Definition of an AnyCamera object with Scalar precision.
Definition AnyCamera.h:31
VectorT3< Scalar > Vector3
Definition of a 3D vector.
Definition Vector3.h:29
std::vector< HomogenousMatrix4 > HomogenousMatrices4
Definition of a vector holding HomogenousMatrix4 objects.
Definition HomogenousMatrix4.h:73
float Scalar
Definition of a scalar type.
Definition Math.h:129
Definition AlignmentPatternDetector.h:30
Namespace of the CV Detector library.
Definition Barcode.h:19
Namespace of the CV library.
Definition Advanced.h:17
The namespace covering the entire Ocean framework.
Definition Accessor.h:15