Bro please

This commit is contained in:
2025-12-31 14:22:00 +01:00
parent 2286108be1
commit 13ec518d2a
3 changed files with 2 additions and 4 deletions

View File

@@ -67,12 +67,10 @@ def make_move():
frame, fen = game_service.make_move()
print(fen)
encoded_frame = cv2.imencode('.jpg', frame)
image_bytes = encoded_frame[1].tobytes()
headers = {'Content-Type': 'image/jpeg'}
response = requests.post(
"https://192.168.15.125:1880/party/image",
data=image_bytes,
data=frame,
headers=headers,
verify=False)
print(response.status_code)