1 Star 0 Fork 0

irishcoffeeguo/smart-social-distancing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sample_startup.bash 652 Bytes
一键复制 编辑 原始数据 按行查看 历史
Json 提交于 2020-07-28 19:08 . fixed port number in sample_startup.bash
#!/bin/bash
config="$1"
# check if video file exists, if not download it
line=$(cat $config | grep VideoPath)
videoPath="$(cut -d'=' -f2 <<<"$line")"
if [ ! -f "$videoPath" ]; then
echo "video file at $videoPath not exists, downloading..."
sh '/repo/download_sample_video.sh'
fi
# start process video
echo "running curl 0.0.0.0:8000/process-video-cfg "
while true
do
response=$(curl 0.0.0.0:8000/process-video-cfg)
if [ "$response" != true ] ; then
echo "curl failed, trying again in 5 seconds!"
sleep 5
elif [ "$response" = true ] ; then
echo "ok video is going to be processed"
break
fi
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/irishcoffeeguo/smart-social-distancing.git
git@gitee.com:irishcoffeeguo/smart-social-distancing.git
irishcoffeeguo
smart-social-distancing
smart-social-distancing
master

搜索帮助