### Basic Norfair Tracking Workflow Source: https://github.com/tryolabs/norfair/blob/master/docs/getting_started.md This Python code demonstrates a fundamental tracking loop using Norfair. It initializes a detector and video source, creates a Tracker, and processes frames by updating the tracker with new detections and drawing the results. This illustrates 'online tracking' suitable for real-time applications. ```python from norfair import Detection, Tracker, Video, draw_tracked_objects detector = MyDetector() # Set up a detector video = Video(input_path="video.mp4") tracker = Tracker(distance_function="euclidean", distance_threshold=100) for frame in video: detections = detector(frame) norfair_detections = [Detection(points) for points in detections] tracked_objects = tracker.update(detections=norfair_detections) draw_tracked_objects(frame, tracked_objects) video.write(frame) ``` -------------------------------- ### Install Norfair Minimal Version (Python) Source: https://github.com/tryolabs/norfair/blob/master/README.md Installs the basic Norfair library for Python. This is the minimal installation and does not include extra features requiring additional dependencies. ```bash pip install norfair ``` -------------------------------- ### Run YOLOv4 Tracking Demo Source: https://github.com/tryolabs/norfair/blob/master/demos/yolov4/README.md Executes the YOLOv4 object tracking demo with specified video input. This command-line interface allows for basic tracking functionality and provides help for additional configuration options. ```bash python demo.py