Ask Your Question
0

How can I detect the mid-field line over the soccer field images ?

asked 2014-07-01 13:25:57 -0600

erogol gravatar image

image description

Given the similar soccer field image, First, I need to detect the midfield line and more the merrier, I would like to learn the image projection for making the midfield line orthogonal evading the perfective distorion as if I am directly looking to the mid-field.

How can I apply those with OpenCV library?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-07-01 15:49:19 -0600

Witek gravatar image

For line detection, try adaptiveThreshold and then find lines with HoughLines. For perspective correction, you need to mark 4 points which relative real-world location you know and calculate homography. Finding 4 corners of half of the football field or the goal area would be good enough, but with this angle of view it will be quite unreliable.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-07-01 13:25:57 -0600

Seen: 2,285 times

Last updated: Jul 01 '14