feat(app): add full motion comparison app with audio support and pose similarity analysis

This commit is contained in:
gameloader
2025-06-19 17:49:34 +08:00
parent c2c880a569
commit b33ad5e876
7 changed files with 1591 additions and 590 deletions

26
config.py Normal file
View File

@@ -0,0 +1,26 @@
import streamlit as st
# Check for Pygame availability for audio playback
try:
import pygame
PYGAME_AVAILABLE = True
except ImportError:
PYGAME_AVAILABLE = False
st.warning("Pygame not installed, video will play without sound. To install: pip install pygame")
# Check for MoviePy availability for audio extraction
try:
from moviepy.editor import VideoFileClip
MOVIEPY_AVAILABLE = True
except ImportError:
MOVIEPY_AVAILABLE = False
if PYGAME_AVAILABLE:
st.warning("MoviePy not installed, audio extraction from video is disabled. To install: pip install moviepy")
# Check for RealSense SDK availability
try:
import pyrealsense2 as rs
REALSENSE_AVAILABLE = True
except ImportError:
REALSENSE_AVAILABLE = False
st.warning("Intel RealSense SDK (pyrealsense2) not found. The app will use a standard USB camera.")