image = cv2.imread('testimage.bmp')
template = image[30:40, 30:40, :]
result = cv2.matchTemplate(image, template, cv2.TM_CCOEFF_NORMED)
print(np.unravel_index(result.argmax(), result.shape))
Finding a subimage inside a Numpy image