ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

As a fast comment, I've successfully used cv_bridge to convert sensor_msgs/CompressedImage messages from a bag file into OpenCV-native types in both Python and C++. E.g. using toCvCopy in C++ and compressed_imagemsg_to_cv2 in Python. I think that technique is likely simpler than using image_transport.

As a fast comment, I've successfully used cv_bridge to convert sensor_msgs/CompressedImage messages from a bag file into OpenCV-native types in both Python and C++. E.g. using toCvCopy in C++ and compressed_imagemsg_to_cv2compressed_imgmsg_to_cv2 in Python. I think that technique is likely simpler than using image_transport.

As a fast comment, answer, I've successfully used cv_bridge to convert sensor_msgs/CompressedImage messages from a bag file into OpenCV-native types in both Python and C++. E.g. using toCvCopy in C++ and compressed_imgmsg_to_cv2 in Python. I think that technique is likely simpler than using image_transport.