Skip to content

Commit

Permalink
feat: change encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
byunjuneseok committed Feb 21, 2023
1 parent 0db9410 commit eaabedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eaabedf

Please sign in to comment.