This invention provides a method for measuring the bore
caliber of a
gun barrel. The specific process is as follows: Based on the inner wall contour image of a standard ring gauge, a three-dimensional
laser point cloud of the standard ring gauge is obtained; a point P is randomly selected in the three-dimensional
laser point cloud, and multiple planes containing point P are created to intersect the three-dimensional
laser point cloud; for each intersecting elliptical cross-section, the point with the largest distance from point P is selected, and multiple selected points form a
point set N; the point with the smallest distance from point P in the
point set N is obtained, and the smallest distance is used as the pixel distance of the standard ring gauge, and the physical distance corresponding to a
single pixel is calculated; based on the bore image of the
gun barrel, its three-dimensional laser point cloud is obtained, and the point cloud of the plane containing the point with the smallest distance in the bore image of the
gun barrel is obtained for
curve fitting, and the
diameter of the inscribed circle of the curve is calculated; based on the physical distance corresponding to a
single pixel and the pixel
diameter of the inscribed circle of the bore, the inner
diameter of the bore is calculated, thereby realizing the measurement of the bore
caliber.