feat(新功能): batch generate 增加接口说明,design batch队列修改

fix(修复bug):
docs(文档变更):
refactor(重构):
test(增加测试):
This commit is contained in:
zchengrong
2025-04-22 13:59:59 +08:00
parent af8ed730cc
commit 96002eb7f2
5 changed files with 19 additions and 18 deletions

View File

@@ -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'}
)