Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ bool HandEyeArucoTarget::detectTargetPose(cv::Mat& image)
cv::aruco::GridBoard::create(markers_x_, markers_y_, marker_size_real_, marker_separation_real_, dictionary);
aruco_mutex_.unlock();
cv::Ptr<cv::aruco::DetectorParameters> params_ptr(new cv::aruco::DetectorParameters());
#if CV_MAJOR_VERSION == 3 && CV_MINOR_VERSION == 2
#if CV_MAJOR_VERSION == 3 && CV_MINOR_VERSION >= 2
params_ptr->doCornerRefinement = true;
#else
params_ptr->cornerRefinementMethod = cv::aruco::CORNER_REFINE_NONE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ bool HandEyeCharucoTarget::detectTargetPose(cv::Mat& image)
cv::aruco::CharucoBoard::create(squares_x_, squares_y_, square_size_meters, marker_size_meters_, dictionary);
charuco_mutex_.unlock();
cv::Ptr<cv::aruco::DetectorParameters> params_ptr(new cv::aruco::DetectorParameters());
#if CV_MAJOR_VERSION == 3 && CV_MINOR_VERSION == 2
#if CV_MAJOR_VERSION == 3 && CV_MINOR_VERSION >= 2
params_ptr->doCornerRefinement = true;
#else
params_ptr->cornerRefinementMethod = cv::aruco::CORNER_REFINE_NONE;
Expand Down