Skip to content
Snippets Groups Projects
Commit b8782e81 authored by Florent Berthaut's avatar Florent Berthaut
Browse files

Fixed depthcam marker calibration

parent 05451aa1
No related branches found
No related tags found
No related merge requests found
......@@ -1040,12 +1040,12 @@ void DepthCamModule::calibrate() {
//find marker
vector<vector<cv::Point2f> > corners;
vector<int> ids;
cv::aruco::Dictionary dico
= cv::aruco::getPredefinedDictionary(cv::aruco::DICT_ARUCO_ORIGINAL);
cv::aruco::detectMarkers(kinectRgbImg,
&dico,
corners,
ids);
cv::aruco::Dictionary dico = cv::aruco::getPredefinedDictionary(
cv::aruco::DICT_ARUCO_ORIGINAL);
cv::aruco::DetectorParameters params = cv::aruco::DetectorParameters();
cv::aruco::ArucoDetector detector(dico, params);
detector.detectMarkers(kinectRgbImg, corners, ids);
cv::aruco::drawDetectedMarkers(kinectRgbImg, corners);
imshow("DepthCamRGB", kinectRgbImg);
waitKey(10);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment