Hello!
I’m relatively new to the OpenCV library, but I have a good amount of programming experience with Python. I’m running the example code from this website here, trying to use the Hough Line Transform:
https://docs.opencv.org/master/d6/d10/tutorial_py_houghlines.html
and changed the directory for the example image to my own photo, and I have made sure that it is the right path. However, when I run the code, I get an error:
File houghes_transform.py, line 9, in
for line in lines:
TypeError: ‘NoneType’ object is not iterable
I know that typically, this ‘NoneType’ error involves an invalid image path or a problem reading the picture, but I don’t think it’s either one of those. If anyone has an idea as to what this means, I would greatly appreciate it.
Thanks!