  class Extract(object):
      """ Extracts faces from an image, crops and
          calculates landmarks """
  
      def __init__(self, input_image_bgr, detector, mtcnn_kwargs=None,
                   verbose=False, input_is_predetected_face=False):
          self.verbose = verbose
          self.keras = KERAS_MODEL
          self.detector = None
  
          self.initialize(detector, mtcnn_kwargs)
 
</s> remove class Extract(object):
 </s> add class Extract(): </s> remove         self.initialize(detector, mtcnn_kwargs)
 </s> add         self.initialize(detector, mtcnn_kwargs, dlib_buffer) </s> remove class Frame(object):
 </s> add class Frame(): </s> remove class Align(object):
 </s> add class Align(): </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):
    def __init__(self, input_image_bgr, detector, dlib_buffer=64,
                 mtcnn_kwargs=None, verbose=False,
                 input_is_predetected_face=False):
  class Extract(object):
      """ Extracts faces from an image, crops and
          calculates landmarks """
  
    def __init__(self, input_image_bgr, detector, dlib_buffer=64,
                 mtcnn_kwargs=None, verbose=False,
                 input_is_predetected_face=False):
    def __init__(self, input_image_bgr, detector, dlib_buffer=64,
                 mtcnn_kwargs=None, verbose=False,
                 input_is_predetected_face=False):
          self.verbose = verbose
          self.keras = KERAS_MODEL
          self.detector = None
  
          self.initialize(detector, mtcnn_kwargs)
keep keep keep keep replace replace keep keep keep keep keep
 Add option to change dlib-cnn buffer size 
lib/face_alignment/extractor.py