              top_left = [point for point in roi[0].squeeze()[0]]
              top_left = (top_left[0], top_left[1] - 10)
              putText(self.image, str(idx), top_left, FONT_HERSHEY_DUPLEX, 1.0,
                      color, thickness)
              polylines(self.image, roi, True, color, thickness)
  
      def draw_landmarks(self, color_id=3, radius=1):
          """ Draw the facial landmarks """
          color = self.colors[color_id]
          for alignment in self.alignments:
 
</s> remove             top_left = [point for point in roi[0].squeeze()[0]]
 </s> add             top_left = [point for point in roi.squeeze()[0]] </s> remove         for matrix in self.matrices:
            original_roi = self.original_roi(matrix)[0].squeeze()
            top_left, top_right = original_roi[0], original_roi[3]
 </s> add         for face in self.faces:
            top_left, top_right = face.original_roi[0], face.original_roi[3] </s> remove         extracted = self.extracted_faces
        size = extracted.size

        faces = extracted.get_faces_for_frame(frame)

        landmarks_xy = [alignment["landmarksXY"] for alignment in alignments]
        landmarks = [
            {"landmarksXY": aligned}
            for aligned
            in extracted.get_aligned_landmarks_for_frame(frame, landmarks_xy)]

        return FacesDisplay(faces, landmarks, size, self.interface)
 </s> add         faces = self.extracted_faces.get_faces_in_frame(frame)
        landmarks = [{"landmarksXY": face.aligned_landmarks}
                     for face in self.extracted_faces.faces]
        return FacesDisplay(faces,
                            landmarks,
                            self.extracted_faces.size,
                            self.interface) </s> remove         alignments = self.alignments.get_alignments_for_frame(frame)
 </s> add         alignments = self.alignments.get_faces_in_frame(frame) </s> remove         transform_points = AlignerExtract().transform_points
        for idx, face in enumerate(output_item["detected_faces"]):
            dims = output_item["resized_faces"][idx].shape[:2]
            size = dims[0]
            landmarks = transform_points(face.landmarksXY,
                                         output_item["t_mats"][idx],
                                         size,
                                         48)
            for (pos_x, pos_y) in landmarks:
                cv2.circle(output_item["resized_faces"][idx],
                           (pos_x, pos_y), 2, (0, 0, 255), -1)
 </s> add         for face in output_item["detected_faces"]:
            aligned_landmarks = face.aligned_landmarks
            for (pos_x, pos_y) in aligned_landmarks:
                cv2.circle(  # pylint: disable=no-member
                    face.aligned_face,
                    (pos_x, pos_y), 2, (0, 0, 255), -1)
            polylines(self.image, [roi], True, color, thickness)
              top_left = [point for point in roi[0].squeeze()[0]]
              top_left = (top_left[0], top_left[1] - 10)
              putText(self.image, str(idx), top_left, FONT_HERSHEY_DUPLEX, 1.0,
                      color, thickness)
            polylines(self.image, [roi], True, color, thickness)
  
      def draw_landmarks(self, color_id=3, radius=1):
          """ Draw the facial landmarks """
          color = self.colors[color_id]
          for alignment in self.alignments:
keep keep keep keep replace keep keep keep keep keep
 Fix convert-adjust (#531)

* Add dimensions to alignments + refactor

* Add frame_dims + funcs to DetectFaces. Add alignments lib

* Convert Adjust working

* Refactor and tidy up 
tools/lib_alignments/annotate.py