Given the similar soccer field image, First, I need to detect the midfield line (as I superimposed above) 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 ideas? Any suggested method or code example is useful.
Currently I am detecting the sift features ans try to find a orthogonal line fitting best among the features assuming most of the feature detection coming from the field lines. This works good for some scenes but nor for all.