Переглянути джерело

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"
 
-    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()