play.py 文件源码

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

项目:party-pi 作者: JustinShenk 项目源码 文件源码
def end_game(self):
        """ When everything is done, release the capture.

        """
        if not self.piCam:
            self.cam.release()
            quit_coord = (self.screenwidth // 4, self.screenheight // 3)
            try:
                draw_text(quit_coord, self.photo,
                          "Press any key to quit_", font_scale=1)
            except AttributeError:
                cv2.destroyAllWindows()
            # self.presentation(frame)
            # self.photo = self.overlayUI(self.photo)
        else:
            self.piCamera.close()

        cv2.imshow("PartyPi", self.photo)

        cv2.waitKey(0)
        cv2.destroyAllWindows()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号