save visualized image

This commit is contained in:
LDOUBLEV 2021-06-24 12:00:58 +00:00
parent b2260182e4
commit 42853ff0de
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ if __name__ == "__main__":
img_name_pure = os.path.split(image_file)[-1]
img_path = os.path.join(draw_img_save,
"det_res_{}".format(img_name_pure))
cv2.imwrite(img_path, src_im)
logger.info("The visualized image saved in {}".format(img_path))
# print the information about memory and time-spent
if args.benchmark:

View File

@ -112,4 +112,4 @@ def main():
if __name__ == '__main__':
config, device, logger, vdl_writer = program.preprocess()
main()
main()