新站网站如何做Seo,网站建设 可以吗,中国服装网,免费自助开通网站问题来源#xff1a;http://answers.opencv.org/question/162480/contour-detection-for-gray-stickers-on-white-background/ 题目的大概意思就是这样的白板#xff0c;寻找上面的各种便签条。我找到了橘色的#xff0c;结果是这样代码是这样Mat src imread(gray-st…问题来源http://answers.opencv.org/question/162480/contour-detection-for-gray-stickers-on-white-background/ 题目的大概意思就是这样的白板寻找上面的各种便签条。我找到了橘色的结果是这样代码是这样 Mat src imread(gray-stickers.png); Mat temp; vectorMat planes; cvtColor(src,src,COLOR_BGR2HSV); split(src,planes); //open method Mat element getStructuringElement(MORPH_RECT,cv::Size(33,33)); cv::morphologyEx(planes[1],temp,MORPH_OPEN,element); //threshold threshold(temp,temp,100,255,THRESH_OTSU);//yeah!find the orange imwrite(oragne-stickers-result.png,temp);此外我认为在白色的板子上面找白色的便签条真不是个好的想法不知道你有什么想法来自为知笔记(Wiz)