Insightface: why use skimage.transform for similarity transform

Created on 30 May 2018  路  2Comments  路  Source: deepinsight/insightface

I noticed the following code:

  tform = trans.SimilarityTransform()
  tform.estimate(dst, src)
  M = tform.params[0:2,:]
  #M = cv2.estimateRigidTransform( dst.reshape(1,5,2), src.reshape(1,5,2), False)

I looks like originally the transform M is estimated with opencv estimateRigidTransform, it may return None for bad data, is this the only reason to switch to skimage.transform.SimilarityTransform()?

Most helpful comment

version in cv2 is not robust. Do you have any other source to use other than skimage?

All 2 comments

version in cv2 is not robust. Do you have any other source to use other than skimage?

version in cv2 is not robust. Do you have any other source to use other than skimage?

Please check out petyr library. It is well suited for the task.

Was this page helpful?
0 / 5 - 0 ratings