Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -231,7 +231,7 @@ def atmospheric_filters(image, filter_type):
|
|
231 |
kernel = np.dstack([kernel]*3)
|
232 |
return cv2.multiply(sepia, kernel).astype(np.uint8)
|
233 |
|
234 |
-
elif filter_type == "Brightness
|
235 |
# Improved brightness boost
|
236 |
hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
|
237 |
# Increase brightness
|
@@ -251,7 +251,7 @@ def image_processing(image, filter_type):
|
|
251 |
classic_filter_list = ["Charcoal Effect", "Sharpen", "Embossing", "Edge Detection"]
|
252 |
creative_filters_list = ["Rainbow", "Night Vision"]
|
253 |
special_effects_list = ["Matrix Effect", "Wave Effect", "Time Stamp", "Glitch Effect"]
|
254 |
-
artistic_filters_list = ["Pop Art", "Oil Paint", "Cartoon
|
255 |
atmospheric_filters_list = ["Autumn", "Nostalgia", "Increase Brightness"]
|
256 |
|
257 |
if filter_type in basic_filter_list:
|
@@ -298,7 +298,7 @@ with gr.Blocks(theme=theme) as app:
|
|
298 |
# Special Effects
|
299 |
"Matrix Effect", "Wave Effect", "Time Stamp", "Glitch Effect",
|
300 |
# Artistic Filters
|
301 |
-
"Pop Art", "Oil Paint", "Cartoon
|
302 |
# Atmospheric Filters
|
303 |
"Autumn", "Nostalgia", "Increase Brightness"
|
304 |
],
|
|
|
231 |
kernel = np.dstack([kernel]*3)
|
232 |
return cv2.multiply(sepia, kernel).astype(np.uint8)
|
233 |
|
234 |
+
elif filter_type == "Increase Brightness":
|
235 |
# Improved brightness boost
|
236 |
hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
|
237 |
# Increase brightness
|
|
|
251 |
classic_filter_list = ["Charcoal Effect", "Sharpen", "Embossing", "Edge Detection"]
|
252 |
creative_filters_list = ["Rainbow", "Night Vision"]
|
253 |
special_effects_list = ["Matrix Effect", "Wave Effect", "Time Stamp", "Glitch Effect"]
|
254 |
+
artistic_filters_list = ["Pop Art", "Oil Paint", "Cartoon"]
|
255 |
atmospheric_filters_list = ["Autumn", "Nostalgia", "Increase Brightness"]
|
256 |
|
257 |
if filter_type in basic_filter_list:
|
|
|
298 |
# Special Effects
|
299 |
"Matrix Effect", "Wave Effect", "Time Stamp", "Glitch Effect",
|
300 |
# Artistic Filters
|
301 |
+
"Pop Art", "Oil Paint", "Cartoon",
|
302 |
# Atmospheric Filters
|
303 |
"Autumn", "Nostalgia", "Increase Brightness"
|
304 |
],
|