pyglet show color image
I tried to blit a camera image over the pointcloud with a shortcut.
what I did, based on "pyglet_pointcloud_viewer.py"
success, frames = pipeline.try_wait_for_frames(timeout_ms=0)
if not success:
return
depth_frame = frames.get_depth_frame().as_video_frame()
other_frame = frames.first(other_stream).as_video_frame()
dpt_frame = frames.get_depth_frame().as_depth_frame()
fmt = convert_fmt(other_frame.profile.format())
#print (other_frame.profile.format(), fmt, other_frame.get_data())
dpt_image_data.set_data(fmt , w*3, other_frame.get_data())
in the draw method I call
dpt_image_data.blit(0,0)
here python throws: ctypes.ArgumentError: argument 9: <class 'TypeError'>: wrong type
why?
Please sign in to leave a comment.
Comments
0 comments