  #!/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
  
  from lib.align_eyes import FACIAL_LANDMARKS_IDXS
  
  
 
</s> remove # TODO Handle landmark rotation
 </s> add  </s> remove import numpy
 </s> add #!/usr/bin/env python3
""" Aligner for faceswap.py """
 </s> remove import cv2
import numpy as np

from lib.aligner import get_align_mat
from lib.align_eyes import FACIAL_LANDMARKS_IDXS
 </s> add  </s> remove from datetime import datetime
 </s> add  </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
from cv2 import (  # pylint: disable=no-name-in-module
    rectangle, circle, polylines, putText,
    FONT_HERSHEY_DUPLEX, fillPoly, addWeighted)
  #!/usr/bin/env python3
  """ Tools for annotating an input image """
  # TODO Handle landmark rotation
  
from cv2 import (  # pylint: disable=no-name-in-module
    rectangle, circle, polylines, putText,
    FONT_HERSHEY_DUPLEX, fillPoly, addWeighted)
from cv2 import (  # pylint: disable=no-name-in-module
    rectangle, circle, polylines, putText,
    FONT_HERSHEY_DUPLEX, fillPoly, addWeighted)
  from numpy import array, int32, uint8, zeros
  
  from lib.align_eyes import FACIAL_LANDMARKS_IDXS
  
  
keep keep keep keep replace 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