Hello,
Basically you need to know the fairly accurate distance between the camera and the object and the angle to the top of object from camera lens. Then you can use simple trigonometry to compute the height. See this[
^] article or this[
^] or this[
^] for more details.
Regards,