K210 AttributeError: 'Image' object has no attribute 'find_blobs'
时间: 2023-08-22 09:08:11 浏览: 649
出现K210 AttributeError: 'Image' object has no attribute 'find_blobs'的问题可能是由于Python版本升级导致函数名称发生了变化。解决这个问题的方法是将原来的image.find_blobs改为img.find_blobs。具体操作如下所示:
```python
for blobs in img.find_blobs(thresholds, pixels_threshold=200, area_threshold=200, merge=False):
# 在此处处理blobs
```
通过将image替换为img,即可解决该错误。这是因为在K210中,使用img来代表Image对象。这样可以确保代码能够正确调用find_blobs函数。引用提到了这个问题的解决方法,可以参考其中的示例代码进行修改。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Maix Bit 系列心得(3)--- 倒着的图像](https://blog.csdn.net/qq_43328313/article/details/112606610)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Attributeerror: ‘module ‘obiect has no attribute ‘find blobs“解决方法](https://blog.csdn.net/Mr__Jiangxiaobai/article/details/116137672)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [K210(1)解决一些新上手出现的问题](https://blog.csdn.net/qq_41668705/article/details/124688308)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文