Spaces:
Build error
Build error
AMontiB commited on
Commit Β·
5f9c46d
1
Parent(s): 61793df
update
Browse files- CFA.py +1 -0
- shadows.py +1 -1
CFA.py
CHANGED
|
@@ -143,6 +143,7 @@ def build_demo():
|
|
| 143 |
gr.Markdown("# π¨ Color Filter Array Analysis")
|
| 144 |
gr.Markdown(
|
| 145 |
"Analyzes artifacts introduced during the camera's raw image processing. Inconsistencies in the **Color Filter Array (CFA)** interpolation pattern can reveal areas that have been spliced from another image or copy-pasted within the same image (copy-move).\n"
|
|
|
|
| 146 |
"**Instructions:**\n"
|
| 147 |
"1. **Upload** an image.\n"
|
| 148 |
"2. **Click** anywhere on the image to move the 128x128 selection box.\n"
|
|
|
|
| 143 |
gr.Markdown("# π¨ Color Filter Array Analysis")
|
| 144 |
gr.Markdown(
|
| 145 |
"Analyzes artifacts introduced during the camera's raw image processing. Inconsistencies in the **Color Filter Array (CFA)** interpolation pattern can reveal areas that have been spliced from another image or copy-pasted within the same image (copy-move).\n"
|
| 146 |
+
"\n"
|
| 147 |
"**Instructions:**\n"
|
| 148 |
"1. **Upload** an image.\n"
|
| 149 |
"2. **Click** anywhere on the image to move the 128x128 selection box.\n"
|
shadows.py
CHANGED
|
@@ -307,7 +307,7 @@ def reset_all(image, current_mode, current_points, y_lines, r_lines, y_pairs, r_
|
|
| 307 |
|
| 308 |
def build_gradio_interface():
|
| 309 |
with gr.Blocks() as demo:
|
| 310 |
-
gr.Markdown("#ππ Shadow Consistency Analysis πππ")
|
| 311 |
gr.Markdown("A utility for verifying geometric consistency of shadows in an image. By projecting vanishing points, it helps determine if all shadows correspond to a single, coherent light source. This method is based on principles of perspective and can be useful for analyzing both traditional manipulations and AI-generated images.")
|
| 312 |
with gr.Row():
|
| 313 |
img_in = gr.Image(label="Upload image and then click to add points", type="numpy", interactive=True, height=800)
|
|
|
|
| 307 |
|
| 308 |
def build_gradio_interface():
|
| 309 |
with gr.Blocks() as demo:
|
| 310 |
+
gr.Markdown("# ππ Shadow Consistency Analysis πππ")
|
| 311 |
gr.Markdown("A utility for verifying geometric consistency of shadows in an image. By projecting vanishing points, it helps determine if all shadows correspond to a single, coherent light source. This method is based on principles of perspective and can be useful for analyzing both traditional manipulations and AI-generated images.")
|
| 312 |
with gr.Row():
|
| 313 |
img_in = gr.Image(label="Upload image and then click to add points", type="numpy", interactive=True, height=800)
|