feat(新功能): batch generate 增加接口说明,design batch队列修改
fix(修复bug): docs(文档变更): refactor(重构): test(增加测试):
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import io
|
||||
import logging
|
||||
import os.path
|
||||
|
||||
import cv2
|
||||
import numpy as np
|
||||
import skvideo.io
|
||||
# import boto3
|
||||
@@ -66,7 +66,7 @@ def upload_video(frames, user_id, category, file_name):
|
||||
def ndarray_to_video(images, output_path, frame_size=(512, 768), fps=9):
|
||||
# 初始化视频写入器
|
||||
writer = skvideo.io.FFmpegWriter(
|
||||
output_path,
|
||||
os.path.join(POSE_TRANSFORM_VIDEO_PATH,output_path),
|
||||
inputdict={'-r': str(fps)},
|
||||
outputdict={'-r': str(fps), '-vcodec': 'libx264'}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user