1.注意python中的数组和list形式混合:

     数组在numpy里面;

2.二维数组这样定义可以修改固定位置的值:

rawDataArray_temp = [([0]*nIRImageWidth)for i in range(nIRImageHight)]
rawDataArray_temp[j][i] = 123 #i行j列

 3.数据转byte使用struct

import struct
Data = struct.pack("i", 456t)
Data += struct.pack("h", 123)

 4.具体struct用法见下篇博客。

相关文章:

  • 2021-11-08
  • 2021-08-22
  • 2021-10-10
  • 2021-12-16
  • 2021-12-23
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2021-09-07
  • 2021-10-06
  • 2021-12-14
  • 2022-01-18
  • 2022-12-23
  • 2022-02-19
相关资源
相似解决方案