lines = cv2.HoughLines(edges, 1, np.pi / 180, 110)
for line in lines:
TypeError: 'NoneType' object is not iterable

python报错,霍夫变化 'NoneType' object is not iterable,如何解决
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
5条回答 默认 最新
- 於黾 2022-05-12 17:15关注
只要报错信息里出现了NoneType,肯定是你有变量值是None了
具体你这个,报错说None不是可迭代的对象
那肯定就是lines是None了呗本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用 3