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

View file

@ -205,7 +205,7 @@ async def gen_trans_image(msg, path):
# put mask into alpha channel
result = img.copy()
result = cv2.cvtColor(result, cv2.COLOR_BGR2BGRA))
result = cv2.cvtColor(result, cv2.COLOR_BGR2BGRA)
result[:, :, 3] = mask
# save resulting masked image