The invention discloses a
visual inspection sorting method and
system for surface defects of intelligent electric meter shell injection molded parts, and relates to the technical field of
visual inspection, and the method comprises the following steps: selecting an intelligent electric meter shell as a reference part, dividing the surface of the shell into a plurality of functional partitions, collecting
structured light form and brightness information, and obtaining a reference appearance map; and positioning a to-be-detected electric meter shell to a position consistent with the reference part, obtaining the online three-dimensional form and brightness response of each functional zone, mapping the online three-dimensional form and brightness response to the reference appearance map, marking a stable mirror surface with high brightness, and interpolating along an observation track to generate an online appearance map. According to the invention, through functional partition sampling
layout of a window sealing area, a wiring terminal area, a stud and reinforcing rib area, a
nameplate and two-dimensional code area and a general decoration side wall area, and in cooperation with double-light-source collection of diffused light and oblique incident light combined with
structured light, a reference appearance map containing a highlight tolerance
mask is constructed; stable characterization of
mirror reflection and a transparent window is realized, and
false detection caused by high brightness of the mirror surface is remarkably reduced.