【Debug日记】AttributeError: module ‘cv2‘ has no attribute ‘createThinPlateSplineShapeTransformer‘
解决cv2模块AttributeError:createThinPlateSplineShapeTransformer缺失的问题,
最新推荐文章于 2024-01-11 10:20:53 发布
文章讲述了在运行程序时遇到的AttributeError,因为试图使用cv2模块中的createThinPlateSplineShapeTransformer函数,尽管已经安装了opencv-python和opencv-python-contrib,但该函数在4.8.1及以上版本中已被移动。解决方案是将这两个库的版本限制在4.8.0.76以下,以确保函数可用。
1153





