From da974e083bc841a4f86366d0ab05b159b1eb5a1b Mon Sep 17 00:00:00 2001 From: HaleySchuhl Date: Thu, 15 Aug 2024 12:02:19 -0500 Subject: [PATCH] change line_thickness since dilate will err if ksize=1 --- plantcv/annotate/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plantcv/annotate/classes.py b/plantcv/annotate/classes.py index 9968c6d..c58142a 100644 --- a/plantcv/annotate/classes.py +++ b/plantcv/annotate/classes.py @@ -341,7 +341,7 @@ def correct_mask(self, bin_img): # Write ID labels for id, id_label in enumerate(debug_labels): cv2.putText(img=debug_img, text=id_label, org=debug_coords[id], fontFace=cv2.FONT_HERSHEY_SIMPLEX, - fontScale=params.text_size, color=(150, 150, 150), thickness=params.text_thickness) + fontScale=params.text_size, color=(150, 150, 150), thickness=(params.text_thickness+2)) params.debug = debug # _debug(visual=final_mask, # filename=os.path.join(params.debug_outdir,