Assuming I know the distance between camera and the object. How do I know what each pixel width corresponds to in real life in real world measurement (such as cm/mm).
For a NxM resolution image with focal length of x mm. For a planar object (assume a square) at distance D from the camera, how do I measure the square width in millimeters or cm after doing camera calibration. Also, how do I find what a pixel width corresponds to in real world width (cm/mm)
Can someone explain the procedure and algorithm in detail for the calibration procedure to obtain this?