[go: up one dir, main page]

CN119395039A - Visual inspection system for saw blade tooth defects based on deep learning model - Google Patents

Visual inspection system for saw blade tooth defects based on deep learning model Download PDF

Info

Publication number
CN119395039A
CN119395039A CN202411445758.6A CN202411445758A CN119395039A CN 119395039 A CN119395039 A CN 119395039A CN 202411445758 A CN202411445758 A CN 202411445758A CN 119395039 A CN119395039 A CN 119395039A
Authority
CN
China
Prior art keywords
tooth
saw blade
defect
visual inspection
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411445758.6A
Other languages
Chinese (zh)
Inventor
朱敏
吴婷婷
杨崴
周向荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizhouwan Vocational Technology College
Original Assignee
Meizhouwan Vocational Technology College
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizhouwan Vocational Technology College filed Critical Meizhouwan Vocational Technology College
Priority to CN202411445758.6A priority Critical patent/CN119395039A/en
Publication of CN119395039A publication Critical patent/CN119395039A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
    • G01N21/892Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles characterised by the flaw, defect or object feature examined
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/01Arrangements or apparatus for facilitating the optical investigation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • G06T5/30Erosion or dilatation, e.g. thinning
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/01Arrangements or apparatus for facilitating the optical investigation
    • G01N2021/0106General arrangement of respective parts
    • G01N2021/0112Apparatus in one mechanical, optical or electronic block
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8854Grading and classifying of flaws
    • G01N2021/888Marking defects
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8883Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges involving the calculation of gauges, generating models
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8887Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
    • G01N21/892Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles characterised by the flaw, defect or object feature examined
    • G01N2021/8924Dents; Relief flaws
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Biochemistry (AREA)
  • Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Analytical Chemistry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Textile Engineering (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

本发明公开了基于深度学习模型的锯条齿形缺陷的视觉检测系统,涉及锯条齿形缺陷检测技术领域,包括有能提供多个不同特定波长的光源,第一视觉检测装置对锯条进行拍摄并生成数字图像,并扫描图中的像素信息进行边缘检测、纹理分析以及形态学操作后提取对应的特征值;第二视觉检测装置用于接收所述不同特定波长的光从一定长度范围的锯条表面反射回来的光,并分析生成反射光谱数据。通过将第一次视觉检测装置提取出的特征值与设定的阈值范围进行对比,初步识别出明显的齿形缺陷区域,并特征值将与设定阈值的对比结果作为是否进行第二次精确检测的启动条件,第二次视觉检测装置对初步检测出潜在缺陷的区域进行更加精确的检测,识别深层次的缺陷特征。

The present invention discloses a visual detection system for saw blade tooth profile defects based on a deep learning model, which relates to the technical field of saw blade tooth profile defect detection, and includes a light source capable of providing multiple different specific wavelengths, a first visual detection device that photographs the saw blade and generates a digital image, and extracts corresponding eigenvalues after scanning the pixel information in the image for edge detection, texture analysis, and morphological operations; a second visual detection device is used to receive the light reflected from the surface of the saw blade within a certain length range by the light of the different specific wavelengths, and analyze and generate reflection spectrum data. By comparing the eigenvalue extracted by the first visual detection device with the set threshold range, a preliminarily obvious tooth profile defect area is identified, and the comparison result of the eigenvalue with the set threshold is used as the starting condition for whether to perform a second precise detection, and the second visual detection device performs a more precise detection on the area where potential defects are preliminarily detected to identify deep-level defect characteristics.

Description

Visual detection system for saw blade tooth form defect based on deep learning model
Technical Field
The invention relates to the technical field of saw blade tooth form defect detection, in particular to a saw blade tooth form defect visual detection system based on a deep learning model.
Background
Saw blade as a cutting tool, saw tooth imperfections on the saw blade can significantly affect cutting ability. In the high-speed cutting process of the saw blade, the defect or crack of the saw blade weakens the integral strength of the saw blade, the fracture risk is increased, the saw blade is incomplete in cutting, the material being cut can be possibly damaged, and economic loss is caused, the scratch on the saw blade can increase the friction force between the saw blade and the material, the cutting surface is uneven, the cutting quality is affected, cutting jamming is caused, and the operation difficulty is increased.
Therefore, in order to prevent the occurrence of the above problems, tooth form detection needs to be performed during the production process of the saw blade, so that tooth form defects on the saw blade can be found in time and the subsequent repair of the defects is facilitated.
Currently, in the industrial production line production process of saw blades, a mode of visual detection by a camera is adopted, and the saw blade image is shot and then compared with a standard image to detect tooth form defects. The automatic detection mode is highly dependent on the quality and accuracy of a standard image, if the standard image cannot cover all possible defect types or feature changes, the accuracy of a detection result is affected, and if the difference between the defect features and the standard image is not significant enough, for example, crack features are small or slight surface scratch occurs, the defect is ignored by a system in the difference detection, and the defect is missed.
Disclosure of Invention
First) solving the technical problems
The invention provides a visual detection system for saw blade tooth form defects based on a deep learning model, which aims to solve the problems that the conventional method for detecting saw blade tooth form defects by visual contrast of images is easy to miss detection and the accuracy is easy to influence.
Two) technical scheme
In order to achieve the purpose, the invention provides the following technical scheme that the visual detection system for the tooth form defect of the saw blade based on the deep learning model is applicable to the saw blade for continuous sectional detection and comprises the following components:
a light source configured to provide a plurality of different specific wavelengths of light;
The first visual detection device is used for shooting a saw blade with a certain length range and generating a digital image, adjusting the digital image into a uniform pixel size, and extracting corresponding characteristic values after edge detection, texture analysis and morphological operation of pixel information in a scanned image, wherein the characteristic values comprise crack width, contrast and tooth space;
The second visual detection device is used for receiving the light reflected by the saw blade surface in a certain length range from the light with different specific wavelengths, generating a reflection spectrum and analyzing the change of the reflected light intensity with different specific wavelengths, wherein the area with obviously reduced reflected intensity is marked as tooth-shaped defect;
the judging unit is used for receiving the characteristic values extracted by the first visual detection device and the corresponding pixel positions thereof, and comparing different characteristic values with a set threshold interval, wherein when all the characteristic values are smaller than the minimum value of the corresponding threshold interval, detection is stopped, no tooth-shaped defect exists, when the characteristic value is larger than the maximum value of the corresponding threshold interval, tooth-shaped defect exists, and when at least one characteristic value is located in the corresponding threshold interval, the second visual detection device is started for spectral analysis;
And the marking unit is used for receiving the characteristic value which is transmitted by the judging unit and marked as the tooth-shaped defect in real time, the second visual detection device marks the reflection spectrum with the tooth-shaped defect, and recording the pixel position corresponding to the tooth-shaped defect.
Further, the length of the saw blade that the first visual detection device detected at every turn is equal with the length of the saw blade that the second visual detection device detected at every turn to first visual detection device and second visual detection device set up for the saw blade homonymy.
Further, the first vision detecting device shoots the saw blade and generates a digital image which is a gray scale image, and after the gray scale image is smoothed by using Gaussian filtering, the gray scale image is adjusted to the uniform pixel size.
Further, the edge detection is performed on the pixel information in the scanned image of the first visual detection device for identifying and calculating the crack width W, which specifically comprises the following steps:
converting the gray scale map into a two-dimensional pixel matrix;
calculating the gradient of each pixel by using a Canny edge detection method, and identifying the edge with obvious brightness change;
acquiring coordinate points of edges;
determining a crack area according to the edge coordinates;
from the extracted edge coordinates, the crack width W is calculated.
Further, the texture analysis is performed on the pixel information in the scanned image of the first visual inspection device for identifying and calculating the contrast C, specifically including the following steps:
defining a gray value range, mapping pixel values in the two-dimensional pixel matrix to the defined gray value range in a linear mapping mode to obtain a quantized gray level matrix;
Counting the occurrence times of gray scale pairs in the quantized gray scale matrix to obtain a gray scale co-occurrence matrix;
Calculating the contrast in the image according to a contrast C formula;
C=-∑(i-j)2p(i,j)
wherein the element p (i, j) in the gray level co-occurrence matrix represents the number of times that a pair of pixels having gray values i and j appears in the image.
Further, the morphological analysis is performed on the pixel information in the scan map of the first visual detection device to identify and calculate the tooth space D, which specifically includes the following steps:
Converting the two-dimensional pixel matrix into a binary image, and separating a sawtooth region from a background, wherein the pixel value larger than a set value is set as 1, and the rest is set as 0, so as to obtain the binary image;
sequentially applying morphological corrosion operation and expansion operation to the binary image to extract the shape and position of the tooth;
the tooth spacing D is calculated by calculating the distance between adjacent ones of the foreground pixels.
Further, the judging unit receives the crack width W, the contrast C and the tooth space D extracted and calculated by the first visual detection device and the pixel position corresponding to each characteristic value, compares the characteristic value with a preset crack width threshold value interval, a preset contrast threshold value interval and a preset tooth space threshold value respectively, and correspondingly,
If the extracted and calculated crack width W is smaller than the minimum value in the crack width threshold interval, marking that no crack defect exists;
If the contrast C calculated by extraction is smaller than the minimum value in the contrast threshold interval, marking the image as having no scratch defect, and if the contrast C is larger than the maximum value in the contrast threshold interval, marking the image as having the scratch defect;
if the extracted and calculated tooth distance D is smaller than the tooth distance threshold value, marking the extracted and calculated tooth distance D as no tooth defect, and if the extracted and calculated tooth distance D is larger than the tooth distance threshold value, marking the extracted and calculated tooth distance D as the tooth defect;
when the size of the crack width W is within the crack width threshold interval, the crack defect is smaller, and the second visual detection device is started to perform spectral analysis;
And when the contrast C is within the contrast threshold interval, indicating that the scratch defect is smaller, and starting a second visual detection device for spectral analysis.
Further, the first visual inspection device detects the crack width W and/or the contrast C and the corresponding pixel position thereof within the corresponding threshold interval, the second visual inspection device analyzes the reflection spectrum data of different specific wavelengths of the pixel position, in particular the reflection light intensity changes of different specific wavelengths,
Extracting a pixel position for calculating the crack width W, and marking that a crack defect exists if the reflection intensity is obviously reduced in a reflection spectrum of a specific wavelength at the position;
And in the pixel position where the contrast C is extracted and calculated, if the reflection intensity is obviously increased or fluctuated in the reflection spectrum of the specific wavelength at the position, marking as scratch defects exist.
Further, the marking unit records the pixel positions corresponding to the tooth-shaped defects, wherein the tooth-shaped defects comprise crack defects, scratch defects and tooth defects, the crack defects, the scratch defects and the tooth defects are converted into actual positions on a saw blade and marked, and the conversion steps are as follows:
determining a proportional relationship between an actual physical size of the saw blade performing the visual inspection and a pixel resolution of the image;
and mapping the pixel position into an actual physical position on the saw blade according to the proportional relation.
Further, the device also comprises a stable light source, wherein the stable light source is used for providing stable and uniform illumination for the first visual detection device, and the stable light source does not interfere with the light rays of the light source.
Third), beneficial effects:
Compared with the prior art, the invention has the following beneficial effects:
according to the invention, the corresponding characteristic value is extracted through the first visual detection device for identifying the image on the surface of the saw blade, the extracted characteristic value is compared with the set threshold range, and the obvious tooth-shaped defect area is primarily identified, so that the obvious tooth-shaped defect area is rapidly filtered, and the detection efficiency is improved.
The comparison result with the set threshold is used as a starting condition for performing secondary accurate detection, the secondary visual detection device performs more accurate detection on the area where the potential defect is detected primarily, deep defect characteristics are identified, and by limiting the triggering condition of the secondary accurate detection, redundant comprehensive analysis on the surface of the whole saw blade is avoided, namely the detection duration and the system load are reduced, meanwhile, the problem area is ensured to be detected more accurately, and the detection precision and reliability of the tooth-shaped defect are improved.
The identified defects are marked through real-time recording, and the positions and types of the defects are recorded in the form of coordinate axes, so that references are provided for subsequent processing, and the quality traceability of saw blades is ensured.
Drawings
Fig. 1 is a schematic view of an application scenario of a continuous moving saw blade according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram of a visual detection system for saw blade tooth form defects based on a deep learning model according to an embodiment of the present invention;
Fig. 3 is a schematic diagram of an application scenario in which a saw blade is continuously transferred to a first visual inspection device and a second visual inspection device successively according to an embodiment of the present invention;
Fig. 4 is a schematic diagram of detection areas of a first visual detection device and a second visual detection device in a visual detection system according to an embodiment of the present invention;
FIG. 5 is a graph showing the reflectance spectrum of light of a specific wavelength detected and analyzed by the second visual inspection device when a crack defect occurs according to the embodiment of the present invention;
FIG. 6 is a graph of reflectance spectrum of light of a specific wavelength detected and analyzed by the second visual inspection device when a scratch defect occurs according to an embodiment of the present invention;
in the figure, 1, an industrial camera, 2, a stable light source, 3, a spectrum camera, 4, and a light source.
Detailed Description
The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments, and all other embodiments obtained by those skilled in the art without making creative efforts based on the embodiments of the present invention are included in the protection scope of the present invention.
In the description of the present invention, it should be understood that the terms "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention.
In the process of detecting tooth form defects of a saw blade, the inventor finds that:
In the industrial assembly line type saw blade production process, machine vision is often used for comparing and detecting whether tooth form defects appear on the saw blade, for example, a camera is used for shooting and imaging the saw blade, and then the saw blade is compared with images with normal tooth form defects and images with tooth form defects in a database, and whether tooth form defects exist on the saw blade is judged through the contrast coincidence degree.
However, this method requires a large amount of storage of images of known defects and normal samples, and is very costly and labor intensive to maintain and update databases in the case of a wide variety of products and complex types of defects. Different types of defects (e.g., cracks, scratches, teeth missing, etc.) may exhibit different visual characteristics, which require that the samples in the database have sufficient diversity to cope with various situations. And for some tiny or hidden defects (such as tiny cracks and deep scratches), the situation that the defects are difficult to identify can occur singly depending on the comparison of images, and the defects can be not obvious in the images or confused with the background, so that detection fails.
Furthermore, in order to improve the defects in the prior art, the embodiment of the invention provides a visual detection system for saw blade tooth shape defects based on a deep learning model, which can primarily identify more obvious tooth shape defects such as cracks, scratches and missing teeth through processing saw blade images, and further identify tiny or hidden defects through analyzing the reflection spectrum of the saw blade surface on different specific wavelengths. The identified defects are marked through real-time recording, and the positions and types of the defects are recorded in the form of coordinate axes, so that references are provided for subsequent repair processing, and the quality traceability of saw blades is ensured.
In combination with the visual detection system for saw blade tooth form defects based on the deep learning model shown in fig. 1 to 6, the embodiment provided by the invention is suitable for the field application scene of continuous visual detection of the whole section of saw blade in an industrial assembly line, in particular, the whole section of saw blade is continuously conveyed to a detection area, the detection device of the detection area carries out visual detection on the surface defects of the rack, and in some practical embodiments provided by the invention, the detection flow is subdivided into the following parts:
and (4) performing primary detection on the overall appearance of the saw blade surface, and identifying common defects such as cracks, scratches and missing teeth. And the obvious defect area is quickly and primarily screened, so that the burden of invalid data processing is reduced.
And in the error analysis and judgment step, the error analysis of the characteristic value is carried out according to the result of the first detection, and whether further detection is needed is judged, so that unnecessary subsequent detection is reduced, and the resource and time consumption are optimized.
And (3) detecting for the second time, namely detecting the region where the potential defect is detected in the preliminary way more accurately, and identifying the deep defect characteristics. And compared with the first detection, the method has the advantages of deeper and more accurate analysis, reduced false alarm rate and accurate differentiation of different types of defects.
And marking the identified defects, and recording the positions and types of the defects in the form of coordinate axes.
Regarding the first detection, in some practical embodiments provided by the invention, the process comprises the steps of enabling a saw blade to enter a first detection area in a segmented mode at a constant speed, enabling a first visual detection device to shoot a high-definition image on each saw blade, adjusting the image to be of a uniform pixel size after processing, extracting characteristic values of the saw blade by using edge detection, texture analysis and morphological operation, and comparing the extracted characteristic values with a set threshold interval range to primarily identify potential defect areas.
In particular, in some practical embodiments provided by the present invention, an industrial camera is used as the first vision inspection device, and is used to capture images of the saw blade surface. It is noted that it is to be ensured that the industrial camera has sufficient resolution and image quality to clearly capture the defects of the saw blade. Regarding the illumination conditions, it is ensured that the illumination of the detection area is sufficient, avoiding the influence of shadows and reflections on the image quality. Therefore, a stable light source can be arranged beside the industrial camera, the industrial camera shoots perpendicular to the surface of the saw blade, and the stable light source and the industrial camera are arranged on the same side, so that the quality of shot images is ensured.
Before analyzing the image captured by the first visual inspection device, some preprocessing steps are required to improve the accuracy of subsequent analysis. The method specifically comprises the following steps:
Resizing the image to the uniform size (e.g., 224 x 224 pixels) required for the model input.
Normalization, namely scaling the pixel value to be between 0 and 1 so as to improve the efficiency and effect of model training.
Denoising, which is to remove image noise and enhance features by using a filtering technique (such as Gaussian filtering).
The following is a Python example code in an embodiment of the invention, demonstrating how to perform data preprocessing on an image.
And carrying out edge detection, texture analysis and morphological operation on the preprocessed digital image (usually a gray level image), scanning the change condition of pixel values, and extracting corresponding characteristic information.
An edge detection algorithm (such as Canny and Sobel operators) scans pixels in an image, identifies edges with significant brightness changes, tooth-shaped crack defect features are highlighted in edge detection, and the crack width is determined by calculating the distance between the edges.
Specifically, the pixel map is scanned, where the gray level change of the pixel is obvious, and edges are extracted from the areas, and in some embodiments of the present invention, the gradient of the image is calculated by using a Canny edge detection algorithm, so as to find the edges. The pixel values in the gray-scale map are now set as the following two-dimensional matrix of pixel values:
In this matrix, each element represents a gray value or color value of a pixel. The two-dimensional pixel matrix may represent a gray-scale image, a color image, or a binary image. For gray scale images, the pixel values are typically between 0 and 255.
After the two-dimensional pixel matrix is subjected to Canny edge detection, setting the obtained edge detection result as follows:
The edge coordinates of the binary image are extracted as follows:
(0,2),(0,3),
(1,1),(1,2),(1,3),
(2,1),(2,2),(2,3),
(3,2)
Note that the coordinates of a pixel are typically expressed in terms of (y, x), where y is the row index (vertical direction) and x is the column index (horizontal direction), since images are typically stored in memory on a row-by-row basis.
It will be appreciated that in this example, the upper and lower edges of the crack are observed to be approximately between row 0 and row 3, with columns between column 1 and column 3.
From the extracted edge coordinates, the width can be calculated such that in row 1 and row 2, the leftmost edge is in column 1 and the rightmost edge is in column 3.
The width of the crack was calculated using the formula:
crack width (W) =right edge column-left edge column } +1
Corresponding to this example:
W=3-1+1=3pixels
Assuming that each pixel of this area corresponds to an actual size of 0.5mm and the crack width is 3 pixels in the horizontal direction, the actual crack width=3×0.5 mm=1.5 mm.
Regarding how the first visual inspection apparatus extracts the feature values for calculating the scratch defects, in some practical embodiments of the present invention, a texture analysis algorithm (such as a gray level co-occurrence matrix GLCM) is used to analyze the relationship between adjacent pixels in the image, and extract texture information, thereby obtaining the contrast C.
Specifically, a gray level co-occurrence matrix (GLCM) is also calculated by taking the two-dimensional pixel matrix as an example. First, it is necessary to define a gray value range, in this example, assuming that only gray values of 0-3 are of interest (a larger range may be required in practical applications for simplicity), the pixel values of the above matrix are mapped to the 0-3 range (by some quantization method, such as a linear mapping method), resulting in:
next, GLCM is calculated, and the number of occurrences of the gradation pair is counted in consideration of the relationship (e.g., horizontal relationship) of the adjacent pixels. The GLCM obtained is as follows:
Where the element p (i, j) in GLCM represents the number of times a pixel pair with gray values i and j appears in the image. For example, the element p (0, 0) =4 indicates that the pixel pair having the gradation values of 0 and 0 appears 4 times, p (0, 1) =2 indicates that the pixel pair having the gradation values of 0 and 1 appears 2 times, and so on.
The formula for contrast is:
C=-∑(i-j)2p(i,j)
the contrast is calculated from the GLCM, wherein,
(0-0) 2 4=0 Represents a contrast contribution with a gray value of (0, 0).
(0-2) 2 2=8 Represents the contrast contribution with a gray value of (0, 0).
(2-0) 2 2=4 Represents the contrast contribution with a gray value of (0, 0).
(1-1) 2 3 =0 Represents the contrast contribution with a gray value of (0, 0).
The result is c=0+8+4+0=12, representing the degree of contrast between the gray values in the image.
Regarding how the first visual inspection device extracts the eigenvalues of the missing or damaged tooth defect, in some practical embodiments of the present invention, morphological calculations are used to extract geometric features in the image, identify specific type devices and structures in the image, and detect missing teeth and tooth spaces. Specifically, the tooth space D of the tooth structure is calculated by morphological operations by binarizing the image.
Taking the two-dimensional pixel matrix as an example, firstly performing binary processing on the two-dimensional pixel matrix, separating a sawtooth region from the background, and then extracting the shape and the position of the tooth through an image analysis algorithm. Binary images refer to only two possible values per pixel, typically 0 and 1.0 typically represents the background (black) and 1 represents the foreground (white or other color), with the binary image primarily used to represent the separation of objects in the image from the background. The extracted binary image is as described above.
The binary image is corroded, so that small noise can be removed, the boundary of the object is thinned, and adjacent objects are separated. Specifically, by scanning the binary image with a small structural element (e.g., a 3×3 matrix), the foreground region is reduced, the foreground pixels (having a value of 1) are eroded, and the resulting pixel is foreground only if all pixels covered by the structural element are foreground pixels.
The corrosion operation reduces the foreground area, and the corrosion result is:
Then an expansion operation is performed, which expands the foreground pixels as opposed to erosion. If any one pixel covered by a structural element is a foreground pixel, the resulting pixel is foreground, and expansion can increase the size of the foreground region, fill small holes, or connect adjacent objects.
The expansion operation expands the foreground region, resulting in:
the tooth spacing D may be achieved by calculating the distance between adjacent foreground pixels. Let us assume that the denture pitch is the width of the foreground region (from the center of one foreground pixel to the center of the next foreground pixel).
In the image after corrosion and swelling, the tooth spacing can be calculated by:
finding the position of a foreground pixel;
The distance between adjacent foreground pixels is calculated.
For example, in the expansion result, the positions of the foreground pixels are:
a first foreground pixel position (0, 2);
a second foreground pixel position (0, 3);
a third foreground pixel position (0, 4);
calculating a column index difference:
For the first and second foreground pixels:
Column index difference=3-2=1
This means that the distance between columns 2 and 3 is 1.
For the second and third foreground pixels:
Column index difference=4-3=1
This means that the distance between columns 3 and 4 is also 1.
This column index difference calculates the horizontal distance (column number) between adjacent foreground pixels. In this example, the distance between all adjacent foreground pixels is 1, which indicates that they are adjacent and no other foreground pixels are spaced apart.
The tooth spacing D can be understood as the distance between adjacent teeth, if the column index difference is 1, indicating that there is no gap between the two teeth.
Referring to fig. 2, fig. 2 is a schematic block diagram of a visual detection system for saw blade tooth form defect based on a deep learning model according to an embodiment of the present invention, after a first visual detection device extracts and calculates a corresponding feature value from a saw blade tooth form image captured by the first visual detection device, the feature value is sent to a judging unit, and a pre-defined feature threshold is set in the judging unit.
Correspondingly, the characteristic values (crack width W, contrast C and tooth space D) extracted in the first detection are compared with preset threshold intervals [ A, B ].
If the characteristic value exceeds the upper threshold B, the defect is considered to be larger, and the defect can be marked directly without secondary detection, so that time can be saved.
If the eigenvalue is between a and B, indicating that the defect is small, a second inspection is required for more accurate analysis and validation.
For smaller defects (feature values between a and B) a second accurate inspection needs to be triggered, such as using spectroscopic analysis, to confirm the nature and severity of the defect, and then to mark the defect.
It will be appreciated that this approach balances speed and accuracy, and allows in-depth analysis of ambiguous defects, while skipping further detection of apparent defects and direct processing. This flexibility may increase overall detection efficiency.
Specifically, in some practical embodiments of the present invention, referring specifically to fig. 3 and 4, the entire saw blade is advanced by the same saw blade length each time, and sequentially enters the first visual inspection area and the second visual inspection area for defect detection, in this embodiment, the saw blade advanced by a length of 10cm each time is set to enter the inspection area, that is, the single inspection area distance L 1 of the first visual inspection device, the single inspection area distance L 2 of the second visual inspection device is equal, and L 1=L2 =10 cm. The saw blade to be detected is made of low alloy spring steel, the tooth shape on the saw blade is an inclined tooth with a front angle of 10 degrees, and the tooth pitch is 25.4mm.
On the basis of the above example, in the judging unit, a lower threshold value a W =0.3 mm, and an upper threshold value B W =1.0 mm are set as the crack width threshold value interval;
Regarding the contrast threshold interval, a lower threshold a C =10, and an upper threshold B C =30;
regarding the tooth gap threshold, tooth gap threshold=27.4 mm.
Taking the crack width W, the contrast C and the tooth spacing D extracted and calculated by the two-dimensional pixel matrix converted by the gray level diagram as an example, the characteristic error judgment is carried out on the sub-basis.
Specifically, after the first detection, the width of the crack in a certain area is 1.5mm, and exceeds the upper threshold B W =1.0 mm.
Since the crack width has significantly exceeded the threshold range, indicating that this is a severe crack, the system can be marked directly as a large crack without the need for a second spectroscopic analysis to detect.
The contrast of a certain detection region is 12, and is between a lower threshold a C =10 and an upper threshold B C =30 in the threshold section.
Contrast is within the threshold interval, indicating that there may be minor scratches or surface irregularities. At this point, the system cannot determine the severity of the scratch, trigger a second detection, and use spectroscopic analysis for further validation.
In the calculation of the tooth space D, a column index difference of 1 indicates that there is no gap between the two teeth. No second detection is required. In addition, if the tooth spacing D is between the tooth spacing and the tooth spacing threshold, the second detection is not needed within the tooth spacing error, and if the tooth spacing D is greater than the set tooth spacing threshold, the defect of tooth loss is indicated, and the second detection is not needed.
With particular reference to fig. 4, in some practical embodiments of the invention, a spectral camera 3 is used as the second visual detection means, and a light source 4 is arranged beside the spectral camera 3, which can emit light of different specific wavelengths. The spectroscopic camera 3 can detect details of cracks and scratches by analyzing spectroscopic information reflected or emitted by the object. The advantage of spectral detection is that it can capture light responses of different wavelengths, revealing small differences in the material surface under different light rays, especially when micro-cracks or scratches may not be detected by the industrial camera 1. The detection flow of the spectrum camera 3 is specifically as follows:
Spectral data acquisition, in which a light source 4 beside a spectral camera 3 emits light rays (visible light, infrared rays and the like) in a wide frequency range to the surface of a saw blade, the surface of a material reflects light with different wavelengths, and the spectral camera 3 acquires spectral data according to the characteristics of the reflected light. For cracks and scratches, these defects can lead to anomalies in light reflection, producing specific spectral signals.
In addition, it should be noted that after the first detection by the industrial camera 1, only the problematic areas are subjected to spectral analysis. The industrial camera 1 has initially detected the locations of potential cracks or scratches and the spectroscopic camera 3 only needs to perform a focus analysis on the pixels of these locations. For example, an image of a 10cm saw blade is taken at one time by the industrial camera 1, producing an image of 224 x 224 pixels. And (5) primarily detecting defects such as cracks, scratches and the like through an image processing algorithm. The pixel coordinates of these areas are marked. According to the first detection result, only pixels of the defect areas are selected for spectral analysis. For example, if the edge pixel points of the crack are in the (50, 100) to (80, 130) range of the image, the spectrum camera 3 analyzes only these coordinate ranges in detail. The design reduces the workload of spectrum analysis of the whole image and remarkably improves the detection speed.
The generation of the spectrogram, namely, the reflection spectrum of each region can generate a spectrum curve, the horizontal axis represents wavelength (nm), and the vertical axis represents reflection intensity.
The spectral curve at the crack or scratch may significantly decrease or increase in reflected intensity at a particular wavelength compared to the normal region, indicating that the light has different absorption or scattering properties in these regions.
The spectral analysis of the crack will now be illustrated assuming that the saw blade surface has a micro-crack, i.e. the crack width W is between the lower threshold a W and the upper threshold B W within the threshold interval, and at certain wavelengths the reflected intensity of the crack will be significantly reduced, as the crack will increase the surface roughness, resulting in light scattering.
As shown in fig. 5, fig. 5 shows a reflection spectrum of light with a specific wavelength detected and analyzed by the spectrum camera 3 when a crack defect occurs, a spectrum curve of a normal area is relatively smooth within a wavelength range of 500-700nm, the reflection intensity is about 0.7-0.8 in the range, a spectrum of the crack is reduced to 0.5 in the vicinity of 550nm, and an obvious valley is formed, so that the crack can be judged to exist in the area.
The spectral analysis of scratches will now be illustrated assuming that the saw blade has a micro-scratch on its surface, i.e. the contrast C is between the lower threshold a C and the upper threshold B C within the threshold interval. Scratches, unlike cracks, which are typically surface scratches that cause scattering and reflectance changes in light of different wavelengths, produce peaks or fluctuations in reflected intensity at some wavelengths, and are manifested as abnormal changes in spectral curves.
As shown in fig. 6, fig. 6 shows a reflection spectrum diagram of a spectrum camera 3 for detecting and analyzing light with a specific wavelength when a scratch defect occurs in the embodiment of the present invention, in a wavelength range of 600-700nm, a spectrum curve of a normal region is relatively smooth, the reflection intensity in the range is about 0.8-0.9, but the reflection intensity suddenly rises to 1.1 when the scratch is located near 650nm, a "peak" of the reflection intensity is formed, and the region has a significant reflection abnormality, so that it can be determined that the scratch exists in the region.
It should be noted that the saw blade surface should remain clean from dust, oil or other contaminants that might alter the reflection of light, resulting in distortion of the spectral signal. Periodic cleaning of the inspected object and the inspection area is a key to ensuring inspection accuracy. The lens of the spectroscopic camera 3 also needs to be kept clean, avoiding dust or fingerprints from affecting the transmission and reflection of light.
On the basis of the above, it will be appreciated that, considering the cross-interference of light rays between the light source 4 configured for the spectrum camera 3 (for example, an LED light source of a specific wavelength) and the stable light source 2 configured for the industrial camera 1 (for example, white light of a wide spectrum), as shown in fig. 3 and 4, two detection areas are placed at different positions using a shutter, and the two detection areas are spatially isolated, avoiding the cross-light rays of the light source 4.
In view of how the actual position of the individual tooth form defects on the saw blade can be displayed without disturbing the inspection work, in some practical embodiments provided by the invention a recording unit is introduced in the inspection system for receiving in real time the crack width W greater than the minimum value in the crack width threshold interval, the contrast C greater than the minimum value in the contrast threshold interval and the tooth space D greater than the tooth space threshold in the first visual inspection device and recording the (x, y) pixel coordinates of each detected defect in the digital image.
After the defective pixel locations are recorded, these pixel locations next need to be mapped to the actual physical locations of the saw blade for subsequent labeling.
Specifically, the detected pixel position is converted into a corresponding physical position according to the proportional relation between the actual length of the saw blade and the image pixels. For example, assuming a saw blade of 10cm length corresponding to 224 pixels, the mapping is calculated as 0.0446 cm/pixel per pixel length.
If the pixel location of a crack is (50,120), its physical location is calculated as:
x Actual practice is that of =50×0.0446=2.23cm
y Actual practice is that of =120×0.0446=5.35cm
in order for a defect to be marked on the entire blade, it is necessary to scale the local physical location to the blade as a whole. Assuming that the total length of the saw blade is 100cm and the detection area is 10cm, the formula for the position conversion is as follows:
The above formula scales up locally detected imperfections over the length of the entire saw blade. In this way, the specific location of the defect on the saw blade can be accurately determined, and the subsequent system synchronously displays the defect location and records the data for subsequent processing. The system can record and display the defect position on the saw blade accurately in real time on the premise of ensuring that the detection work is not disturbed, and is convenient for subsequent analysis and marking.
The above description is only a preferred embodiment of the present invention, and the patent protection scope of the present invention is defined by the claims, and all equivalent structural changes made by the specification and the drawings of the present invention should be included in the protection scope of the present invention.

