Internal change

PiperOrigin-RevId: 525774601
This commit is contained in:
MediaPipe Team 2023-04-20 09:51:35 -07:00 committed by Copybara-Service
parent 331692577e
commit a89ec882b0
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); auto input_mat = formats::MatView(&input_frame);
if (input_frame.Format() == ImageFormat::GRAY8) { if (input_frame.Format() == ImageFormat::GRAY8) {
cv::Mat rgb_mat; 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); rgb_mat.copyTo(*image_mat);
} else { } else {
input_mat.copyTo(*image_mat); input_mat.copyTo(*image_mat);

View File

@ -163,12 +163,12 @@ cc_library(
hdrs = ["annotation_renderer.h"], hdrs = ["annotation_renderer.h"],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [
":color_cc_proto",
":render_data_cc_proto", ":render_data_cc_proto",
"//mediapipe/framework/port:logging", "//mediapipe/framework/port:logging",
"//mediapipe/framework/port:opencv_core", "//mediapipe/framework/port:opencv_core",
"//mediapipe/framework/port:opencv_imgproc", "//mediapipe/framework/port:opencv_imgproc",
"//mediapipe/framework/port:vector", "//mediapipe/framework/port:vector",
"//mediapipe/util:color_cc_proto",
], ],
) )