77#include < opencv2/core.hpp>
88#include < vector>
99#include < opencv2/aruco.hpp>
10- #include < opencv2/objdetect/aruco_detector .hpp>
10+ #include < opencv2/objdetect/charuco_detector .hpp>
1111#include < opencv2/aruco/aruco_calib.hpp>
1212
1313
@@ -40,28 +40,15 @@ namespace aruco {
4040 * Only visible corners are returned. For each corner, its corresponding identifier is
4141 * also returned in charucoIds.
4242 * The function returns the number of interpolated corners.
43+ *
44+ * @deprecated Use CharucoDetector::detectBoard
4345 */
4446CV_EXPORTS_W int interpolateCornersCharuco (InputArrayOfArrays markerCorners, InputArray markerIds,
4547 InputArray image, const Ptr<CharucoBoard> &board,
4648 OutputArray charucoCorners, OutputArray charucoIds,
4749 InputArray cameraMatrix = noArray(),
4850 InputArray distCoeffs = noArray(), int minMarkers = 2);
4951
50- /* *
51- * @brief Draws a set of Charuco corners
52- * @param image input/output image. It must have 1 or 3 channels. The number of channels is not
53- * altered.
54- * @param charucoCorners vector of detected charuco corners
55- * @param charucoIds list of identifiers for each corner in charucoCorners
56- * @param cornerColor color of the square surrounding each corner
57- *
58- * This function draws a set of detected Charuco corners. If identifiers vector is provided, it also
59- * draws the id of each corner.
60- */
61- CV_EXPORTS_W void drawDetectedCornersCharuco (InputOutputArray image, InputArray charucoCorners,
62- InputArray charucoIds = noArray(),
63- Scalar cornerColor = Scalar(255 , 0 , 0 ));
64-
6552/* *
6653 * @brief Detect ChArUco Diamond markers
6754 *
@@ -83,7 +70,9 @@ CV_EXPORTS_W void drawDetectedCornersCharuco(InputOutputArray image, InputArray
8370 * This function detects Diamond markers from the previous detected ArUco markers. The diamonds
8471 * are returned in the diamondCorners and diamondIds parameters. If camera calibration parameters
8572 * are provided, the diamond search is based on reprojection. If not, diamond search is based on
86- * homography. Homography is faster than reprojection but can slightly reduce the detection rate.
73+ * homography. Homography is faster than reprojection, but less accurate.
74+ *
75+ * @deprecated Use CharucoDetector::detectDiamonds
8776 */
8877CV_EXPORTS_W void detectCharucoDiamond (InputArray image, InputArrayOfArrays markerCorners,
8978 InputArray markerIds, float squareMarkerLengthRate,
@@ -94,32 +83,6 @@ CV_EXPORTS_W void detectCharucoDiamond(InputArray image, InputArrayOfArrays mark
9483 (getPredefinedDictionary(PredefinedDictionaryType::DICT_4X4_50)));
9584
9685
97-
98- /* *
99- * @brief Draw a set of detected ChArUco Diamond markers
100- *
101- * @param image input/output image. It must have 1 or 3 channels. The number of channels is not
102- * altered.
103- * @param diamondCorners positions of diamond corners in the same format returned by
104- * detectCharucoDiamond(). (e.g std::vector<std::vector<cv::Point2f> > ). For N detected markers,
105- * the dimensions of this array should be Nx4. The order of the corners should be clockwise.
106- * @param diamondIds vector of identifiers for diamonds in diamondCorners, in the same format
107- * returned by detectCharucoDiamond() (e.g. std::vector<Vec4i>).
108- * Optional, if not provided, ids are not painted.
109- * @param borderColor color of marker borders. Rest of colors (text color and first corner color)
110- * are calculated based on this one.
111- *
112- * Given an array of detected diamonds, this functions draws them in the image. The marker borders
113- * are painted and the markers identifiers if provided.
114- * Useful for debugging purposes.
115- */
116- CV_EXPORTS_W void drawDetectedDiamonds (InputOutputArray image, InputArrayOfArrays diamondCorners,
117- InputArray diamondIds = noArray(),
118- Scalar borderColor = Scalar(0 , 0 , 255 ));
119-
120-
121-
122-
12386/* *
12487 * @brief Draw a ChArUco Diamond marker
12588 *
0 commit comments