          This method should be overridden at the `<plugin_type>` level (IE.
          :mod:`plugins.extract.detect._base` or :mod:`plugins.extract.align._base`) and should not
          be overridden within plugins themselves.
  
          Get items from the queue in batches of :attr:`batchsize`
  
          Parameters
          ----------
          queue : queue.Queue()
              The ``queue`` that the batch will be fed from. This will be the input to the plugin.
 
</s> remove         :mod:`plugins.extract.detect._base` or :mod:`plugins.extract.align._base`) and should not
        be overridden within plugins themselves.
 </s> add         :mod:`plugins.extract.detect._base`, :mod:`plugins.extract.align._base` or
        :mod:`plugins.extract.mask._base`) and should not be overridden within plugins themselves. </s> remove         :mod:`plugins.extract.detect._base` or :mod:`plugins.extract.align._base`) and should not
        be overridden within plugins themselves.
 </s> add         :mod:`plugins.extract.detect._base`, :mod:`plugins.extract.align._base` or
        :mod:`plugins.extract.mask._base`) and should not be overridden within plugins themselves. </s> remove         The input queue is the entry point into the extraction pipeline. A ``dict`` should
        be put to the queue in the following format(s):

        For detect/single phase operations:

        >>> {'filename': <path to the source image that is to be extracted from>,
        >>>  'image': <the source image as a numpy.ndarray in BGR color format>}

        For align (2nd pass operations):
 </s> add         The input queue is the entry point into the extraction pipeline. An :class:`ExtractMedia`
        object should be put to the queue. </s> remove         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>]}


 </s> add 
        Get :class:`~plugins.extract.pipeline.ExtractMedia` items from the queue in batches of
        :attr:`batchsize`
          This method should be overridden at the `<plugin_type>` level (IE.
          :mod:`plugins.extract.detect._base` or :mod:`plugins.extract.align._base`) and should not
          be overridden within plugins themselves.
  
        Get :class:`~plugins.extract.pipeline.ExtractMedia` items from the queue in batches of
        :attr:`batchsize`
  
          Parameters
          ----------
          queue : queue.Queue()
              The ``queue`` that the batch will be fed from. This will be the input to the plugin.
keep keep keep keep replace keep keep keep keep keep
 plugins.extract - Create ExtractMedia class for pipeline flow
Bugfix - Fix memory leak in extract 
plugins/extract/_base.py