This commit is contained in:
2025-12-31 13:35:46 +01:00
parent 03d36e1d44
commit b3c96f633e

View File

@@ -29,5 +29,9 @@ class GameService:
encoded_frame = cv2.imencode('.jpg', img) encoded_frame = cv2.imencode('.jpg', img)
image_bytes = encoded_frame[1].tobytes() image_bytes = encoded_frame[1].tobytes()
headers = {'Content-Type': 'image/jpeg'} headers = {'Content-Type': 'image/jpeg'}
response = requests.post("https://192.168.15.125:1880/party/image", data=image_bytes, headers=headers) response = requests.post(
"https://192.168.15.125:1880/party/image",
data=image_bytes,
headers=headers,
verify=False)
print(response.status_code) print(response.status_code)