GDavila commited on
Commit
9c6a4cd
1 Parent(s): a2db704

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -78,9 +78,12 @@ if user_image_object is not None:
78
 
79
  # save output AS FILE LABELED BY ITERABLE
80
  output_filename = 'output_bgr_new_' + str(i) +'.png' #<<<<<<<<<<<<<<<< where the iter comes in
81
- cv2.imwrite(output_filename, bgr_new)
82
 
83
 
 
 
 
84
  '''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'''
85
  out = cv2.VideoWriter('outputvideo.mp4',cv2.VideoWriter_fourcc(*'DIVX'), 15, size)
86
  for i in range(len(img_array)):
 
78
 
79
  # save output AS FILE LABELED BY ITERABLE
80
  output_filename = 'output_bgr_new_' + str(i) +'.png' #<<<<<<<<<<<<<<<< where the iter comes in
81
+ #cv2.imwrite(output_filename, bgr_new)
82
 
83
 
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)):