parent
d3843c8499
commit
28200119b1
@ -1,18 +0,0 @@
|
||||
_stepPath=$(cd $(dirname $0); pwd)
|
||||
echo $(dirname $0)
|
||||
|
||||
## 统计userfiles 是否成功读取到文件
|
||||
shuliang=$(find /data/workspace/userfiles -iname "*.jpg" | wc -l)
|
||||
|
||||
if [ $shuliang -eq 0 ]; then
|
||||
echo "没有检测到文件"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
rm $_stepPath/images/source/*.jpg > /dev/null 2&>1
|
||||
rm $_stepPath/images/result/*.jpg > /dev/null 2&>1
|
||||
|
||||
# cp /data/workspace/userfiles/*.jpg $_stepPath/images/source/ > /dev/null 2&>1 #检测失败?
|
||||
cp /data/workspace/userfiles/*.jpg $_stepPath/images/source/ > /dev/null
|
||||
|
||||
python3 $_stepPath/detect.py
|
Loading…
Reference in new issue