Object and Camera Placing

I want use tracking the other way round.
I got one image, in this image i got something for tracking, but i already have made a matching object in blender - i just have to align this Object to the photo.
In the image down you see the photo and the intended result.
I did this with an old blender version (maybe 2.48) with an python script, which aligns serveral verts of the object to the optical line from the camera and some empties (every empty is for one vert) - it’s very similar to what is now implemented in Blender in object tracking, but i still didn’t get it, how i can do this.

http://www.forum35.de/img/00153565.jpg