Browse Source

debug size

lyc8503 4 years ago
parent
commit
f7233d91a0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend_refactor/service/video_analyzer.py

+ 1 - 1
backend_refactor/service/video_analyzer.py

@@ -61,7 +61,7 @@ def gather_video(video_uuid):
 
     result_path = UPLOAD_DIR + video_uuid + ".result.mp4"
 
-    out = cv2.VideoWriter(result_path, cv2.VideoWriter_fourcc(*"mp4v"), fps, img_array[0].size)
+    out = cv2.VideoWriter(result_path, cv2.VideoWriter_fourcc(*"mp4v"), fps, (img_array[0].shape[1], img_array[0].shape[1]))  # So fucking stupid
     for i in img_array:
         out.write(i)
     out.release()