直接运行报以下错误
module 'cv2' has no attribute 'estimateRigidTransform' #222
- 1
因为安装的open-python是最新版的,estimateRigidTransform已经更改成estimateAffinePartial2D,所以追踪到错误代码行,把函数改成最新版本函数即可使用,如下
mat_ = cv2.estimateAffinePartial2D(org_pts, target_pts, True)[0]
- 1
运行程序即可使用。