From 79f588fa5585088f7c859c8389616f77aa1a46ce Mon Sep 17 00:00:00 2001 From: WangQvQ <1579093407@qq.com> Date: Fri, 29 Dec 2023 05:36:07 +0800 Subject: [PATCH] Fix heatmaps width-height order bug (#7184) Co-authored-by: Glenn Jocher --- docs/en/guides/heatmaps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/guides/heatmaps.md b/docs/en/guides/heatmaps.md index c633832e..a02676eb 100644 --- a/docs/en/guides/heatmaps.md +++ b/docs/en/guides/heatmaps.md @@ -183,8 +183,8 @@ A heatmap generated with [Ultralytics YOLOv8](https://github.com/ultralytics/ult # Heatmap Init heatmap_obj = heatmap.Heatmap() heatmap_obj.set_args(colormap=cv2.COLORMAP_PARULA , - imw=im0.shape[1], # should same as im0 width - imh=im0.shape[0], # should same as im0 height + imw=im0.shape[0], # should same as im0 width + imh=im0.shape[1], # should same as im0 height view_img=True, shape="circle")