          """ Finalize the output from Detector
  
          This should be called as the final task of each ``plugin``.
  
          It strips unneeded items from the :attr:`batch` ``dict`` and performs standard final
          processing on each item
  
          Outputs items in the format:
  
          >>> {'image': [<original frame>],
          >>>  'filename': [<frame filename>),
          >>>  'detected_faces': [<lib.faces_detect.DetectedFace objects>]}
  
  
          Parameters
          ----------
          batch : dict
              The final ``dict`` from the `plugin` process. It must contain the keys ``image``,
              ``filename``, ``faces``
 
</s> remove         It strips unneeded items from the :attr:`batch` ``dict`` and pairs the detected faces back
        up with their original frame before yielding each frame.

        Outputs items in the format:

        >>> {'image': [<original frame>],
        >>>  'filename': [<frame filename>),
        >>>  'detected_faces': [<lib.faces_detect.DetectedFace objects>]}
 </s> add         Pairs the detected faces back up with their original frame before yielding each frame. </s> remove         It strips unneeded items from the :attr:`batch` ``dict`` and pairs the detected faces back
        up with their original frame before yielding each frame.

        Outputs items in the format:

        >>> {'image': [<original frame>],
        >>>  'filename': [<frame filename>),
        >>>  'detected_faces': [<lib.faces_detect.DetectedFace objects>]}
 </s> add         Pairs the detected faces back up with their original frame before yielding each frame. </s> remove             The final ``dict`` from the `plugin` process. It must contain the keys ``image``,
            ``filename``, ``faces``
 </s> add             The final ``dict`` from the `plugin` process. It must contain the keys  ``filename``,
            ``faces`` </s> remove             ``detected_faces``, ``filename``, ``image``
 </s> add             ``detected_faces``, ``filename`` </s> remove             ``detected_faces``, ``landmarks``, ``filename``, ``image``
 </s> add             ``detected_faces``, ``landmarks``, ``filename``
          """ Finalize the output from Detector
  
          This should be called as the final task of each ``plugin``.
  










          Parameters
          ----------
          batch : dict
              The final ``dict`` from the `plugin` process. It must contain the keys ``image``,
              ``filename``, ``faces``
keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 plugins.extract - Create ExtractMedia class for pipeline flow
Bugfix - Fix memory leak in extract 
plugins/extract/detect/_base.py