加上这个引用即可: #include <opencv2\imgproc\types_c.h> 转自 https://blog.csdn.net/qq_39097425/article/details/84504507