Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscribing to image data 8UC3 #35

Open
dmorris0 opened this issue Nov 3, 2021 · 0 comments
Open

Subscribing to image data 8UC3 #35

dmorris0 opened this issue Nov 3, 2021 · 0 comments

Comments

@dmorris0
Copy link

dmorris0 commented Nov 3, 2021

I am playing one of the rosbag files which has an image topic /image_front_left of type 8UC3. In my subscriber callback I am attempting to convert it to bgr8 format with:
img = self.bridge.imgmsg_to_cv2(msg,'bgr8')
I think this makes sense, but I get an error:
[8UC3] is not a color format. but [bgr8] is. The conversion does not make sense
Now I don't think this makes sense, as 8UC3 is a color format.

Am I doing something wrong in subscribing this way? Do you have example code subscribing to the image topic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant