dusty-nv / ros_deep_learning

Deep learning inference nodes for ROS / ROS2 with support for NVIDIA Jetson and TensorRT
879 stars 257 forks source link

Fix for working with ZED camera image, converting bgra to bgr #29

Open qboticslabs opened 4 years ago

qboticslabs commented 4 years ago

This is a fix for working with BGRA8 images with deep learning node. The fix will convert all kinds of image encoding to bgr8. The ZED camera driver image encoding is BGRA8 when we feed image topic to deep learning node, it will throw an error. This fix will avoid that error and do the conversion.