https://github.com/csreddy98/objecttracking
Object Tracker using OpenCV and Python
https://github.com/csreddy98/objecttracking
computer-vision csrt opencv opencv-python python python3
Last synced: about 1 month ago
JSON representation
Object Tracker using OpenCV and Python
- Host: GitHub
- URL: https://github.com/csreddy98/objecttracking
- Owner: csreddy98
- License: mit
- Created: 2023-07-04T05:23:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-04T07:08:52.000Z (almost 3 years ago)
- Last Synced: 2025-06-26T02:03:56.836Z (12 months ago)
- Topics: computer-vision, csrt, opencv, opencv-python, python, python3
- Language: Python
- Homepage: https://medium.com/@csreddy1998/object-tracker-using-opencv-and-python-863754558ff4
- Size: 19.1 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Object Tracker using OpenCV and Python
## Introduction
This is a simple object tracking program using OpenCV and Python. The program tracks content inside a bounding\ box and draws a rectangle around it. The program uses the OpenCV library to capture video from the webcam and uses the CSRT algorithm to track the object.
## Demo

## Requirements
* Python 3.6+
* opencv-python
## Installation
To install the required packages, run the following command in the terminal:
```python -m pip install opencv-contrib-python```
## Usage
To run the program, simply run the following command in the terminal:
```
python object_tracker.py
```
The program will open a window with the video feed from the webcam. To select the object to track, simply draw a bounding box around it using the mouse. Once the bounding box is drawn, press the spacebar to start tracking the object. To stop tracking, press the spacebar again. To exit the program, press the 'q' key.
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.