# Detect lines with Hough transform

**URL:** <https://discourse.julialang.org/t/detect-lines-with-hough-transform/49307>\
**Category:** General Usage\
**Tags:** question, images\
**Created:** [October 30, 2020, 1:52pm UTC](https://discourse.julialang.org/t/detect-lines-with-hough-transform/49307 "2020-10-30T13:52:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [October 30, 2020, 2:39pm UTC](https://discourse.julialang.org/t/detect-lines-with-hough-transform/49307/4 "2020-10-30T14:39:00Z")

</div>

OK, after playing around with it more I found out that `vote_threshold` has little effect if any, and `stepsize` makes the biggest difference. Here’s a run with some results:

```julia
julia> hough_transform_standard(tf, max_linecount = 3, stepsize = 2)
3-element Array{Tuple{Float64,Float64},1}:
 (1059.0, 0.6204604563369107)
 (1053.0, 0.6286459504838356)
 (1059.0, 0.6253717528250656)

```

Although I’m not entirely sure if that’s what I want… I’ll try to correlate that to the line’s endpoints.

---

_[View the full topic](https://discourse.julialang.org/t/detect-lines-with-hough-transform/49307)._
