Detect straight lines in the image

MLBoy
May 1, 2022

--

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

--

--

MLBoy
MLBoy

No responses yet