File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change
1
+ # taken from https://github.com/brainhubeu/react-native-opencv-tutorial/blob/master/downloadAndInsertOpenCV.sh
2
+
1
3
# ios
4
+ version=4.1.0
5
+ base_url=https://razaoinfo.dl.sourceforge.net/project/opencvlibrary/${version} /
2
6
3
- wget https://sourceforge.net/projects/opencvlibrary/files/ opencv-ios/3.4.1/opencv-3.4.1 -ios-framework.zip
4
- unzip -a opencv-3.4.1 -ios-framework.zip
7
+ wget ${base_url} / opencv-${version} -ios-framework.zip
8
+ unzip -a opencv-${version} -ios-framework.zip
5
9
cd ios
6
10
cp -r ./../opencv2.framework ./
7
11
cd ..
8
- rm -rf opencv-3.4.1 -ios-framework.zip
12
+ rm -rf opencv-${version} -ios-framework.zip
9
13
rm -rf opencv2.framework/
10
14
11
15
# android
12
16
13
- wget https://sourceforge.net/projects/opencvlibrary/files/ opencv-android/3.4.1/opencv-3.4.1 -android-sdk.zip
14
- unzip opencv-3.4.1 -android-sdk.zip
17
+ wget ${base_url} / opencv-${version} -android-sdk.zip
18
+ unzip opencv-${version} -android-sdk.zip
15
19
cd android/app/src/main
16
20
mkdir jniLibs
17
21
cp -r ./../../../../OpenCV-android-sdk/sdk/native/libs/ ./jniLibs
18
22
cd ../../../../
19
- rm -rf opencv-3.4.1 -android-sdk.zip
23
+ rm -rf opencv-${version} -android-sdk.zip
20
24
rm -rf OpenCV-android-sdk/
21
25
You can’t perform that action at this time.
0 commit comments