This is a very good tool! I ported it to python3 (only changed print statements lol) and it worked. I did not know it was that easy to make interactive visualizations on Mac. I am planning to extend it to use the best parameters for Hough transform. I think your approach will be even more useful for that because there are so many parameters such as rho, vote count, minimum and maximum segment lengths etc. Thanks for sharing your code!