Questions tagged [houghlinesp]

This tag should be used only for concerns related to finding lines using Probabilistic Hough Transform. Not to be used for queries regarding Hough Transform alone

In comparison to Hough Transform, the Probabilistic Hough Transform is rather simple and less computation intensive. Hough Transform takes all the points into consideration while finding lines. On the other hand, Probabilistic Hough Transform takes only a random subset of points that is sufficient for line detection

For detailed information, read [THE OPENCV DOC]

64 questions
0
votes
0 answers

Filter out adjacent lines with HoughLinesP

I'm writing a program that takes an image of a bookshelf and tries to separate out the books by using the HoughLinesP method in OpenCV. The method works, and, after some filtering by length and angle, the image below is produced: The next filter I…
Andrew
  • 240
  • 1
  • 3
  • 13
0
votes
0 answers

The cv2.HoughLinesP isn't returning any lines

I am writing a program using opencv with python to run on raspberry pi, i was testing something and when i send an imaged after doing canny with clearly some edges in it to the HoughLinesP method lines = cv2.HoughLinesP( cropped_image, …
0
votes
1 answer

How to detect randomly curved non-continuous fixed colored lines from an image?

I am very new in the python openCV. I wanted to find the 7 fixed colored randomly curved lines from an image. The result should be boolean which will give me if the image contains the 7 fixed colored randomly curved lines or not. The sample input…
Rahul Talole
  • 137
  • 1
  • 2
  • 9
0
votes
1 answer

I need to explain the specific part of the Hough code(opencv/c++)

This part of the Hough Transform is difficult to me. Why the 16-bit(and 15-bit) shift operations, and wondered what the meaning is '-sin'. Original code : https://github.com/opencv/opencv/blob/master/modules/imgproc/src/hough.cpp a =…
0
votes
1 answer

houghlinesp and thresholding

I am using opencv Houghlinesp to detect lines in a parking lot. Here is the source image When I did a hough transform-p to detect the lines, I got final image like this. It did detect empty spaces. Any ideas how these noisy lines on top of the cars…
Balaji
  • 201
  • 2
  • 12
0
votes
0 answers

How to find each edge and lines with HoughLinesP() in OpenCV and Python?

So, I have been trying to detect edges using the HoughLinesP() but instead of getting the accurate lines and their end points, my output is kind of lacking from what I need. image = cv2.imread('C:\\Users\\Jimit\\Desktop\\Project\\Original…
Jimit Vaghela
  • 768
  • 1
  • 8
  • 31
0
votes
1 answer

OpenCV Python measuring distance with HoughLinesP() algorithm to determine water level

I'm trying to measure water level in a glass channel using OpenCV and Python. I've decided to use HaughLines in a selected ROI and find the midpoints of the said lines so I can calculate the difference between the ones that I want and multiply it…
0
votes
1 answer

OpenCV Python: Detecting lines only in ROI

I'd like to detect lines inside a region of interest. My output image should display the original image and the detected lines in the selected ROI. So far it has not been a problem to find lines in the original image or select a ROI but finding…
Philipp
  • 323
  • 4
  • 19
0
votes
0 answers

Generalized hough transform for center of an object calculation based of SIFT points?

Do You have any suggestion for this? I am following the steps in one research paper to re-implement it for my specific problem. I am not a professional programmer, however, I am struggling a lot, more than one month.When I am reaching to scoring…
S.EB
  • 1,966
  • 4
  • 29
  • 54
0
votes
1 answer

HoughLinesP generates an empty image

I'm developing an app which uses OMR (Optical mark recognize) to read bubblesheets, I'm using the OpenCV API but I'm having some troubles with HoughLinesP, when I use it that returns an empty image to me. I used the function of Android, Log.e, to…
Murilo Pereira
  • 109
  • 2
  • 14
0
votes
0 answers

Qt, Opencv, C++ - How to find Hough Lines only for transmission lines in a PCB?

I have written a code for finding Hough Lines for transmission lines in a PCB. My code: void MainWindow::houghline() { Canny( image, image_output, ui->slider_threshold_canny_1->value(), ui->slider_threshold_canny_2->value(), 3…
0
votes
1 answer

Value Error float NAN to integer Hough Lines

I have read few articles and saw videos of Lane Detection and thus decided to learn how it works I'm completely new to OpenCV so kindly forgive me for dumb Doubts. I took Udacity Opensource Project to develop Lane Detection,but I'm not able to…
vidit02100
  • 153
  • 13
0
votes
1 answer

Lane Detection tuple error hough_lines OpenCv

I have been working on LaneDetection learning from sentdex from his YouTube channel stating PYTHON PLAYS GTA V series. Ahead I want to apply my own Lane Detection code but I encounter tuple error I am new to OpenCV and thus failing to grasp the…
vidit02100
  • 153
  • 13
0
votes
0 answers

how to find coordinates after using Houghlinep function in opencv

Hi guys i'm new to OpenCV. I'm using opencv to remove lines and get removed coordinates from image. I'm using HoughlineP like this Mat src = imread("F:/003-00.jpg", IMREAD_GRAYSCALE); Mat bw; blur(src, bw, Size(3, 3)); pyrDown(bw,…
Hoang Vu Kim
  • 41
  • 1
  • 3
0
votes
0 answers

How to improve detection of Probalistic Hough-Lines-Transform?

I'm trying to detect a clock hand in a video of an analogue display and extract the value it points to. I'm using Python with OpenCV for this. What I essentially do is: I'm using a Gaussian Blur to lower the noise in the current image. I use Canny…
Yggdrasill
  • 166
  • 1
  • 3
  • 16