OpenNI and OpenCV: cv2.imshow() crashes with error: (-215:Assertion failed) dst.data == (uchar*)dst_ptr in function 'cvShowImage'

前端 未结 1 622
小鲜肉
小鲜肉 2020-12-21 05:12

I am trying to receive a depth image from an Orbbec Astra Pro camera connected to a Windows 10 machine. I have therfor installed opencv-python 4.0.0.21 and

相关标签:
1条回答
  • 2020-12-21 06:03

    Have you tried:

    frame.get_buffer_as_uint32()
    img = np.frombuffer(frame_data, dtype=np.uint32)
    

    In opencv4 for some reason imshow will not work if you do not use specific dtype

    0 讨论(0)
提交回复
热议问题