Internal change

PiperOrigin-RevId: 530385895
This commit is contained in:
MediaPipe Team 2023-05-08 13:02:28 -07:00 committed by Copybara-Service
parent ae8bedd352
commit b40f0d3b72
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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",
],
)