From 88575f49f10b4afe829f29190131f3cace459d8c Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Thu, 12 Oct 2023 04:42:47 +0000 Subject: [PATCH] cvt. --- lib/image_inference_impl.cc | 1 + 1 file changed, 1 insertion(+) 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);