Skip to content

Commit f147a9a

Browse files
fix rgb images
1 parent 5dcd2c2 commit f147a9a

File tree

1 file changed

+1
-1
lines changed
  • formant_ros2_adapter/scripts/components/subscriber

1 file changed

+1
-1
lines changed

formant_ros2_adapter/scripts/components/subscriber/ingester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def ingest(
125125

126126
elif msg_type == Image:
127127
# Convert Image to a Formant image
128-
cv_image = self.cv_bridge.imgmsg_to_cv2(msg, "passthrough")
128+
cv_image = self.cv_bridge.imgmsg_to_cv2(msg, "bgr8")
129129
encoded_image = cv2.imencode(".jpg", cv_image)[1].tobytes()
130130

131131
self._fclient.post_image(

0 commit comments

Comments
 (0)