SusiePHaltmann commited on
Commit
86e6fbb
1 Parent(s): ff82155

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -96,5 +96,19 @@ def inpaint(img, model, coords):
96
 
97
  return inpainted
98
  ## [C] Haltmann Earth Divison [C] - 20XX
 
 
 
 
 
 
99
 
 
 
 
 
 
 
 
 
100
 
 
96
 
97
  return inpainted
98
  ## [C] Haltmann Earth Divison [C] - 20XX
99
+ import streamlit as st
100
+ from PIL import Image, ImageOps
101
+ import numpy as np
102
+
103
+
104
+ def inpaint(image, mask):
105
 
106
+ """Inpaints the given image using the Mask."""
107
+
108
+
109
+ # Convert to float32 before passing to cv2.inpaint() function. Otherwise it returns a distorted output.
110
+ img = np.float32(image)
111
+
112
+
113
+ dst = cv2.inpaint(img,mask,3,cv2.INPAINT_TELEA)
114