Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Feb 1, 2024
2 parents 541e510 + 68de79d commit 32a8979
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions docs/en/guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ Welcome to the Ultralytics' YOLO 馃殌 Guides! Our comprehensive tutorials cover

Whether you're a beginner or an expert in deep learning, our tutorials offer valuable insights into the implementation and optimization of YOLO for your computer vision projects. Let's dive in!

<p align="center">
<br>
<iframe width="720" height="405" src="https://www.youtube.com/embed/96NkhsV-W1U"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe>
<br>
<strong>Watch:</strong> Ultralytics YOLOv8 Guides Overview
</p>

## Guides

Here's a compilation of in-depth guides to help you master different aspects of Ultralytics YOLO.
Expand Down
3 changes: 2 additions & 1 deletion ultralytics/solutions/heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,10 @@ def generate_heatmap(self, im0, tracks):
"""
self.im0 = im0
if tracks[0].boxes.id is None:
self.heatmap = np.zeros((int(self.imh), int(self.imw)), dtype=np.float32)
if self.view_img and self.env_check:
self.display_frames()
return
return im0
self.heatmap *= self.decay_factor # decay factor
self.extract_results(tracks)
self.annotator = Annotator(self.im0, self.count_txt_thickness, None)
Expand Down
2 changes: 1 addition & 1 deletion ultralytics/solutions/object_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def start_counting(self, im0, tracks):
if tracks[0].boxes.id is None:
if self.view_img:
self.display_frames()
return
return im0
self.extract_and_process_tracks(tracks)

if self.view_img:
Expand Down
2 changes: 1 addition & 1 deletion ultralytics/solutions/speed_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def estimate_speed(self, im0, tracks):
if tracks[0].boxes.id is None:
if self.view_img and self.env_check:
self.display_frames()
return
return im0
self.extract_tracks(tracks)

self.annotator = Annotator(self.im0, line_width=2)
Expand Down

0 comments on commit 32a8979

Please sign in to comment.