| Automobile hub is an important component of automobile,the quality of the hub affects the safety of the car directly.Therefore,it has great practical significance to detect the defect of the automobile hub.X-Ray detection method is currently a widely used method to detect the defect of the automobile hub.The manufacturers mostly evaluate the quality of the hub products based on artificial judgment method.It has many shortcomings such as low degree of automation,strong subjectivity,disunity of standards and unreliability of evaluation results.To solve these shortcomings,this paper design the auto defect segmentation and recognition technology of automobile hub which meets the actual needs of industrial production.And there are some major work in this paper:(1)In the real-time display module,this paper use Window technology to improving the dynamic range of image first,then HDR technology is used to solving the defects of the too bright images and too dark images.At last,the system noise is reduced by multi-frame superposition technology.Through these methods,the quality of hub images is improved.(2)Collected original hub images have the shortcoming of unobvious characteristics of the defects,and the incidental character information will also affects the accuracy of the detection algorithm.To solve these shortcomings,this paper design a kind of defect enhancement and character removal technology based on gray level transformation and bilateral filtering.This method can enhance the character of the defect and suppress the character interference when retaining the details of the hub image.(3)According to the actual production demand and requirements for software function design,this paper takes defect segmentation algorithm of hub image based on dynamic threshold as the main body to automatic recognition and extraction of hub defects,and ROI technology is also used to improvement the algorithm.Defect will also be classified and graded after purification.(4)On the one hand,the software in this paper is developed by mature MFC framework,it greatly reduces the cost of software development.On the other hand,multi-threading technology is used to enhance the software’s parallel processing capabilities,this method improve the overall quality of software well. |