Claude: script
This commit is contained in:
36
run/run_evaluateMarker.sh
Normal file
36
run/run_evaluateMarker.sh
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
# run_evaluateMarker.sh
|
||||
# Vergleicht triangulierte Marker-Positionen (initial und optimiert) mit der
|
||||
# Blender-Grundwahrheit (render_a.json der Simulationsszene).
|
||||
#
|
||||
# Aufruf:
|
||||
# ./run_evaluateMarker.sh ../data/evaluations/Scene8
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
|
||||
if [[ $# -eq 0 ]]; then
|
||||
echo
|
||||
echo "[INFO] Aufruf fehlt!"
|
||||
echo "Beispiel: ./run_evaluateMarker.sh ../data/evaluations/Scene8"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
EVAL_DIR="${1%/}" # trailing slash entfernen
|
||||
SCENE_NAME="$(basename "$EVAL_DIR")"
|
||||
ORIGINAL="$ROOT/data/simulation/$SCENE_NAME/render_a.json"
|
||||
|
||||
echo "===================================="
|
||||
echo "INITIAL:"
|
||||
python3 "$ROOT/pipeline/9_evaluateMarker.py" \
|
||||
"$EVAL_DIR/aruco_positions_initial.json" \
|
||||
"$ORIGINAL"
|
||||
|
||||
echo "===================================="
|
||||
echo "OPTIMIZED:"
|
||||
python3 "$ROOT/pipeline/9_evaluateMarker.py" \
|
||||
"$EVAL_DIR/aruco_positions_optimized.json" \
|
||||
"$ORIGINAL"
|
||||
Reference in New Issue
Block a user