I found this detector very useful for one of my projects and decided to share the code.
You can find original implementation here. It is not like simple edge detectors but designed specially for line detection. As the result you got an array of {x, y} coordinates that represent all available line segments and this opens very large usage opportunities.



Keep on detecting those line segments, Eugene!
Very useful indeed! Thanks! Are you planning to add an asynchronous option for getLineSegments()? With big images it can take a while to calculate.
@Mario yeah u right. it should be added soon!
This better be good. Because I have an idea for this…
what’s the “angle” param meaning? seems to be slowing it down the most.
Looks hot, Eugene. Between you and Mario, I’m sure something very cool will come of this.