How to establish fixed points in a part of a video to obtain angles?

I want to set the points to get the degrees between the points, which rotate. For example in a video where I have my knee, establish a point on the thigh and another on the ankle, and when it is in motion, tell me the degrees between the two (in the knee). With what tool can I do it? Is there something in python that works for me?