Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,15 +79,15 @@ def process_image(input_image, alpha, beta, clip_limit, gamma):
|
|
79 |
interface = gr.Interface(
|
80 |
fn=process_image,
|
81 |
inputs=[
|
82 |
-
gr.
|
83 |
-
gr.
|
84 |
-
gr.
|
85 |
-
gr.
|
86 |
-
gr.
|
87 |
],
|
88 |
outputs=[
|
89 |
-
gr.
|
90 |
-
gr.
|
91 |
],
|
92 |
title="Feeble Light Signal Image Enhancer",
|
93 |
description="Upload a dark image, and enhance it using Retinex, CLAHE, contrast, brightness, and gamma correction."
|
|
|
79 |
interface = gr.Interface(
|
80 |
fn=process_image,
|
81 |
inputs=[
|
82 |
+
gr.Image(type="numpy", label="Input Image"),
|
83 |
+
gr.Slider(minimum=1.0, maximum=10.0, value=3.0, label="Alpha (Contrast)"),
|
84 |
+
gr.Slider(minimum=0, maximum=100, value=20, label="Beta (Brightness)"),
|
85 |
+
gr.Slider(minimum=1.0, maximum=15.0, value=10.0, label="CLAHE Clip Limit"),
|
86 |
+
gr.Slider(minimum=0.1, maximum=10.0, value=1.5, label="Gamma Correction"),
|
87 |
],
|
88 |
outputs=[
|
89 |
+
gr.Image(type="numpy", label="Input Image"),
|
90 |
+
gr.Image(type="numpy", label="Enhanced Image")
|
91 |
],
|
92 |
title="Feeble Light Signal Image Enhancer",
|
93 |
description="Upload a dark image, and enhance it using Retinex, CLAHE, contrast, brightness, and gamma correction."
|