【发布时间】:2018-06-25 18:54:21
【问题描述】:
在 Python2.7 中,我通过 USB 批量传输从相机获取图像帧:
frame = dev.read(0x81, 0x2B6B0, 1000)
我知道一帧是 342x260 = 88920 像素 little endian,因为我从批量传输中读取了 2x88920 = 177840 (0x2B6B0)。
如何将typecode=B的frame数组的内容转换成uint16 big endian数组?
【问题讨论】:
标签: python arrays endianness unsigned-integer unsigned-char