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

Revision history [back]

You need to deserialize the message data with cv_bridge first (python tutorial). Once you have the image as a cv.Mat, you can just call numpy.asarray on it.

You need to deserialize the message data with cv_bridge first (python tutorial). Once you have the image as a cv.Mat, cv.Mat, you can just call numpy.asarray on it.