From 7609ef86a8fa65f3a95892ca2b243abd109353ff Mon Sep 17 00:00:00 2001 From: "dan.rustia" <dan.rustia@wur.nl> Date: Thu, 18 Jul 2024 13:01:06 +0200 Subject: [PATCH] added label_scale --- image_operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_operations.py b/image_operations.py index 4923cce..916d402 100755 --- a/image_operations.py +++ b/image_operations.py @@ -624,7 +624,7 @@ def embed_output(img_output, a, cfg, custom_label=""): if cfg.display_cfg["show_labels"]: if cfg.display_cfg["label_level"] >= 1: - cv2.putText(img_output, "{} ({})".format(str(cfg.class_names[cl]), str(round(s,2))), (int(x1), int(y1)-5), cv2.FONT_HERSHEY_SIMPLEX, 1.0, color, cfg.display_cfg["thickness"]) + cv2.putText(img_output, "{} ({})".format(str(cfg.class_names[cl]), str(round(s,2))), (int(x1), int(y1)-5), cv2.FONT_HERSHEY_SIMPLEX, 0.3, color, cfg.display_cfg["thickness"]) if cfg.display_cfg["label_level"] >= 2: cv2.putText(img_output, "{} x {}".format(int(bh), int(bw)), (int(x1), int(y1)-35), cv2.FONT_HERSHEY_SIMPLEX, 0.8, color, cfg.display_cfg["thickness"]) -- GitLab