-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6f3dda
commit 2fb0ad6
Showing
37 changed files
with
4,755 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
""" | ||
A customizable lightweight Python library for real-time multi-object tracking. | ||
|
||
Examples | ||
-------- | ||
>>> 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=50) | ||
>>> 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) | ||
""" | ||
import sys | ||
|
||
from .distances import * | ||
from .drawing import * | ||
from .filter import ( | ||
FilterPyKalmanFilterFactory, | ||
NoFilterFactory, | ||
OptimizedKalmanFilterFactory, | ||
) | ||
from .tracker import Detection, Tracker | ||
from .utils import get_cutout, print_objects_as_table | ||
from .video import Video | ||
|
||
if sys.version_info >= (3, 8): | ||
import importlib.metadata | ||
|
||
__version__ = importlib.metadata.version(__name__) | ||
elif sys.version_info < (3, 8): | ||
import importlib_metadata | ||
|
||
__version__ = importlib_metadata.version(__name__) |
Oops, something went wrong.