PyCharm Code Inspect fixes for Solutions and Examples (#18393)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
3e65fc2421
commit
b1af683d7a
13 changed files with 92 additions and 62 deletions
|
|
@ -45,6 +45,8 @@ class DistanceCalculation(BaseSolution):
|
|||
self.left_mouse_count = 0
|
||||
self.selected_boxes = {}
|
||||
|
||||
self.centroids = [] # Initialize empty list to store centroids
|
||||
|
||||
def mouse_event_for_distance(self, event, x, y, flags, param):
|
||||
"""
|
||||
Handles mouse events to select regions in a real-time video stream for distance calculation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue