Questions tagged [houghlines]

47 questions
1
vote
0 answers

detecting only vertical lines in binary image

I am processing some binary images where I would like to find the boundary lines of the binary images. So, as an example, here is an input image: What I do is use edge detection and line detecting hough transform to get the borders from the image.…
Luca
  • 10,458
  • 24
  • 107
  • 234
1
vote
1 answer

Houghlines not detecting top line of a simple rectangle

I'm stumped. It's a simple white rectangle on a black background. Houghlines can't find the top line. It can find all the others, just not the top. Anyone? https://www.screencast.com/t/bNu4sptcS3a
john k
  • 6,268
  • 4
  • 55
  • 59
0
votes
0 answers

Skimage: trying to find a straight line with Hough_Line

This is my first ever python-project and I am a little stuck. I am trying to detect a straight horizontal line in an image. The image is a black and white picture of a drop on a surface and I want to get the line where the drop meets the surface. I…
0
votes
1 answer

How to detect many very dense long lines with opencv python

I am trying to detect all the very long lines in an image, which also lie very close and dense to each other, as depicted in the attached image. I tried HoughLinesP and HoughLines with simple lines of code of Python OpenCV, but I can not find a good…
Tek
  • 17
  • 3
0
votes
0 answers

How to determine the long of lines in Image

I have two Images where I have to calculate the lines lengths and number in these images.the problem is that the length of the lines is unclear. I need to know how can i calculate the length and Number of the Ridge
0
votes
0 answers

Find and split shelves from an image

I need to find and split each shelves from planogram image. In this case split using blue(it can be black, gray, etc.) lines so it should give me 8 shelves. I tried using Hough lines, contours to recognize the shelf. Tell me, please, how to…
0
votes
0 answers

Efficient Court Detection

I'm trying to find an efficient, non-intensive way to detect tennis court lines. Essentially, a tennis broadcast has static camerawork and the model does not need to be robust like it would for other sports (basket-ball, hockey, etc.). Leveraging…
spazznolo
  • 747
  • 3
  • 9
0
votes
0 answers

Detecting all lines in line-based structure using OpenCV

I've been trying to detect all lines in a line-based structure and I've been falling short. I've learned about the HoughLinesP function, however it doesn't seem to work good enough for more complex images. I've been playing with the parameters and…
MrHowever
  • 63
  • 4
0
votes
2 answers

How to find 4 lines of this white blob with HoughLines?

i am trying to draw 4 lines on every side of the white rectangle using Houghlines method. This is the image i am working on Source image (2592 x 1246 image). import cv2 as cv import numpy as np img = cv.imread("picture_compress.bmp") img_gray =…
0
votes
1 answer

Houghline method of openCV is giving only 1 line as a output

I am using houghLine method for line detection. But it gives only 1 line as an output which is I think is the line with the largest votes. I tried a solution from In opencv using houghlines prints only one line but this is taking a lot of time and…
user14151235
0
votes
0 answers

Detecting the biggest rectangle with thicker lines on grid paper with OpenCV

We are making a game where you can use grid paper to make your own level. The first step was detecting the boundaries of the level, so I made a thicker black border around the level for the edges. This is the image:…
0
votes
0 answers

Need help in visualising the lines with self implemented hough line detector in matlab

I was able to recreate the hough() and houghpeaks() function in Matlab with the following codes, but I am currently struggling to dehough them from parameter space to image space. %%% hough() function corridor =…
yjc
  • 11
  • 3
0
votes
1 answer

Detecting tennis court lines

I try to detect lines on a Tenniscourt. So far used Canny Edge and HoughLines transformation. import cv2 import numpy as np img = cv2.imread('./images/tennis.png') gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) edges =…
simplesystems
  • 839
  • 2
  • 14
  • 28
0
votes
1 answer

In opencv using houghlines prints only one line

I started following some tutorials on opencv and working on houghlines, and noticed that what ever image I give it would only return one line! I use opencv 4.2.0, and my code is: import cv2 import numpy as np image…
Gana016
  • 31
  • 1
  • 9
0
votes
0 answers

OpencCV HoughLines does not find vertical lines

I need to process tables and I decided to use openCV in python. However, at the first stage, I ran into a problem that the program does not find the lines that I am looking for. See the sample code below. import cv2 import numpy as np img =…