  import sys
  import cv2
  import numpy as np
  
  from lib.queue_manager import queue_manager
  from plugins.extract.pipeline import Extractor, ExtractMedia
  from . import Annotate, ExtractedFaces, Frames
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
 
</s> remove from plugins.extract.pipeline import Extractor
 </s> add from plugins.extract.pipeline import Extractor, ExtractMedia </s> remove         self.media["bounding_box"] = [int((pt_x / scale) - width / 2),
                                      int((pt_y / scale) - height / 2),
                                      int((pt_x / scale) + width / 2),
                                      int((pt_y / scale) + height / 2)]
 </s> add         self.media["bounding_box"].x = int((pt_x / scale) - width / 2)
        self.media["bounding_box"].y = int((pt_y / scale) - height / 2)
        self.media["bounding_box"].w = width
        self.media["bounding_box"].h = height </s> remove         # Set the batchsizes to 1
        for plugin_type in ("detect", "align"):
            extractor.set_batchsize(plugin_type, 1)
 </s> add         # Set the batchsize to 1
        extractor.set_batchsize("align", 1) </s> remove         self.queues["in"].put({"image": self.media["image"],
                               "filename": self.media["frame_id"],
                               "manual_face": self.media["bounding_box"]})
        detected_face = next(self.extractor.detected_faces())["detected_faces"][0]
 </s> add         feed = ExtractMedia(self.media["frame_id"],
                            self.media["image"],
                            detected_faces=[self.media["bounding_box"]])
        self.queues["in"].put(feed)
        detected_face = next(self.extractor.detected_faces()).detected_faces[0] </s> remove         extractor = Extractor("manual", "fan", None, multiprocess=True, normalize_method="hist")
 </s> add         extractor = Extractor(None, "fan", None, multiprocess=True, normalize_method="hist")
from lib.faces_detect import DetectedFace
  import sys
  import cv2
  import numpy as np
  
from lib.faces_detect import DetectedFace
  from lib.queue_manager import queue_manager
  from plugins.extract.pipeline import Extractor, ExtractMedia
  from . import Annotate, ExtractedFaces, Frames
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
keep keep keep add keep keep keep keep keep keep
 Bugfix - Manual tool. Use new ExtractMedia class 
tools/lib_alignments/jobs_manual.py