Claims (10)

1.基于深度学习模型的锯条齿形缺陷的视觉检测系统,适用于进行连续分段检测的锯条,其特征在于,包括:1. A visual inspection system for saw blade tooth defects based on a deep learning model, suitable for saw blades that undergo continuous segmented inspection, characterized in that it includes: 光源,配置为能提供多个不同特定波长的光;a light source configured to provide light of a plurality of different specific wavelengths; 第一视觉检测装置,用于对一定长度范围的锯条进行拍摄并生成数字图像,将所述数字图像调整为统一的像素尺寸,扫描图中的像素信息进行边缘检测、纹理分析以及形态学操作后提取对应的特征值;其中,所述特征值包括裂纹宽度、对比度和齿间距;A first visual inspection device is used to photograph saw blades within a certain length range and generate digital images, adjust the digital images to a uniform pixel size, perform edge detection, texture analysis and morphological operations on pixel information in the scanned image, and extract corresponding feature values; wherein the feature values include crack width, contrast and tooth spacing; 第二视觉检测装置,用于接收所述不同特定波长的光从一定长度范围的锯条表面反射回来的光,生成反射光谱后分析不同特定波长的反射光强度变化;其中,反射强度显著下降的区域标记为存在齿形缺陷;The second visual inspection device is used to receive the light of the different specific wavelengths reflected from the surface of the saw blade within a certain length range, generate a reflection spectrum and analyze the change in the intensity of the reflected light of the different specific wavelengths; wherein the area where the reflection intensity drops significantly is marked as having a tooth shape defect; 判断单元,用于接收所述第一视觉检测装置所提取的特征值及其对应的像素位置,将不同所述特征值与设定的阈值区间进行对比;其中,当所有特征值均小于对应的阈值区间的最小值时,停止检测,标记为无齿形缺陷;当存在有特征值大于对应的阈值区间的最大值时,标记为存在齿形缺陷;当存在至少一个特征值的大小位于对应的阈值区间内时,启动所述第二视觉检测装置进行光谱分析;A judgment unit, used for receiving the characteristic values extracted by the first visual detection device and their corresponding pixel positions, and comparing the different characteristic values with the set threshold interval; wherein, when all characteristic values are less than the minimum value of the corresponding threshold interval, the detection is stopped and marked as no tooth defect; when there is a characteristic value greater than the maximum value of the corresponding threshold interval, it is marked as the presence of a tooth defect; when there is at least one characteristic value whose size is within the corresponding threshold interval, the second visual detection device is started to perform spectral analysis; 标记单元,用于实时接收所述判断单元输送的被标记为存在齿形缺陷的特征值以及所述第二视觉检测装置标记为存在齿形缺陷的反射光谱,并记录齿形缺陷处对应的像素位置。The marking unit is used to receive in real time the characteristic value marked as having a tooth shape defect transmitted by the judgment unit and the reflection spectrum marked as having a tooth shape defect by the second visual detection device, and record the pixel position corresponding to the tooth shape defect. 2.根据权利要求1所述的基于深度学习模型的锯条齿形缺陷的视觉检测系统,其特征在于,所述第一视觉检测装置每次检测拍摄的锯条的长度,与所述第二视觉检测装置每次检测的锯条的长度相等,并第一视觉检测装置与第二视觉检测装置相对于锯条同侧设置。2. The visual inspection system for saw blade tooth defects based on a deep learning model according to claim 1 is characterized in that the length of the saw blade detected and photographed each time by the first visual inspection device is equal to the length of the saw blade detected by the second visual inspection device each time, and the first visual inspection device and the second visual inspection device are arranged on the same side relative to the saw blade. 3.根据权利要求1所述的基于深度学习模型的锯条齿形缺陷的视觉检测系统,其特征在于,所述第一视觉检测装置对锯条拍摄并生成的数字图像为灰度图,使用高斯滤波对所述灰度图平滑处理后,将灰度图调整为所述统一的像素尺寸。3. According to the visual inspection system for saw blade tooth defects based on a deep learning model according to claim 1, it is characterized in that the digital image captured and generated by the first visual inspection device on the saw blade is a grayscale image, and after smoothing the grayscale image using a Gaussian filter, the grayscale image is adjusted to the uniform pixel size. 4.根据权利要求3所述的基于深度学习模型的锯条齿形缺陷的视觉检测系统,其特征在于,所述第一视觉检测装置扫描图中的像素信息进行边缘检测用于识别计算裂纹宽度W,具体为以下步骤:4. The visual inspection system for saw blade tooth defects based on a deep learning model according to claim 3 is characterized in that the first visual inspection device scans the pixel information in the image to perform edge detection for identifying and calculating the crack width W, specifically the following steps: 将所述灰度图转化为二维像素矩阵;Converting the grayscale image into a two-dimensional pixel matrix; 使用Canny边缘检测法计算每个像素的梯度,识别出亮度变化显著的边缘;Use the Canny edge detection method to calculate the gradient of each pixel and identify the edges with significant brightness changes; 获取边缘的坐标点;Get the coordinate points of the edge; 根据所述边缘坐标确定裂纹的区域;Determine the area of the crack according to the edge coordinates; 根据提取的边缘坐标,计算裂纹宽度W。According to the extracted edge coordinates, the crack width W is calculated. 5.根据权利要求4所述的基于深度学习模型的锯条齿形缺陷的视觉检测系统,其特征在于,所述第一视觉检测装置扫描图中的像素信息进行纹理分析用于识别计算对比度C,具体为以下步骤:5. The visual inspection system for saw blade tooth defects based on a deep learning model according to claim 4 is characterized in that the first visual inspection device performs texture analysis on the pixel information in the scanning image to identify and calculate the contrast C, specifically by the following steps: 定义灰度值范围,将所述二维像素矩阵中的像素值,通过线性映射的方式映射到所述定义的灰度值范围,得到量化后的灰度级矩阵;Defining a grayscale value range, mapping the pixel values in the two-dimensional pixel matrix to the defined grayscale value range by linear mapping, and obtaining a quantized grayscale matrix; 对于所述量化后的灰度级矩阵,统计其中灰度对的出现次数,得到灰度共生矩阵;For the quantized grayscale matrix, counting the number of occurrences of grayscale pairs therein to obtain a grayscale co-occurrence matrix; 根据对比度C公式计算图像中的对比度;Calculate the contrast in the image according to the contrast C formula; C=-∑(i-j)2p(i,j)C=-∑(ij) 2 p(i,j) 其中,所述灰度共生矩阵中元素p(i,j)表示灰度值为i和j的像素对在图像中出现的次数。The element p(i, j) in the gray-level co-occurrence matrix represents the number of times a pixel pair with gray-level values i and j appears in the image. 6.根据权利要求5所述的基于深度学习模型的锯条齿形缺陷的视觉检测系统,其特征在于,所述第一视觉检测装置扫描图中的像素信息进行形态学分析用于识别计算齿间距D,具体为以下步骤:6. The visual inspection system for saw blade tooth defects based on a deep learning model according to claim 5 is characterized in that the first visual inspection device performs morphological analysis on the pixel information in the scanning image to identify and calculate the tooth spacing D, specifically the following steps: 将所述二维像素矩阵转换为二值图像,将锯齿区域与背景分离;其中,将大于设定值的像素值设为1,其余的设为0,得到所述二值图像;Convert the two-dimensional pixel matrix into a binary image, and separate the jagged area from the background; wherein pixel values greater than a set value are set to 1, and the rest are set to 0, to obtain the binary image; 对所述二值图像先后运用形态学腐蚀运算和膨胀运算,提取齿的形状和位置;Applying morphological erosion operation and dilation operation to the binary image successively to extract the shape and position of the tooth; 通过计算相邻的所述前景像素之间的距离来计算齿间距D。The tooth distance D is calculated by calculating the distance between adjacent foreground pixels. 7.根据权利要求1至6中任一所述的基于深度学习模型的锯条齿形缺陷的视觉检测系统,其特征在于,所述判断单元接收所述第一视觉检测装置所提取计算的裂纹宽度W、对比度C和齿间距D,以及每个特征值所对应的像素位置,将特征值分别与设定的裂纹宽度阈值区间、对比度阈值区间和齿间距阈值对比;对应的,7. The visual inspection system for saw blade tooth defects based on a deep learning model according to any one of claims 1 to 6, characterized in that the judgment unit receives the crack width W, contrast C and tooth spacing D extracted and calculated by the first visual inspection device, as well as the pixel position corresponding to each eigenvalue, and compares the eigenvalue with the set crack width threshold interval, contrast threshold interval and tooth spacing threshold respectively; correspondingly, 若所述提取计算的裂纹宽度W小于所述裂纹宽度阈值区间中的最小值,则标记为无裂纹缺陷;若裂纹宽度W大于裂纹宽度阈值区间中的最大值,则标记为存在裂纹缺陷;If the extracted and calculated crack width W is less than the minimum value in the crack width threshold interval, it is marked as no crack defect; if the crack width W is greater than the maximum value in the crack width threshold interval, it is marked as the presence of a crack defect; 若所述提取计算的对比度C小于所述对比度阈值区间中的最小值,则标记为无划痕缺陷;若对比度C大于对比度阈值区间中的最大值,则标记为存在划痕缺陷;If the extracted calculated contrast C is less than the minimum value in the contrast threshold interval, it is marked as no scratch defect; if the contrast C is greater than the maximum value in the contrast threshold interval, it is marked as the presence of a scratch defect; 若所述提取计算的齿间距D小于所述齿间距阈值,则标记为无齿缺陷;若所述提取计算的齿间距D大于所述齿间距阈值,则标记为存在齿缺陷;所述齿缺陷表征为齿缺失或齿损坏;If the tooth spacing D calculated by the extraction is less than the tooth spacing threshold, it is marked as no tooth defect; if the tooth spacing D calculated by the extraction is greater than the tooth spacing threshold, it is marked as the presence of a tooth defect; the tooth defect is characterized by tooth missing or tooth damage; 当所述裂纹宽度W的大小位于裂纹宽度阈值区间之内时,表示裂纹缺陷较小,启动所述第二视觉检测装置进行光谱分析;When the crack width W is within the crack width threshold range, it indicates that the crack defect is small, and the second visual detection device is started to perform spectral analysis; 当所述对比度C的大小位于对比度阈值区间之内时,表示划痕缺陷较小,启动第二视觉检测装置进行光谱分析。When the contrast C is within the contrast threshold range, it indicates that the scratch defect is small, and the second visual inspection device is started to perform spectral analysis. 8.根据权利要求7所述的基于深度学习模型的锯条齿形缺陷的视觉检测系统,其特征在于,所述第一视觉检测装置检测出位于对应的所述阈值区间之内裂纹宽度W和/或对比度C,以及其对应的像素位置,所述第二视觉检测装置分析该像素位置的不同所述特定波长的反射光谱数据,具体为分析不同特定波长的反射光强度变化;对应的,8. The visual inspection system for saw blade tooth defects based on a deep learning model according to claim 7 is characterized in that the first visual inspection device detects the crack width W and/or contrast C within the corresponding threshold interval, and the corresponding pixel position, and the second visual inspection device analyzes the reflection spectrum data of different specific wavelengths at the pixel position, specifically analyzing the change in the intensity of reflected light at different specific wavelengths; correspondingly, 在提取计算出所述裂纹宽度W的像素位置,若该位置处特定波长的反射光谱中,反射强度显著下降,则标记为存在裂纹缺陷;At the pixel position where the crack width W is extracted and calculated, if the reflection intensity in the reflection spectrum of a specific wavelength at the position decreases significantly, it is marked as the presence of a crack defect; 在提取计算出所述对比度C的像素位置,若该位置处特定波长的反射光谱中,反射强度显著上升或波动,则标记为存在划痕缺陷。When the pixel position where the contrast C is extracted and calculated is used, if the reflection intensity in the reflection spectrum of a specific wavelength at the position significantly increases or fluctuates, it is marked as the presence of a scratch defect. 9.根据权利要求1-8中任一所述的基于深度学习模型的锯条齿形缺陷的视觉检测系统,其特征在于,所述标记单元记录齿形缺陷处对应的像素位置,所述齿形缺陷包括裂纹缺陷、划痕缺陷以及齿缺陷,将其转化为在锯条上的实际位置并进行标记;所述转化步骤如下:9. The visual inspection system for saw blade tooth defects based on a deep learning model according to any one of claims 1 to 8, characterized in that the marking unit records the pixel position corresponding to the tooth defect, the tooth defect includes a crack defect, a scratch defect and a tooth defect, converts it into an actual position on the saw blade and marks it; the conversion steps are as follows: 确定进行视觉检测的锯条的实际物理尺寸和图像的像素分辨率之间的比例关系;Determining the proportional relationship between the actual physical size of the saw blade being visually inspected and the pixel resolution of the image; 根据所述比例关系将所述像素位置映射为锯条上的实际物理位置。The pixel position is mapped to an actual physical position on the saw blade according to the proportional relationship. 10.根据权利要求2所述的基于深度学习模型的锯条齿形缺陷的视觉检测系统,其特征在于,还包括有稳定光源,所述稳定光源用于为所述第一视觉检测装置提供稳定均匀的照明,并稳定光源与所述光源的光线不干涉。10. The visual inspection system for saw blade tooth defects based on a deep learning model according to claim 2 is characterized in that it also includes a stable light source, which is used to provide stable and uniform illumination for the first visual inspection device, and the stable light source does not interfere with the light of the light source.
CN202411445758.6A 2024-10-16 2024-10-16 Visual inspection system for saw blade tooth defects based on deep learning model Pending CN119395039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411445758.6A CN119395039A (en) 2024-10-16 2024-10-16 Visual inspection system for saw blade tooth defects based on deep learning model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411445758.6A CN119395039A (en) 2024-10-16 2024-10-16 Visual inspection system for saw blade tooth defects based on deep learning model

