[ros-users] how to convert opencv numpy images to ros images…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: ros-users
Subject: [ros-users] how to convert opencv numpy images to ros images in python
Hi,

I am using opencv in ros electric with python using the new cv2
(import cv2) interface. I could not figure out how to convert images
in python (they are numpy arrays) to ros images (sensor_msgs/Image).
The ros package "cv_bridge" only supports IplImage to
sensor_msgs/Image conversion in python [1]. Is there already a
solution around? Am I looking in the wrong place?

Thanks!
-Sebastian

[1] http://www.ros.org/wiki/cv_bridge/Tutorials/ConvertingBetweenROSImagesAndOpenCVImagesPython