The invention discloses a contour detection method and
system for aluminum bar quality inspection based on an image recognition technology, and belongs to the technical field of
computer vision detection.According to the method, a high-speed optical
scanner is used for scanning the surface of an aluminum bar at multiple incident angles, and reflection change curves at different incident angles are obtained; a two-dimensional grey-
scale map is obtained, the two-dimensional grey-
scale map is converted into a depth parameter matrix, meanwhile, the incident angle position of a
light beam, the scanning speed and a scanning
time sequence are synchronously recorded in the scanning process, gradient second-order
differential transformation is conducted on the obtained depth parameter matrix in the contour direction, and a curvature amplitude spectrum is generated; a high-speed optical
scanner is used for scanning the surface of the aluminum bar at multiple incident angles, a reflection change curve and a depth parameter matrix are synchronously obtained, key parameters such as the
light beam incident angle and the scanning speed are recorded, the problem that traditional single-angle scanning contour information is incomplete is solved, the three-dimensional shape of the surface of the aluminum bar can be represented more comprehensively, and the accuracy is high. And initial
feature extraction deviation caused by
information loss is reduced.