Fix solution functions description + integrations/openvino.md cover image update (#8170)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Muhammad Rizwan Munawar 2024-02-13 15:33:59 +05:00 committed by GitHub
parent 52604084de
commit 78f7e475fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 11 deletions

View file

@ -107,7 +107,8 @@ class DistanceCalculation:
def calculate_centroid(self, box):
"""
Calculate the centroid of bounding box
Calculate the centroid of bounding box.
Args:
box (list): Bounding box data
"""
@ -115,7 +116,8 @@ class DistanceCalculation:
def calculate_distance(self, centroid1, centroid2):
"""
Calculate distance between two centroids
Calculate distance between two centroids.
Args:
centroid1 (point): First bounding box data
centroid2 (point): Second bounding box data
@ -125,7 +127,8 @@ class DistanceCalculation:
def start_process(self, im0, tracks):
"""
Calculate distance between two bounding boxes based on tracking data
Calculate distance between two bounding boxes based on tracking data.
Args:
im0 (nd array): Image
tracks (list): List of tracks obtained from the object tracking process.