A Python-based GUI tool for analyzing and visualizing color spaces in video content. This application allows users to load video files and examine their color distribution in 3D space, with specific support for comparing against the Rec.709 color space standard.
- Load and analyze video files (supports .mp4, .avi, .mov)
- 3D visualization of color distribution
- Comparison with Rec.709 color space boundaries
- Detection and highlighting of out-of-gamut colors
- Real-time toggling between different visualization options
- Color grading verification for video content
- Analyzing color space compliance with broadcast standards
- Identifying out-of-gamut colors in video footage
- Quality control for video production
- Educational tool for understanding color spaces
- Built with PyQt5 for the GUI
- Uses OpenCV for video processing
- Implements proper color space transformations via the
colourlibrary - Supports chromatic adaptation using Bradford transform
- Includes white point handling for accurate color representation
- PyQt5
- OpenCV (cv2)
- numpy
- colour
- matplotlib
- Clone the repository:
git clone https://github.com/yourusername/color-space-analyzer.git
cd color-space-analyzer- Create and activate a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install the required dependencies:
pip install PyQt5 opencv-python numpy colour-science matplotlib- Launch the application:
python color_space_analyzer.py- Click "Load File" to select a video
- Use the checkboxes to toggle between viewing Rec.709 boundaries and input color space
- Click "Analyze" to process the video and view results
- Python 3.7 or higher
- At least 4GB RAM recommended for processing large video files
- Operating System: Windows, macOS, or Linux
