Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,15 @@ def blur_im(img,bounds):
|
|
206 |
p0, p1, p2, p3 = bound[0]
|
207 |
p0 = (int(p0[0]),int(p0[1]))
|
208 |
p2 = (int(p2[0]),int(p2[1]))
|
209 |
-
im[p0, p2] = cv2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
return im
|
211 |
|
212 |
def draw_boxes(image, bounds, color='blue', width=1):
|
|
|
206 |
p0, p1, p2, p3 = bound[0]
|
207 |
p0 = (int(p0[0]),int(p0[1]))
|
208 |
p2 = (int(p2[0]),int(p2[1]))
|
209 |
+
im[p0, p2] = cv2.GaussianBlur(im[p0, p2] ,(51,51))
|
210 |
+
#ROI = image[y:y+h, x:x+w]
|
211 |
+
#blur = cv2.GaussianBlur(ROI, (51,51), 0)
|
212 |
+
|
213 |
+
# Insert ROI back into image
|
214 |
+
#image[y:y+h, x:x+w] = blur
|
215 |
+
|
216 |
+
|
217 |
+
|
218 |
return im
|
219 |
|
220 |
def draw_boxes(image, bounds, color='blue', width=1):
|