opencv/opencv-clean.sh

32 lines
1.4 KiB
Bash
Raw Normal View History

2019-12-31 10:24:14 +00:00
#!/bin/bash
2021-01-03 23:34:09 +00:00
VERSION=4.5.1
wget -c https://github.com/opencv/opencv/archive/${VERSION}/opencv-${VERSION}.tar.gz
2021-01-03 23:34:09 +00:00
wget -c https://github.com/opencv/opencv_contrib/archive/${VERSION}/opencv_contrib-${VERSION}.tar.gz
wget -c https://github.com/opencv/opencv_extra/archive/${VERSION}/opencv_extra-${VERSION}.tar.gz
rm -rf opencv-${VERSION}/
tar xf opencv-${VERSION}.tar.gz
2021-01-03 23:34:09 +00:00
find opencv-${VERSION}/ -iname "*lena*" -exec rm {} ';' -print
find opencv-${VERSION}/ -iname "*lenna*" -exec rm {} ';' -print
rm -r opencv-${VERSION}/modules/xfeatures2d/
tar zcf opencv-clean-${VERSION}.tar.gz opencv-${VERSION}/
2020-10-20 22:11:52 +00:00
rm -r opencv-${VERSION}/
2020-06-01 02:09:03 +00:00
rm -rf opencv_contrib-${VERSION}/
tar xf opencv_contrib-${VERSION}.tar.gz
2021-01-03 23:34:09 +00:00
find opencv_contrib-${VERSION}/ -iname "*lena*" -exec rm {} ';' -print
find opencv_contrib-${VERSION}/ -iname "*lenna*" -exec rm {} ';' -print
rm -r opencv_contrib-${VERSION}/modules/xfeatures2d/
tar zcf opencv_contrib-clean-${VERSION}.tar.gz opencv_contrib-${VERSION}/
2020-10-20 22:11:52 +00:00
rm -r opencv_contrib-${VERSION}/
2020-06-01 02:09:03 +00:00
rm -rf opencv_extra-${VERSION}/
tar xf opencv_extra-${VERSION}.tar.gz
2020-10-20 22:11:52 +00:00
find opencv_extra-${VERSION} -iname "*lena*" -exec rm {} ';' -print
find opencv_extra-${VERSION} -iname "*lenna*" -exec rm {} ';' -print
find opencv_extra-${VERSION} \( -iname "len*.*" -o -iname "*lena*.png" -o -iname "*lena*.jpg" \) -exec rm {} ';' -print
2020-06-01 02:09:03 +00:00
tar zcf opencv_extra-clean-${VERSION}.tar.gz opencv_extra-${VERSION}/
2020-10-20 22:11:52 +00:00
rm -r opencv_extra-${VERSION}/