The invention discloses a box calibration and bottom
surface distance measurement compensation method and
system based on the technical field of measurement, and the compensation method comprises the following steps: selecting a placement position of a box as a
standard position, and determining a
reference surface standard distance measurement value and a bottom surface
standard distance measurement value of the box at the
standard position; collecting coordinate data of the
reference surface of the to-be-detected box body, and recording the coordinate data as first coordinate data; collecting coordinate data of the bottom surface of the to-be-detected box body, and recording the coordinate data as second coordinate data; calculating a normal vector on the
reference surface, and calculating a theoretical
distance measurement value of the bottom surface of the to-be-measured box body in combination with the first coordinate data and the second coordinate data; and calculating a deviation value of the corresponding measuring point according to the theoretical
distance measurement value of the bottom surface, wherein the deviation value is used for calculating the profile tolerance and the flatness of the to-be-measured box body. According to the calibration and compensation method provided by the invention, non-relative measurement is realized, and the
measurement precision is improved; the device can be applied to online detection, is combined with non-contact measurement, is high in efficiency, and does not affect the production takt of a
production line.