                               'bottom': d_rect.bottom()}
  
      def get_center_scale(self):
          """ Get the center and set scale of bounding box """
          center = np.array([(self.bounding_box['left']
                              + self.bounding_box['right']) / 2.0,
                             (self.bounding_box['top']
                              + self.bounding_box['bottom']) / 2.0])
  
          center[1] -= (self.bounding_box['bottom']
                        - self.bounding_box['top']) * 0.12
  
          scale = (self.bounding_box['right']
 
</s> remove     def get_bounding_box(self, d_rect):
        """ Return the corner points of the bounding box """
        self.bounding_box = {'left': d_rect.left(),
                             'top': d_rect.top(),
                             'right': d_rect.right(),
                             'bottom': d_rect.bottom()}

    def get_center_scale(self):
 </s> add     @staticmethod
    def get_center_scale(detected_face): </s> remove         center[1] -= (self.bounding_box['bottom']
                      - self.bounding_box['top']) * 0.12
 </s> add         center[1] -= (detected_face['bottom']
                      - detected_face['top']) * 0.12 </s> remove         scale = (self.bounding_box['right']
                 - self.bounding_box['left']
                 + self.bounding_box['bottom']
                 - self.bounding_box['top']) / 195.0
 </s> add         scale = (detected_face['right']
                 - detected_face['left']
                 + detected_face['bottom']
                 - detected_face['top']) / 195.0 </s> remove             self.detector.detect_faces(self.frame.images)

    def convert_to_dlib_rectangle(self):
 </s> add             self.detector.detect_faces(self.frame.image_detect)

    def get_bounding_boxes(self):
        """ Return the corner points of the bounding box scaled
            to original image """
        bounding_boxes = list()
        for d_rect in self.detector.detected_faces:
            d_rect = self.convert_to_dlib_rectangle(d_rect)
            bounding_box = {
                'left': int(d_rect.left() / self.frame.input_scale),
                'top': int(d_rect.top() / self.frame.input_scale),
                'right': int(d_rect.right() / self.frame.input_scale),
                'bottom': int(d_rect.bottom() / self.frame.input_scale)}
            bounding_boxes.append(bounding_box)
        return bounding_boxes

    def convert_to_dlib_rectangle(self, d_rect): </s> remove             landmarks.append((
                (int(self.bounding_box['left'] / self.input_scale),
                 int(self.bounding_box['top'] / self.input_scale),
                 int(self.bounding_box['right'] / self.input_scale),
                 int(self.bounding_box['bottom'] / self.input_scale)),
                landmarks_xy))
 </s> add             landmarks.append(((detected_face['left'],
                               detected_face['top'],
                               detected_face['right'],
                               detected_face['bottom']),
                              landmarks_xy))
        center = np.array([(detected_face['left']
                            + detected_face['right']) / 2.0,
                           (detected_face['top']
                            + detected_face['bottom']) / 2.0])
                               'bottom': d_rect.bottom()}
  
      def get_center_scale(self):
          """ Get the center and set scale of bounding box """
        center = np.array([(detected_face['left']
                            + detected_face['right']) / 2.0,
                           (detected_face['top']
                            + detected_face['bottom']) / 2.0])
        center = np.array([(detected_face['left']
                            + detected_face['right']) / 2.0,
                           (detected_face['top']
                            + detected_face['bottom']) / 2.0])
        center = np.array([(detected_face['left']
                            + detected_face['right']) / 2.0,
                           (detected_face['top']
                            + detected_face['bottom']) / 2.0])
        center = np.array([(detected_face['left']
                            + detected_face['right']) / 2.0,
                           (detected_face['top']
                            + detected_face['bottom']) / 2.0])
  
          center[1] -= (self.bounding_box['bottom']
                        - self.bounding_box['top']) * 0.12
  
          scale = (self.bounding_box['right']
keep keep keep keep replace replace replace replace keep keep keep keep keep
 DLib scaling amends (#461)

* Scaling area fix and rework of frames and bounding boxes

* Update DLib scaling and initialization 
lib/face_alignment/extractor.py