未验证 提交 5b9a1db6 编写于 作者: C channings 提交者: GitHub

Fix bug of opencv for humanseg video deployment (#234)

* fix bug of opencv

* update linux_build.sh
上级 9a5a9f45
OPENCV_URL=https://paddleseg.bj.bcebos.com/deploy/deps/opencv346.tar.bz2
if [ ! -d "./deps/opencv346" ]; then
OPENCV_URL=https://bj.bcebos.com/paddleseg/deps/opencv346gcc4.8contrib.tar.bz2
if [ ! -d "./deps/opencv346_with_contrib" ]; then
mkdir -p deps
cd deps
wget -c ${OPENCV_URL}
tar xvfj opencv346.tar.bz2
rm -rf opencv346.tar.bz2
tar xvfj opencv346gcc4.8contrib.tar.bz2
rm -rf opencv346gcc4.8contrib.tar.bz2
cd ..
fi
WITH_GPU=OFF
PADDLE_DIR=/root/projects/deps/fluid_inference/
PADDLE_DIR=/root/project/fluid_inference/
CUDA_LIB=/usr/local/cuda-10.0/lib64/
CUDNN_LIB=/usr/local/cuda-10.0/lib64/
OPENCV_DIR=$(pwd)/deps/opencv346/
OPENCV_DIR=$(pwd)/deps/opencv346_with_contrib/
echo ${OPENCV_DIR}
rm -rf build
......@@ -28,3 +28,4 @@ cmake .. \
-DWITH_STATIC_LIB=OFF
make clean
make -j12
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册