feat(新功能): pose transform 部署

fix(修复bug):
docs(文档变更):
refactor(重构):
test(增加测试):
This commit is contained in:
zchengrong
2025-04-08 13:18:13 +08:00
parent db5b5519fd
commit 76184a6a75

View File

@@ -73,10 +73,10 @@ def ndarray_to_video(images, output_path, frame_size=(512, 768), fps=1):
# 逐帧写入
for frame in images:
# 调整尺寸(可选)
resized_frame = cv2.resize(frame, frame_size)
# resized_frame = cv2.resize(frame, frame_size)
# 转换颜色通道(若需从 BGR 转 RGB
rgb_frame = cv2.cvtColor(resized_frame, cv2.COLOR_BGR2RGB)
writer.writeFrame(rgb_frame)
# rgb_frame = cv2.cvtColor(resized_frame, cv2.COLOR_BGR2RGB)
writer.writeFrame(frame)
# 关闭写入器
writer.close()