#模板匹配 importcv2ascv importnumpyasnp deftemplate_demo(): dog=cv.imread("E:/opencv/picture/dog.jpg") dog_nose=cv.imread("E:/opencv/picture/nose.jpg") cv.imshow("dog",dog) result=cv.matchTemplate(dog,dog_nose,cv.TM_CCORR_NORMED) h,w=dog_nose.shape[:2] mi