diff --git a/rpi/main.py b/rpi/main.py index 7cdf5be5..2ae12ef0 100644 --- a/rpi/main.py +++ b/rpi/main.py @@ -65,7 +65,7 @@ def start_party(): def make_move(): try: frame, fen = game_service.make_move() - encoded_frame = cv2.imencode('.jpg', frame, [int(cv2.IMWRITE_JPEG_QUALITY), 80]) + encoded_frame = cv2.imencode('.jpg', frame, [int(cv2.IMWRITE_JPEG_QUALITY), 80])[1].tobytes() print(fen) headers = {'Content-Type': 'image/jpeg'}