forked from pradana.aumars/videocr
fixup
This commit is contained in:
parent
7f6881749f
commit
aec2b9c95a
@ -62,7 +62,7 @@ class Video:
|
|||||||
# only use bottom half of the frame by default
|
# only use bottom half of the frame by default
|
||||||
img = img[self.height // 2:, :]
|
img = img[self.height // 2:, :]
|
||||||
# dilate and resize
|
# 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
|
# mask to filter out non gray-like pixels/pixels that are not bright enough
|
||||||
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
|
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
|
||||||
|
Loading…
Reference in New Issue
Block a user