#!/usr/bin/env bash
set -e

PROJECT="$HOME/esarobotech/r1"
CONDA="$HOME/miniconda3"

source "$CONDA/etc/profile.d/conda.sh"
conda activate ai_robot

cd "$PROJECT"

echo "[R1] Starting YOLO detector"
echo "[R1] Input:  /dev/shm/robot_frame.jpg"
echo "[R1] Output: /dev/shm/r1_detections.json"

exec python scripts/yolo_detector.py
