Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Mechanical part surface defect detection method based on image processing

A technology for mechanical parts and defect detection, applied in the field of image processing, can solve the problems of affecting the defect detection effect, difficult to identify different types of defects, and unable to adapt to self-adaptation, and achieve the effect of improving the defect detection effect.

Pending Publication Date: 2022-01-28
WENSHANG HAIWEI MOTORCYCLE ACCESSORIES CO LTD
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, there are some problems in the existing canny edge detection technology. The detected edges are usually discrete edge fragments. When detecting defects, intermittent discrete edges are difficult to identify different types of defects, which greatly affects the quality of defects. detection effect, so discrete edges need to be connected
However, the existing edge connection algorithm only connects according to whether there are other edge contours in the neighborhood of the endpoint 8, and cannot adapt to some situations that are very close but not strictly connected.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Mechanical part surface defect detection method based on image processing
  • Mechanical part surface defect detection method based on image processing
  • Mechanical part surface defect detection method based on image processing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] An embodiment of the present invention provides a method for detecting surface defects of mechanical parts based on image processing, such as figure 1 shown, including:

[0061] S101. Obtain a surface map of the mechanical part to be detected.

[0062] Among them, the surface map of the mechanical parts to be detected refers to the acquisition when it is necessary to detect cracks and scratches on the surface of the mechanical parts.

[0063] S102. Perform grayscale processing on the surface map of the mechanical part to obtain a grayscale map of the surface of the mechanical part.

[0064] Among them, the grayscale image is also called the grayscale image. The logarithmic relationship between white and black is divided into several levels, called gray scale. The gray scale is divided into 256 levels.

[0065] S103. Perform canny edge detection on the surface grayscale image of the mechanical parts, and obtain multiple defect discrete edges and multiple isolated poi...

Embodiment 2

[0091] An embodiment of the present invention provides a method for detecting surface defects of mechanical parts based on image processing, such as figure 2 shown, including:

[0092] S201. Obtain a surface map of the mechanical part to be detected.

[0093] Under the influence of complex imaging factors such as illumination and shooting angle, the edge pixel values ​​of the same thing are not the same, the gradient changes of its pixels will be affected to varying degrees, and the gradient strengths of its edge points are also different, which leads to the canny algorithm When the edge is detected, the edge is discrete, that is, the same real edge will appear discontinuous after being detected by the canny operator. At this time, the discontinuous edge will affect the detection effect of the canny algorithm, for example, when it is necessary to detect In scenarios such as cracks and scratches on the surface of parts, it is necessary to mark the complete crack or scratch in...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of image processing, in particular to a mechanical part surface defect detection method based on image processing, which comprises the following steps: acquiring a surface map and a grey-scale map of a to-be-detected mechanical part; carrying out canny edge detection on the grey-scale map to obtain a plurality of defect discrete edges and isolated points in the grey-scale map; determining an endpoint search domain and an intra-domain weight of each discrete edge according to the gradient amplitude and the gradient direction of each pixel point; obtaining the total similarity of isolated points in each discrete edge search domain; obtaining a connection coefficient corresponding to each isolated point according to the total similarity of the isolated points and the corresponding weight; carrying out endpoint updating on each discrete edge according to the connection coefficient; and performing stopping condition judgment on each discrete edge after the end points are updated each time, obtaining a final connection result, and then obtaining a defect area. The method is used for carrying out defect detection on the surface of the mechanical part, a more complete defect edge can be obtained through the method, and the defect detection effect is improved.

Description

technical field [0001] The invention relates to the field of image processing, in particular to a method for detecting surface defects of mechanical parts based on image processing. Background technique [0002] The quality of mechanical parts has a great influence on the service life of mechanical products. However, due to improper operation during the production process, defects such as scratches and cracks often appear on the surface of mechanical parts, so defect detection of mechanical parts is essential. [0003] Canny edge detection technology is widely used to detect defects on the surface of mechanical parts: it mainly uses the canny edge detection algorithm to obtain defect edge information to realize defect detection. [0004] However, there are some problems in the existing canny edge detection technology. The detected edges are usually discrete edge fragments. When detecting defects, intermittent discrete edges are difficult to identify different types of defec...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06T7/00G06T7/13G06T7/181G06V10/74G06V10/75G06K9/62
CPCG06T7/0004G06T7/13G06T7/181G06T2207/30164G06F18/22Y02P90/30
Inventor 张金刚司文强冯玉豹王帅福
Owner WENSHANG HAIWEI MOTORCYCLE ACCESSORIES CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products