{"id":28633777,"url":"https://github.com/roboflow/trackers","last_synced_at":"2025-06-12T15:39:11.591Z","repository":{"id":288890172,"uuid":"966243985","full_name":"roboflow/trackers","owner":"roboflow","description":"A unified library for object tracking featuring clean room re-implementations of leading multi-object tracking algorithms","archived":false,"fork":false,"pushed_at":"2025-06-10T20:33:40.000Z","size":2804,"stargazers_count":1755,"open_issues_count":14,"forks_count":149,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-06-10T21:38:46.677Z","etag":null,"topics":["deep-sort","multi-object-tracking","reidentification","sort"],"latest_commit_sha":null,"homepage":"https://roboflow.github.io/trackers","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roboflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-14T16:12:26.000Z","updated_at":"2025-06-10T20:33:15.000Z","dependencies_parsed_at":"2025-06-10T21:40:08.613Z","dependency_job_id":null,"html_url":"https://github.com/roboflow/trackers","commit_stats":null,"previous_names":["roboflow/trackers"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/roboflow/trackers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Ftrackers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Ftrackers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Ftrackers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Ftrackers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roboflow","download_url":"https://codeload.github.com/roboflow/trackers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboflow%2Ftrackers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259495156,"owners_count":22866626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-sort","multi-object-tracking","reidentification","sort"],"created_at":"2025-06-12T15:39:09.182Z","updated_at":"2025-06-12T15:39:11.560Z","avatar_url":"https://github.com/roboflow.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1 align=\"center\"\u003etrackers\u003c/h1\u003e\n    \u003cimg width=\"200\" src=\"https://raw.githubusercontent.com/roboflow/trackers/refs/heads/main/docs/assets/logo-trackers-violet.svg\" alt=\"trackers logo\"\u003e\n\n[![version](https://badge.fury.io/py/trackers.svg)](https://badge.fury.io/py/trackers)\n[![downloads](https://img.shields.io/pypi/dm/trackers)](https://pypistats.org/packages/trackers)\n[![license](https://img.shields.io/badge/license-Apache%202.0-blue)](https://github.com/roboflow/trackers/blob/main/LICENSE.md)\n[![python-version](https://img.shields.io/pypi/pyversions/trackers)](https://badge.fury.io/py/trackers)\n\n[![colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1VT_FYIe3kborhWrfKKBqqfR0EjQeQNiO?usp=sharing)\n[![discord](https://img.shields.io/discord/1159501506232451173?logo=discord\u0026label=discord\u0026labelColor=fff\u0026color=5865f2\u0026link=https%3A%2F%2Fdiscord.gg%2FGbfgXGJ8Bk)](https://discord.gg/GbfgXGJ8Bk)\n\u003c/div\u003e\n\n## Hello\n\n`trackers` is a unified library offering clean room re-implementations of leading multi-object tracking algorithms. Its modular design allows you to easily swap trackers and integrate them with object detectors from various libraries like `inference`, `ultralytics`, or `transformers`.\n\n\u003cdiv align=\"center\"\u003e\n  \u003ctable\u003e\n    \u003cthead\u003e\n      \u003ctr\u003e\n        \u003cth\u003eTracker\u003c/th\u003e\n        \u003cth\u003ePaper\u003c/th\u003e\n        \u003cth\u003eMOTA\u003c/th\u003e\n        \u003cth\u003eYear\u003c/th\u003e\n        \u003cth\u003eStatus\u003c/th\u003e\n        \u003cth\u003eColab\u003c/th\u003e\n      \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eSORT\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://arxiv.org/abs/1602.00763\"\u003e\u003cimg src=\"https://img.shields.io/badge/arXiv-1602.00763-b31b1b.svg\" alt=\"arXiv\"\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e74.6\u003c/td\u003e\n        \u003ctd\u003e2016\u003c/td\u003e\n        \u003ctd\u003e✅\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-objects-with-sort-tracker.ipynb\"\u003e\u003cimg src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"colab\"\u003e\u003c/a\u003e\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eDeepSORT\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://arxiv.org/abs/1703.07402\"\u003e\u003cimg src=\"https://img.shields.io/badge/arXiv-1703.07402-b31b1b.svg\" alt=\"arXiv\"\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e75.4\u003c/td\u003e\n        \u003ctd\u003e2017\u003c/td\u003e\n        \u003ctd\u003e✅\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-objects-with-deepsort-tracker.ipynb\"\u003e\u003cimg src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"colab\"\u003e\u003c/a\u003e\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eByteTrack\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://arxiv.org/abs/2110.06864\"\u003e\u003cimg src=\"https://img.shields.io/badge/arXiv-2110.06864-b31b1b.svg\" alt=\"arXiv\"\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e77.8\u003c/td\u003e\n        \u003ctd\u003e2021\u003c/td\u003e\n        \u003ctd\u003e🚧\u003c/td\u003e\n        \u003ctd\u003e🚧\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eOC-SORT\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://arxiv.org/abs/2203.14360\"\u003e\u003cimg src=\"https://img.shields.io/badge/arXiv-2203.14360-b31b1b.svg\" alt=\"arXiv\"\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e75.9\u003c/td\u003e\n        \u003ctd\u003e2022\u003c/td\u003e\n        \u003ctd\u003e🚧\u003c/td\u003e\n        \u003ctd\u003e🚧\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eBoT-SORT\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://arxiv.org/abs/2206.14651\"\u003e\u003cimg src=\"https://img.shields.io/badge/arXiv-2206.14651-b31b1b.svg\" alt=\"arXiv\"\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e77.8\u003c/td\u003e\n        \u003ctd\u003e2022\u003c/td\u003e\n        \u003ctd\u003e🚧\u003c/td\u003e\n        \u003ctd\u003e🚧\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n  \u003c/table\u003e\n\u003c/div\u003e\n\nhttps://github.com/user-attachments/assets/eef9b00a-cfe4-40f7-a495-954550e3ef1f\n\n## Installation\n\nPip install the `trackers` package in a [**Python\u003e=3.9**](https://www.python.org/) environment.\n\n```bash\npip install trackers\n```\n\n\u003cdetails\u003e\n\u003csummary\u003einstall from source\u003c/summary\u003e\n\n\u003cbr\u003e\n\nBy installing `trackers` from source, you can explore the most recent features and enhancements that have not yet been officially released. Please note that these updates are still in development and may not be as stable as the latest published release.\n\n```bash\npip install git+https://github.com/roboflow/trackers.git\n```\n\n\u003c/details\u003e\n\n## Quickstart\n\nWith a modular design, `trackers` lets you combine object detectors from different libraries with the tracker of your choice. Here's how you can use `SORTTracker` with various detectors:\n\n```python\nimport supervision as sv\nfrom trackers import SORTTracker\nfrom inference import get_model\n\ntracker = SORTTracker()\nmodel = get_model(model_id=\"yolov11m-640\")\nannotator = sv.LabelAnnotator(text_position=sv.Position.CENTER)\n\ndef callback(frame, _):\n    result = model.infer(frame)[0]\n    detections = sv.Detections.from_inference(result)\n    detections = tracker.update(detections)\n    return annotator.annotate(frame, detections, labels=detections.tracker_id)\n\nsv.process_video(\n    source_path=\"\u003cINPUT_VIDEO_PATH\u003e\",\n    target_path=\"\u003cOUTPUT_VIDEO_PATH\u003e\",\n    callback=callback,\n)\n```\n\n\u003cdetails\u003e\n\u003csummary\u003erun with \u003ccode\u003eultralytics\u003c/code\u003e\u003c/summary\u003e\n\n\u003cbr\u003e\n\n```python\nimport supervision as sv\nfrom trackers import SORTTracker\nfrom ultralytics import YOLO\n\ntracker = SORTTracker()\nmodel = YOLO(\"yolo11m.pt\")\nannotator = sv.LabelAnnotator(text_position=sv.Position.CENTER)\n\ndef callback(frame, _):\n    result = model(frame)[0]\n    detections = sv.Detections.from_ultralytics(result)\n    detections = tracker.update(detections)\n    return annotator.annotate(frame, detections, labels=detections.tracker_id)\n\nsv.process_video(\n    source_path=\"\u003cINPUT_VIDEO_PATH\u003e\",\n    target_path=\"\u003cOUTPUT_VIDEO_PATH\u003e\",\n    callback=callback,\n)\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003erun with \u003ccode\u003etransformers\u003c/code\u003e\u003c/summary\u003e\n\n\u003cbr\u003e\n\n```python\nimport torch\nimport supervision as sv\nfrom trackers import SORTTracker\nfrom transformers import RTDetrV2ForObjectDetection, RTDetrImageProcessor\n\ntracker = SORTTracker()\nimage_processor = RTDetrImageProcessor.from_pretrained(\"PekingU/rtdetr_v2_r18vd\")\nmodel = RTDetrV2ForObjectDetection.from_pretrained(\"PekingU/rtdetr_v2_r18vd\")\nannotator = sv.LabelAnnotator(text_position=sv.Position.CENTER)\n\ndef callback(frame, _):\n    inputs = image_processor(images=frame, return_tensors=\"pt\")\n    with torch.no_grad():\n        outputs = model(**inputs)\n\n    h, w, _ = frame.shape\n    results = image_processor.post_process_object_detection(\n        outputs,\n        target_sizes=torch.tensor([(h, w)]),\n        threshold=0.5\n    )[0]\n\n    detections = sv.Detections.from_transformers(\n        transformers_results=results,\n        id2label=model.config.id2label\n    )\n\n    detections = tracker.update(detections)\n    return annotator.annotate(frame, detections, labels=detections.tracker_id)\n\nsv.process_video(\n    source_path=\"\u003cINPUT_VIDEO_PATH\u003e\",\n    target_path=\"\u003cOUTPUT_VIDEO_PATH\u003e\",\n    callback=callback,\n)\n```\n\n\u003c/details\u003e\n\n## License\n\nThe code is released under the [Apache 2.0 license](https://github.com/roboflow/trackers/blob/main/LICENSE).\n\n## Contribution\n\nWe welcome all contributions—whether it’s reporting issues, suggesting features, or submitting pull requests. Please read our [contributor guidelines](https://github.com/roboflow/trackers/blob/main/CONTRIBUTING.md) to learn about our processes and best practices.\n","funding_links":[],"categories":["对象检测_分割","Python","Repos","App"],"sub_categories":["资源传输下载"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboflow%2Ftrackers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froboflow%2Ftrackers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboflow%2Ftrackers/lists"}