      # Extend the 2x3 transform matrices to 3x3 so we can multiply them
      # and combine them as one
      mat_umeyama = numpy.matrix(mat_umeyama)
      mat_umeyama.resize((3, 3))
      mat_align_eyes = numpy.matrix(mat_align_eyes)
      mat_align_eyes.resize((3, 3))
      mat_umeyama[2] = mat_align_eyes[2] = [0, 0, 1]
  
      # Combine the umeyama transform with the extra rotation matrix
      transform_mat = mat_align_eyes * mat_umeyama
 
</s> remove     mat_umeyama = numpy.matrix(mat_umeyama)
 </s> add     mat_umeyama = np.matrix(mat_umeyama)
 </s> remove     mat_align_eyes = align_eyes(umeyama_landmarks, size)
 </s> add     mat_align_eyes = func_align_eyes(umeyama_landmarks, size)
 </s> remove     transform_mat = numpy.delete(transform_mat, 2, 0)
 </s> add     transform_mat = np.delete(transform_mat, 2, 0)
 </s> remove     umeyama_landmarks = cv2.transform(landmarks, mat_umeyama, landmarks.shape)
 </s> add     umeyama_landmarks = cv2.transform(  # pylint: disable=no-member
        landmarks,
        mat_umeyama,
        landmarks.shape)
 </s> remove     landmarks = numpy.matrix(face.landmarks_as_xy())
 </s> add     landmarks = np.matrix(face.landmarks_as_xy())

    mat_align_eyes = np.matrix(mat_align_eyes)

      # Extend the 2x3 transform matrices to 3x3 so we can multiply them
      # and combine them as one
      mat_umeyama = numpy.matrix(mat_umeyama)
      mat_umeyama.resize((3, 3))
    mat_align_eyes = np.matrix(mat_align_eyes)
      mat_align_eyes.resize((3, 3))
      mat_umeyama[2] = mat_align_eyes[2] = [0, 0, 1]
  
      # Combine the umeyama transform with the extra rotation matrix
      transform_mat = mat_align_eyes * mat_umeyama
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 
lib/aligner.py