Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,6 +84,15 @@ if user_image_object is not None:
|
|
| 84 |
height, width, layers = bgr_new.shape
|
| 85 |
size = (width,height)
|
| 86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
'''for this demo prob need to retain image objects bgr_new in an img_array by appending them to that then build them into a gif from the array'''
|
| 88 |
out = cv2.VideoWriter('outputvideo.mp4',cv2.VideoWriter_fourcc(*'DIVX'), 15, size)
|
| 89 |
for i in range(len(img_array)):
|
|
|
|
| 84 |
height, width, layers = bgr_new.shape
|
| 85 |
size = (width,height)
|
| 86 |
|
| 87 |
+
st.write("len(img_array) = ", len(img_array) )
|
| 88 |
+
|
| 89 |
+
'''Show some demos: '''
|
| 90 |
+
|
| 91 |
+
for ii in img_array[::11]:
|
| 92 |
+
st.image( img_array[ii] )
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
|
| 96 |
'''for this demo prob need to retain image objects bgr_new in an img_array by appending them to that then build them into a gif from the array'''
|
| 97 |
out = cv2.VideoWriter('outputvideo.mp4',cv2.VideoWriter_fourcc(*'DIVX'), 15, size)
|
| 98 |
for i in range(len(img_array)):
|