the image attached is the output of Hough Transform of Opencv 2.4.2
Could you please advise me with the best algorithm to detect the best Quadrilateral (not always rectangular) shape from these line segments
even though some corners will reside outside the image boundaries, I still need to detect them
Many Thanks
Without having time to actually try this, I could image something like this:
The running time of this depends a lot on the number of detected lines and the number of sets of parallel lines. You could improve a bit by considering only lines with a minimum length, playing with the threshold for which lines are considered parallel, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With