-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyolo_tracker_classes.py
66 lines (55 loc) · 1.47 KB
/
yolo_tracker_classes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
class PhysicalObject:
"""
PhysicalObject
"""
def __init__(self):
self.name = ""
self.image_path = ""
self.image = None
self.annotations = []
class Annotation:
"""
Annotation
"""
def __init__(self):
self.type = ""
self.position = [0.0, 0.0]
self.text = ""
self.start = [0.0, 0.0]
self.end = [0.0, 0.0]
self.video_path = ""
self.audio_path = ""
self.image_path = ""
self.color = ""
self.radius = 0
self.thickness = 0
self.width = 0
self.height = 0
self.update_orientation = False
class PoseEstimationOutput:
"""
PoseEstimationOutput
"""
def __init__(self, name, homography, error):
self.object_name = name
self.homography = homography
self.error = error
class PoseEstimationInput:
"""
PoseEstimationInput
"""
def __init__(self, object_name, template_image, target_image, best_homography):
self.object_name = object_name
self.template_image = template_image
self.target_image = target_image
self.best_homography = best_homography
class ObjectDetectionResult:
"""
ObjectDetectionResult
"""
def __init__(self, label, confidence, top_left, bottom_right):
self.label = label
self.confidence = confidence
self.top_left = top_left
self.bottom_right = bottom_right
self.image = None