Publications (1)

Publication Number Publication Date
CN119395039A true CN119395039A (en) 2025-02-07

Family

ID=94421554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411445758.6A Pending CN119395039A (en) 2024-10-16 2024-10-16 Visual inspection system for saw blade tooth defects based on deep learning model

Country Status (1)

Country Link
CN (1) CN119395039A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119985356A (en) * 2025-04-15 2025-05-13 山东宏泰电器有限公司 Medical refrigerator box manufacturing detection system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119985356A (en) * 2025-04-15 2025-05-13 山东宏泰电器有限公司 Medical refrigerator box manufacturing detection system and method

Similar Documents

Publication Publication Date Title
US8139117B2 (en) Image quality analysis with test pattern
CN117152161B (en) Shaving board quality detection method and system based on image recognition
CN118470016B (en) Visual inspection system for appearance defects of workpiece based on image processing
CN110161035B (en) Structural surface crack detection method based on image feature and Bayesian data fusion
CN110853018B (en) An online detection system and detection method for vibration table fatigue cracks based on computer vision
RU2764644C1 (en) Method for detecting surface defects, device for detecting surface defects, method for producing steel materials, method for steel material quality control, steel materials production plant, method for generating models for determining surface defects and a model for determining surface defects
CN116563282B (en) Drilling tool detection method and system based on machine vision
CN118552522B (en) Image-based power generation equipment part production detection method
KR101867015B1 (en) Device and method for inspecting defect of glass and inspection system
CN115526889B (en) Nondestructive testing method of boiler pressure pipeline based on image processing
CN119395039A (en) Visual inspection system for saw blade tooth defects based on deep learning model
CN118396944A (en) A surface defect detection method and system based on computer vision
CN118887174A (en) Die casting defect recognition method and platform based on fusion vision
CN120147263A (en) An automatic detection system for bearing surface defects based on image recognition
CN117934453B (en) Method and system for diagnosing defects of backlight foreign matters of mobile phone screen
CN119470486A (en) An online defect detection system for float glass production
CN108765365A (en) A kind of rotor winding image qualification detection method
CN111833350A (en) Machine vision detection method and system
CN118180197A (en) Automatic conveying and detecting system for precision stamping progressive die
CN114419009A (en) Bearing front notch detection method based on edge compression approximate processing
JP2003156451A (en) Defect detection device
JP2004170374A (en) Surface defect detection device and surface defect detection method
JP2004125629A (en) Defect detection device
CN119131697B (en) Conveyor belt internal damage identification method based on X-ray detection
CN118379282B (en) Titanium plate polished surface smoothness detection method based on image processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination