| # SPDX-License-Identifier: MIT | |
| # Copyright (C) Intel Corporation | |
| # | |
| # Download the sample video for the light-level-anomaly-detection use case. | |
| # This use case uses classical computer vision (luminance statistics); | |
| # no model export or quantization is required. | |
| # Usage: ./export_and_quantize.sh | |
| set -euo pipefail | |
| SAMPLE_VIDEO_URL="https://www.pexels.com/download/video/1229535/" | |
| # Ask for approval before downloading models and sample files | |
| echo "" | |
| echo "This script will download:" | |
| echo " - Model weights and/or sample files" | |
| echo "" | |
| read -p "Continue with downloads? (yes/no): " APPROVAL | |
| if [[ "${APPROVAL}" != "yes" ]]; then | |
| echo "Download cancelled by user." | |
| exit 0 | |
| fi | |
| echo "" | |
| echo "--- Downloading sample test video ---" | |
| if [[ ! -f test_video.mp4 ]]; then | |
| wget -q -O test_video.mp4 "${SAMPLE_VIDEO_URL}" | |
| echo "Downloaded: test_video.mp4" | |
| else | |
| echo "Already present: test_video.mp4" | |
| fi | |
| echo "--- Done ---" | |
| echo "Sample : $(pwd)/test_video.mp4" | |
| echo "Note : This use case requires no model; run the README samples directly." | |