From b7dd02ba83c0ba829ecd3981dd2e10d9676e5ac9 Mon Sep 17 00:00:00 2001 From: ganshihao21 <1410815216@qq.com> Date: Fri, 5 Jul 2024 08:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Guide_stick_system/image_recognition/manage/itt/wenzhi.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Guide_stick_system/image_recognition/manage/itt/wenzhi.py b/src/Guide_stick_system/image_recognition/manage/itt/wenzhi.py index fc7078f..f2e09e5 100644 --- a/src/Guide_stick_system/image_recognition/manage/itt/wenzhi.py +++ b/src/Guide_stick_system/image_recognition/manage/itt/wenzhi.py @@ -64,8 +64,7 @@ def main(): # 获取当前时间,并格式化为文件名 current_time = datetime.datetime.now().strftime("%Y%m%d%H%M%S") image_filename = f"{current_time}.jpg" - #image_path = os.path.join('img', image_filename) - image_path = 'img/22.jpg' + image_path = os.path.join('img', image_filename) output_file_path = os.path.join(output_dir_path, f"{current_time}.txt") # 检查图片是否存在