Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
5564e1e6
Unverified
Commit
5564e1e6
authored
Sep 07, 2021
by
MissPenguin
Committed by
GitHub
Sep 07, 2021
Browse files
Merge pull request #3913 from MissPenguin/dygraph
refine opencv build
parents
1b144011
c245db5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
30 deletions
+34
-30
tests/prepare.sh
tests/prepare.sh
+34
-30
No files found.
tests/prepare.sh
View file @
5564e1e6
...
@@ -90,13 +90,16 @@ if [ ${MODE} = "cpp_infer" ];then
...
@@ -90,13 +90,16 @@ if [ ${MODE} = "cpp_infer" ];then
cd
deploy/cpp_infer
cd
deploy/cpp_infer
use_opencv
=
$(
func_parser_value
"
${
lines
[52]
}
"
)
use_opencv
=
$(
func_parser_value
"
${
lines
[52]
}
"
)
if
[
${
use_opencv
}
=
"True"
]
;
then
if
[
${
use_opencv
}
=
"True"
]
;
then
if
[
-d
"opencv-3.4.7/opencv3/"
]
&&
[
$(
md5sum
opencv-3.4.7.tar.gz |
awk
-F
' '
'{print $1}'
)
=
"faa2b5950f8bee3f03118e600c74746a"
]
;
then
echo
"################### build opencv skipped ###################"
else
echo
"################### build opencv ###################"
echo
"################### build opencv ###################"
rm
-rf
3.4.7.tar.gz opencv-3.4.7/
rm
-rf
opencv-
3.4.7.tar.gz opencv-3.4.7/
wget https://
github.com/opencv/opencv/archive/
3.4.7.tar.gz
wget https://
paddleocr.bj.bcebos.com/dygraph_v2.0/test/opencv-
3.4.7.tar.gz
tar
-xf
3.4.7.tar.gz
tar
-xf
opencv-
3.4.7.tar.gz
cd
opencv-3.4.7/
cd
opencv-3.4.7/
install_path
=
$(
pwd
)
/
opencv-3.4.7/
opencv3
install_path
=
$(
pwd
)
/opencv3
rm
-rf
build
rm
-rf
build
mkdir
build
mkdir
build
...
@@ -125,6 +128,7 @@ if [ ${MODE} = "cpp_infer" ];then
...
@@ -125,6 +128,7 @@ if [ ${MODE} = "cpp_infer" ];then
cd
../
cd
../
echo
"################### build opencv finished ###################"
echo
"################### build opencv finished ###################"
fi
fi
fi
echo
"################### build PaddleOCR demo ####################"
echo
"################### build PaddleOCR demo ####################"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment