A simple calculator will do. Measure one in the photo, get the ratio of the photo size to the real size, apply that ratio to a measurement of the other object. This assumes that the surface you are measuring of both objects is the same distance from the camera.
--Chris