Spaces:
Runtime error
Runtime error
Gaurav
commited on
Commit
·
ff8ae44
1
Parent(s):
7a1f182
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,12 +44,15 @@ def find_boundary(label_value, mask):
|
|
| 44 |
|
| 45 |
def send_response(mask):
|
| 46 |
vertices=[]
|
|
|
|
| 47 |
for contour in mask:
|
| 48 |
-
|
| 49 |
-
|
|
|
|
| 50 |
return vertices
|
| 51 |
|
| 52 |
|
|
|
|
| 53 |
def extract_window_edges(window_contours):
|
| 54 |
windows=[]
|
| 55 |
for contour in window_contours:
|
|
|
|
| 44 |
|
| 45 |
def send_response(mask):
|
| 46 |
vertices=[]
|
| 47 |
+
test=[]
|
| 48 |
for contour in mask:
|
| 49 |
+
test.extend(contour.ravel())
|
| 50 |
+
ar=contour.astype(str)
|
| 51 |
+
vertices.extend(ar.ravel())
|
| 52 |
return vertices
|
| 53 |
|
| 54 |
|
| 55 |
+
|
| 56 |
def extract_window_edges(window_contours):
|
| 57 |
windows=[]
|
| 58 |
for contour in window_contours:
|