This invention discloses a planar target measurement and
correction method and
system based on RGB-D data, comprising: acquiring a scene
RGB image, a depth matrix, and camera intrinsic parameters; selecting a
Region of Interest (ROI) and converting the ROI depth data into a 3D
point cloud using the camera intrinsic parameters; obtaining the target
plane equation through robust
plane fitting and constructing its local orthogonal coordinate
system; establishing an inverse mapping from image pixels to local plane coordinates based on the camera intrinsic parameters, the
plane equation, and the local coordinate
system to generate a corrected image with physical scale information; determining the target to be measured on the corrected image, calculating the pixel
Euclidean distance, converting the pixel distance into the actual physical length based on the scale information of the corrected image, and outputting the measurement result; this invention can overcome the bottlenecks of traditional technologies, achieve high-precision
single measurement, is computationally efficient and easy to operate, significantly improves the user experience, ensures the high quality and authenticity of the corrected image, has a wide range of applications and good device compatibility, and is easy to promote and popularize.