mirror of
https://github.com/hacksider/Deep-Live-Cam.git
synced 2026-10-12 16:47:16 +02:00
update
This commit is contained in:
1 parent
fe4a87e8f2
commit
a64940def7
1 file changed
+1
-1
+1
-1
@@ -12,7 +12,7 @@ def imwrite_unicode(path, img, params=None):
|
||||
if not ext:
|
||||
ext = ".png"
|
||||
result, encoded_img = cv2.imencode(ext, img, params if params else [])
|
||||
if result:
|
||||
result, encoded_img = cv2.imencode(f".{ext}", img, params if params is not None else [])
|
||||
encoded_img.tofile(path)
|
||||
return True
|
||||
return False
|
||||
Reference in new issue
Block a user