A Python application for creating ultra-high-resolution images from video captures.
This tool processes multiple video captures of a scene and stitches them together to create a single ultra-high-resolution image. The application implements several computer vision techniques including:
- Video frame extraction
- Feature detection and matching
- Image alignment and transformation
- Seamless image blending
- Interactive image viewer with zoom capabilities
- Python 3.8 or higher
- Git (for cloning the repository)
- pip (Python package installer)
git clone https://github.com/yourusername/video-stitcher.git
cd video-stitcherWe use Python's built-in venv module to create an isolated environment:
python -m venv venv
venv\Scripts\activatepython -m venv venv
source venv/bin/activateYou'll see (venv) appear at the beginning of your command prompt, indicating the environment is active.
With the virtual environment activated, install the required packages:
pip install -r requirements.txt
pip install -e .The -e flag installs the package in development mode, allowing you to modify the code without reinstalling.
If you're using VS Code (recommended):
- Open the project folder in VS Code
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) - Type "Python: Select Interpreter" and select that option
- Choose the interpreter from your virtual environment (it should show something like
'venv':venv)
VS Code will now use the correct Python interpreter with all installed dependencies.
video-stitcher/
├── requirements.txt # Project dependencies
├── setup.py # Package configuration
├── README.md # This file
├── src/ # Source code
│ └── video_stitcher/ # Main package
│ └── __init__.py # Package initialization
└── tests/ # Unit tests
└── __init__.py # Test package initialization
- Ensure your virtual environment is activated before working on the project
- Run tests with
pytestfrom the project root - Install any new dependencies with
pip install <package>and then add them torequirements.txt
When you're done working on the project, you can deactivate the virtual environment:
deactivate