Skip to content

Commit

Permalink
Fix heatmaps width-height order bug (#7184)
Browse files Browse the repository at this point in the history
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
WangQvQ and glenn-jocher committed Dec 28, 2023
1 parent 7499d72 commit 79f588f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/guides/heatmaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 79f588f

Please sign in to comment.