项目场景:
使用OpenMv IDE时遇到的一个问题
问题描述:
Attributeerror: 'module 'obiect has no attribute 'find blobs"
原因分析:
属性错误:模块“obiect”没有找到属性“find blobs”
解决方案:
这里是我当时写的代码
for blobs in image.find_blobs(thresholds, pixels_threshold=200, area_threshold=200, merge=False):
猜测原因是因为python版本升级,函数名称已有改变!所以只需要将image.find_blobs改为img.find_blobs即可!如下:
for blobs in img.find_blobs(thresholds, pixels_threshold=200, area_threshold=200, merge=False):
解决方法参考一位大佬的文章成功解决AttributeError: module ‘string’ has no attribute ‘find’