Chen Xin af16b9a451
Update get_started.md(master) (#1950)
* update generate_build_config to support cxx11abi tag

* test prebuild ci

* update docs/zh_cn/get_started.md

* update docs/en/get_started.md

* fix prebuild ci

* update prebuilt_package_windows.md

* update prebuild ci deps

* try to fix prebuild ci

* fix prebuild ci

* fix prebuild ci

* remove trigger [no ci]

* fix name [no ci]

* fix typos

* fix script
2023-04-04 11:00:53 +08:00

36 lines
483 B
Bash
Executable File

set -e
WORKSPACE="."
MODEL_DIR="/__w/mmdeploy/testmodel/mmcls"
SDK_DIR="sdk"
if [[ -n "$1" ]]; then
WORKSPACE=$1
fi
pushd $WORKSPACE
pushd $SDK_DIR
test_pkg=$(find "." -type d -iname "*-x86_64")
work_dir=/tmp/_test
cp -r $test_pkg $work_dir
pushd $work_dir
# opencv
if [ ! -d "$OpenCV_DIR" ]; then
./install_opencv.sh
fi
# env
source ./set_env.sh $(pwd)
# build
./build_sdk.sh $OpenCV_DIR
# run
./bin/classifier $MODEL_DIR $MODEL_DIR/demo.jpg
popd
rm -rf $work_dir