S2.py 文件源码

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

项目:workshop 作者: saeedbibak 项目源码 文件源码
def run(self):
        video_capture = cv2.VideoCapture(0)
        while True:
            got_a_frame, image = video_capture.read()
            grayimage = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) 
            cv2.imshow('camera',grayimage)
            key = cv2.waitKey(50)
            if key == 27:
                break
        cv2.destroyWindow('camera')

# Create new threads
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号