Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

curved line detection

$
0
0
I'm using OpenCV (in Java) to implement curved line detection, to detection a curve like the yellow one in this image. I do not know how. Help. original image
![image description](/upfiles/14466163932153115.jpg)


detection curve line
![image description](/upfiles/14466138902716003.jpg)
MatOfInt4 lines = new MatOfInt4(); Imgproc.HoughLinesP(mat, lines, 1, Math.PI / 180, 20, 15, 10); for (int i = 0; i < lines.cols(); i++) { double[] l = lines.get(0, i); Point startPoint = new Point(l[0], l[1]); Point endPoint = new Point(l[2], l[3]); Core.line(mat, startPoint, endPoint, new Scalar(255, 0, 255), 1); }

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>