...
This commit is contained in:
@@ -65,7 +65,7 @@ def start_party():
|
|||||||
def make_move():
|
def make_move():
|
||||||
try:
|
try:
|
||||||
frame, fen = game_service.make_move()
|
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)
|
print(fen)
|
||||||
|
|
||||||
headers = {'Content-Type': 'image/jpeg'}
|
headers = {'Content-Type': 'image/jpeg'}
|
||||||
|
|||||||
Reference in New Issue
Block a user