#include #include #define MATCHMETHOD TM_SQDIFF_NORMED//宏定义匹配模式 using namespace cv; using namespace std; int main(int argc, char** argv) { Mat src = imread(几何.jpg); Mat src_gray, binary; Mat Triangle = src.clone(), Rect = src.clone(), Circlar = src.clone(), Pentagon = src.clone(); if (src.emp