How to Extract track information with OpenCV?
Hi,I just need your help. We're preparing for Robocon 2016. according to the rules,our automatic robot need to move down the white line(It is about 3cm in width) We have thresholded the image. Next ,I want to extract the "middle line" to control our robot. So,How to extract it? Some people scan image row by row,find the left edge and right edge.add and divide them by 2. However,It isn't wise when the line is horizontal. How should I do ?Is there some good functions to extract "middle line" and save it in array or other container?
You can check the answer here How do I detect the centerline of an object might be helpful.
Thank you !It's very efficent!