diff --git a/src/add_qr.py b/src/add_qr.py index a0703c533077ea0cd314f60489854caea5f620a2..03d87c14832b33fbfffb841f6a6c7f89d3943090 100755 --- a/src/add_qr.py +++ b/src/add_qr.py @@ -156,11 +156,11 @@ def image_callback(data): cv2.waitKey(1) if options.compressed: - msg = bridge.cv2_to_compressed_imgmsg(final_image, desired_encoding='bgr8') + msg = bridge.cv2_to_compressed_imgmsg(final_image, encoding='bgr8') msg.header = data.header image_pub.publish(msg) else: - msg = bridge.cv2_to_imgmsg(final_image, desired_encoding='bgr8') + msg = bridge.cv2_to_imgmsg(final_image, encoding='bgr8') msg.header = data.header image_pub.publish(msg)