def getMatchingScore(img,digit):
score = (cv2.matchTemplate(img,cv2.imread('Templates/' + 'T'+str(digit) + '.jpg',0),cv2.TM_SQDIFF)/2000)
return score
# Gets the best prediction of the digit in a cell using template matching
评论列表
文章目录