cvbridge imgmsg_to_cv2 adds vertical line to the rightmost pixels in the image
Hello,
I have a python script that takes images from raspicam_node:
def __init__(self):
self.bridge = CvBridge()
self.image_sub = rospy.Subscriber("/raspicam_node/image_raw", Image, self.callback)
def callback(self, data):
try:
cv_image = self.bridge.imgmsg_to_cv2(data, desired_encoding='bgr8')
cv2.imshow("cv_image", cv_image)
except CvBridgeError as e:
print(e)
when the cv_image is visualized by cv2.imshow, we notice a vertical line on the right of the image:
I have checked the problem is not because of raspicamnode, as rqtimage_view does not show the white line on the source image.
any ideas why this could be?
best regards, C.
Asked by wintermute on 2020-11-12 12:25:52 UTC
Comments