Ocean
QRCodeDecoder.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 
14 namespace Ocean
15 {
16 
17 namespace CV
18 {
19 
20 namespace Detector
21 {
22 
23 namespace QRCodes
24 {
25 
26 /**
27  * Definition of a QR code decoder
28  * @ingroup cvdetectorqrcodes
29  */
30 class OCEAN_CV_DETECTOR_QRCODES_EXPORT QRCodeDecoder
31 {
32  public:
33 
34  /**
35  * Decodes the modules of a QR code
36  * @param modules The modules of a QR code, e.g., as sampled after a detection, must be valid
37  * @param code The resulting QR code instance that will hold the decoded data
38  * @return True if the modules are successfully decoded, otherwise false
39  */
40  static bool decodeQRCode(const std::vector<uint8_t>& modules, QRCode& code);
41 };
42 
43 } // namespace QRCodes
44 
45 } // namespace Detector
46 
47 } // namespace CV
48 
49 } // namespace Ocean
Definition of a QR code decoder.
Definition: QRCodeDecoder.h:31
static bool decodeQRCode(const std::vector< uint8_t > &modules, QRCode &code)
Decodes the modules of a QR code.
Definition of a QR code.
Definition: QRCode.h:35
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