Luigi commited on
Commit
c1d8038
·
1 Parent(s): 36dacc6

resize frame to 384 x384 resolution

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -89,6 +89,7 @@ def caption_frame(frame):
89
  logging.debug("caption_frame called.")
90
  # make a writable copy
91
  frame = frame.copy()
 
92
  logging.debug(f"Frame shape: {frame.shape}, dtype: {frame.dtype}")
93
 
94
  # save frame to temporary file for URI
 
89
  logging.debug("caption_frame called.")
90
  # make a writable copy
91
  frame = frame.copy()
92
+ frame = cv2.resize(frame, (384, 384))
93
  logging.debug(f"Frame shape: {frame.shape}, dtype: {frame.dtype}")
94
 
95
  # save frame to temporary file for URI