Spaces:
Running
Running
resize frame to 384 x384 resolution
Browse files
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
|