瀏覽代碼

Merge branch 'dev' of http://gogs.seec.seecoder.cn/ZhaoFengShan/PoseCorrection into dev

LeoDu 4 年之前
父節點
當前提交
74fe9fd575
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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"
     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:
     for i in img_array:
         out.write(i)
         out.write(i)
     out.release()
     out.release()