Python Forum

Full Version: mapping-camera-coordinates-to-a-2d-floor-plan
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After following this blog: https://zbigatron.com/mapping-camera-coo...loor-plan/ there are a couple of things I could do with more support on as there are somethings I'm not entirely clear on.

There is an instruction about obtaining coordinates using gimp? So I think this means when you have an image in gimp and run the mouse over the image the coordinates will appear (somewhere on the screen).
The instruction is to get at least four pairs. Four from the 3d image? And then four corresponding coordinates of the 2d image? I don't understand how you get the four corresponding coordinates unless its an image of a chessboard? Have I got that wrong?

The next thing that isn't clear to me is what the code is supposed to do? Is it ment to spit out a coordinate? It does so when I use print(pointsOut) but how have the example gifs been created?...Perhaps the coordinates the python script generates are then applied back in gimp?

I was hoping to apply a 2d map moving in realtime to an object getting tracked on video. Is this not possible with this blog?