HSV Color Picker – CV Color Tool
Interactive HSV color picker with real-time mask visualization, auto-tune via KMeans clustering, 8× zoom preview, and morphological operations for OpenCV workflows.

System Architecture
Overview
An interactive GUI application for discovering, refining, and manipulating colors using the HSV color model with real-time mask visualization.
Problem Statement
Tuning HSV color ranges for OpenCV projects is tedious — manually guessing threshold values and rerunning scripts wastes time.
Solution & Approach
PyQt5 GUI with OpenCV integration. Real-time mask preview shows exactly what the HSV range captures. KMeans clustering auto-tunes thresholds from sample points.
Key Features
- Real-time mask visualization with HSV range adjustment
- Auto-tune HSV thresholds via KMeans clustering
- 8× magnified zoom preview following cursor
- Sample point marking with crosshairs for precise color picking
- Morphological operations (Erode & Dilate) for mask refinement
- Copy HSV ranges to clipboard for OpenCV integration
Results & Impact
Streamlines the HSV tuning workflow from minutes of trial-and-error to seconds of interactive adjustment.
Lessons Learned
Interactive visual feedback dramatically reduces iteration time for computer vision parameter tuning.