From 4ffa634556ac5cc4d2a5b3df6930977d61c36896 Mon Sep 17 00:00:00 2001 From: Light-- <714022695@qq.com> Date: Wed, 11 Dec 2019 12:43:54 +0800 Subject: [PATCH] For compatibility with opencv3.x issue#276 mentioned in https://github.com/yjxiong/temporal-segment-networks/issues/276 This is a contradiction: The build_all.sh install opencv 2.4.13.6, opencv 2.4.13.6 don't have opencv_contrib, so it surely will not have xfeatures2d. But dense_flow/src/dense_warp_flow_gpu.cpp needs xfeatures2d for compiling, so actually i have to modify the build_all.sh to install opencv3.x, not 2.x and changed the api format from 2.x to 3.x in dense_flow.cpp, accordingly --- build_all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_all.sh b/build_all.sh index 5d68032..2a6a248 100644 --- a/build_all.sh +++ b/build_all.sh @@ -15,7 +15,7 @@ sudo apt-get -qq install libzip-dev # install common dependencies: OpenCV # adpated from OpenCV.sh -version="2.4.13" +version="3.4.2" echo "Building OpenCV" $version [[ -d 3rd-party ]] || mkdir 3rd-party/