An interactive 3D/2D motion capture visualization tool with real-time camera perspective controls.
- Dual View Display (3D and 2D projection views)
- Interactive Camera Controls (position and angle)
- Frame-by-frame Navigation
- MongoDB Integration
- Customizable Skeleton Structure
- Python 3.7+
- MongoDB
- Required packages: numpy, matplotlib, pytorch, pymongo, python-dotenv, scipy
- Clone the repository:
git clone https://github.com/yourusername/MocapViewer3D.git
cd MocapViewer3D
- Install requirements:
pip install -r requirements.txt
- Configure MongoDB credentials in .env:
URI='your_mongodb_uri'
MONGO_DB_NAME='your_database_name'
MONGO_COLLECTION_NAME='your_collection_name'
- Run:
python Project_3d_2d.py
- Camera Position: X, Y, Z sliders
- View Angle: Elevation (-90° to 90°) and Azimuth (0° to 360°)
- Frame Selection: Text input box
- Green Camera: User perspective
- Yellow Camera: Motion capture camera
- Blue Points: Skeleton joints
- Red Lines: Skeleton connections
- Right Panel: 2D projection view
MIT License