Formatting

This commit is contained in:
Nick Mowen 2023-05-18 11:52:42 -06:00
parent 9e2f9a9b6f
commit 10a7867458

View File

@ -127,8 +127,6 @@ class ExternalEventProcessor:
# create thumbnail with max height of 175 and save # create thumbnail with max height of 175 and save
width = int(175 * img_frame.shape[1] / img_frame.shape[0]) width = int(175 * img_frame.shape[1] / img_frame.shape[0])
thumb = cv2.resize( thumb = cv2.resize(img_frame, dsize=(width, 175), interpolation=cv2.INTER_AREA)
img_frame, dsize=(width, 175), interpolation=cv2.INTER_AREA
)
ret, jpg = cv2.imencode(".jpg", thumb) ret, jpg = cv2.imencode(".jpg", thumb)
return base64.b64encode(jpg.tobytes()).decode("utf-8") return base64.b64encode(jpg.tobytes()).decode("utf-8")