fromimutilsimportcontours importnumpyasnp importargparse importcv2ascv importmyutils defcv_show(name,img): cv.imshow(name,img) cv.waitKey(0) cv.destroyAllWindows() #先处理template tempalte_img=cv.imread("E:/opencv/picture/ocr_a_reference.png") tempalte_gray=c