https://github.com/roboflow/roboflow-object-tracking
https://github.com/roboflow/roboflow-object-tracking
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/roboflow/roboflow-object-tracking
- Owner: roboflow
- Created: 2021-08-02T14:29:54.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T07:42:54.000Z (almost 3 years ago)
- Last Synced: 2025-09-29T09:42:59.814Z (9 months ago)
- Language: Python
- Size: 30.2 MB
- Stars: 2
- Watchers: 17
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Roboflow Object Tracking Example
Object tracking using Roboflow Inference API and zeroshot CLIP Deep SORT. [More on CLIP](https://blog.roboflow.com/how-to-use-openai-clip/)

Example object tracking courtesy of the [Roboflow Universe public playing cards model and dataset](https://universe.roboflow.com/augmented-startups/playing-cards-ow27d). You can adapt this to your own dataset on Roboflow.
# Getting Started
## Training your model
Upload, annotate, and train your model on Roboflow with [Roboflow Train](https://docs.roboflow.com/train). Your model will be hosted on an inference URL.
## Performing Object Tracking
Clone repositories
```
git clone https://github.com/roboflow-ai/roboflow-object-tracking
cd roboflow-object-tracking
git clone https://github.com/openai/CLIP.git CLIP-repo
cp -r ./CLIP-repo/clip ./clip
```
Install requirements (python 3.7+)
```bash
pip install --upgrade pip
pip install -r requirements.txt
```
Install requirements (anaconda python 3.8)
```
conda install pytorch torchvision torchaudio -c pytorch
conda install ftfy regex
pip install opencv pycocotools tensorflow
```
Run
```bash
python clip_object_tracker.py --source data/video/cards.mp4 --url https://detect.roboflow.com/playing-cards-ow27d/1 --api_key ROBOFLO_API_KEY
```
(by default, output will be in runs/detect/exp[num])
Help
```bash
python clip_object_tracker.py -h
```
## Acknowledgements
Huge thanks to:
- [yolov4-deepsort by theAIGuysCode](https://github.com/theAIGuysCode/yolov4-deepsort)
- [yolov5 by ultralytics](https://github.com/ultralytics/yolov5)
- [Deep SORT Repository by nwojke](https://github.com/nwojke/deep_sort)
- [OpenAI for being awesome](https://openai.com/blog/clip/)