kyle, i used your idea and got accuracy to within about 2 inches even at an angle

I found that distance is inversely proportional to height of the bounding rectangle in pixels. d = about 15000/h, if anyone wants to know. That's also very close to nick's idea, which is 14,720 / width.