Compare commits
3 Commits
008af8a135
...
a9e2d0cde1
Author | SHA1 | Date |
---|---|---|
|
a9e2d0cde1 | |
|
d5a3fb0c47 | |
|
9690070399 |
|
@ -11,8 +11,8 @@ def imwrite_unicode(path, img, params=None):
|
||||||
root, ext = os.path.splitext(path)
|
root, ext = os.path.splitext(path)
|
||||||
if not ext:
|
if not ext:
|
||||||
ext = ".png"
|
ext = ".png"
|
||||||
result, encoded_img = cv2.imencode(ext, img, params if params 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 [])
|
result, encoded_img = cv2.imencode(f".{ext}", img, params if params is not None else [])
|
||||||
encoded_img.tofile(path)
|
encoded_img.tofile(path)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
Loading…
Reference in New Issue