PyKinectInfraRed.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:python-kinect 作者: jgerschler 项目源码 文件源码
def draw_infrared_frame(self, frame, target_surface):
        if frame is None:  # some usb hub do not provide the infrared image. it works with Kinect studio though
            return
        target_surface.lock()
        f8=np.uint8(frame.clip(1,4000)/16.)
        frame8bit=np.dstack((f8,f8,f8))
        address = self._kinect.surface_as_array(target_surface.get_buffer())
        ctypes.memmove(address, frame8bit.ctypes.data, frame8bit.size)
        del address
        target_surface.unlock()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号