              if load_queue.shutdown.is_set():
                  logger.debug("Reload Queue: Stop signal received. Terminating")
                  break
              logger.trace("Reloading image: '%s'", filename)
              detect_item = detected_faces.pop(filename, None)
              if not detect_item:
                  logger.warning("Couldn't find faces for: %s", filename)
                  continue
              detect_item["image"] = image
              load_queue.put(detect_item)
          load_queue.put("EOF")
 
</s> remove             detect_item["image"] = image
            load_queue.put(detect_item)
 </s> add             extract_media.set_image(image)
            load_queue.put(extract_media) </s> remove             item = {"filename": filename,
                    "image": image[..., :3]}
 </s> add             item = ExtractMedia(filename, image[..., :3]) </s> remove             if not item["detected_faces"]:
 </s> add             if not item.detected_faces: </s> remove             if not item["detected_faces"]:
 </s> add             if not item.detected_faces: </s> remove             Dictionary of detected_faces with the filename as its key and a list of
            :class:`lib.faces_detect.DetectedFace` as the values for pairing with reloaded images.
 </s> add             Dictionary of :class:`plugins.extract.pipeline.ExtractMedia` with the filename as the
            key for repopulating the image attribute.
            extract_media = detected_faces.pop(filename, None)
            if not extract_media:
              if load_queue.shutdown.is_set():
                  logger.debug("Reload Queue: Stop signal received. Terminating")
                  break
              logger.trace("Reloading image: '%s'", filename)
            extract_media = detected_faces.pop(filename, None)
            if not extract_media:
            extract_media = detected_faces.pop(filename, None)
            if not extract_media:
                  logger.warning("Couldn't find faces for: %s", filename)
                  continue
              detect_item["image"] = image
              load_queue.put(detect_item)
          load_queue.put("EOF")
keep keep keep keep replace replace keep keep keep keep keep
 plugins.extract - Create ExtractMedia class for pipeline flow
Bugfix - Fix memory leak in extract 
scripts/extract.py