Spaces:
Sleeping
Sleeping
Update doors_fasterrcnn.py
Browse files- doors_fasterrcnn.py +4 -0
doors_fasterrcnn.py
CHANGED
|
@@ -125,6 +125,7 @@ def get_door_info(doors_info):
|
|
| 125 |
#for calculation
|
| 126 |
width = distance((xmin,ymax), (xmax,ymax))
|
| 127 |
width_pixels.append(width)
|
|
|
|
| 128 |
singles +=1
|
| 129 |
|
| 130 |
#horz_upper
|
|
@@ -142,6 +143,7 @@ def get_door_info(doors_info):
|
|
| 142 |
width = distance((xmin,ymin), (xmax,ymin))
|
| 143 |
width_pixels.append(width)
|
| 144 |
singles +=1
|
|
|
|
| 145 |
|
| 146 |
#vert_right
|
| 147 |
if door_inf[1] == 4:
|
|
@@ -158,6 +160,7 @@ def get_door_info(doors_info):
|
|
| 158 |
width = distance((xmax,ymin), (xmax,ymax))
|
| 159 |
width_pixels.append(width)
|
| 160 |
singles +=1
|
|
|
|
| 161 |
#vert_left
|
| 162 |
if door_inf[1] == 5:
|
| 163 |
#for drawing
|
|
@@ -173,6 +176,7 @@ def get_door_info(doors_info):
|
|
| 173 |
width = distance((xmin,ymin), (xmin,ymax))
|
| 174 |
width_pixels.append(width)
|
| 175 |
singles +=1
|
|
|
|
| 176 |
|
| 177 |
return width_pixels, lines, sanda, line_midpoint, singles, door_type
|
| 178 |
|
|
|
|
| 125 |
#for calculation
|
| 126 |
width = distance((xmin,ymax), (xmax,ymax))
|
| 127 |
width_pixels.append(width)
|
| 128 |
+
door_type.append(0)
|
| 129 |
singles +=1
|
| 130 |
|
| 131 |
#horz_upper
|
|
|
|
| 143 |
width = distance((xmin,ymin), (xmax,ymin))
|
| 144 |
width_pixels.append(width)
|
| 145 |
singles +=1
|
| 146 |
+
door_type.append(0)
|
| 147 |
|
| 148 |
#vert_right
|
| 149 |
if door_inf[1] == 4:
|
|
|
|
| 160 |
width = distance((xmax,ymin), (xmax,ymax))
|
| 161 |
width_pixels.append(width)
|
| 162 |
singles +=1
|
| 163 |
+
door_type.append(0)
|
| 164 |
#vert_left
|
| 165 |
if door_inf[1] == 5:
|
| 166 |
#for drawing
|
|
|
|
| 176 |
width = distance((xmin,ymin), (xmin,ymax))
|
| 177 |
width_pixels.append(width)
|
| 178 |
singles +=1
|
| 179 |
+
door_type.append(0)
|
| 180 |
|
| 181 |
return width_pixels, lines, sanda, line_midpoint, singles, door_type
|
| 182 |
|