diff --git a/mediapipe/calculators/util/annotation_overlay_calculator.cc b/mediapipe/calculators/util/annotation_overlay_calculator.cc index 6e0dc769b..34093702c 100644 --- a/mediapipe/calculators/util/annotation_overlay_calculator.cc +++ b/mediapipe/calculators/util/annotation_overlay_calculator.cc @@ -471,7 +471,7 @@ absl::Status AnnotationOverlayCalculator::CreateRenderTargetCpu( auto input_mat = formats::MatView(&input_frame); if (input_frame.Format() == ImageFormat::GRAY8) { cv::Mat rgb_mat; - cv::cvtColor(input_mat, rgb_mat, CV_GRAY2RGB); + cv::cvtColor(input_mat, rgb_mat, cv::COLOR_GRAY2RGB); rgb_mat.copyTo(*image_mat); } else { input_mat.copyTo(*image_mat); diff --git a/mediapipe/util/BUILD b/mediapipe/util/BUILD index cd82a850a..19aa6c1c7 100644 --- a/mediapipe/util/BUILD +++ b/mediapipe/util/BUILD @@ -163,12 +163,12 @@ cc_library( hdrs = ["annotation_renderer.h"], visibility = ["//visibility:public"], deps = [ + ":color_cc_proto", ":render_data_cc_proto", "//mediapipe/framework/port:logging", "//mediapipe/framework/port:opencv_core", "//mediapipe/framework/port:opencv_imgproc", "//mediapipe/framework/port:vector", - "//mediapipe/util:color_cc_proto", ], )