  #!/usr/bin/env python3
  """ Tools for annotating an input image """
  # TODO Handle landmark rotation
  
  from cv2 import (rectangle, circle, polylines, putText,
                   FONT_HERSHEY_DUPLEX, fillPoly, addWeighted)
  from numpy import array, int32, uint8, zeros
  
 
</s> remove from cv2 import (rectangle, circle, polylines, putText,
                 FONT_HERSHEY_DUPLEX, fillPoly, addWeighted)
 </s> add from cv2 import (  # pylint: disable=no-name-in-module
    rectangle, circle, polylines, putText,
    FONT_HERSHEY_DUPLEX, fillPoly, addWeighted) </s> remove import numpy
 </s> add #!/usr/bin/env python3
""" Aligner for faceswap.py """
 </s> remove # Based on the original https://www.reddit.com/r/deepfakes/ code sample
# Adjust code made by https://github.com/yangchen8710
 </s> add #!/usr/bin/env python3
""" Adjust converter for faceswap.py

    Based on the original https://www.reddit.com/r/deepfakes/ code sample
    Adjust code made by https://github.com/yangchen8710 """ </s> remove from dlib import rectangle as d_rectangle
 </s> add from dlib import rectangle as d_rectangle  # pylint: disable=no-name-in-module
from lib.aligner import Extract as AlignerExtract, get_align_mat </s> remove from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort, Spatial)
 </s> add from .lib_alignments import (AlignmentData, Check, Draw, Extract, Legacy,
                             Manual, Reformat, RemoveAlignments, Sort, Spatial)
  #!/usr/bin/env python3
  """ Tools for annotating an input image """

  
  from cv2 import (rectangle, circle, polylines, putText,
                   FONT_HERSHEY_DUPLEX, fillPoly, addWeighted)
  from numpy import array, int32, uint8, zeros
  
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