Skip to content

s0urceduty/selective_blur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Luxury Blur

selective_color_blur is a Python application that leverages the power of OpenCV and ttkbootstrap to provide a professional-grade dark mode interface for selective image manipulation. Unlike standard filter tools that apply a uniform effect, this program features an intuitive eyedropper-style interaction that allows users to target specific hues directly from the image canvas. By converting the image data into the HSV (Hue, Saturation, Value) color space, the software creates a precise mathematical mask based on the user's selection. This mask serves as a digital stencil, ensuring that the heavy Gaussian blur is applied exclusively to pixels falling within the designated color range—such as blurring out a distracting green background while keeping a subject’s skin tones perfectly sharp—all while managing complex NumPy array transformations to prevent data overflow.

Car Blur

Beyond its core processing capabilities, the program excels in usability through its responsive design and automated UI scaling. The implementation of alpha blending ensures that the transition between blurred and sharp areas appears natural rather than pixelated, using normalized mask values to merge image layers seamlessly. The GUI is built to be resilient, featuring an auto-resize logic that maintains the image's aspect ratio within the Tkinter Canvas regardless of the window size. With integrated file handling via the Python FileDialog and a streamlined "Clear" function, the application provides a complete end-to-end workflow for photographers or developers looking to experiment with computer vision and interactive image editing.


sourceduty.com