![]() |
1
3
OpenCV将所有白色像素视为前景,将黑色像素视为背景。绿色轮廓显示检测到的前景。 如果希望突出显示黑色圆圈,则需要事先反转图像。或者,您可以使用阈值类型“THRESH_BINARY_INV”( http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html?highlight=threshold#threshold ). |