Skip to content

Python implementation of Ball tracking using OpenCV and CvBridge in ROS

License

Notifications You must be signed in to change notification settings

trunc8/ball-tracking-opencv-and-ros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ball Tracking Using OpenCV And ROS

Demo

Ball Tracking Demo

Steps to Replicate

  1. git clone https://github.com/trunc8/Ball_Tracking_Using_OpenCV_And_ROS.git ball_tracking in the src folder of your catkin_ws (or equivalent ROS workspace).
  2. roscore in Tab 1
  3. rosrun ball_tracking video_publisher.py in Tab 2
  4. rosrun ball_tracking ball_tracker.py in Tab 3

What This Does

  • video_publisher.py reads video file using OpenCV, converts the frames to ROS Image Message using CvBridge and publishes to topic '/ball_video'
  • ball_tracker.py subscribes to the ROS Image topic, suitably converts to OpenCV image and performs contour tracking on the ball

Author

Created with ❤️ by Siddharth

About

Python implementation of Ball tracking using OpenCV and CvBridge in ROS

Topics

Resources

License

Stars

Watchers

Forks