Reputation: 703
I simply want to find a line in my image and its details like the starting pixel and length.I have looked into many methods but am getting only more and more confused. My image is as simple as
My goal is to detect the line and draw something like a ball or square on it. I am using openCV and trying to do this on android.
Upvotes: 1
Views: 289
Reputation: 14043
You could use OpenCV Contours to segment the line and
Use boundingRect to find the staring and end points of line
Use arcLength to find the length of line
Upvotes: 1