Ocean
Barcodes.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 
12 #include "ocean/base/Frame.h"
13 
14 #include "ocean/math/Numeric.h"
15 #include "ocean/math/Vector2.h"
16 
17 #include <array>
18 
19 namespace Ocean
20 {
21 
22 namespace CV
23 {
24 
25 namespace Detector
26 {
27 
28 namespace Barcodes
29 {
30 
31 /**
32  * @ingroup cvdetector
33  * @defgroup cvdetectorbarcodes Ocean Barcode Library
34  * @{
35  * The Ocean Barcode Library implements a detector for barcodes.
36  * @}
37  */
38 
39 /**
40  * @namespace Ocean::Tracking::Barcodes Namespace of the barcode code library.<p>
41  * The namespace Ocean::Tracking::Barcodes is used in the entire Ocean Barcode Library.
42  */
43 
44 // Defines OCEAN_CV_DETECTOR_BARCODES_EXPORT for dll export and import.
45 #if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
46  #ifdef USE_OCEAN_CV_DETECTOR_BARCODES_EXPORT
47  #define OCEAN_CV_DETECTOR_BARCODES_EXPORT __declspec(dllexport)
48  #else
49  #define OCEAN_CV_DETECTOR_BARCODES_EXPORT __declspec(dllimport)
50  #endif
51 #else
52  #define OCEAN_CV_DETECTOR_BARCODES_EXPORT
53 #endif
54 
55 /**
56  * Definition of scan line data, i.e., a sequence of raw pixel data.
57  * @ingroup cvdetectorbarcodes
58  */
59 typedef std::vector<uint8_t> ScanlineData;
60 
61 /**
62  * Definition of segment data, i.e., a sequence of lengths of binary, alternating foreground and background segments (resulting from applying a threshold to raw pixel data).
63  * @ingroup cvdetectorbarcodes
64  */
65 typedef std::vector<uint32_t> SegmentData;
66 
67 } // namespace Barcodes
68 
69 } // namespace Detector
70 
71 } // namespace CV
72 
73 } // namespace Ocean
std::vector< uint32_t > SegmentData
Definition of segment data, i.e., a sequence of lengths of binary, alternating foreground and backgro...
Definition: Barcodes.h:65
std::vector< uint8_t > ScanlineData
Definition of scan line data, i.e., a sequence of raw pixel data.
Definition: Barcodes.h:59
std::vector< Barcode > Barcodes
Definition of a vector of barcodes.
Definition: Barcode.h:25
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15