From 8cd0e55e4d8fda722bb48299b59797189b0ffd20 Mon Sep 17 00:00:00 2001 From: CodingMonkey3688 <106360652+CodingMonkey3688@users.noreply.github.com> Date: Fri, 27 May 2022 14:18:20 +0800 Subject: [PATCH] Update convertVis_to_xml.py --- convertVis_to_xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convertVis_to_xml.py b/convertVis_to_xml.py index 0f04771..c948c9c 100644 --- a/convertVis_to_xml.py +++ b/convertVis_to_xml.py @@ -72,7 +72,7 @@ def object_string(label, bbox): {} {} - 0'''.format(img_file, img_path, img.shape[0], img.shape[1], img.shape[2]) + 0'''.format(img_file, img_path, img.shape[1], img.shape[0], img.shape[2]) file = open(annotation_path, 'r') lines = file.readlines() @@ -91,4 +91,4 @@ def object_string(label, bbox): f.write(annotation_string_final) f.close() count += 1 - print('[INFO] Completed {} image(s) and annotation(s) pair'.format(count)) \ No newline at end of file + print('[INFO] Completed {} image(s) and annotation(s) pair'.format(count))