feat(新功能):
fix(修复bug): pose transform 图片合成视频方法更换 docs(文档变更): refactor(重构): test(增加测试):
This commit is contained in:
@@ -63,7 +63,7 @@ def upload_video(frames, user_id, category, file_name):
|
||||
|
||||
|
||||
def ndarray_to_video(images, output_path, frame_size=(512, 768), fps=9):
|
||||
save_path = os.path.join(r"E:\workspace\trinity_client_aida\app\service\generate_image\pose_transform_video", output_path)
|
||||
save_path = os.path.join(POSE_TRANSFORM_VIDEO_PATH, output_path)
|
||||
clip = ImageSequenceClip([frame for frame in images], fps=fps)
|
||||
clip.write_videofile(save_path, codec='libx264')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user