This commit is contained in:
2025-12-31 14:29:45 +01:00
parent 7e9265b102
commit e1f5bfc491

View File

@@ -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'}