Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Jun 14, 2023
1 parent 392a508 commit 02473ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frigate/http.py
Expand Up @@ -1101,7 +1101,9 @@ def latest_frame(camera_name):
width = int(height * frame.shape[1] / frame.shape[0])

try:
frame = cv2.resize(frame, dsize=(width, height), interpolation=cv2.INTER_AREA)
frame = cv2.resize(
frame, dsize=(width, height), interpolation=cv2.INTER_AREA
)
except Exception as e:
logger.debug(f"Failed to resize latest snapshot :: {e}")
return "Error resizing snapshot", 500
Expand Down

0 comments on commit 02473ca

Please sign in to comment.