update software sim

This commit is contained in:
SikongJueluo
2024-05-18 18:56:32 +08:00
parent 1ad504cb9f
commit caa0588b9b
12 changed files with 271 additions and 45 deletions

View File

@@ -1,8 +1,8 @@
import imageio
import numpy as np
cut_width = 700
cut_height = 500
cut_width = 1936
cut_height = 1088
if __name__ == '__main__':
# txt = open('./test.dat', 'w')

View File

@@ -1,10 +0,0 @@
import imageio
import numpy as np
im_width = 640
im_height = 480
if __name__ == '__main__':
raw = np.fromfile('./out.bin', dtype=np.int32)
image = raw.reshape((im_height, im_width))
imageio.imsave("./out.png", image)