AMontiB commited on
Commit
5f9c46d
Β·
1 Parent(s): 61793df
Files changed (2) hide show
  1. CFA.py +1 -0
  2. 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)