25 namespace TestDetector
35 class OCEAN_TEST_CV_DETECTOR_QRCODES_EXPORT
Utilities
50 static void drawNoisePattern(uint8_t* yFrame,
const unsigned int width,
const unsigned int height,
const unsigned int paddingElements,
const Vector2& location,
RandomGenerator& randomGenerator,
const uint8_t foregroundColor,
const Scalar extraBorder =
Scalar(14));
Base class for QR code implementations.
Definition: QRCodeBase.h:32
This class implements a generator for random numbers.
Definition: RandomGenerator.h:42
This class implements utility functions for the QR code tests.
Definition: test/testcv/testdetector/testqrcodes/Utilities.h:36
static bool generateRandomByteData(RandomGenerator &randomGenerator, const unsigned int length, std::vector< uint8_t > &data)
Generates a random data that consists of bytes (value range: 0-255)
static std::string generateRandomAlphanumericString(RandomGenerator &randomGenerator, const unsigned int size)
Generates random string consisting of characters in alphanumeric character set defined by the QR code...
static bool generateUniqueRandomQRCodes(RandomGenerator &randomGenerator, const unsigned int numberCodes, CV::Detector::QRCodes::QRCodes &codes)
Generates a list of unique and random QR codes.
static std::string generateRandomNumericString(RandomGenerator &randomGenerator, const unsigned int size)
Generates random string consisting of decimal digit characters ('0' to '9' only)
static std::string translateQRCodeToString(const CV::Detector::QRCodes::QRCodeBase &qrcode, const bool ignoreModules=false)
Returns human readable string representation of QRCode state suitable for logging.
static std::string generateRandomString(RandomGenerator &randomGenerator, const unsigned int minSize=1u, const unsigned int maxSize=15u)
Generates a random string.
static void drawNoisePattern(uint8_t *yFrame, const unsigned int width, const unsigned int height, const unsigned int paddingElements, const Vector2 &location, RandomGenerator &randomGenerator, const uint8_t foregroundColor, const Scalar extraBorder=Scalar(14))
Paint randomized noise into a grayscale image.
static bool generateRandomDecimalDigitSequenceData(RandomGenerator &randomGenerator, const unsigned int sizeInBytes, std::vector< uint8_t > &data)
Generates random data that consists of values that are decimal digits (between 0 and 9,...
static const std::string & getNumericCharset()
Returns the numeric charset used for encoding numeric data.
float Scalar
Definition of a scalar type.
Definition: Math.h:128
std::vector< QRCode > QRCodes
Definition of a vector of QR codes.
Definition: QRCode.h:25
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15