          self.last_move = (pt_x, pt_y)
  
      def update_landmarks(self):
          """ Update the landmarks """
          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]
          alignment = detected_face.to_alignment()
          # Mask will now be incorrect for updated landmarks so delete
          alignment["mask"] = dict()
  
          frame = self.media["frame_id"]
 
</s> remove         updated[0] = min(center[0] - minsize, original[0] - move_x)
        updated[1] = min(center[1] - minsize, original[1] - move_y)
        updated[2] = max(center[0] + minsize, original[2] + move_x)
        updated[3] = max(center[1] + minsize, original[3] + move_y)
 </s> add         updated.x = min(center[0] - (minsize // 2), original.x - move_x)
        updated.y = min(center[1] - (minsize // 2), original.y - move_y)
        updated.w = max(minsize, original.w + move_x)
        updated.h = max(minsize, original.h + move_y) </s> remove         self.media["bounding_box"] = list()
        self.media["bounding_box_orig"] = list()
 </s> add         self.media["bounding_box"] = DetectedFace()
        self.media["bounding_box_orig"] = None </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         extractor = Extractor("manual", "fan", None, multiprocess=True, normalize_method="hist")
 </s> add         extractor = Extractor(None, "fan", None, multiprocess=True, normalize_method="hist") </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)
        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]
          self.last_move = (pt_x, pt_y)
  
      def update_landmarks(self):
          """ Update the landmarks """
        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]
        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]
        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]
        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]
          alignment = detected_face.to_alignment()
          # Mask will now be incorrect for updated landmarks so delete
          alignment["mask"] = dict()
  
          frame = self.media["frame_id"]
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Bugfix - Manual tool. Use new ExtractMedia class 
tools/lib_alignments/jobs_manual.py