This commit is contained in:
Yasir Aris M 2024-07-29 11:35:51 +07:00 committed by GitHub
parent 5c9f3b46c1
commit 7efa2f83ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -182,7 +182,7 @@ async def gen_trans_image(msg, path):
img = cv2.imread(dl)
# convert to graky
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY))
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# threshold input image as mask
mask = cv2.threshold(gray, 250, 255, cv2.THRESH_BINARY)[1]