removing trailing spaces

This commit is contained in:
iperov 2019-03-19 23:53:27 +04:00
parent fa4e579b95
commit a3df04999c
61 changed files with 2110 additions and 2103 deletions

View file

@ -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