EstervQrCode 1.1.1
Library for qr code manipulation
charuco_detector.hpp
1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html
4 #ifndef OPENCV_OBJDETECT_CHARUCO_DETECTOR_HPP
5 #define OPENCV_OBJDETECT_CHARUCO_DETECTOR_HPP
6 
7 #include "opencv2/objdetect/aruco_detector.hpp"
8 
9 namespace cv {
10 namespace aruco {
11 
14 
17  minMarkers = 2;
18  tryRefineMarkers = false;
19  }
22 
25 
28 
31 };
32 
34 public:
43  const CharucoParameters& charucoParams = CharucoParameters(),
44  const DetectorParameters &detectorParams = DetectorParameters(),
45  const RefineParameters& refineParams = RefineParameters());
46 
47  CV_WRAP const CharucoBoard& getBoard() const;
48  CV_WRAP void setBoard(const CharucoBoard& board);
49 
52 
54  CV_WRAP void setDetectorParameters(const DetectorParameters& detectorParameters);
55 
57  CV_WRAP void setRefineParameters(const RefineParameters& refineParameters);
58 
84  CV_WRAP void detectBoard(InputArray image, OutputArray charucoCorners, OutputArray charucoIds,
85  InputOutputArrayOfArrays markerCorners = noArray(),
86  InputOutputArray markerIds = noArray()) const;
87 
108  CV_WRAP void detectDiamonds(InputArray image, OutputArrayOfArrays diamondCorners, OutputArray diamondIds,
109  InputOutputArrayOfArrays markerCorners = noArray(),
110  InputOutputArray markerIds = noArray()) const;
111 protected:
112  struct CharucoDetectorImpl;
114 };
115 
128  InputArray charucoIds = noArray(), Scalar cornerColor = Scalar(255, 0, 0));
129 
149  InputArray diamondIds = noArray(),
150  Scalar borderColor = Scalar(0, 0, 255));
151 
153 
154 }
155 }
156 
157 #endif
This is a base class for all more or less complex algorithms in OpenCV.
Definition: core.hpp:3197
n-dimensional dense array class
Definition: mat.hpp:812
Definition: mat.hpp:387
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:296
ChArUco board is a planar chessboard where the markers are placed inside the white squares of a chess...
Definition: aruco_board.hpp:135
Definition: charuco_detector.hpp:33
CV_WRAP void detectBoard(InputArray image, OutputArray charucoCorners, OutputArray charucoIds, InputOutputArrayOfArrays markerCorners=noArray(), InputOutputArray markerIds=noArray()) const
detect aruco markers and interpolate position of ChArUco board corners
CV_WRAP const RefineParameters & getRefineParameters() const
CV_WRAP void detectDiamonds(InputArray image, OutputArrayOfArrays diamondCorners, OutputArray diamondIds, InputOutputArrayOfArrays markerCorners=noArray(), InputOutputArray markerIds=noArray()) const
Detect ChArUco Diamond markers.
CV_WRAP const DetectorParameters & getDetectorParameters() const
CV_WRAP void setDetectorParameters(const DetectorParameters &detectorParameters)
CV_WRAP const CharucoBoard & getBoard() const
CV_WRAP void setBoard(const CharucoBoard &board)
CV_WRAP const CharucoParameters & getCharucoParameters() const
CV_WRAP void setCharucoParameters(CharucoParameters &charucoParameters)
CV_WRAP void setRefineParameters(const RefineParameters &refineParameters)
CV_WRAP CharucoDetector(const CharucoBoard &board, const CharucoParameters &charucoParams=CharucoParameters(), const DetectorParameters &detectorParams=DetectorParameters(), const RefineParameters &refineParams=RefineParameters())
Basic CharucoDetector constructor.
Ptr< CharucoDetectorImpl > charucoDetectorImpl
Definition: charuco_detector.hpp:112
Scalar_< double > Scalar
Definition: types.hpp:702
CV_EXPORTS InputOutputArray noArray()
InputArray InputArrayOfArrays
Definition: mat.hpp:443
CV__DEBUG_NS_END typedef const _InputArray & InputArray
Definition: mat.hpp:442
#define CV_EXPORTS_W_SIMPLE
Definition: cvdef.h:473
#define CV_EXPORTS_W
Definition: cvdef.h:472
#define CV_PROP_RW
Definition: cvdef.h:480
#define CV_WRAP
Definition: cvdef.h:481
CV_EXPORTS_W void drawDetectedDiamonds(InputOutputArray image, InputArrayOfArrays diamondCorners, InputArray diamondIds=noArray(), Scalar borderColor=Scalar(0, 0, 255))
Draw a set of detected ChArUco Diamond markers.
CV_EXPORTS_W void drawDetectedCornersCharuco(InputOutputArray image, InputArray charucoCorners, InputArray charucoIds=noArray(), Scalar cornerColor=Scalar(255, 0, 0))
Draws a set of Charuco corners.
"black box" representation of the file storage associated with a file on disk.
Definition: calib3d.hpp:441
Definition: charuco_detector.hpp:15
CV_PROP_RW int minMarkers
minMarkers number of adjacent markers that must be detected to return a charuco corner,...
Definition: charuco_detector.hpp:27
CV_PROP_RW Mat distCoeffs
distCoeffs optional vector of distortion coefficients
Definition: charuco_detector.hpp:24
CV_PROP_RW bool tryRefineMarkers
try to use refine board, default false
Definition: charuco_detector.hpp:30
CV_PROP_RW Mat cameraMatrix
cameraMatrix optional 3x3 floating-point camera matrix
Definition: charuco_detector.hpp:21
CV_WRAP CharucoParameters()
Definition: charuco_detector.hpp:16
struct DetectorParameters is used by ArucoDetector
Definition: aruco_detector.hpp:25
struct RefineParameters is used by ArucoDetector
Definition: aruco_detector.hpp:238