【发布时间】:2020-11-24 14:24:43
【问题描述】:
在初始化 PyGame 之后
flags = pygame.FULLSCREEN | pygame.NOFRAME | pygame.DOUBLEBUF | pygame.HWSURFACE
width = 0
height = 0 # fullscreeen
screen = pygame.display.set_mode( ( width, height ), flags )
我从 RealSense 摄像头获取颜色帧
frames = pipeline.wait_for_frames()
colorFrame = frames.get_color_frame()
但是如何在屏幕上绘制这个框架呢?
【问题讨论】: