Ejemplo n.º 1
0
 def __init__(self):
     self.config = ConfigReader()
     self.logger = LoggerFactory()
     self.haarDetector = HaarFaceDetector()
     self.dnnDetector = DnnFaceDetector()
     self.azureDetectionClient = AzureFaceClient()
     self.detectionTypes = DetectionTypes()
Ejemplo n.º 2
0
 def __init__(self):
     self.logger = LoggerFactory()
     self.config = ConfigReader()
     self.request_manager = DetectionRequestsManager()
     self.directory = DirectoryManager()
     self.faceDetectionRepository = FaceDetectionRepository()
     self.pathsProvider = PathsProvider()
Ejemplo n.º 3
0
 def __init__(self):
     self.configReader = ConfigReader()
     self.environmentsProvider = EnvironmentsProvider()
     self.environment = self.configReader.environment_to_use
     self.db_server = "db_server"
     self.db_name = "db_name"
     self.login = "******"
     self.password = "******"
Ejemplo n.º 4
0
 def __init__(self):
     self.logger = logging.getLogger('FaceRecognitionLogger')
     self.directory = DirectoryManager()
     self.config = ConfigReader()
     self.logger_path = self.config.logs_path
     self.directory.create_directory_if_doesnt_exist(self.logger_path)
     fileHandler = logging.FileHandler(
         f'{self.logger_path}/logs_{datetime.date.today()}.log')
     fileHandler.setLevel(logging.DEBUG)
     streamHandler = logging.StreamHandler()
     streamHandler.setLevel(logging.ERROR)
     formatter = logging.Formatter(
         '%(asctime)s - %(name)s - %(levelname)s - %(message)s')
     fileHandler.setFormatter(formatter)
     streamHandler.setFormatter(formatter)
     self.logger.addHandler(fileHandler)
     self.logger.addHandler(streamHandler)
Ejemplo n.º 5
0
 def __init__(self):
     self.config = ConfigReader()
     self.environmentProvider = EnvironmentsProvider()
     self.imageAttachmentTypes = ImageAttachmentTypes()
 def __init__(self):
     self.configReader = ConfigReader()
     self.environment = self.configReader.environment_to_use
 def __init__(self):
     self.logger = LoggerFactory()
     self.config = ConfigReader()
     self.faceRecognitionManager = RecognitionRequestManager()
     self.faceRecognitionRepo = FaceRecognitionRepository()
     self.neuralNetworksManager = NeuralNetworksProvider()
Ejemplo n.º 8
0
 def __init__(self):
     self.config = ConfigReader()
     self.directory = DirectoryManager()
     self.client = dropbox.Dropbox("bJ90jq_k1TAAAAAAAAAABiHGq8c16qGnRew7tKYN1yJdChP3CRiPIpOG30ExjVkZ")