From 4f8520af1073ef7b78f446111eb332397d7fb03a Mon Sep 17 00:00:00 2001 From: vrabaud Date: Tue, 16 May 2023 16:46:39 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 532611846 --- mediapipe/util/tracking/region_flow_computation.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mediapipe/util/tracking/region_flow_computation.cc b/mediapipe/util/tracking/region_flow_computation.cc index b6704cc61..7f67c3934 100644 --- a/mediapipe/util/tracking/region_flow_computation.cc +++ b/mediapipe/util/tracking/region_flow_computation.cc @@ -2096,12 +2096,6 @@ bool RegionFlowComputation::GainCorrectFrame(const cv::Mat& reference_frame, void RegionFlowComputation::WideBaselineMatchFeatures( FrameTrackingData* from_data_ptr, FrameTrackingData* to_data_ptr, TrackedFeatureList* results) { -#if (defined(__ANDROID__) || defined(__APPLE__) || defined(__EMSCRIPTEN__)) && \ - !defined(CV_WRAPPER_3X) - LOG(FATAL) << "Supported on only with OpenCV 3.0. " - << "Use bazel build flag : --define CV_WRAPPER=3X"; -#else // (defined(__ANDROID__) || defined(__APPLE__) || - // defined(__EMSCRIPTEN__)) && !defined(CV_WRAPPER_3X) results->clear(); const auto& frame1 = from_data_ptr->frame; @@ -2174,8 +2168,6 @@ void RegionFlowComputation::WideBaselineMatchFeatures( results->push_back(tracked_feature); } } -#endif // (defined(__ANDROID__) || defined(__APPLE__) || - // defined(__EMSCRIPTEN__)) && !defined(CV_WRAPPER_3X) } void RegionFlowComputation::RemoveAbsentFeatures(