Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ class ParkingMonitor:
|
|
| 14 |
self.parking_spots = []
|
| 15 |
|
| 16 |
def init_parking_spots(self, frame_shape):
|
| 17 |
-
|
| 18 |
h, w = frame_shape[:2]
|
| 19 |
self.parking_spots = []
|
| 20 |
|
|
@@ -43,7 +43,7 @@ class ParkingMonitor:
|
|
| 43 |
})
|
| 44 |
|
| 45 |
def calculate_iou(self, box1, box2):
|
| 46 |
-
|
| 47 |
x1_1, y1_1, x2_1, y2_1 = box1
|
| 48 |
x1_2, y1_2, x2_2, y2_2 = box2
|
| 49 |
|
|
|
|
| 14 |
self.parking_spots = []
|
| 15 |
|
| 16 |
def init_parking_spots(self, frame_shape):
|
| 17 |
+
#Автоматичне створення сітки паркувальних місць
|
| 18 |
h, w = frame_shape[:2]
|
| 19 |
self.parking_spots = []
|
| 20 |
|
|
|
|
| 43 |
})
|
| 44 |
|
| 45 |
def calculate_iou(self, box1, box2):
|
| 46 |
+
#Розрахунок Intersection over Union
|
| 47 |
x1_1, y1_1, x2_1, y2_1 = box1
|
| 48 |
x1_2, y1_2, x2_2, y2_2 = box2
|
| 49 |
|