Ask Your Question
0

How to Extract track information with OpenCV?

asked Sep 7 '15

Robot_Lee gravatar image

image description image description 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?

Preview: (hide)

Comments

1

You can check the answer here How do I detect the centerline of an object might be helpful.

Haris gravatar imageHaris (Sep 7 '15)edit

Thank you !It's very efficent!

Robot_Lee gravatar imageRobot_Lee (Sep 8 '15)edit

1 answer

Sort by » oldest newest most voted
0

answered Sep 9 '15

Haris gravatar image

Glad to know it helped you :).

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Sep 7 '15

Seen: 1,059 times

Last updated: Sep 06 '15