This commit is contained in:
2025-12-31 14:39:20 +01:00
parent e1f5bfc491
commit 139b3992d8
3 changed files with 8 additions and 7 deletions

View File

@@ -65,13 +65,12 @@ 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])[1].tobytes()
print(fen)
headers = {'Content-Type': 'image/jpeg'}
body = {'frame': frame, 'fen': fen}
response = requests.post(
"https://192.168.15.125:1880/party/image",
data=encoded_frame,
data=body,
headers=headers,
verify=False)
print(response.status_code)