Internal change
PiperOrigin-RevId: 530385895
This commit is contained in:
parent
ae8bedd352
commit
b40f0d3b72
|
@ -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);
|
||||
|
|
|
@ -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",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user