Abstract:For the inspection of industrial parts, manual dimensional measurement of contact type or non-contact measurement based on machine vision is mainly used. Aiming at the problems such as the need to manually replace the test objects one by one during the batch inspection, and the length of the measurement process, a batch size measurement method suitable for batch inspection is proposed, including a series of main processes such as part identification, positioning of the area to be measured, edge detection and least squares simulation, and multi-threaded parallel measurement, etc. The experimental results show that the measurement accuracy error does not exceed 2.1 μm, and the repeatable measurement error does not exceed 0.8 μm. For a 5528 × 10416 pixel mosaic image containing 100 hand-qualified, commonly used round small square parts, the measurement speed does not exceed 9s. The batch test results are all qualified (tolerance is 3.0 μm), which can meet the needs of industrial batch testing and effectively solve practical industrial problems.