Geolocation from aircraft camera

hi guys. I am trying to find an object location from my aircraft cam. I guess it is called geolocalization. I want to give uav_lat, uav_lon, uav_alt, uav_roll, uav_pitch, uav_yaw and also the object position relative to the upper left corner of the frame and it will give me the real word coordinates the object(lat,lon). I read many articles about this but most off them are contain advance math for me and I do not understand them so ı can’t write the code. Can someone help me please?

I think one of the Lua scripts does that, see mount-poi.lua and mount-poi.md.