EstervQrCode 2.0.0
Library for qr code manipulation
Loading...
Searching...
No Matches
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
9namespace cv {
10namespace aruco {
11
14
32
34public:
43 const CharucoParameters& charucoParams = CharucoParameters(),
44 const DetectorParameters &detectorParams = DetectorParameters(),
45 const RefineParameters& refineParams = RefineParameters());
46
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;
111protected:
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 void detectDiamonds(InputArray image, OutputArrayOfArrays diamondCorners, OutputArray diamondIds, InputOutputArrayOfArrays markerCorners=noArray(), InputOutputArray markerIds=noArray()) const
Detect ChArUco Diamond markers.
CV_WRAP const RefineParameters & getRefineParameters() const
CV_WRAP void setDetectorParameters(const DetectorParameters &detectorParameters)
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.
CV_WRAP const DetectorParameters & getDetectorParameters() const
Ptr< CharucoDetectorImpl > charucoDetectorImpl
Definition charuco_detector.hpp:113
CV_WRAP const CharucoBoard & getBoard() const
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.
const IplImage * image
Definition videoio_c.h:131
"black box" representation of the file storage associated with a file on disk.
Definition calib3d.hpp:441
Definition cvstd_wrapper.hpp:74
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