Skip to content

Object Tracking based on Color detection using OpenCV library and Python - Raspberry Pi

License

Notifications You must be signed in to change notification settings

Saeid-jhn/ObjectTracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ObjectTracking

Object tracking based on color detection using OpenCV library and Python - Raspberry Pi

About

This project is build for tracking ball-shaped object based on its color. The project could be run on Raspberry Pi using Pi camera. For more detail please visit Pyimagesearch webpage.

Installing

The following packages are required to run the project:

  • Python 3.8.2
  • imutils 0.5.3
  • OpenCV 4.2.0
  1. Install python from the www.python.org or use Anaconda.
  2. Install imutils using Pip or Conda:
    • Pip pip install imutils
    • Conda conda install -c conda-forge imutils
  3. Instal OpenCV using Pip or Conda.
    • Pip pip install opencv-contrib-python
    • Conda conda install -c anaconda opencv

Run

  • In order to use Raspberry Pi camera, simply run ball_tracking.py.
  • To use your local machine (PC or Raspberry Pi) video, use following script in terminal and give your video file path: python ball_tracking.py --video ball_tracking_example.mp4

Support

If you find this repository helpful, please star and fork it to support me.

Contact

For questions, please contact Adrian Rosebrock in pyimagesearch.

Reference

OpenCV Track Object Movement by Adrian Rosebrock on September 21, 2015 [link]

License

This project is distributed under MIT License

About

Object Tracking based on Color detection using OpenCV library and Python - Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages