An open API service indexing awesome lists of open source software.

https://github.com/roboflow/roboflow-object-tracking


https://github.com/roboflow/roboflow-object-tracking

Last synced: 26 days ago
JSON representation

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/)

![Cards Example](https://github.com/roboflow-ai/roboflow-object-tracking/blob/main/cards.gif)

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/)