mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Formatting
This commit is contained in:
parent
9e2f9a9b6f
commit
10a7867458
@ -127,8 +127,6 @@ class ExternalEventProcessor:
|
||||
|
||||
# create thumbnail with max height of 175 and save
|
||||
width = int(175 * img_frame.shape[1] / img_frame.shape[0])
|
||||
thumb = cv2.resize(
|
||||
img_frame, dsize=(width, 175), interpolation=cv2.INTER_AREA
|
||||
)
|
||||
thumb = cv2.resize(img_frame, dsize=(width, 175), interpolation=cv2.INTER_AREA)
|
||||
ret, jpg = cv2.imencode(".jpg", thumb)
|
||||
return base64.b64encode(jpg.tobytes()).decode("utf-8")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user