From 744cfb8a6b01d8f4b593d8ce50991d6027462a30 Mon Sep 17 00:00:00 2001 From: "552068321@qq.com" Date: Tue, 8 Nov 2022 13:40:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/yolov5/detect_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/yolov5/detect_server.py b/app/yolov5/detect_server.py index d96e104..68c7c79 100644 --- a/app/yolov5/detect_server.py +++ b/app/yolov5/detect_server.py @@ -224,7 +224,7 @@ def run(id, # 原始图像路径/结果图像路径 传参 #online_img_tools.get_res_img(res_path=save_path, img_path=path, proj_no=pro) - report_cellback(count,len(os.listdir(source)),path,save_path) + report_cellback(count,len(os.listdir(source)),path,str(save_path)) # Print time (inference-only) LOGGER.info(f"{s}{'' if len(det) else '(no detections), '}{dt[1].dt * 1E3:.1f}ms") #######统计检测结果:图片总数量,成功数量,失败数量