@ -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")
# 检查图片是否存在