adjust jpg quality in other locations too

This commit is contained in:
Blake Blackshear
2021-02-05 07:09:41 -06:00
parent 121ea37825
commit d3524ee46f
2 changed files with 2 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ class TrackedObject():
cv2.putText(best_frame, time_to_show, (5, best_frame.shape[0]-7), cv2.FONT_HERSHEY_SIMPLEX,
fontScale=font_scale, color=(255, 255, 255), thickness=2)
ret, jpg = cv2.imencode('.jpg', best_frame)
ret, jpg = cv2.imencode('.jpg', best_frame, [int(cv2.IMWRITE_JPEG_QUALITY), 70])
if ret:
return jpg.tobytes()
else: