Enable edgetpu_demo in Excelsior
Currently only --device mode is tested. Streaming mode is diabled.
Also disable looping since there's issue decoding the end of the video.
Change the display mode to window to reduce the latency. Playback
resolution is set at 720p.
Test: edgetpu_demo --device @ Excelsior
Change-Id: I743019fec5064de1f2b6d9cce96ceacd52f24116
diff --git a/edgetpu_demo b/edgetpu_demo
index 0fdabf4..2c784fa 100755
--- a/edgetpu_demo
+++ b/edgetpu_demo
@@ -18,23 +18,23 @@
--filter car,truck \
--max_area 0.1 \
--color white \
- --loop \
- --displaymode fullscreen
-elif [[ "$1" == "--stream" ]]; then
- echo "Press 'q' to quit."
- echo "Press 'n' to switch between models."
+ --displaymode window
+# Disable stream demo for now.
+# elif [[ "$1" == "--stream" ]]; then
+# echo "Press 'q' to quit."
+# echo "Press 'n' to switch between models."
- SERVER_INDEX_HTML="${TEST_DATA}/index.html" edgetpu_detect_server \
- --source "${VIDEO_STREAM_FILE}" \
- --model "${TPU_MODEL_FILE},${CPU_MODEL_FILE}" \
- --labels "${LABELS_FILE}" \
- --filter car,truck \
- --max_area 0.1 \
- --color white \
- --loop
+# SERVER_INDEX_HTML="${TEST_DATA}/index.html" edgetpu_detect_server \
+# --source "${VIDEO_STREAM_FILE}" \
+# --model "${TPU_MODEL_FILE},${CPU_MODEL_FILE}" \
+# --labels "${LABELS_FILE}" \
+# --filter car,truck \
+# --max_area 0.1 \
+# --color white \
+# --loop
else
echo "Run on-device inference:"
echo " $0 --device"
- echo "Run streaming server:"
- echo " $0 --stream"
+ # echo "Run streaming server:"
+ # echo " $0 --stream"
fi