refactor dig

This commit is contained in:
2022-05-01 18:45:12 +02:00
parent 1b774b0a75
commit c0d02bf7bf
3 changed files with 21 additions and 229 deletions

View File

@@ -17,7 +17,7 @@ class Vision:
def __init__(self, method=cv.TM_CCOEFF_NORMED):
# load the image we're trying to match
# https://docs.opencv.org/4.2.0/d4/da8/group__imgcodecs.html
self.needle_img = cv.imread("dig/wtf.jpg", cv.IMREAD_UNCHANGED)
# self.needle_img = cv.imread("dig/wtf.jpg", cv.IMREAD_UNCHANGED)
# Save the dimensions of the needle image
#self.needle_w = self.needle_img.shape[1]