def load_known(self): """ Loads known data. """ self.faces_database = FacesDatabase(self.Helpers.confs["genisysai"]["data"], self.face_identifier, self.landmarks_detector, self.face_detector, True) self.face_identifier.set_faces_database(self.faces_database) self.Helpers.logger.info("Database is built, registered %s identities" % (len(self.faces_database)))
def load_known(self): """ Loads known data. """ self.faces_database = FacesDatabase(os.path.dirname(os.path.abspath(__file__)) + '/../' + self.Helpers.confs["Classifier"]["Known"], self.face_identifier, self.landmarks_detector, self.face_detector, True) self.face_identifier.set_faces_database(self.faces_database) self.Helpers.logger.info("Database is built, registered %s identities" % (len(self.faces_database)))