From eaabedf9ec2c0ab78b5f1afec62d6a1110dee106 Mon Sep 17 00:00:00 2001 From: byunjuneseok Date: Tue, 21 Feb 2023 22:15:04 +0900 Subject: [PATCH] feat: change encodings --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index f44bc28..d6f9d14 100644 --- a/app/main.py +++ b/app/main.py @@ -16,7 +16,7 @@ def get_bytes(): ret, frame = camera.read() if not ret: return None - ret, buffer = cv2.imencode('.jpg', frame) + ret, buffer = cv2.imencode('.webp', frame, [cv2.IMWRITE_WEBP_QUALITY, 100]) frame = buffer.tobytes() return frame