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).roscore
in Tab 1rosrun ball_tracking video_publisher.py
in Tab 2rosrun ball_tracking ball_tracker.py
in Tab 3
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
- Siddharth Saha - trunc8
Created with ❤️ by Siddharth