Reference for ultralytics/solutions/heatmap.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/heatmap.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.solutions.heatmap.Heatmap
Bases: ObjectCounter
A class to draw heatmaps in real-time video stream based on their tracks.
Source code in ultralytics/solutions/heatmap.py
generate_heatmap
Generate heatmap for each frame using Ultralytics.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
im0
|
ndarray
|
Input image array for processing |
required |
Returns: im0 (ndarray): Processed image for further usage
Source code in ultralytics/solutions/heatmap.py
heatmap_effect
Efficient calculation of heatmap area and effect location for applying colormap.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
box
|
list
|
Bounding Box coordinates data [x0, y0, x1, y1] |
required |
Source code in ultralytics/solutions/heatmap.py
📅 Created 10 months ago
✏️ Updated 1 month ago