Detect straight lines in the image

Easy to do with OpenCV

Hough transform

line is
returned as an array of (p, θ).

(p = xcosθ + ysinθ)

Stochastic Hough transform

The result is returned as an array of start and end points.
Let’s use it while adjusting the Threshold of the 4th argument.

🐣

I’m a freelance engineer.
Work consultation
Please feel free to contact us with a brief development description.
rockyshikoku@gmail.com

I am making an app that uses Core ML and ARKit.
We send machine learning / AR related information.

GitHub

Twitter
Medium

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store