Liza111111111111 commited on
Commit
a399997
·
verified ·
1 Parent(s): 6fda3d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- """Розрахунок Intersection over Union"""
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