Questions tagged [houghlines]

47 questions
0
votes
1 answer

How to increase the size of the line to be searched in an image in opencv houghlines method?

I have a floorplan image. Through opencv houghlines method I want to identify the walls in it. Since the size of the lines of walls is larger than the lines in objects in the image, I want to increase the size of the line to be searched. Generally,…
nirmal6353
  • 17
  • 7
0
votes
1 answer

Transform Plates into Horizontal Using Hough transform

I am trying to transform images that are not horizontal, because they may be slanted. It turns out that when testing 2 images, this photo that is horizontal, and this one that is not. It gives me good results with the horizontal photo, however when…
0
votes
0 answers

How can I draw only one accurate line using Hough Transform in MATLAB?

I'm trying to draw a red line on an image, which is a microscope image of a glass slice. I could already find the edge and draw a small line on a part of it, but I couldn't draw it along the whole image. If I have a group of lines from the Hough…
0
votes
0 answers

HoughLinesP not detecting simple edges

I've been struggling with a program to get an anki Vector robot to follow lines on the ground. I've got the problem down to the fact that HoughLinesP won't detect two simple lines (see edges.jpg generated by code). I've cut the program down to…
Geo
  • 11
  • 3
0
votes
0 answers

How can i block wrong lines into houghspace

I found hough line implemantation in github. And I try this code my computer. When I plot hough space with matplot, there is build-up at shown in picture. This cause wrong lines detection in image. def hough_line(img, angle_step=1,…
0
votes
0 answers

How to get the co-ordinates of the line with openCv in python

I am trying to get the actual coordinates of the lines after applying hough line method in OpenCV for detecting lines. By co-ordinates, I meant the endpoints of lines. This is the code I have used for detecting lines in opencv - import cv2 import…
0
votes
0 answers

Detecting Hough Lines that are the farthest from each other?

I am working on detecting a sheet from an image. Currently, detecting its edges and drawing Hough lines is very successful. But, for the sake of generalization and expanding, I need to set the threshold low, which results in a lot of unnecessary…
0
votes
1 answer

Hough Line only writes 1 line in python with OpenCV and Numpy

I'm learning to use HoughLines() with Python, OpenCV, and numpy. I use the following image: And i'm trying to detect all of the lines, not just the thickest lines. Here is the result: And here is my code: import cv2 import numpy as np import…
j_allen_morris
  • 559
  • 2
  • 11
  • 26
0
votes
1 answer

c++, opecv: HoughLines() doesn't receive the values passed by trackbars

I'm supposed to detect the two white lines of the road with the function HoughLines. I use three trackbars in order to find the best parameters to detect ONLY the two white lines of the road. I have tried this: (the problem is that it looks like…
0
votes
1 answer

Python Hough Lines implementation, making it time efficient

So I'm trying to implement the hough transform lines algorithm in python, and I'm finding it hard to make it time efficient. This is my implementation: import numpy as np def houghLines(edges, dTheta, threshold): imageShape = edges.shape …
Cristian Desivo
  • 175
  • 1
  • 3
  • 15
0
votes
0 answers

Matching lines in the same image

I used Hough transform in the same image to obtain more lines of the same images. Now I want to match these lines to have, at the end, a few lines that identify my target.
0
votes
1 answer

Cartesian coordinates in Houghlines

Why can't we use Cartesian coordinates(x,y) instead of polar coordinates(r,theta) in Houghlines transformations ? Can any one clarify?
0
votes
0 answers

Detecting lines in an image using OpenCV with Python

[Updated The Question at the End] I'm trying to detect a design pattern of simple geometrical shapes in a 640x480 image. I have divided the image in 32x32 blocks and checking in which block each shape's center lies. Based on this calculation I…
Muhammad Abdullah
  • 876
  • 2
  • 8
  • 26
0
votes
1 answer

OpenCV HoughLine only detect one line in image

I am following the docs/tutorial of openCV to detect lines in image. However, I only got one out of the four similar lines in the image. Here is the result And here is my code: Mat im =…
Gin
  • 55
  • 7
-1
votes
1 answer

How can i average a series of parallel lines into a single thick line?

Im a student and im trying to do lane detection on an image using python language. Using Canny edge detection and Hough line transformation, i was succesful to detetct the lines in roads. But a single laneline is detected by many lines like…
SaFaL
  • 31
  • 6