  
      # Convert to matrix
      landmarks = numpy.matrix(face.landmarks_as_xy())
  
      # cv2 expects points to be in the form np.array([ [[x1, y1]], [[x2, y2]], ... ]), we'll expand the dim
      landmarks = numpy.expand_dims(landmarks, axis=1)
  
      # Align the landmarks using umeyama
      umeyama_landmarks = cv2.transform(landmarks, mat_umeyama, landmarks.shape)
  
      # Determine a rotation matrix to align eyes horizontally
 
</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())
 </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     mat_align_eyes = numpy.matrix(mat_align_eyes)
 </s> add     mat_align_eyes = np.matrix(mat_align_eyes)

    # cv2 expects points to be in the form
    # np.array([ [[x1, y1]], [[x2, y2]], ... ]), we'll expand the dim
    landmarks = np.expand_dims(landmarks, axis=1)

  
      # Convert to matrix
      landmarks = numpy.matrix(face.landmarks_as_xy())
  
    # cv2 expects points to be in the form
    # np.array([ [[x1, y1]], [[x2, y2]], ... ]), we'll expand the dim
    landmarks = np.expand_dims(landmarks, axis=1)
    # cv2 expects points to be in the form
    # np.array([ [[x1, y1]], [[x2, y2]], ... ]), we'll expand the dim
    landmarks = np.expand_dims(landmarks, axis=1)
  
      # Align the landmarks using umeyama
      umeyama_landmarks = cv2.transform(landmarks, mat_umeyama, landmarks.shape)
  
      # Determine a rotation matrix to align eyes horizontally
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 
lib/aligner.py