The invention discloses a battery appearance defect detection method based on dimension reduction and 
point cloud data matching, belonging to the technical field of 
machine vision detection, which obtains three-dimensional 
point cloud data of a battery to be detected and reduces the dimension of the 
point cloud data. Obtaining a defect area of the battery to be detected, and extracting point clouddata of the defect area; Extracting the point 
cloud data of the same area of the standard battery; Sampling two pieces of point 
cloud data and matching searching; acquiring The optimized correspondence of feature points and calculating roughly 
rigid transformation relation to realize rough registration. Performing Constraint detection on the rough registration results, and verifying 
correctness.Optimizing the 
rigid transformation relationship between the point 
cloud data to achieve automatic and accurate registration to determine whether the battery appearance is qualified or not. Changing A3D imagen into a 2D image by a dimension reduction 
algorithm, and acquiring a point cloud data of a defect area by using a plane defect detection technology in that 2D image so that the point cloud data is matched, the detection range is narrowed, the 
running time is reduce, and the accuracy is improved.