  
      def get_faces(self, image, rotation=0):
          """ Extract the faces from an image """
          faces_count = 0
          faces = detect_faces(image, self.args.detector, self.args.verbose,
                               rotation=rotation, mtcnn_kwargs=self.mtcnn_kwargs)
  
          for face in faces:
              if self.filter and not self.filter.check(face):
                  if self.args.verbose:
                      print("Skipping not recognized face!")
 
</s> remove class Extract(object):
 </s> add class Extract(): </s> remove def detect_faces(frame, detector, verbose, rotation=0, mtcnn_kwargs=None):
 </s> add def detect_faces(frame, detector, verbose, rotation=0,
                 dlib_buffer=64, mtcnn_kwargs=None): </s> remove     def __init__(self, input_image_bgr, detector, mtcnn_kwargs=None,
                 verbose=False, input_is_predetected_face=False):
 </s> add     def __init__(self, input_image_bgr, detector, dlib_buffer=64,
                 mtcnn_kwargs=None, verbose=False,
                 input_is_predetected_face=False): </s> remove class Faces(object):
 </s> add class Faces(): </s> remove     def initialize(self, detector, mtcnn_kwargs):
 </s> add     def initialize(self, detector, mtcnn_kwargs, dlib_buffer):
        faces = detect_faces(image,
                             self.args.detector,
                             self.args.verbose,
                             rotation=rotation,
                             dlib_buffer=self.args.dlib_buffer,
                             mtcnn_kwargs=self.mtcnn_kwargs)
  
      def get_faces(self, image, rotation=0):
          """ Extract the faces from an image """
          faces_count = 0
        faces = detect_faces(image,
                             self.args.detector,
                             self.args.verbose,
                             rotation=rotation,
                             dlib_buffer=self.args.dlib_buffer,
                             mtcnn_kwargs=self.mtcnn_kwargs)
        faces = detect_faces(image,
                             self.args.detector,
                             self.args.verbose,
                             rotation=rotation,
                             dlib_buffer=self.args.dlib_buffer,
                             mtcnn_kwargs=self.mtcnn_kwargs)
  
          for face in faces:
              if self.filter and not self.filter.check(face):
                  if self.args.verbose:
                      print("Skipping not recognized face!")
keep keep keep keep replace replace keep keep keep keep keep
 Add option to change dlib-cnn buffer size 
scripts/fsmedia.py