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()
评论列表
文章目录