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

后端 未结 1 739
眼角桃花
眼角桃花 2020-12-21 01:44

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 01:57

    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)
提交回复
热议问题