ROS node which converts a ROS image message topic into a cv::Mat, detects regions of a specific color (in this case red), and draws bounding boxes around them.
OpenCV >= 3.4.0: https://github.com/opencv/opencv
ROS - Kinetic Kame: http://wiki.ros.org/kinetic
sudo apt install ros-kinetic-camera-info-manager
sudo apt install ros-kinetic-cv-bridge
Usage:
-
Clone this repo to your src-folder in your catkin workspace.
-
To run this node:
$ rosbag play -l <path-to-bagfile>
$ rosrun image_converting image_converting
If the image topic is of type compressed, run:
$ rosrun image_converting image_converting _image_transport:=compressed