diff --git a/lib/image_inference_impl.cc b/lib/image_inference_impl.cc index 051ccca3..23e7a3be 100644 --- a/lib/image_inference_impl.cc +++ b/lib/image_inference_impl.cc @@ -286,6 +286,7 @@ void image_inference_impl::create_image_() { if (flip_ == -1 || flip_ == 0 || flip_ == 1) { cv::flip(*output_item.buffer, *output_item.buffer, flip_); } + cv::cvtColor(*output_item.buffer, *output_item.buffer, cv::COLOR_RGB2BGR); output_q_.insert(output_q_.begin(), output_item); } points_buffer_->resize(0);