-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathObjects.py
37 lines (32 loc) · 867 Bytes
/
Objects.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
import time
import numpy as np
class Rectangle:
lock = False
corners = 0
area = np.array([185,184])
time = 0
higher_box = np.array([])
lower_box = np.array([])
higher_center =np.array([])
lower_center = np.array([])
start_time,scan_time = 0,0
upper_corners = np.array([])
decent_shape = True
def Start_time(self):
self.start_time = time.time()
return
def Scan_time(self):
self.scan_time = time.time() - self.start_time
return self.scan_time
class Circle:
lock = False
lock_coordinate = np.array([])
box = np.array([])
area=0
time = 0
def Start_time(self):
self.start_time = time.time()
return
def Scan_time(self):
self.scan_time = time.time() - self.start_time
return self.scan_time