Compare commits

..

1 Commits

Author SHA1 Message Date
Uma Maheshwar Reddy Thipparthi 008af8a135
Merge 0cc4a2216f into f3e83b985c 2025-05-12 10:44:40 +03:00
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ def imwrite_unicode(path, img, params=None):
root, ext = os.path.splitext(path)
if not ext:
ext = ".png"
result, encoded_img = cv2.imencode(ext, img, params if params else [])
result, encoded_img = cv2.imencode(f".{ext}", img, params if params is not None else [])
result, encoded_img = cv2.imencode(ext, img, params if params else [])
result, encoded_img = cv2.imencode(f".{ext}", img, params if params is not None else [])
encoded_img.tofile(path)
return True
return False