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?