Hello sir,
if i am not mistaken, to compute the real world height, we also need the distance from which the photo have bin taken(or some kind of coordinatesin camera space or world reference). Or do you mean you want the height on the picture(in pixel of the table)??
In either case i have some experience with computer vision and i can help you!!
sincerely yours,
ArmandMoutchiho