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

I've seen this same error writing a node in Python. The problem was that, before cv2.imencode(), one of the images was None (the NULL equivalent in Python). So check that your images are not NULL or 0xN or whatever alike. Good luck!