You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
632 B
17 lines
632 B
7 years ago
|
export VERSION=3.3.1
|
||
|
|
||
|
wget -c https://github.com/opencv/opencv/archive/${VERSION}/opencv-${VERSION}.tar.gz
|
||
|
tar xf opencv-${VERSION}.tar.gz
|
||
|
cd opencv-${VERSION}/
|
||
|
find ./ -iname "len*.*" -exec rm {} \;
|
||
|
rm -r modules/xfeatures2d/
|
||
|
cd ..; tar zcf opencv-clean-${VERSION}.tar.gz opencv-${VERSION}/
|
||
|
rm -rf opencv-${VERSION}/
|
||
|
|
||
|
wget -c https://github.com/opencv/opencv_contrib/archive/${VERSION}/opencv_contrib-${VERSION}.tar.gz
|
||
|
tar xf opencv_contrib-${VERSION}.tar.gz
|
||
|
cd opencv_contrib-${VERSION}/
|
||
|
rm -r modules/xfeatures2d/
|
||
|
cd ..; tar zcf opencv_contrib-clean-${VERSION}.tar.gz opencv_contrib-${VERSION}/
|
||
|
rm -rf opencv_contrib-${VERSION}/
|