Add cleaned RealSense/OpenCV CV under cv/ with secret-free example config, MQTT disabled by default, and canonical README coverage for web + CV relationship without claiming production integration. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
424 B
Bash
Executable File
18 lines
424 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
cd "$DIR"
|
|
|
|
if [[ ! -f config.yaml && -f config.example.yaml ]]; then
|
|
cp config.example.yaml config.yaml
|
|
echo "[cv] created config.yaml from config.example.yaml (MQTT disabled)"
|
|
fi
|
|
|
|
if [[ ! -d .venv ]]; then
|
|
python3 -m venv .venv
|
|
.venv/bin/pip install -U pip
|
|
.venv/bin/pip install -r requirements.txt
|
|
fi
|
|
|
|
exec .venv/bin/python main.py "$@"
|