Questions tagged [straight-line-detection]

67 questions
2
votes
1 answer

OpenCV detecting TV screen using camera

I am using an iPhone camera to detect a TV screen. My current approach is to compare subsequent frames pixel by pixel and keep track of cumulative differences. The result is binary a image as shown in image. For me this looks like a rectangle but…
2
votes
3 answers

Is there any algorithm for finding LINES by PIXEL COLORS on picture?

So I have Image like this (source: de-viz.ru) I want to get something like this (I hevent drawn all lines I want but I hope you can get my idea) (source: narod.ru) I need algorithm for finding all straight lines on it by just reading colors of…
Rella
  • 65,003
  • 109
  • 363
  • 636
2
votes
0 answers

How to connect lines after probabilistic Hough transform?

I am trying to find a cross on image. Here are the steps: 1. Canny operator 2. Probabilistic Hough transformation => set of sections - on the image. I want to connect the dotted lines in order to get few long segments. Unfortunately, I didn't find…
1
vote
1 answer

How can I combine HoughlinesP coordinates for a single line in OpenCV Python?

I'm using cv2.HoughlinesP to find the coordinates for each line in a document image. I'm getting 2 line coordinates when using HoughlinesP when there is only 1 line. How can I combine these two coordinates or treat them as if they are for the same…
1
vote
1 answer

Extract lines from image with python

I need to extract path/lines from an image. I apply laplacian filter to this input. In laplacian filtered image, the lines to be extracted can be seen as low value pixels connected to form a linear object with high value pixels forming its border…
Rathee
  • 13
  • 1
  • 4
1
vote
0 answers

How to find intersection of lines with opencv

In this picture, I try to fin intersection points between the long white lines between racing lanes and the short perpendicular ones So to automaticaly obtain the black points as materialized below enter image description here Here is my…
1
vote
1 answer

I have using opencv python form converting the analog clock to a digital data for the hours and minutes but I need it to show for seconds too

I have ued opencv to read the image , convert it to gray scale, and found edges using canny, kernel, thesh, erode and so on and i have detected all the lines in the image using HooughLineP() and i have detected the hours and minutes hand but i also…
Ajay
  • 55
  • 10
1
vote
0 answers

Hough Transform algorithm for pattern recognition of straigth lines form points

Hello everyone, I'm currently working on different algorithms which could give me the patterns of straight lines within groups of aligned cells. Let me explain: Suppouse we have a XY plane which is 200(x) per 30(y). I'm given a bunch of points which…
1
vote
1 answer

Hough transformation calculation

hough transformation using the normal equation of a line. For calculating the value of r while keeping the values of x and y same for different θ the following formula is used. r = sin(θ)y + cos(θ)x But the results are not the same as shown in the…
1
vote
1 answer

How to detect straight lines on grayscale images?

I have some grayscale image,one of which is shown following: This image is like a “disk” which contains a lot of noise in the non-black area. I want to detect the line in it. The line is easy to be seen by eyes but quite difficult to be seen by…
1
vote
1 answer

How to detect all the separation lines in image in xamarin or c# or python?

I need to detect all the lines (edges) in an image an their positions in my xamarin application . like in the image attached . I have tried openCV in python but still I did not get all the lines , I only got boundary boxes around the objects and…
1
vote
0 answers

Finding out number of straight lines and curves in a given edge (canny or sobel) image

I have tried the Hough algorithm for straight lines, but it only detects outermost frame of image (most of the time as square). All the internal information is left out. I actually want to count(store result) straight lines and curves in an given…
Azhar
  • 29
  • 5
1
vote
0 answers

How to identify lines, starting point and ending point of each line in a floor plan using opencv?

I am creating a tool to generate 3d model of a house by analyzing its floor plan. Up to now i was able to isolate all the wall of a floor plan. Original Floor Plan :- Isolated Walls :- Then I tried applying hough transformation to identify lines…
Nilupul Sandeepa
  • 748
  • 6
  • 20
1
vote
0 answers

Football field line detection

I wanted to create a model which can detect penalty area field lines. I managed to get desirable results for one specific image by changing some hyperparamaters, but the same code doesn't work for another image. i.e. the code is quite specific for…
1
vote
0 answers

What is the most robust way to detect projected rectangular regions in images?

IOS 11 includes a document scanner and uses the internal class VNDetectRectanglesRequests to find the four corners of a rectangle in an image. That is the first step for further processing like warping the projected rectangle to get a straight image…