Spaces:
Running
Running
File size: 831 Bytes
d015578 |
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 |
class Tracker:
"""
Object detection and tracking interface in a video stream
"""
def __init__(self):
self.attributes = []
def process_frame(self, image, tracked_obj):
"""
Detect and track objects in the input image.
:param image: OpenCV image.
:param tracked_obj: List with the objects found.
"""
raise NotImplementedError()
def plot_features(self, image, features, plotter, show_attributes):
"""
Visualize objects detected in the input image.
:param image: OpenCV image.
:param features: List of object features detect after processing the frame.
:param plotter: Plotter interface.
:param show_attributes: Selected object attributes to be displayed.
"""
raise NotImplementedError()
|