未验证 提交 644bec9f 编写于 作者: Z zhoujun 提交者: GitHub

Merge pull request #2351 from Timo9Madrid7/patch-1

Fix the incompatibility of gif saving
......@@ -176,6 +176,8 @@ def main(args):
draw_img_save = "./inference_results/"
if not os.path.exists(draw_img_save):
os.makedirs(draw_img_save)
if flag:
image_file = image_file[:-3] + "png"
cv2.imwrite(
os.path.join(draw_img_save, os.path.basename(image_file)),
draw_img[:, :, ::-1])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册