Demo update.
* Add separate high-res video file for desktop rendering.
* Allow truck to be detected in addition to the car.
Change-Id: Ida83c6b6697667320cfac9a150fe04e300738cc1
diff --git a/edgetpu_demo b/edgetpu_demo
index fe4985b..0fdabf4 100755
--- a/edgetpu_demo
+++ b/edgetpu_demo
@@ -1,7 +1,8 @@
#!/bin/bash
readonly TEST_DATA="/usr/share/edgetpudemo"
-readonly VIDEO_FILE="${TEST_DATA}/video.mp4"
+readonly VIDEO_DEVICE_FILE="${TEST_DATA}/video_device.mp4"
+readonly VIDEO_STREAM_FILE="${TEST_DATA}/video_stream.mp4"
readonly TPU_MODEL_FILE="${TEST_DATA}/mobilenet_ssd_v1_coco_quant_postprocess_edgetpu.tflite@Running MobileNet SSD v1 on Edge TPU"
readonly CPU_MODEL_FILE="${TEST_DATA}/mobilenet_ssd_v1_coco_quant_postprocess.tflite@Running MobileNet SSD v1 on CPU"
readonly LABELS_FILE="${TEST_DATA}/coco_labels.txt"
@@ -11,10 +12,10 @@
echo "Press 'n' to switch between models."
edgetpu_detect \
- --source "${VIDEO_FILE}" \
+ --source "${VIDEO_DEVICE_FILE}" \
--model "${TPU_MODEL_FILE},${CPU_MODEL_FILE}" \
--labels "${LABELS_FILE}" \
- --filter car \
+ --filter car,truck \
--max_area 0.1 \
--color white \
--loop \
@@ -24,10 +25,10 @@
echo "Press 'n' to switch between models."
SERVER_INDEX_HTML="${TEST_DATA}/index.html" edgetpu_detect_server \
- --source "${VIDEO_FILE}" \
+ --source "${VIDEO_STREAM_FILE}" \
--model "${TPU_MODEL_FILE},${CPU_MODEL_FILE}" \
--labels "${LABELS_FILE}" \
- --filter car \
+ --filter car,truck \
--max_area 0.1 \
--color white \
--loop
diff --git a/edgetpudemo/video_device.mp4 b/edgetpudemo/video_device.mp4
new file mode 100644
index 0000000..e73b0c7
--- /dev/null
+++ b/edgetpudemo/video_device.mp4
Binary files differ
diff --git a/edgetpudemo/video.mp4 b/edgetpudemo/video_stream.mp4
similarity index 100%
rename from edgetpudemo/video.mp4
rename to edgetpudemo/video_stream.mp4
Binary files differ