-
Notifications
You must be signed in to change notification settings - Fork 0
/
parking_coordinate.py
224 lines (212 loc) · 12 KB
/
parking_coordinate.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
import numpy as np
# Site2: 지하주차장
coordinates_site_2_prediction = np.array([
[[815, 72], [824, 138], [859, 130], [854, 67]], # 52
[[771, 72], [779, 140], [817, 135], [805, 73]], # 53
[[726, 74], [733, 145], [767, 140], [762, 75]], # 54
[[679, 75], [682, 148], [722, 140], [718, 78]], # 55
[[635, 83], [636, 143], [671, 142], [670, 79]], # 56
[[591, 79], [594, 149], [626, 146], [625, 80]], # 57
[[472, 96], [464, 159], [495, 157], [504, 92]], # 58
[[432, 97], [422, 162], [456, 159], [463, 94]], # 59
[[392, 101], [382, 167], [415, 165], [422, 101]], # 60
[[355, 109], [344, 172], [373, 170], [381, 105]], # 61
[[319, 114], [307, 177], [336, 174], [343, 111]], # 62
[[289, 119], [269, 182], [299, 179], [311, 116]], # 63
[[259, 121], [239, 186], [262, 182], [280, 120]], # 64
[[233, 128], [211, 190], [232, 188], [245, 129]], # 65
[[208, 137], [189, 193], [203, 191], [217, 137]], # 66
[[850, 282], [855, 389], [903, 389], [893, 275]], # 67
[[799, 281], [801, 393], [843, 391], [835, 283]], # 68
[[742, 288], [746, 397], [790, 393], [785, 283]], # 69
[[690, 285], [688, 399], [733, 394], [730, 286]], # 70
[[633, 290], [630, 398], [675, 397], [676, 288]], # 71
[[579, 290], [572, 399], [619, 397], [622, 290]], # 72
[[527, 291], [518, 394], [559, 395], [568, 293]], # 73
[[478, 295], [466, 394], [508, 394], [514, 292]], # 74
[[431, 293], [414, 395], [451, 395], [467, 295]], # 75
[[387, 299], [365, 393], [401, 396], [415, 298]], # 76
[[340, 298], [324, 391], [359, 393], [370, 301]], # 77
[[305, 299], [283, 390], [310, 388], [327, 299]], # 78
[[261, 302], [239, 389], [271, 389], [289, 305]], # 79
[[223, 302], [206, 385], [233, 385], [247, 302]], # 80
[[856, 407], [859, 523], [900, 523], [897, 407]], # 81
[[803, 412], [802, 528], [845, 526], [843, 410]], # 82
[[747, 414], [746, 528], [789, 529], [786, 412]], # 83
[[689, 413], [684, 533], [731, 531], [732, 412]], # 84
[[628, 412], [623, 533], [671, 532], [674, 410]], # 85
[[571, 414], [564, 532], [610, 533], [619, 413]], # 86
[[515, 410], [505, 529], [550, 530], [560, 412]], # 87
[[462, 412], [449, 525], [494, 527], [504, 410]], # 88
[[411, 410], [398, 523], [440, 526], [452, 410]], # 89
[[364, 406], [348, 518], [387, 520], [401, 410]], # 90
[[319, 406], [300, 513], [339, 514], [355, 406]], # 91
[[279, 403], [267, 503], [297, 506], [308, 406]], # 92
[[235, 401], [219, 496], [251, 503], [264, 402]], # 93
[[203, 400], [187, 493], [215, 493], [232, 399]]]) # 94
# Site3-1: 본관 옆
coordinates_site_3_prediction_1 = np.array([
[[901, 307], [918, 369], [931, 367], [913, 306]], # 95
[[878, 307], [894, 369], [908, 367], [891, 308]], # 96
[[853, 306], [868, 371], [885, 370], [868, 306]], # 97
[[829, 304], [841, 375], [858, 371], [845, 305]], # 98
[[792, 305], [807, 378], [831, 376], [813, 305]], # 99
[[763, 304], [776, 378], [799, 376], [778, 306]], # 100
[[720, 304], [737, 386], [772, 382], [753, 297]], # 101
[[686, 307], [701, 385], [726, 380], [709, 308]], # 102
[[644, 306], [656, 384], [690, 384], [671, 301]], # 103
[[595, 305], [609, 389], [644, 386], [632, 301]]]) # 104
coordinates_site_3_prediction_2 = np.array([
[[760, 264], [772, 347], [805, 346], [789, 263]], # 105
[[713, 260], [720, 349], [757, 347], [749, 259]], # 106
[[663, 258], [670, 343], [707, 344], [699, 258]], # 107
[[612, 254], [613, 342], [656, 343], [652, 255]], # 108
[[556, 251], [559, 344], [602, 343], [598, 250]], # 109
[[501, 250], [501, 340], [544, 342], [544, 250]], # 110
[[446, 246], [441, 339], [488, 341], [491, 249]], # 111
[[391, 249], [385, 339], [431, 341], [434, 248]], # 112
[[343, 244], [333, 337], [373, 337], [379, 250]], # 113
[[289, 245], [279, 334], [316, 335], [326, 244]], # 114
[[145, 318], [144, 349], [252, 347], [255, 312]], # 115
[[45, 334], [50, 371], [133, 349], [133, 324]]]) # 116
# Site4: 본관 구부러진 길
coordinates_site_4_prediction = np.array([
[[427, 166], [428, 186], [442, 186], [442, 158]], # 117
[[418, 195], [418, 217], [428, 215], [434, 194]], # 118
[[408, 224], [409, 247], [422, 241], [420, 225]], # 119
[[404, 260], [405, 286], [417, 282], [415, 257]], # 120
[[402, 297], [405, 319], [416, 317], [417, 292]], # 121
[[409, 334], [409, 369], [428, 361], [422, 328]], # 122
[[411, 384], [410, 420], [431, 414], [428, 373]], # 123
[[412, 440], [418, 488], [440, 474], [433, 428]], # 124
[[420, 502], [426, 560], [453, 543], [443, 498]], # 125
[[429, 575], [433, 649], [460, 643], [453, 563]], # 126
[[435, 674], [432, 757], [459, 756], [456, 658]]]) # 127
coordinates_site_4_origin = np.array([
[[861, 158], [865, 164], [886, 165], [880, 154]], # 117
[[827, 158], [833, 167], [858, 165], [850, 155]], # 118
[[795, 161], [801, 171], [824, 168], [818, 157]], # 119
[[761, 170], [764, 178], [790, 173], [783, 162]], # 120
[[726, 182], [729, 193], [756, 182], [750, 170]], # 121
[[681, 201], [690, 212], [723, 197], [716, 186]], # 122
[[638, 225], [643, 232], [684, 215], [672, 204]], # 123
[[579, 253], [587, 261], [637, 240], [624, 229]], # 124
[[515, 284], [521, 295], [581, 268], [565, 257]], # 125
[[426, 321], [436, 335], [511, 303], [496, 291]], # 126
[[318, 352], [321, 367], [420, 338], [416, 330]]]) # 127
# Site5-1: 창업동 옆
coordinates_site_5_prediction_1 = np.array([
[[66, 369], [60, 400], [147, 410], [152, 377]], # 128
[[158, 379], [153, 408], [262, 414], [266, 388]], # 129
[[284, 384], [276, 417], [424, 432], [425, 390]], # 130
[[441, 393], [438, 434], [618, 442], [617, 395]], # 131
[[107, 232], [102, 257], [172, 252], [177, 226]], # 132
[[191, 224], [190, 243], [289, 237], [294, 214]], # 133
[[312, 211], [308, 239], [442, 235], [443, 202]], # 134
[[467, 202], [463, 232], [628, 233], [624, 193]]]) # 135
# Site5-2: 창업동 옆
coordinates_site_5_prediction_2 = np.array([
[[147, 349], [149, 399], [330, 380], [324, 330]], # 136
[[344, 332], [348, 379], [517, 361], [511, 314]], # 137
[[524, 313], [533, 359], [671, 341], [663, 299]], # 138
[[676, 301], [684, 338], [777, 326], [770, 291]], # 139
[[784, 292], [789, 321], [842, 313], [837, 285]], # 140
[[146, 147], [145, 187], [314, 176], [312, 138]], # 141
[[328, 138], [330, 175], [491, 173], [489, 137]], # 142
[[514, 148], [514, 173], [636, 179], [631, 154]]]); # 143
# Site6: 창업동 입구
coordinates_site_6_prediction = np.array([
[[284, 626], [310, 742], [335, 682], [309, 585]], # 151
[[313, 542], [337, 671], [372, 603], [338, 495]], # 152
[[342, 473], [372, 596], [413, 524], [365, 426]], # 153
[[361, 385], [418, 513], [462, 418], [422, 328]], # 154
[[428, 312], [471, 396], [509, 311], [461, 257]]]) # 155
coordinates_site_6_origin = np.array([
[[397, 187], [322, 231], [366, 238], [445, 193]], # 151
[[468, 198], [399, 237], [451, 240], [500, 203]], # 152
[[557, 201], [479, 240], [544, 249], [608, 209]], # 153
[[642, 209], [581, 253], [655, 263], [698, 216]], # 154
[[734, 221], [693, 266], [763, 283], [785, 229]]]) # 155
# Site8:
coordinates_site_8_prediction = np.array([
[[145, 213], [127, 238], [155, 238], [175, 212]], # 196
[[186, 211], [173, 237], [210, 237], [215, 213]], # 197
[[233, 215], [224, 235], [260, 238], [265, 215]], # 198
[[283, 214], [275, 238], [314, 240], [316, 217]], # 199
[[327, 228], [331, 244], [367, 245], [366, 230]], # 200
[[385, 235], [387, 247], [424, 250], [417, 237]], # 201
[[432, 237], [441, 251], [476, 251], [463, 240]], # 202
[[483, 237], [490, 256], [524, 254], [506, 237]], # 203
[[70, 279], [44, 311], [99, 317], [112, 287]], # 204
[[132, 284], [116, 316], [170, 321], [179, 290]], # 205
[[201, 291], [187, 324], [246, 323], [252, 294]], # 206
[[267, 292], [263, 329], [327, 332], [324, 297]], # 207
[[340, 297], [344, 333], [405, 335], [393, 297]], # 208
[[417, 306], [427, 335], [481, 329], [470, 300]], # 209
[[496, 308], [516, 336], [562, 336], [544, 296]], # 210
[[557, 309], [575, 337], [611, 334], [590, 303]]]) # 211
# SiteVisitor:
coordinates_site_visitor_prediction = np.array([
[[79, 106], [47, 169], [83, 166], [114, 105]], # 217
[[142, 101], [113, 162], [182, 159], [193, 99]], # 218
[[235, 89], [211, 153], [294, 154], [302, 87]], # 219
[[323, 93], [319, 153], [414, 155], [402, 86]], # 220
[[430, 94], [437, 153], [521, 157], [491, 97]], # 221
[[528, 93], [550, 157], [630, 164], [590, 86]], # 222
[[626, 99], [656, 165], [724, 169], [683, 98]], # 223
[[717, 100], [749, 175], [792, 175], [757, 106]], # 224
[[135, 433], [122, 621], [277, 621], [276, 446]], # 227
[[308, 441], [310, 617], [483, 616], [461, 435]], # 228
[[496, 441], [524, 611], [705, 619], [639, 425]], # 229
[[670, 431], [743, 613], [850, 619], [775, 432]], # 230
[[804, 419], [890, 617], [963, 610], [867, 414]], # 231
[[908, 407], [990, 548], [993, 496], [948, 404]]]) # 232
# Site Wide:
coordinates_site_wide_prediction = np.array([
[[880, 392], [897, 458], [914, 453], [902, 387]], # 156
[[840, 397], [854, 463], [884, 456], [868, 392]], # 157
[[796, 401], [804, 466], [840, 462], [827, 396]], # 158
[[745, 403], [754, 473], [791, 471], [777, 398]], # 159
[[697, 408], [704, 476], [743, 473], [732, 407]], # 160
[[643, 410], [648, 482], [692, 479], [684, 406]], # 161
[[592, 412], [592, 484], [631, 480], [630, 411]], # 162
[[552, 415], [551, 484], [579, 483], [579, 413]], # 163
[[317, 428], [301, 490], [332, 492], [342, 426]], # 164
[[277, 429], [259, 488], [285, 489], [300, 429]], # 165
[[237, 423], [218, 491], [246, 491], [263, 426]], # 166
[[197, 431], [181, 485], [207, 490], [224, 427]], # 167
[[162, 429], [139, 486], [165, 488], [186, 428]], # 168
[[843, 296], [857, 348], [882, 341], [872, 295]], # 169
[[804, 298], [819, 347], [844, 343], [830, 297]], # 170
[[763, 302], [777, 353], [808, 351], [794, 299]], # 171
[[720, 304], [731, 355], [763, 354], [753, 303]], # 172
[[678, 306], [687, 359], [720, 356], [710, 303]], # 173
[[636, 306], [638, 363], [676, 363], [670, 303]], # 174
[[586, 311], [590, 369], [628, 362], [623, 309]], # 175
[[797, 179], [807, 219], [828, 217], [819, 174]], # 177
[[766, 182], [775, 216], [802, 212], [789, 181]], # 178
[[731, 183], [737, 220], [763, 217], [757, 177]], # 179
[[692, 179], [701, 219], [730, 217], [723, 177]], # 180
[[657, 184], [665, 222], [693, 216], [685, 179]], # 181
[[620, 183], [623, 223], [655, 221], [648, 180]], # 182
[[584, 192], [582, 225], [616, 221], [609, 186]], # 183
[[554, 192], [555, 226], [576, 226], [575, 192]], # 184
[[383, 338], [369, 400], [394, 401], [407, 332]], # 185
[[410, 204], [396, 255], [426, 251], [438, 201]], # 186
[[429, 156], [417, 194], [439, 194], [448, 158]], # 187
[[175, 367], [163, 394], [220, 392], [235, 366]], # 188
[[193, 339], [184, 358], [238, 362], [248, 338]], # 189
[[211, 309], [199, 332], [252, 327], [263, 306]], # 190
[[227, 271], [216, 297], [271, 297], [281, 272]], # 191
[[241, 248], [232, 262], [289, 263], [295, 249]], # 192
[[257, 225], [249, 240], [301, 239], [311, 221]], # 193
[[274, 206], [267, 218], [310, 219], [323, 202]], # 194
[[285, 185], [281, 199], [327, 195], [336, 178]], # 195
[[417, 129], [407, 152], [429, 152], [439, 122]], # 212
[[388, 130], [377, 156], [403, 154], [409, 129]], # 213
[[357, 137], [349, 161], [372, 159], [377, 132]], # 214
[[435, 67], [427, 89], [453, 88], [460, 59]], # 215
[[411, 64], [398, 94], [419, 92], [431, 64]], # 216
[[444, 43], [439, 60], [462, 60], [470, 43]], # 233
[[423, 45], [413, 61], [434, 61], [438, 43]], # 234
[[490, 6], [486, 20], [508, 20], [508, 6]]]) # 236