From aec2b9c95a30af354b366297732fdc7372fd7170 Mon Sep 17 00:00:00 2001 From: Yun Date: Tue, 13 Jul 2021 10:20:47 +0200 Subject: [PATCH] fixup --- videocr/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/videocr/video.py b/videocr/video.py index a3c86de..e4b7565 100644 --- a/videocr/video.py +++ b/videocr/video.py @@ -62,7 +62,7 @@ class Video: # only use bottom half of the frame by default img = img[self.height // 2:, :] # dilate and resize - img=cv2.resize(cv2.dilate(img, np.ones(2, 2), np.uint8), self.resize_dim, interpolation=cv2.INTER_AREA) + img=cv2.resize(cv2.dilate(img, np.ones((2, 2), np.uint8)), self.resize_dim, interpolation=cv2.INTER_AREA) # mask to filter out non gray-like pixels/pixels that are not bright enough hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)