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

Revision history [back]

click to hide/show revision 1
initial version

This is an OpenCV question (-> answers.opencv.org). But you try to convert a grayscale image using BGR2HSV which obviously does not work. The '0' in your cv2.imread asks specifically for a gray scale image, so just use '1' (aka cv2.IMREAD_COLOR) to start with a color image.

http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_gui/py_image_display/py_image_display.html