Reference for ultralytics/solutions/speed_estimation.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/speed_estimation.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.solutions.speed_estimation.SpeedEstimator
Bases: BaseSolution
A class to estimate the speed of objects in a real-time video stream based on their tracks.
Source code in ultralytics/solutions/speed_estimation.py
estimate_speed
Estimates the speed of objects based on tracking data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
im0
|
ndarray
|
The input image that will be used for processing |
required |
Returns im0 (ndarray): The processed image for more usage
Source code in ultralytics/solutions/speed_estimation.py
📅 Created 9 months ago
✏️ Updated 1 month ago