Sensors (Dec 2022)

Adaptive Bidirectional Gray-Scale Center of Gravity Extraction Algorithm of Laser Stripes

  • Miaomiao Zhang,
  • Zhengnan Li,
  • Fuquan Zhang,
  • Lidong Ma

DOI
https://doi.org/10.3390/s22249567
Journal volume & issue
Vol. 22, no. 24
p. 9567

Abstract

Read online

Aiming at the realization of fast and high-precision detection of the workpiece, an adaptive bidirectional gray-scale center of gravity extraction algorithm for laser stripes is proposed in this paper. The algorithm is processed in the following steps. Firstly, the initial image processing area is set according to the floating field of the camera’s light stripe, followed by setting the adaptive image processing area according to the actual position of the light stripe. Secondly, the center of light stripe is obtained by using the method of combining the upper contour with the barycenter of the bidirectional gray-scale. The obtained center of the light stripe is optimized by reducing the deviation from adjacent center points. Finally, the slope and intercept are used to complete the breakpoint. The experimental results show that the algorithm has the advantages of high speed and precision and has specific adaptability to the laser stripes of the complex environment. Compared with other conventional algorithms, it greatly improves and can be used in industrial detection.

Keywords