Skip to content
Snippets Groups Projects
Commit c8e79843 authored by Tommy Persson's avatar Tommy Persson
Browse files

Work on qr code.

parent 97e54a73
No related branches found
No related tags found
No related merge requests found
...@@ -156,11 +156,11 @@ def image_callback(data): ...@@ -156,11 +156,11 @@ def image_callback(data):
cv2.waitKey(1) cv2.waitKey(1)
if options.compressed: if options.compressed:
msg = bridge.cv2_to_compressed_imgmsg(final_image) msg = bridge.cv2_to_compressed_imgmsg(final_image, desired_encoding='bgr8')
msg.header = data.header msg.header = data.header
image_pub.publish(msg) image_pub.publish(msg)
else: else:
msg = bridge.cv2_to_imgmsg(final_image) msg = bridge.cv2_to_imgmsg(final_image, desired_encoding='bgr8')
msg.header = data.header msg.header = data.header
image_pub.publish(msg) image_pub.publish(msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment