update - correct double-dot extension issue in imwrite_unicode function
parent
21f77d894b
commit
f95f6e82f2
|
@ -11,7 +11,7 @@ def imwrite_unicode(path, img, params=None):
|
|||
root, ext = os.path.splitext(path)
|
||||
if not ext:
|
||||
ext = ".png"
|
||||
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 is not None else [])
|
||||
if result:
|
||||
encoded_img.tofile(path)
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue