Precision Color Auditor is a professional, standalone calibration instrument designed for Digital Imaging Professionals, VFX Supervisors, and Photographers. By leveraging local computer vision models and template-driven geometric rectification, the tool automates the "ground truth" verification of digital images, identifying color drift and exposure errors while providing deterministic neutralization via non-destructive sidecar metadata.
🚦 Project Status: Alpha (Phase 1–3 Validated) The project has established a robust, local AI inference pipeline using Florence-2 for localization and a Dual-Branch OCIO engine that synchronizes AI vision with scene-linear math.
Current Milestone: Implementing Professional Exports & Reporting to generate ASC-CDL, 3D LUTs, and automated QA PDF/CSV reports.
- Unified Ingest Engine: Core logic for loading and linearizing high-bit-depth formats (EXR, RAW, DPX).
- AI Chart Localization: Integrated Florence-2 for identifying Macbeth and Grayscale chart regions.
- Coordinate Mapping: Normalization of AI-detected regions to full-resolution image coordinates.
- Perspective Rectification: OpenCV routines warp detected charts into a flat, standardized coordinate space based on template aspect ratios.
- Template-Driven Topology: Dynamic support for various charts (Macbeth 24, Kodak Gray Card) via a centralized
ChartTemplatelibrary. - Deterministic Grid Sampling: High-precision mean-pixel extraction using configurable inset margins to avoid bezel contamination.
- Orientation Intelligence: Logic to detect flipped or rotated charts via luminance gradient analysis of the grayscale ramp.
- Dual-Branch Architecture: Synchronized rectification across a high-contrast "Display Branch" (AI/UI) and a scene-linear "Audit Branch" (Math).
- High-Performance OCIO v2: Implementation of
PackedImageDescfor zero-copy, in-place transformation of NumPy buffers. - Template-Driven Targets: Deterministic ground-truth comparison using a centralized
ChartTemplatelibrary for target RGB values. - CDL Derivation: Mathematical calculation of Slope and Offset (ASC-CDL) to align observed data with ground-truth targets.
- Delta E Analysis: Integration of
colour-sciencefor dE2000 error quantification.
- Neutralization and Match Grade Exporters: Generation of industry-standard ASC-CDL (.cdl) and 3D LUT (.cube) files.
- Automated QA Reporting: Professional PDF reports featuring visual split-patch verification and CSV technical logs.
- Mathematical Validation: Verified matrix-based color transforms and CDL SOP operations.
- Interactive Refinement: PySide6 interface for manual corner adjustment and "QC Crop" verification.
- Real-time Feedback: Live Delta E visualizations and "Before/After" neutralization previews.
- Batch Processing: Headless and GUI-driven workflows for multi-shot plate audits.
The Precision Color Auditor eliminates "color drift" at the source. By moving beyond visual "eye-balling" and into deterministic signal analysis, it empowers color-critical professionals to ensure every plate matches a mathematical ideal before production begins.
The Precision Color Auditor follows a "Precision-First" and "Non-Destructive" workflow:
- Visual Intelligence: Uses local transformer-based models to find charts in complex scenes without cloud dependencies.
- Geometric Truth: Warps charts into a flat, rectified space to ensure pixel-perfect sampling regardless of camera angle.
- Dynamic Templates: Supports an extensible library of physical charts via a standardized dataclass architecture.
- Metadata-Only Fixes: Identifies errors without "baking" them in, providing sidecar CDLs to maintain original pixel integrity.
- Template-Driven Architecture: Easily add support for new charts by defining their grid or anchored topology.
- Geometric Rectification: Warps skewed or angled charts into a flat plane for consistent sampling.
- QC Output Pipeline: Generates rectified "Verification Crops" with sample-point overlays for visual audit.
- OCIO-Native Workflow: Powered by OpenColorIO v2 for color-critical accuracy.
- Delta E Signal Analysis: Quantifies color errors using industry-standard dE2000 formulas.
- Multi-Format Precision: Native support for Cinema (EXR/DPX) and Photography (RAW) pipelines.
- Language: Python 3.11+
- Intelligence: Florence-2 (Local Vision Model)
- Image Processing: OpenCV (Perspective Warping & Grid Mapping)
- Color Science: OpenColorIO v2.x,
colour-science - Image Ingest: OpenImageIO, Rawpy, OpenCV
- UI Framework: PySide6 (Qt)
src/core/: Settings, template library, color models, and auditor logic.src/ai/: Florence-2 integration, locator (Macro pass), and topology (Micro pass).src/exporters/: CDL, LUT, and Report generation modules.src/ui/: PySide6 components for the calibration interface.