Ocean
Loading...
Searching...
No Matches
TestMicroQRCodeDecoder.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#pragma once
9
11
13
14namespace Ocean
15{
16
17/// Forward declaration
18class RandomGenerator;
19
20namespace Test
21{
22
23namespace TestCV
24{
25
26namespace TestDetector
27{
28
29namespace TestQRCodes
30{
31
32/**
33 * This class implements tests for the Micro QR code features
34 * @ingroup testcvdetectorqrcodes
35 */
36class OCEAN_TEST_CV_DETECTOR_QRCODES_EXPORT TestMicroQRCodeDecoder
37{
38 protected:
39
40 /**
41 * Definition of a struct holding the parameters describing a portion of the Micro QR code encoding space
42 */
44 {
46 unsigned int minSize;
47 unsigned int maxSize;
48 CV::Detector::QRCodes::MicroQRCode::ErrorCorrectionCapacity eccMin = CV::Detector::QRCodes::MicroQRCode::ECC_DETECTION_ONLY;
49 };
50
51 public:
52
53 /**
54 * Tests the Micro QR code functions.
55 * @param testDuration Number of seconds for each test, range: (0, infinity)
56 * @return True, if succeeded
57 */
58 static bool test(const double testDuration);
59
60
61 /**
62 * Tests encoding (generation) of Micro QR codes
63 * @param testDuration The duration in seconds for which this test will be run, range: (0, infinity)
64 * @return True, if succeeded
65 */
66 static bool testMicroQRCodeDecoding(const double testDuration);
67};
68
69} // namespace TestQRCodes
70
71} // namespace TestDetector
72
73} // namespace TestCV
74
75} // namespce Test
76
77} // namespace Ocean
EncodingMode
Definition of encoding modes.
Definition QRCodeBase.h:72
ErrorCorrectionCapacity
Enumeration of the levels of error correction The value of the enums correspond to the standard-defin...
Definition QRCodeBase.h:53
This class implements tests for the Micro QR code features.
Definition TestMicroQRCodeDecoder.h:37
static bool testMicroQRCodeDecoding(const double testDuration)
Tests encoding (generation) of Micro QR codes.
static bool test(const double testDuration)
Tests the Micro QR code functions.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15
Definition of a struct holding the parameters describing a portion of the Micro QR code encoding spac...
Definition TestMicroQRCodeDecoder.h:44
CV::Detector::QRCodes::MicroQRCode::EncodingMode mode
Definition TestMicroQRCodeDecoder.h:45