#!/bin/bash
# Uso: ./process_frames.sh <nome_modelo>
if [ "$#" -lt 1 ]; then
    echo "Uso: $0 <nome_modelo>"
    exit 1
fi

model_name="$1"

# As pastas de frames e frames processados (certifique-se de que a pasta 'frames' contenha as imagens extraídas do vídeo)
mkdir -p frames
mkdir -p processed_frames

for frame in frames/*.png; do
    filename=$(basename "$frame")
    output="processed_frames/$filename"
    echo "Processando $frame -> $output"
    python3.10 process.py "$model_name" "$frame" "$output"
done

