From b4e1f0236aef7f08da063dc26dd464d7a402a623 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Tue, 28 Mar 2023 08:18:45 -0700 Subject: [PATCH] Add EndLoopImageCalculator PiperOrigin-RevId: 520033132 --- mediapipe/calculators/core/BUILD | 1 + mediapipe/calculators/core/end_loop_calculator.cc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/mediapipe/calculators/core/BUILD b/mediapipe/calculators/core/BUILD index 865118d0..d5ba6c74 100644 --- a/mediapipe/calculators/core/BUILD +++ b/mediapipe/calculators/core/BUILD @@ -218,6 +218,7 @@ cc_library( "//mediapipe/framework:collection_item_id", "//mediapipe/framework/formats:classification_cc_proto", "//mediapipe/framework/formats:detection_cc_proto", + "//mediapipe/framework/formats:image", "//mediapipe/framework/formats:landmark_cc_proto", "//mediapipe/framework/formats:matrix", "//mediapipe/framework/formats:rect_cc_proto", diff --git a/mediapipe/calculators/core/end_loop_calculator.cc b/mediapipe/calculators/core/end_loop_calculator.cc index 4109fba0..b3b889ec 100644 --- a/mediapipe/calculators/core/end_loop_calculator.cc +++ b/mediapipe/calculators/core/end_loop_calculator.cc @@ -18,6 +18,7 @@ #include "mediapipe/framework/formats/classification.pb.h" #include "mediapipe/framework/formats/detection.pb.h" +#include "mediapipe/framework/formats/image.h" #include "mediapipe/framework/formats/landmark.pb.h" #include "mediapipe/framework/formats/matrix.h" #include "mediapipe/framework/formats/rect.pb.h" @@ -67,4 +68,8 @@ REGISTER_CALCULATOR(EndLoopMatrixCalculator); typedef EndLoopCalculator> EndLoopTensorCalculator; REGISTER_CALCULATOR(EndLoopTensorCalculator); +typedef EndLoopCalculator> + EndLoopImageCalculator; +REGISTER_CALCULATOR(EndLoopImageCalculator); + } // namespace mediapipe