      # 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
      mat_align_eyes = align_eyes(umeyama_landmarks, size)
  
      # Extend the 2x3 transform matrices to 3x3 so we can multiply them
 
</s> remove     # 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)
 </s> add     # 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)
 </s> remove     mat_align_eyes = align_eyes(umeyama_landmarks, size)
 </s> add     mat_align_eyes = func_align_eyes(umeyama_landmarks, size)
 </s> remove     landmarks = numpy.matrix(face.landmarks_as_xy())
 </s> add     landmarks = np.matrix(face.landmarks_as_xy())
 </s> remove     mat_umeyama = numpy.matrix(mat_umeyama)
 </s> add     mat_umeyama = np.matrix(mat_umeyama)
 </s> remove     mat_align_eyes = numpy.matrix(mat_align_eyes)
 </s> add     mat_align_eyes = np.matrix(mat_align_eyes)

    umeyama_landmarks = cv2.transform(  # pylint: disable=no-member
        landmarks,
        mat_umeyama,
        landmarks.shape)

      # 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(  # pylint: disable=no-member
        landmarks,
        mat_umeyama,
        landmarks.shape)
  
      # Determine a rotation matrix to align eyes horizontally
      mat_align_eyes = align_eyes(umeyama_landmarks, size)
  
      # Extend the 2x3 transform matrices to 3x3 so we can multiply them
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