Camera coordinates to real world plane coordinates
Hi everyone!
I searched the Internet to find a solution to my specific problem but couldn't find any usable solutions. The problem is: I'm tracking vehicles in a video, and I need to transform the tracked coordinates in a real world plane coordinate system. I just need the (X,Y) coordinate and no height (Z). Via GPS i was able to get some (X,Y) distances from my camera location (0,0) to points in the image:
Pixel coordinate -> world coordinate (in m)
(691, 1045)->(32,27)
(1114, 652)->(234,57)
(427, 680)->(109,83)
(665, 656)->(157,88)
Now my question is: Is it possible to obtain two equations f(x)->X and g(y)->Y where x,y are pixel coordinates and X,Y are real world plane coordinates? And if yes, how?