      {"filename": <filename of source frame>,
       "image": <source image>,
       "detected_faces": <list of bounding box dicts as defined in lib/plugins/extract/detect/_base>}
  
      For each source item, the plugin must pass a dict to finalize containing:
      {"filename": <filename of source frame>,
       "image": <source image>,
       "detected_faces": <list of bounding box dicts as defined in lib/plugins/extract/detect/_base>,
       "landmarks": <list of landmarks>}
      """
  
  import logging
  import os
  import traceback
  
 
</s> remove     The plugin will receive a dict containing:
    {"filename": <filename of source frame>,
     "image": <source image>,
     "detected_faces": <list of bounding box dicts as defined in lib/plugins/extract/detect/_base>}
 </s> add The plugin will receive a dict containing: </s> remove     For each source frame, the plugin must pass a dict to finalize containing:
    {"filename": <filename of source frame>,
     "image": <source image>,
     "detected_faces": <list of dicts containing bounding box points>}}
 </s> add For each source frame, the plugin must pass a dict to finalize containing: </s> remove     - Use the function self.to_bounding_box_dict(left, right, top, bottom) to define the dict
    """

import logging
import os
import traceback
from io import StringIO
 </s> add >>> {'filename': <filename of source frame>,
>>>  'image':  <source image>,
>>>  'detected_faces': <list of DetectedFace objects containing bounding box points}} </s> remove import logging
import os
import traceback
 </s> add >>> {"filename": [<filename of source frame>],
>>>  "image": [<source image>],
>>>  "landmarks": [list of 68 point face landmarks]
>>>  "detected_faces": [<list of DetectedFace objects>]}
""" </s> remove     See the override methods for which methods are
    required.
 </s> add All Detector Plugins should inherit from this class.
See the override methods for which methods are required.
>>> {"filename": [<filename of source frame>],
>>>  "image": [<source image>],
>>>  "detected_faces": [<list of DetectedFace objects]}

For each source item, the plugin must pass a dict to finalize containing:
      {"filename": <filename of source frame>,
       "image": <source image>,
       "detected_faces": <list of bounding box dicts as defined in lib/plugins/extract/detect/_base>}
  
>>> {"filename": [<filename of source frame>],
>>>  "image": [<source image>],
>>>  "detected_faces": [<list of DetectedFace objects]}

For each source item, the plugin must pass a dict to finalize containing:
>>> {"filename": [<filename of source frame>],
>>>  "image": [<source image>],
>>>  "detected_faces": [<list of DetectedFace objects]}

For each source item, the plugin must pass a dict to finalize containing:
>>> {"filename": [<filename of source frame>],
>>>  "image": [<source image>],
>>>  "detected_faces": [<list of DetectedFace objects]}

For each source item, the plugin must pass a dict to finalize containing:
>>> {"filename": [<filename of source frame>],
>>>  "image": [<source image>],
>>>  "detected_faces": [<list of DetectedFace objects]}

For each source item, the plugin must pass a dict to finalize containing:
>>> {"filename": [<filename of source frame>],
>>>  "image": [<source image>],
>>>  "detected_faces": [<list of DetectedFace objects]}

For each source item, the plugin must pass a dict to finalize containing:
>>> {"filename": [<filename of source frame>],
>>>  "image": [<source image>],
>>>  "detected_faces": [<list of DetectedFace objects]}

For each source item, the plugin must pass a dict to finalize containing:
  
  import logging
  import os
  import traceback
  
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 De-Multiprocess Extract (#871)

* requirements.txt: - Pin opencv to 4.1.1 (fixes cv2-dnn error)

* lib.face_detect.DetectedFace: change LandmarksXY to landmarks_xy. Add left, right, top, bottom attributes

* lib.model.session: Session manager for loading models into different graphs (for Nvidia + CPU)

* plugins.extract._base: New parent class for all extract plugins

* plugins.extract.pipeline. Remove MultiProcessing. Dynamically limit batchsize for Nvidia cards. Remove loglevel input

* S3FD + FAN plugins. Standardise to Keras version for all backends

* Standardize all extract plugins to new threaded codebase

* Documentation. Start implementing Numpy style docstrings for Sphinx Documentation

* Remove s3fd_amd. Change convert OTF to expect DetectedFace object

* faces_detect - clean up and documentation

* Remove PoolProcess

* Migrate manual tool to new extract workflow

* Remove AMD specific extractor code from cli and plugins

* Sort tool to new extract workflow

* Remove multiprocessing from project

* Remove multiprocessing queues from QueueManager

* Remove multiprocessing support from logger

* Move face_filter to new extraction pipeline

* Alignments landmarksXY > landmarks_xy and legacy handling

* Intercept get_backend for sphinx doc build

# Add Sphinx documentation 
plugins/extract/align/_base.py