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") #######统计检测结果:图片总数量,成功数量,失败数量