Height Detection Plus Camera Calibration

that works best if the camera parameters also are the same for all pictures.

OP: you might want to show a picture or two.

OpenCV does not contain magic. math itself puts a limit to what you can do.