Skip to content

Tracks the movement of any coloured ball using centroid and display the position within the camera frame

Notifications You must be signed in to change notification settings

reachpranjal/ball-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ball movement tracking

  • The code belongs to PyImageSearch. There is absolutely no contribution to the original code and is purely meant for sharing purpose.

  • Video is downloaded from here.

Install dependencies

  • pip installation
$ pip install opencv-python
$ pip install --upgrade imutils
$ pip install numpy
  • conda installation
$ conda install -c conda-forge opencv
$ conda install -c conda-forge imutils
$ conda install numpy

Execution

Make sure that you provide complete path to the video file or change the directory to the target location first.

To run on video-
$ python3 object_movement.py --video ball_video.mp4

To use Webcam-
$ python3 object_movement.py

Output

About

Tracks the movement of any coloured ball using centroid and display the position within the camera frame

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages