def take_photo(self):
""" Take photo and prepare to write, then send to PyImgur (optional).
"""
faces = detect_faces(face_detection, self.photo)
gray_image = cv2.cvtColor(self.photo, cv2.COLOR_RGB2GRAY)
self.draw_hats(self.photo, faces)
player_data = self.predict_emotions(faces, gray_image)
self.rank_players(player_data)
self.save_photo()
评论列表
文章目录