Skip to content
Snippets Groups Projects
Commit f15b35a0 authored by Gonzalo Belcredi's avatar Gonzalo Belcredi
Browse files

added binary argument 'wb' at file open

parent b8c67e5a
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,6 @@ array = framed_data.flatten() ...@@ -62,6 +62,6 @@ array = framed_data.flatten()
array = array.astype('uint8') array = array.astype('uint8')
array_bin = bytearray(array) array_bin = bytearray(array)
f = open("dat/imagen_bin.dat", "w") f = open("dat/imagen_bin.dat", "wb")
f.write(array_bin) f.write(array_bin)
f.close() f.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment