Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -210,16 +210,8 @@ def blur_im(img,bounds):
|
|
210 |
h = int(p2[1]) - int(y)
|
211 |
p0 = (int(p0[0]),int(p0[1]))
|
212 |
p2 = (int(p2[0]),int(p2[1]))
|
213 |
-
im[y:y+h, x:x+w] = cv2.GaussianBlur(im[y:y+h, x:x+w])
|
214 |
-
|
215 |
-
#ROI = image[y:y+h, x:x+w]
|
216 |
-
#blur = cv2.GaussianBlur(ROI, (51,51), 0)
|
217 |
-
|
218 |
-
# Insert ROI back into image
|
219 |
-
#image[y:y+h, x:x+w] = blur
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
return im
|
224 |
|
225 |
def draw_boxes(image, bounds, color='blue', width=1):
|
|
|
210 |
h = int(p2[1]) - int(y)
|
211 |
p0 = (int(p0[0]),int(p0[1]))
|
212 |
p2 = (int(p2[0]),int(p2[1]))
|
213 |
+
im[y:y+h, x:x+w] = cv2.GaussianBlur(im[y:y+h, x:x+w],(51,51),0)
|
214 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
return im
|
216 |
|
217 |
def draw_boxes(image, bounds, color='blue', width=1):
|