The invention relates to the technical field of
assembly production lines, and particularly discloses an
assembly production line workpiece defect detection method and
system based on
machine vision. The method aims at accurately detecting the workpiece defects of the
assembly production line, firstly, position information of a lens, a workpiece and a
light source of a
machine vision device is obtained, a basis is provided for subsequent calculation, the detection accuracy is ensured, and then the incident angle of the mirror surface is determined according to the characteristic information of the lens, influences reflected light and imaging and is a key parameter. Then obtaining imaging influence factors according to workpiece characteristics, measuring interference of workpiece surface characteristics on imaging, providing a basis for optimizing
reflectivity, calculating specular reflectance through
light source position information, reflecting
light reflection conditions, combining the specular reflectance and the reflection conditions to obtain collaborative optimization specular reflectance, more accurately evaluating the influence of reflection on imaging, and finally, determining the influence of reflection on imaging. If the
reflectivity is greater than a preset threshold value, correction is carried out, a correction angle is obtained to adjust a lens detection angle, misjudgment caused by
mirror reflection is reduced, and the detection precision is improved.