Exemple #1
0
 def __init__(self, config):
     self._config = config
     self._face_detector = FeatureDetector.get_detector(
         config,
         'face',
         scale_factor=config[self]['face_detector']['scale_factor'],
         min_neighbors=config[self]['face_detector']['min_neighbors'],
     )
     self._nose_detector = FeatureDetector.get_detector(
         config,
         'nose',
         scale_factor=config[self]['nose_detector']['scale_factor'],
         min_neighbors=config[self]['nose_detector']['min_neighbors'],
     )
Exemple #2
0
 def __init__(self, config):
     self._config = config
     self._face_detector = FeatureDetector.get_detector(
         config,
         'face',
         scale_factor=config[self]['face_detector']['scale_factor'],
         min_neighbors=config[self]['face_detector']['min_neighbors'],
     )
     self._nose_detector = FeatureDetector.get_detector(
         config,
         'nose',
         scale_factor=config[self]['nose_detector']['scale_factor'],
         min_neighbors=config[self]['nose_detector']['min_neighbors'],
     )
Exemple #3
0
 def __init__(self, config):
     self._config = config
     self._face_detector = FeatureDetector.get_detector(
         config,
         "face",
         scale_factor=config[self]['face_detector']['scale_factor'],
         min_neighbors=config[self]['face_detector']['min_neighbors'],
     )
     self._open_eye_detector = FeatureDetector.get_detector(
         config,
         "open_eye",
         scale_factor=config[self]['open_eye_detector']['scale_factor'],
         min_neighbors=config[self]['open_eye_detector']['min_neighbors'],
     )
     self._left_eye_detector = FeatureDetector.get_detector(
         config,
         "left_eye",
         scale_factor=config[self]['left_eye_detector']['scale_factor'],
         min_neighbors=config[self]['left_eye_detector']['min_neighbors'],
     )
Exemple #4
0
 def __init__(self, config):
     self._config = config
     self._face_detector = FeatureDetector.get_detector(
         config,
         "face",
         scale_factor=config[self]['face_detector']['scale_factor'],
         min_neighbors=config[self]['face_detector']['min_neighbors'],
     )
     self._open_eye_detector = FeatureDetector.get_detector(
         config,
         "open_eye",
         scale_factor=config[self]['open_eye_detector']['scale_factor'],
         min_neighbors=config[self]['open_eye_detector']['min_neighbors'],
     )
     self._left_eye_detector = FeatureDetector.get_detector(
         config,
         "left_eye",
         scale_factor=config[self]['left_eye_detector']['scale_factor'],
         min_neighbors=config[self]['left_eye_detector']['min_neighbors'],
     )