Skip to content

Conversation

josephvanpeltkw
Copy link
Collaborator

add new script to output the belief file csv

)
self.pv_image_frame_id = (
self.declare_parameter("pv_image_frame_id", "PVFramesBGR")
self.declare_parameter("pv_image_frame_id", "/kitware/pv_image_detections_2d")#"PVFramesBGR")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have expected this to just need to be "pv_image_detections_2d", and the namespace under which the bag play happens does appropriate namespace prepending to messages emitted?

rgb_image = bridge.imgmsg_to_cv2(msg, msg.encoding)

if "rgb" in msg.encoding:
rgb_image = cv2.cvtColor(rgb_image, cv2.COLOR_BGRA2RGBA)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is L575 not outputting an RGB image already when the msg.encoding is "rgb"? It looks like you're converting form "BGR" to "RGB" here, but I would have expected rgb_image to already be in RGB at this point (its just maybe missing the alpha channel?).

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

Successfully merging this pull request may close these issues.

2 participants