Skip to content
Snippets Groups Projects
Commit c4b269ec authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

document OpenCV bug

parent 78e73faa
No related branches found
No related tags found
No related merge requests found
...@@ -42,8 +42,9 @@ int ArUCoObject::detect(cv::InputArray im, std::vector<cv::Point2d>& result, con ...@@ -42,8 +42,9 @@ int ArUCoObject::detect(cv::InputArray im, std::vector<cv::Point2d>& result, con
std::vector<std::vector<cv::Point2f>> corners; std::vector<std::vector<cv::Point2f>> corners;
std::vector<int> ids; std::vector<int> ids;
cv::Mat im_gray; cv::Mat im_gray;
// OpenCV bug: detectMarkers consumes all available memory when any // OpenCV bug: detectMarkers() consumes all available memory with
// distortion parameters are passes // when CORNER_REFINE_CONTOUR is used with camera parameters
// https://github.com/opencv/opencv_contrib/issues/2738
const cv::Mat d; const cv::Mat d;
if (im.size() == cv::Size(0, 0)) { if (im.size() == cv::Size(0, 0)) {
return -1; return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment