Exemplo n.º 1
0
	def __init__(self):
		self.settings = settings.Settings()
		self.camera = cv2.VideoCapture(0)
		self.bs = bs.Bs()
		self.persons = person.Persons(self.settings.movementMaximum, self.settings.movementMinimum, self.settings.movementTime)
		self.start = time.time()
		self.webservice = webservice.Webservice(self.settings.location, self.settings.phone)
		self.errorcount = 0
		self.alertLog = []
		self.frameCount = 1
Exemplo n.º 2
0
    def __init__(self):
        self.settings = settings.Settings()
        self.camera = cv2.VideoCapture(self.settings.source)
        self.bs = bs.Bs()
        self.persons = person.Persons(self.settings.movementMaximum,
                                      self.settings.movementMinimum,
                                      self.settings.movementTime)
        self.start = time.time()
        self.webservice = webservice.Webservice()
        self.errorcount = 0
        self.alertLog = []
        self.frameCount = 1

        self.myble = ble.MyBle.instance()
Exemplo n.º 3
0
 def __init__(self, path):  # Defining the constructor
     self.settings = settings.Settings()
     #self.camera = cv2.VideoCapture(self.settings.source)  # To use it from camera source
     self.camera = cv2.VideoCapture(
         path)  # Take image from specified path by the use
     self.bs = bs.Bs()
     self.persons = person.Persons(self.settings.movementMaximum,
                                   self.settings.movementMinimum,
                                   self.settings.movementTime)
     self.start = time.time()
     self.webservice = webservice.Webservice(self.settings.location,
                                             self.settings.phone)
     self.errorcount = 0
     self.alertLog = []
     self.frameCount = 1
Exemplo n.º 4
0
 def __init__(self):
     self.settings = settings.Settings()
     self.camera = cv2.VideoCapture(self.settings.source)
     self.bs = bs.Bs()
     self.persons = person.Persons(self.settings.movementMaximum,
                                   self.settings.movementMinimum,
                                   self.settings.movementTime)
     self.start = time.time()
     self.webservice = webservice.Webservice(self.settings.location,
                                             self.settings.phone,
                                             self.settings.email,
                                             self.settings.apiKey)
     self.errorcount = self.settings.videoErrorCount
     self.alertLog = self.settings.videoAlertLog
     self.frameCount = self.settings.videoFrameCount
     self.waitKey = self.settings.videoWaitKey