Spaces:
Runtime error
Runtime error
Commit
·
5aa6d90
1
Parent(s):
19ddaea
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,7 +135,7 @@ if app_mode =='Run on Video':
|
|
| 135 |
result_frame = cv2.resize(result_frame, (target_frame_width, target_frame_height))
|
| 136 |
image = cv2.resize(image, (target_frame_width, target_frame_height))
|
| 137 |
# Put image and result side by side
|
| 138 |
-
stacked_frame = np.
|
| 139 |
if save_video:
|
| 140 |
out.write(stacked_frame)
|
| 141 |
stframe.image(stacked_frame,channels = 'BGR',use_column_width=True)
|
|
|
|
| 135 |
result_frame = cv2.resize(result_frame, (target_frame_width, target_frame_height))
|
| 136 |
image = cv2.resize(image, (target_frame_width, target_frame_height))
|
| 137 |
# Put image and result side by side
|
| 138 |
+
stacked_frame = np.hstack((image, result_frame))
|
| 139 |
if save_video:
|
| 140 |
out.write(stacked_frame)
|
| 141 |
stframe.image(stacked_frame,channels = 'BGR',use_column_width=True)
|