How easy is it to pull/extract dimensional data of a single image?

I would like to take an image of a boxed shipment or individual part and return the approximate dimensional data.