-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
120 lines (114 loc) · 2.83 KB
/
config.py
File metadata and controls
120 lines (114 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
"""
Configuration file for Image Processing Vision Project
"""
# Application Settings
APP_TITLE = "🖼️ Image Enhancer Pro"
APP_VERSION = "2.0.0"
MAX_FILE_SIZE_MB = 200
# Supported file types
SUPPORTED_IMAGE_FORMATS = ["jpg", "jpeg", "png", "bmp", "tiff", "webp"]
# Theme Colors
PRIMARY_COLOR = "#4F8BF9"
SECONDARY_COLOR = "#1E88E5"
ACCENT_COLOR = "#0D47A1"
SUCCESS_COLOR = "#4CAF50"
WARNING_COLOR = "#FF9800"
ERROR_COLOR = "#F44336"
# UI Settings
DEFAULT_COLUMN_RATIO = [1, 1]
PREVIEW_THUMBNAIL_WIDTH = 250
DEFAULT_IMAGE_QUALITY = 95
# Processing Settings
DEFAULT_KERNEL_SIZE = 3
DEFAULT_BLUR_AMOUNT = 5
DEFAULT_THRESHOLD = 127
# Categories and Operations
OPERATION_CATEGORIES = {
"Basic Operations": {
"icon": "💫",
"operations": [
"Grayscale",
"Brightness & Contrast",
"Gaussian Blur",
"Median Blur",
"Bilateral Filter",
"Rotation",
"Flip",
"Resize",
"Crop",
"Invert Image",
"Sharpening",
"Histogram Equalization"
]
},
"Color Transformations": {
"icon": "🎨",
"operations": [
"RGB to HSV",
"HSV to RGB",
"RGB to LAB",
"LAB to RGB",
"RGB to YCrCb",
"Color Mask (HSV)",
"Color Balance",
"Channel Mixing",
"Thresholding",
"Adaptive Thresholding",
"Color Quantization"
]
},
"Edge Detection": {
"icon": "🔍",
"operations": [
"Sobel Edge Detection",
"Prewitt Edge Detection",
"Laplacian Edge Detection",
"Canny Edge Detection",
"Overlay Edges on Original",
"Roberts Cross"
]
},
"Morphological Operations": {
"icon": "📐",
"operations": [
"Dilation",
"Erosion",
"Opening",
"Closing",
"Gradient",
"Top Hat",
"Black Hat",
"Skeletonization",
"Connected Components",
"Contour Detection"
]
},
"Special Effects": {
"icon": "✨",
"operations": [
"Sepia Tone",
"Pencil Sketch",
"Cartoon Effect",
"Emboss Effect",
"Vintage Effect",
"Vignette Effect",
"Watercolor Effect",
"Oil Painting Effect",
"Pixelate",
"Posterize",
"HDR Effect",
"Cross Process"
]
},
"Advanced Filters": {
"icon": "🎯",
"operations": [
"Unsharp Mask",
"Motion Blur",
"Radial Blur",
"Lens Blur",
"Noise Reduction",
"Detail Enhancement"
]
}
}