Djordje Senicic
2018-12-05 21:04:30 UTC
Signed-off-by: Djordje Senicic <***@ti.com>
---
.../runSimplePeopleTracking.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh b/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
index b01110c..53686ce 100644
--- a/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
+++ b/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+FILE="/usr/bin/SimplePeopleTracking"
+if [ -f $FILE ]; then
machine_type="`cat /etc/hostname`"
echo "Simple People Tracking TOF demo started!"
SimplePeopleTracking -w 160 -h 120 -f 30 & pid=$!
@@ -8,3 +10,7 @@ for adjpri in $(pgrep weston)
do
renice -n 19 -p $adjpri
done
+
+else
+echo "SimplePeopleTracking not included in the filesystem"
+fi
---
.../runSimplePeopleTracking.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh b/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
index b01110c..53686ce 100644
--- a/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
+++ b/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+FILE="/usr/bin/SimplePeopleTracking"
+if [ -f $FILE ]; then
machine_type="`cat /etc/hostname`"
echo "Simple People Tracking TOF demo started!"
SimplePeopleTracking -w 160 -h 120 -f 30 & pid=$!
@@ -8,3 +10,7 @@ for adjpri in $(pgrep weston)
do
renice -n 19 -p $adjpri
done
+
+else
+echo "SimplePeopleTracking not included in the filesystem"
+fi
--
2.17.1
2.17.1