Questions tagged [straight-line-detection]
67 questions
0
votes
0 answers
skimage.morphology does not contain Mediall_axis (python/ image process)
Dears,
my scikit, skimage does not contain medial_axis
Hence I get this below error while running
(python/ image process)
"medial_axis" is not defined
i tried uninstall and install skimage-image using pip install
but it did not work out
[update]
I…

yousef dehghani
- 1
- 1
0
votes
0 answers
Fit a straight line on curve in image with OpenCV
I am trying to detect a straight line on an image containing a not so straight line using OpenCV python.
For example in this image, we can see there is a somewhat horizontal line.
I have tried using Hough lines but only small segments are detected.…

Apo
- 15
- 5
0
votes
0 answers
why the output window cannot display the result. Image processing - line detection
this Hough Transform program is supposed to display the source image, output image, edge detection results windows with images when executed.
However, the output image window is not displaying anything even though the source image and edge detection…

Jyohong
- 1
0
votes
1 answer
Find vertical 1px lines with OpenCV
I have an image something like the image below (on the left):
I want to extract only the pixels in red on the right: the pixels that belong to a 1px vertical line, but not to any thicker line or other region with more than 1 adjacent black pixel.…

Inductiveload
- 6,094
- 4
- 29
- 55
0
votes
1 answer
How to detect a grainy line?
I am trying to detect a grainy printed line on a paper with cv2. I need the angle of the line. I dont have much knowledge in image processing and I only need to detect the line. I tried to play with the parameters but the angle is always detected…

epeq19
- 1
0
votes
0 answers
How can I determine co-ordinates of the lane?
I am using opencv to determine coordinates the lane between two red lines like this:
Lane-detection:
It is not rectangle so I can't use cv2.rectangle to cover on it.
Does everyone have some ideas?

tt hans
- 1
0
votes
1 answer
Line detection issue - OpenCV in Python
I have written the following script with which I aim to detect lines in Gazebo (a simulation environment):
#!/usr/bin/env python
# rospy for the subscriber
import rospy
# ROS Image message
from sensor_msgs.msg import Image
# ROS Image message ->…

Chris Patr
- 5
- 5
0
votes
1 answer
How to detect all the verticle background lines using Probabilistic Hough lines transform?
I'm trying to detect background lines of a pre-processed binary image of a newspaper article using Hough lines transform.
The code I used is given below and it detects only one vertical background line, but I want to detect all the vertical…

Shashiwadana
- 492
- 1
- 8
- 16
0
votes
1 answer
Extract straight lines from a 2D binary matrix
I would like to extract straight lines from a 2D binary matrix.
256x128 matrix
I would to find 1s grouped by neighbor coordinates.
In the attached image, there is a 256x128 binary matrix.
4 straight lines can be extracted from the given…

lotdcotw
- 21
- 3
0
votes
1 answer
How to find multiple horizontal straight lines in a scatter plot using MATLAB?
Hi,
I have a set of points (scatter plot). I am interested in finding multiple (approximately) horizontal straight lines (or clusters) in this data. For example in the image attached, I have drawn straight lines to show the desired result. Number…

Kashif
- 29
- 6
0
votes
2 answers
Plotting a point on straight line
The equation of a line is Y = M.X + C,
I have a point and the points facing angle, So I can work out the line equation
Slop := Tan(Rot) // We are passing radians to convert to gradient
C := (-Slop*X) + Y // Substitute our point XY values
So…

MrClear
- 129
- 1
- 6
0
votes
0 answers
Line Endpoint Detection in OPENCV
I would like to find enpoints of lines in my image and then connect them to fix line breaks. The blue part in the image are the line breaks I would like to fix. The green part is the houghline detected.
I have tried probabilistic hough transform but…

sachet sourav
- 1
- 1
0
votes
1 answer
How to discriminate between lines in CV2 image processing with python?
I am working on a skeletal formula image processor in python as a chemistry project. It is still in its very early stages, but I've been stumped by a problem. When I run the image processing, singular lines are counted as multiple; as multiple lines…

benjdevacc
- 23
- 5
0
votes
0 answers
how to find straight line which passes throught most number of points?
Suppose I have (x,y,z) scattered random points. I want to find a straight line which passes through most number of data points and if many occurs then what is the maximal length of this straight line.
What approach shall I follow to solve this…

ankit agrawal
- 301
- 1
- 14
0
votes
0 answers
what is the simplest/most efficient way of detecting black lines in image?
I have a collection of signal images with
signal as a black line, grid of red lines in the background, and black letters and numbers that are of no importance to me.
I need to extract the black curvy signal line as a time series, and completely…

Rosa
- 155
- 10