removing trailing spaces
This commit is contained in:
+2
-2
@@ -11,7 +11,7 @@ def cv2_imread(filename, flags=cv2.IMREAD_UNCHANGED):
|
||||
return cv2.imdecode(numpyarray, flags)
|
||||
except:
|
||||
return None
|
||||
|
||||
|
||||
def cv2_imwrite(filename, img, *args):
|
||||
ret, buf = cv2.imencode( Path(filename).suffix, img, *args)
|
||||
if ret == True:
|
||||
@@ -19,4 +19,4 @@ def cv2_imwrite(filename, img, *args):
|
||||
with open(filename, "wb") as stream:
|
||||
stream.write( buf )
|
||||
except:
|
||||
pass
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user