I have the following code: (this is the variable red_circles) Currently when i try use (if red_circles is None) this does not work.. i’m guessing the program throws an error if circles is none however i put the code inside a try, except commands. Any help will be very much appreciated. EDIT: I have added the full code to the
Tag: hough-transform
Hough Transform for equilateral triangles detection
I have a homework where I have to implement hough transform for equilateral triangles detection: The trianlges edges are of length L, so this means all the trianlges in the image are the same. What did I do? first i used canny edge detector to get the edges in the image. now i have to find a way to parameterize
How to merge lines after HoughLinesP?
My task is to find coordinates of lines (startX, startY, endX, endY) and rectangles (4 lines). Here is input file: I use the next code: I get the next results: From the last image you can see big amount of small red lines. Questions: What is the best way to merge small lines? Why there are a lot of small