The colors of the debug_image are inverted when the input image topic is not encoded in bgr8. I apologize for the lack of confirmation, but I suspect that the input to the Detic model is also inverted.
This problem can be solved by specifying the encoding of the CvBridge conversion. This is also done in jsk_recognition, which I used as a reference.
The colors of the
debug_image
are inverted when the input image topic is not encoded inbgr8
. I apologize for the lack of confirmation, but I suspect that the input to the Detic model is also inverted.This problem can be solved by specifying the encoding of the CvBridge conversion. This is also done in jsk_recognition, which I used as a reference.
image topic not in bgr8 encoding
Comparison before and after change, the upper image is input image topic and the lower image is
debug_image
.image topic in bgr8 encoding
Comparison before and after change, the upper image is
debug_image
and the lower image is input image topic.