feat(新功能): pose transform 部署
fix(修复bug): docs(文档变更): refactor(重构): test(增加测试):
This commit is contained in:
@@ -73,10 +73,10 @@ def ndarray_to_video(images, output_path, frame_size=(512, 768), fps=1):
|
|||||||
# 逐帧写入
|
# 逐帧写入
|
||||||
for frame in images:
|
for frame in images:
|
||||||
# 调整尺寸(可选)
|
# 调整尺寸(可选)
|
||||||
resized_frame = cv2.resize(frame, frame_size)
|
# resized_frame = cv2.resize(frame, frame_size)
|
||||||
# 转换颜色通道(若需从 BGR 转 RGB)
|
# 转换颜色通道(若需从 BGR 转 RGB)
|
||||||
rgb_frame = cv2.cvtColor(resized_frame, cv2.COLOR_BGR2RGB)
|
# rgb_frame = cv2.cvtColor(resized_frame, cv2.COLOR_BGR2RGB)
|
||||||
writer.writeFrame(rgb_frame)
|
writer.writeFrame(frame)
|
||||||
|
|
||||||
# 关闭写入器
|
# 关闭写入器
|
||||||
writer.close()
|
writer.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user