Skip to content

Latest commit

 

History

73 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Precision Color Auditor

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

🚦 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.

Strategic Roadmap

Phase 1: Ingestion & AI Localization (Complete)

  • 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.

Phase 2: Rectification & Sampling (Complete)

  • 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 ChartTemplate library.
  • 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.

Phase 3: The Auditor & OCIO (Complete)

  • 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 PackedImageDesc for zero-copy, in-place transformation of NumPy buffers.
  • Template-Driven Targets: Deterministic ground-truth comparison using a centralized ChartTemplate library 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-science for dE2000 error quantification.

Phase 4: Professional Exports & Reporting (Complete)

  • 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.

Phase 5: Human-in-the-Loop UI (Current)

  • 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.

🚀 Overview

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.

🚀 Philosophy

The Precision Color Auditor follows a "Precision-First" and "Non-Destructive" workflow:

  1. Visual Intelligence: Uses local transformer-based models to find charts in complex scenes without cloud dependencies.
  2. Geometric Truth: Warps charts into a flat, rectified space to ensure pixel-perfect sampling regardless of camera angle.
  3. Dynamic Templates: Supports an extensible library of physical charts via a standardized dataclass architecture.
  4. Metadata-Only Fixes: Identifies errors without "baking" them in, providing sidecar CDLs to maintain original pixel integrity.

🛠️ Key Features

  • 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.

🛠️ Technical Stack

  • 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)

📂 Project Structure

  • 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.

About

A professional, standalone calibration instrument for DI Colorists, VFX, and Photographers. Using AI vision models and OCIO, it detects Macbeth charts to audit signal drift and exposure errors. Generates deterministic "Ground Truth" reports and automated neutralization via ASC-CDL and 3D LUT exports.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages