CN118823024A - A method for identifying machining defects of air-cooled radiators - Google Patents
A method for identifying machining defects of air-cooled radiators Download PDFInfo
- Publication number
- CN118823024A CN118823024A CN202411310736.9A CN202411310736A CN118823024A CN 118823024 A CN118823024 A CN 118823024A CN 202411310736 A CN202411310736 A CN 202411310736A CN 118823024 A CN118823024 A CN 118823024A
- Authority
- CN
- China
- Prior art keywords
- pixel
- super
- noise
- region
- regions
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30164—Workpiece; Machine component
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
本发明涉及图像处理技术领域,提供一种风冷散热器的加工缺陷识别方法,包括:获取原始图像并进行预处理得到预处理图像,原始图像包括多个表面处理流程的若干连续帧;对预处理图像进行超像素分割得到多个超像素区域,并获取其区域图像特征;将多个超像素区域分为噪声区域和表面区域;通过分析各超像素区域受噪声区域的干扰程度得到各超像素区域的噪声影响系数;基于所述各超像素区域的噪声影响系数得到各超像素区域的自适应滤波强度系数,并基于各超像素区域的自适应滤波强度系数对原始图像进行高斯滤波平滑处理得到平滑表面图像;基于平滑表面图像识别缺陷区域。该方法有效提高了最终缺陷识别结果的准确性和可靠性。
The present invention relates to the field of image processing technology, and provides a method for identifying processing defects of air-cooled radiators, comprising: obtaining an original image and performing preprocessing to obtain a preprocessed image, wherein the original image includes several continuous frames of multiple surface processing processes; performing superpixel segmentation on the preprocessed image to obtain multiple superpixel regions, and obtaining their regional image features; dividing the multiple superpixel regions into noise regions and surface regions; obtaining the noise influence coefficient of each superpixel region by analyzing the degree of interference of each superpixel region by the noise region; obtaining the adaptive filtering strength coefficient of each superpixel region based on the noise influence coefficient of each superpixel region, and performing Gaussian filtering and smoothing on the original image based on the adaptive filtering strength coefficient of each superpixel region to obtain a smooth surface image; and identifying defective regions based on the smooth surface image. The method effectively improves the accuracy and reliability of the final defect recognition result.
Description
技术领域Technical Field
本发明涉及图像处理技术领域,具体涉及一种风冷散热器的加工缺陷识别方法。The present invention relates to the technical field of image processing, and in particular to a method for identifying processing defects of an air-cooled radiator.
背景技术Background Art
风冷散热器是一种用于散热的重要设备,特别是在人工智能和汽车引擎中广泛应用。风冷散热器通过空气流动来降低热量,使设备保持在安全工作温度范围内。然而,在制造和加工过程中,风冷散热器可能会出现各种缺陷,这些缺陷可能会影响其散热性能和寿命,甚至导致设备的不稳定或损坏。因此,对风冷散热器的加工缺陷识别是确保散热器产品质量安全可靠的关键。Air-cooled radiators are an important device for heat dissipation, especially in artificial intelligence and automobile engines. Air-cooled radiators reduce heat through air flow to keep the device within a safe operating temperature range. However, during the manufacturing and processing process, air-cooled radiators may have various defects, which may affect their heat dissipation performance and lifespan, and even cause instability or damage to the device. Therefore, the identification of processing defects of air-cooled radiators is the key to ensuring the quality, safety and reliability of radiator products.
现有的风冷散热器加工缺陷识别方法中,使用计算机视觉技术自动分析和识别散热器表面图像中的加工缺陷,然而,由于风冷散热器通常会经过不同的表面处理,如喷涂、阳极氧化等,这些处理会改变散热器表面的光学特性,导致光学图像中出现不均匀的光线反射或吸收,使得图像中出现不同亮度的噪声点,从而干扰影像系统的识别,使得现有的缺陷识别方法难以准确识别。In the existing air-cooled radiator processing defect recognition method, computer vision technology is used to automatically analyze and identify processing defects in the radiator surface image. However, since air-cooled radiators usually undergo different surface treatments, such as spraying, anodizing, etc., these treatments will change the optical properties of the radiator surface, resulting in uneven light reflection or absorption in the optical image, causing noise points of different brightness to appear in the image, thereby interfering with the recognition of the imaging system, making it difficult for existing defect recognition methods to accurately identify.
发明内容Summary of the invention
为了解决现有的缺陷识别方法难以准确识别的技术问题,本发明的目的在于提供一种风冷散热器的加工缺陷识别方法,所采用的技术方案具体如下:In order to solve the technical problem that the existing defect recognition method is difficult to accurately identify, the purpose of the present invention is to provide a method for identifying processing defects of air-cooled radiators. The technical solution adopted is as follows:
一种风冷散热器的加工缺陷识别方法,包括:A method for identifying machining defects of an air-cooled radiator, comprising:
获取原始图像并进行预处理得到预处理图像,所述原始图像包括多个表面处理流程的若干连续帧;Acquire an original image and perform preprocessing to obtain a preprocessed image, wherein the original image includes a plurality of continuous frames of a plurality of surface treatment processes;
对所述预处理图像进行超像素分割得到多个超像素区域,并获取多个所述超像素区域的区域图像特征;Performing superpixel segmentation on the preprocessed image to obtain a plurality of superpixel regions, and acquiring regional image features of the plurality of superpixel regions;
根据多个所述超像素区域的区域图像特征将多个超像素区域分为噪声区域和表面区域;Dividing the plurality of super-pixel regions into noise regions and surface regions according to regional image features of the plurality of super-pixel regions;
通过分析各超像素区域受所述噪声区域的干扰程度得到各超像素区域的噪声影响系数;The noise influence coefficient of each super-pixel region is obtained by analyzing the interference degree of each super-pixel region by the noise region;
基于所述各超像素区域的噪声影响系数得到各超像素区域的自适应滤波强度系数,并基于所述各超像素区域的自适应滤波强度系数对原始图像进行高斯滤波平滑处理得到平滑表面图像;Obtaining an adaptive filtering strength coefficient of each super-pixel region based on the noise influence coefficient of each super-pixel region, and performing Gaussian filtering and smoothing processing on the original image based on the adaptive filtering strength coefficient of each super-pixel region to obtain a smooth surface image;
基于所述平滑表面图像识别缺陷区域。Defective regions are identified based on the smooth surface image.
优选地,所述根据多个所述超像素区域的区域图像特征将多个超像素区域分为噪声区域和表面区域的步骤,包括:Preferably, the step of dividing the plurality of super-pixel regions into noise regions and surface regions according to regional image features of the plurality of super-pixel regions comprises:
根据多个所述超像素区域的区域图像特征将得到各超像素区域的表面特性稳定因子和信息缺失因子;According to the regional image features of the plurality of super-pixel regions, a surface characteristic stability factor and an information loss factor of each super-pixel region are obtained;
基于所述各超像素区域的表面特性稳定因子和信息缺失因子计算得到各超像素区域的噪声系数;The noise coefficient of each super-pixel region is calculated based on the surface characteristic stability factor and the information loss factor of each super-pixel region;
根据所述各超像素区域的噪声系数将多个超像素区域分为噪声区域和表面区域。The multiple super-pixel regions are divided into a noise region and a surface region according to the noise coefficient of each super-pixel region.
优选地,所述区域图像特征包括区域像素数据;所述区域像素数据包括区域边缘像素点数量、区域内像素点总数量、区域内像素点的像素值及坐标;Preferably, the regional image features include regional pixel data; the regional pixel data includes the number of regional edge pixels, the total number of pixels in the region, and the pixel values and coordinates of the pixels in the region;
根据多个所述超像素区域的区域图像特征得到各超像素区域的表面特性稳定因子为,根据各超像素区域内区域边缘像素点数量、区域内像素点总数量以及相邻两个表面处理流程的同一帧图像的差异计算得到所述各超像素区域的表面特性稳定因子。The surface characteristic stability factor of each superpixel region is obtained based on the regional image features of the multiple superpixel regions, and the surface characteristic stability factor of each superpixel region is calculated based on the number of regional edge pixels in each superpixel region, the total number of pixels in the region, and the difference between the same frame images of two adjacent surface processing processes.
优选地,根据多个所述超像素区域的区域图像特征得到各超像素区域的信息缺失因子包括:Preferably, obtaining the information missing factor of each superpixel region according to the regional image features of the plurality of superpixel regions comprises:
根据所述区域内像素点的像素值得到像素均值数据,组成像素均值数据集合,并获取每个像素均值数据在所述像素均值数据集合中出现的频次;Obtain pixel mean data according to the pixel values of the pixel points in the region to form a pixel mean data set, and obtain the frequency of occurrence of each pixel mean data in the pixel mean data set;
根据所有超像素区域的像素均值及出现的频次计算得到所述各超像素区域的信息缺失因子。The information missing factor of each superpixel region is calculated based on the pixel mean and the frequency of occurrence of all superpixel regions.
优选地,所述超像素区域的信息缺失因子的计算公式为:Preferably, the calculation formula of the information missing factor of the superpixel area is:
式中,为第个超像素区域之外的第个超像素区域的序号,为第个超像素区域的像素均值在像素均值数据集合中出现的频次,代表了第个超像素区域的像素均值频次,为除第个超像素区域之外的所有第个超像素区域的像素均值频次的均值,代表了第个超像素区域像素均值的突出程度系数,代表了第个超像素区域周围紧密相邻的所有超像素区域的总数量,代表了集合中的第个超像素区域的序号,代表了第个超像素区域的像素均值,代表了第个超像素区域的像素均值,代表了第个超像素区域的信息缺失因子。In the formula, For the The first The serial number of the superpixel region, For the The frequency of the pixel mean of a superpixel region appearing in the pixel mean data set, Represents the The average frequency of pixels in the superpixel region, For the All the first The average of the pixel mean frequencies in the superpixel region, Represents the The prominence coefficient of the mean pixel value in the superpixel region is Represents the The total number of all superpixel regions closely adjacent to the superpixel region, Represents a collection The The serial number of the superpixel region, Represents the The pixel mean of the superpixel region is Represents the The pixel mean of the superpixel region is Represents the The information loss factor of the superpixel region.
优选地,所述超像素区域的噪声系数的计算公式为:Preferably, the noise coefficient of the superpixel area is calculated as follows:
式中,为噪声系数,为信息缺失因子,为表面特性稳定因子。In the formula, is the noise factor, is the information missing factor, is the surface property stabilization factor.
优选地,根据所述各像素区域的噪声系数将多个像素区域分为噪声区域和表面区域为,预设一阈值,判断各像素区域的噪声系数是否大于所述预设的阈值,若是则为噪声区域,若否则为表面区域。Preferably, the plurality of pixel regions are divided into noise regions and surface regions according to the noise coefficient of each pixel region, a threshold is preset, and it is determined whether the noise coefficient of each pixel region is greater than the preset threshold, if so, it is a noise region, otherwise, it is a surface region.
优选地,所述通过分析各超像素区域受所述噪声区域的干扰程度得到各超像素区域的噪声影响系数为,根据各超像素区域的表面特性稳定因子及其周围预设数量个所述噪声区域的表面特性稳定因子、以及两者之间的欧式距离计算得到各超像素区域的噪声影响系数。Preferably, the noise influence coefficient of each superpixel area is obtained by analyzing the degree of interference of each superpixel area by the noise area, and the noise influence coefficient of each superpixel area is calculated according to the surface characteristic stability factor of each superpixel area and the surface characteristic stability factors of a preset number of noise areas around it, and the Euclidean distance between the two.
优选地,所述超像素区域的噪声影响系数的计算公式为:Preferably, the calculation formula of the noise influence coefficient of the super pixel area is:
式中,为第个超像素区域的表面特性稳定因子,为第个超像素区域周围距离最近的四个噪声区域的总数量,为集合中的第个噪声区域的序号,为第个超像素区域与第个噪声区域的欧氏距离,为第个噪声区域的表面特性稳定因子,为第个超像素区域的噪声影响系数。In the formula, For the The surface property stability factor of the superpixel area, For the The total number of the four nearest noise regions around the superpixel region, for The first in the collection The number of the noise region, For the The superpixel region is The Euclidean distance of the noise region, For the The surface characteristic stability factor of the noise region, For the The noise influence coefficient of the super pixel area.
优选地,基于所述各超像素区域的噪声影响系数得到各超像素区域的自适应滤波强度系数为,计算高斯滤波的最大标准差,将所述高斯滤波的最大标准差与所述超像素区域的噪声影响系数的乘积作为所述超像素区域的自适应滤波强度系数。Preferably, the adaptive filtering strength coefficient of each superpixel area is obtained based on the noise influence coefficient of each superpixel area, the maximum standard deviation of the Gaussian filter is calculated, and the product of the maximum standard deviation of the Gaussian filter and the noise influence coefficient of the superpixel area is used as the adaptive filtering strength coefficient of the superpixel area.
本发明具有如下有益效果:本发明提出的风冷散热器的加工缺陷识别方法,通过获取包括多个表面处理流程的若干连续帧的原始图像,根据多个所述超像素区域的区域图像特征将多个超像素区域分为噪声区域和表面区域,接着根据各超像素区域受噪声影响的干扰程度来设计自适应滤波强度系数,以确保后续图像处理的准确、可靠性,可以避免了风冷散热器经过不同的表面处理,如喷涂、阳极氧化等,改变风冷散热器表面的光学特性,导致光学图像中出现不均匀的光线反射或吸收,使得图像中出现不同亮度的噪声点,从而干扰影像系统识别的问题,有效提高了最终缺陷识别结果的准确性和可靠性。The present invention has the following beneficial effects: the processing defect identification method of the air-cooled radiator proposed in the present invention obtains the original image of several continuous frames including multiple surface treatment processes, divides multiple super-pixel areas into noise areas and surface areas according to the regional image characteristics of the multiple super-pixel areas, and then designs an adaptive filtering intensity coefficient according to the interference degree of each super-pixel area affected by noise to ensure the accuracy and reliability of subsequent image processing. It can avoid the problem that the optical properties of the surface of the air-cooled radiator are changed due to different surface treatments such as spraying, anodizing, etc., resulting in uneven light reflection or absorption in the optical image, causing noise points of different brightness in the image, thereby interfering with the recognition of the imaging system, and effectively improves the accuracy and reliability of the final defect recognition result.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案和优点,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它附图。In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
图1为本发明所提供的风冷散热器的加工缺陷识别方法的流程示意图;FIG1 is a schematic flow chart of a method for identifying machining defects of an air-cooled heat sink provided by the present invention;
图2为本发明中所获取风冷散热器表面图像的示意图;FIG2 is a schematic diagram of an image of the surface of an air-cooled heat sink obtained in the present invention;
图3为本发明所提供的风冷散热器的加工缺陷识别方法中步骤S3的子流程示意图。FIG. 3 is a schematic diagram of a sub-flow chart of step S3 in the method for identifying machining defects of an air-cooled heat sink provided by the present invention.
具体实施方式DETAILED DESCRIPTION
为了更进一步阐述本发明为达成预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对依据本发明提出的一种风冷散热器的加工缺陷识别方法,其具体实施方式、结构、特征及其功效,详细说明如下。在下述说明中,不同的“一个实施例”或“另一个实施例”指的不一定是同一实施例。此外,一或多个实施例中的特定特征、结构或特点可由任何合适形式组合。In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the processing defect identification method of an air-cooled radiator proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
下面结合附图具体地说明本发明所提供的一种风冷散热器的加工缺陷识别方法的具体方案。The specific scheme of the method for identifying machining defects of an air-cooled radiator provided by the present invention is described in detail below with reference to the accompanying drawings.
请参阅图1,其示出了本发明一个实施例提供的风冷散热器的加工缺陷识别方法的方法流程图,包括:Please refer to FIG1 , which shows a flow chart of a method for identifying machining defects of an air-cooled heat sink provided by an embodiment of the present invention, including:
步骤S1,获取原始图像并进行预处理得到预处理图像,所述原始图像包括多个表面处理流程的若干连续帧;Step S1, acquiring an original image and preprocessing it to obtain a preprocessed image, wherein the original image includes a plurality of continuous frames of a plurality of surface treatment processes;
步骤S2,对所述预处理图像进行超像素分割得到多个超像素区域,并获取多个所述超像素区域的区域图像特征;Step S2, performing superpixel segmentation on the preprocessed image to obtain a plurality of superpixel regions, and obtaining regional image features of the plurality of superpixel regions;
步骤S3,根据多个所述超像素区域的区域图像特征将多个超像素区域分为噪声区域和表面区域;Step S3, dividing the multiple super-pixel regions into noise regions and surface regions according to regional image features of the multiple super-pixel regions;
步骤S4,通过分析各超像素区域受所述噪声区域的干扰程度得到各超像素区域的噪声影响系数;Step S4, obtaining a noise influence coefficient of each super-pixel region by analyzing the interference degree of each super-pixel region caused by the noise region;
步骤S5,基于所述各超像素区域的噪声影响系数得到各超像素区域的自适应滤波强度系数,并基于所述各超像素区域的自适应滤波强度系数对原始图像进行高斯滤波平滑处理得到平滑表面图像;Step S5, obtaining an adaptive filtering strength coefficient of each super-pixel region based on the noise influence coefficient of each super-pixel region, and performing Gaussian filtering and smoothing processing on the original image based on the adaptive filtering strength coefficient of each super-pixel region to obtain a smooth surface image;
步骤S6,基于所述平滑表面图像识别缺陷区域。Step S6: identifying defective areas based on the smooth surface image.
本发明提出的风冷散热器的加工缺陷识别方法,本发明提出的风冷散热器的加工缺陷识别方法,通过获取包括多个表面处理流程的若干连续帧的原始图像,根据多个所述超像素区域的区域图像特征将多个超像素区域分为噪声区域和表面区域,接着根据各超像素区域受噪声影响的干扰程度来设计自适应滤波强度系数,以确保后续图像处理的准确、可靠性,可以避免了风冷散热器经过不同的表面处理,如喷涂、阳极氧化等,改变风冷散热器表面的光学特性,导致光学图像中出现不均匀的光线反射或吸收,使得图像中出现不同亮度的噪声点,从而干扰影像系统识别的问题,有效提高了最终缺陷识别结果的准确性和可靠性。The method for identifying processing defects of an air-cooled radiator proposed in the present invention obtains original images of several continuous frames including multiple surface treatment processes, divides multiple super-pixel areas into noise areas and surface areas according to regional image features of multiple super-pixel areas, and then designs an adaptive filtering intensity coefficient according to the degree of interference of each super-pixel area affected by noise to ensure the accuracy and reliability of subsequent image processing. It can avoid the problem that the optical properties of the surface of the air-cooled radiator are changed due to different surface treatments such as spraying, anodizing, etc., which leads to uneven light reflection or absorption in the optical image, and noise points of different brightness appear in the image, thereby interfering with the recognition of the imaging system, and effectively improves the accuracy and reliability of the final defect recognition result.
本发明的主要目的是:本发明为了解决传统缺陷检测方法由于表面处理引起的光学特性变化,使得缺陷的准确识别变的困难,提出了一种更加准确、可靠的缺陷识别方法。The main purpose of the present invention is to solve the problem that the optical characteristics of traditional defect detection methods change due to surface treatment, which makes it difficult to accurately identify defects. The present invention proposes a more accurate and reliable defect identification method.
本发明所针对的具体场景为:风冷散热器加工缺陷是指在制造过程中出现的各种问题,例如:焊接质量不良(焊缝处存在裂纹、气孔等)、材料缺陷(风冷散热器表面的金属疲劳裂纹等)。本发明针对传统的缺陷检测方法依赖于分析图像中的特定特征来识别缺陷,但由于表面处理引起的光学特性变化,这些方法会受到干扰,使得缺陷的准确识别变得困难。提出了一种基于局部区域光学特征的自适应图像去噪方法,以确保后续缺陷识别时的准确性。可以理解,本发明是在传统缺陷检测方法的基础上,进一步对图像进行处理,从而保证最终缺陷识别的准确性和可靠性。The specific scenario targeted by the present invention is: air-cooled radiator processing defects refer to various problems that occur during the manufacturing process, such as: poor welding quality (cracks, pores, etc. in the weld), material defects (metal fatigue cracks on the surface of the air-cooled radiator, etc.). The present invention targets traditional defect detection methods that rely on analyzing specific features in the image to identify defects, but these methods are interfered with due to changes in optical properties caused by surface treatment, making accurate identification of defects difficult. An adaptive image denoising method based on local area optical features is proposed to ensure accuracy in subsequent defect identification. It can be understood that the present invention further processes the image on the basis of traditional defect detection methods to ensure the accuracy and reliability of the final defect identification.
下面对各个步骤做详细说明:The following is a detailed description of each step:
在步骤S1中,可以是通过工业相机拍摄风冷散热器表面的图像,从而获得多帧图像集合。具体的来说,可以是,将多台高分辨率的工业相机安装在风冷散热器加工流线周围2米处(确保相机矩阵可以准确覆盖不同角度的风冷散热器表面),每间隔1s,拍摄获取每次经过加工后风冷散热器表面的图像(如图2所示),获取一段时间(一小时)内的散热器表面多帧图像集合A;需要注意的是在采集散热器表面图像时,只针对散热器进行表面加工处理时的流程(如阳极氧化、电镀、磨砂处理等)进行采集获取。In step S1, an image of the surface of the air-cooled radiator may be captured by an industrial camera to obtain a multi-frame image set. Specifically, multiple high-resolution industrial cameras may be installed 2 meters around the processing streamline of the air-cooled radiator (ensuring that the camera matrix can accurately cover the surface of the air-cooled radiator at different angles), and the image of the surface of the air-cooled radiator after each processing is captured every 1 second (as shown in FIG2 ), and a multi-frame image set A of the radiator surface within a period of time (one hour) is obtained; it should be noted that when collecting the radiator surface image, only the process of surface processing of the radiator (such as anodizing, electroplating, frosting, etc.) is collected and obtained.
所述预处理包括增加对比度、灰度处理等,是为了便于后续图像处理。具体来说,就是对多帧图像A进行图像处理,包括增加对比度、灰度化处理等;且,调整计算焦点尺寸比例值f(x,y)(基于局部图像梯度获取),并按照焦点尺寸比例值f(x,y)动态提取图像特征。该操作有助于在不同的图像区域下,动态选择合适的尺寸来提取特征(公知技术);以确保后续图像分析结果的可靠性。The preprocessing includes increasing contrast, grayscale processing, etc., in order to facilitate subsequent image processing. Specifically, it is to perform image processing on multiple frames of image A, including increasing contrast, grayscale processing, etc.; and adjust the calculated focus size ratio value f(x, y) (acquired based on local image gradient), and dynamically extract image features according to the focus size ratio value f(x, y). This operation helps to dynamically select the appropriate size to extract features in different image areas (known technology); to ensure the reliability of subsequent image analysis results.
在步骤S2中,超像素分割指的是将数字图像细分为多个图像子区域(像素的集合)的过程。超像素区域是由一系列位置相邻且颜色、亮度、纹理等特征相似的像素点组成的小区域,这些小区域保留了进一步进行图像分割的有效信息,且一般不会破坏图像中物体的边界信息。In step S2, superpixel segmentation refers to the process of subdividing a digital image into multiple image sub-regions (a collection of pixels). A superpixel region is a small region composed of a series of pixels with adjacent positions and similar characteristics such as color, brightness, and texture. These small regions retain effective information for further image segmentation and generally do not destroy the boundary information of objects in the image.
在现有的风冷散热器加工缺陷识别方法中,通常使用超像素区域分割算法来获得散热器表面图像中具有不同相似特征的多个超像素区域,以便后续基于超像素的特征设置阈值来筛选缺陷区域;然而实际操作中由于散热器在加工时的表面处理会影响散热器表面的光学特性变化,导致图像产生大量的亮度变化区域即噪声区域,而简单的基于单一阈值的分割方法无法准确的区分出噪声区域和真实表面缺陷区域。因此需要进一步对异常缺陷区域进行特征分析,以准确区分噪声和散热器表面真实缺陷。In the existing air-cooled heat sink processing defect recognition method, a superpixel region segmentation algorithm is usually used to obtain multiple superpixel regions with different similar features in the heat sink surface image, so as to set thresholds based on the superpixel features to screen the defective regions; however, in actual operation, the surface treatment of the heat sink during processing will affect the change of the optical properties of the heat sink surface, resulting in a large number of brightness change areas, namely noise areas, in the image, and the simple segmentation method based on a single threshold cannot accurately distinguish between the noise area and the real surface defect area. Therefore, it is necessary to further perform feature analysis on the abnormal defect area to accurately distinguish between noise and real defects on the heat sink surface.
本发明就是基于传统方法获取散热器表面图像中若干超像素区域,通过对风冷散热器表面局部区域在不同时刻的区域图像特征进行分析,获取当前区域受噪声影响的干扰程度来设计自适应的图像去噪强度,以确保后续获取风冷散热器表面图像的准确、可靠性。具体也就体现在步骤S3-S5。The present invention is based on the traditional method to obtain several super-pixel areas in the radiator surface image, analyzes the regional image features of the local area of the air-cooled radiator surface at different times, obtains the interference degree of the current area affected by noise, and designs the adaptive image denoising strength to ensure the accuracy and reliability of the subsequent acquisition of the air-cooled radiator surface image. This is specifically reflected in steps S3-S5.
在步骤S3中,一般情况下,风冷散热器表面在加工过程中某些区域的表面处理不均匀,会导致这些区域的光学特性(例如反射率或漫反射率)与周围区域有所不同。这种差异在图像中可能表现为亮度变化区域,即噪声区域。优选地,如图3所示,所述步骤S3包括:In step S3, in general, the surface treatment of some areas of the air-cooled heat sink is uneven during the processing, which will cause the optical properties of these areas (such as reflectivity or diffuse reflectivity) to be different from those of the surrounding areas. This difference may appear as a brightness change area in the image, that is, a noise area. Preferably, as shown in FIG3, step S3 includes:
步骤S31:根据多个所述超像素区域的区域图像特征将得到各超像素区域的表面特性稳定因子和信息缺失因子;Step S31: obtaining a surface characteristic stability factor and an information loss factor of each superpixel region according to regional image features of the plurality of superpixel regions;
步骤S32:基于所述各超像素区域的表面特性稳定因子和信息缺失因子计算得到各超像素区域的噪声系数;Step S32: Calculate the noise coefficient of each super-pixel region based on the surface characteristic stability factor and the information loss factor of each super-pixel region;
步骤S33:根据所述各超像素区域的噪声系数将多个超像素区域分为噪声区域和表面区域。Step S33: Divide the multiple super-pixel regions into noise regions and surface regions according to the noise coefficient of each super-pixel region.
其中,所述区域图像特征包括区域像素数据;所述区域像素数据包括区域边缘像素点数量、区域内像素点总数量、区域内像素点的像素值及坐标。也就是,基于多帧图像集合A中的连续帧,使用canny边缘检测算法来获取每个超像素区域的边缘曲线,统计每个超像素区域边缘像素点数量以及区域内像素点总数;获取每个超像素区域内所有像素点的像素值;同时,获取目标帧中每个超像素区域内的所有边缘像素点的数量以及坐标,获取下一帧中同位置的超像素区域内的所有边缘像素点的数量以及坐标。The regional image features include regional pixel data; the regional pixel data includes the number of regional edge pixels, the total number of pixels in the region, and the pixel values and coordinates of the pixels in the region. That is, based on the continuous frames in the multi-frame image set A, the canny edge detection algorithm is used to obtain the edge curve of each superpixel region, count the number of edge pixels in each superpixel region and the total number of pixels in the region; obtain the pixel values of all pixels in each superpixel region; at the same time, obtain the number and coordinates of all edge pixels in each superpixel region in the target frame, and obtain the number and coordinates of all edge pixels in the superpixel region at the same position in the next frame.
在步骤S31中,在该步骤中,可以分为获取超像素区域的表面特性稳定因子以及获取超像素区域的信息缺失因子两个步骤,可以同时进行,也可以先后进行。In step S31, in this step, it can be divided into two steps: obtaining the surface characteristic stability factor of the super-pixel area and obtaining the information missing factor of the super-pixel area, which can be performed simultaneously or successively.
在获取超像素区域的表面特性稳定因子中,可以理解,由于光在不同表面特性下的反射和漫反射会产生不同的亮度变化,使得噪声区域在不同的图像采集条件或处理步骤中表现出位置和形状的变化即流动性;对于真实缺陷区域,由于其散热器表面结构的稳定性使得其局部区域的特征在不同时刻下相对稳定。优选地,根据多个所述超像素区域的区域图像特征得到各超像素区域的表面特性稳定因子为,根据各超像素区域内区域边缘像素点数量、区域内像素点总数量以及相邻两个表面处理流程的同一帧图像的差异计算得到所述各超像素区域的表面特性稳定因子。In obtaining the surface characteristic stability factor of the super-pixel region, it can be understood that the reflection and diffuse reflection of light under different surface characteristics will produce different brightness changes, so that the noise area shows changes in position and shape, that is, fluidity, under different image acquisition conditions or processing steps; for the real defect area, due to the stability of its heat sink surface structure, the characteristics of its local area are relatively stable at different times. Preferably, the surface characteristic stability factor of each super-pixel region is obtained based on the regional image characteristics of multiple super-pixel regions, and the surface characteristic stability factor of each super-pixel region is calculated based on the number of regional edge pixels in each super-pixel region, the total number of pixels in the region, and the difference between the same frame images of two adjacent surface processing processes.
在一些具体实施方式中,获取超像素区域的表面特性稳定因子为:In some specific implementations, the surface characteristic stability factor of the superpixel region is obtained as:
计算相邻两帧坐标重合的边缘点数量,将其除以目标帧中该超像素区域内所有边缘点数量,得到结构稳态因子,记为D,该值越大代表相邻两帧中同一区域存在越多稳定不变的边缘曲线。The number of edge points whose coordinates overlap in two adjacent frames is calculated and divided by the number of all edge points in the superpixel area in the target frame to obtain the structural stability factor, denoted as D. The larger the value, the more stable and unchanging edge curves exist in the same area in two adjacent frames.
构建具体的目标超像素区域表面特性稳定因子公式:Construct a specific formula for the surface characteristic stability factor of the target superpixel area:
式中,代表了目标散热器表面图像中的第个超像素区域,代表了目标散热器经过的所有表面处理集合,代表了集合中的第个表面处理流程,代表了集合中的与第个表面处理流程相邻的表面处理流程,代表了散热器第个超像素区域在第个表面处理流程的第一帧表面图像(此处基于经验选择即可),代表了散热器第个超像素区域在第个表面处理流程的第一帧表面图像,代表了散热器第个超像素区域在第个表面处理流程的第一帧表面图像和第个表面处理流程的第一帧表面图像对应的结构稳态因子,代表了第个超像素区域的边缘像素点数量,代表了第个超像素区域的像素点数量,代表了第个超像素区域的表面特性稳定因子,为均方误差计算符号,通过基于散热器第个超像素区域在第和第个表面处理流程的第一帧表面图像中相同位置的像素值差异,计算均方误差,为归一化函数。其中,和选择相邻两个表面处理流程中的同一帧表面图像即可,而基于经验,优选为第一帧。In the formula, Represents the first Superpixel area, represents the set of all surface treatments that the target heat sink has undergone. Represents The first in the collection Surface treatment process, Represents The same as the Surface treatment process adjacent to the surface treatment process, Represents the radiator The superpixel region is The first frame of the surface image of the surface treatment process (here it can be selected based on experience), Represents the radiator The superpixel region is The first frame of surface image in the surface processing process, Represents the radiator The superpixel region is The first frame surface image and the second frame surface image of the surface processing process The structural stability factor corresponding to the first frame surface image of the surface treatment process, Represents the The number of edge pixels in a superpixel area, Represents the The number of pixels in a superpixel region, Represents the The surface property stability factor of the superpixel area, is the mean square error calculation symbol, based on the radiator The superpixel region is and The pixel value difference at the same position in the first frame surface image of each surface processing flow is used to calculate the mean square error. is the normalization function. and It suffices to select the same frame of surface images in two adjacent surface treatment processes, and based on experience, the first frame is preferred.
表示了第个超像素区域的像素值集合在不同帧图像中的差异与该区域的稳定结构系数的比值,在超像素区域为缺陷区域时,其表面特性由于散热器结构的稳定性,通常表现为在不同加工处理阶段图像之间的边缘曲线特征较为明显且边缘曲线稳定不会随着表面加工处理而产生变化,因此当目标超像素区域为经过不均匀表面处理的缺陷区域时,该区域即使在不同帧之间像素有着巨大差异,但其内部边缘曲线较为稳定,不会存在较大差异,则通过进行修正逻辑,同时结合区域内的边缘曲线数量即边缘像素点含量来对目标区域的结构稳定性进行修正,即,该取值越大,说明第个超像素区域为缺陷区域的可能性越大,则的取值越大。 It indicates the The ratio of the difference in the pixel value set of a super-pixel region in different frame images to the stable structure coefficient of the region. When the super-pixel region is a defective region, its surface characteristics are usually manifested as obvious edge curve features between images at different processing stages due to the stability of the radiator structure, and the edge curve is stable and will not change with the surface processing. Therefore, when the target super-pixel region is a defective region after uneven surface treatment, even if the pixels of this region have huge differences between different frames, its internal edge curve is relatively stable and will not have large differences. The correction logic is performed, and the structural stability of the target area is corrected by combining the number of edge curves in the area, that is, the edge pixel content, that is, The larger the value, the The greater the possibility that a superpixel region is a defective region, The larger the value of .
在获取超像素区域的信息缺失因子中,在风冷散热器表面图像中,真实缺陷区域和噪声区域与正常区域存在显著的对比度差异,噪声区域由于结构特性问题相比较正常区域和真实缺陷具有不同的亮度特征,造成了局部区域图像信息的掩盖缺失,因此可以通过分析不同区域与周围区域的亮度差异特征,来获取表面图像中所有的噪声区域。优选地,根据多个所述超像素区域的区域图像特征得到各超像素区域的信息缺失因子包括:根据所述区域内像素点的像素值得到像素均值数据,组成像素均值数据集合,并获取每个像素均值数据在所述像素均值数据集合中出现的频次;根据所有超像素区域的像素均值及出现的频次计算得到所述各超像素区域的信息缺失因子。In obtaining the information missing factor of the superpixel area, in the surface image of the air-cooled radiator, there is a significant contrast difference between the real defect area and the noise area and the normal area. The noise area has different brightness characteristics compared with the normal area and the real defect due to the structural characteristics, resulting in the masking and loss of local area image information. Therefore, all noise areas in the surface image can be obtained by analyzing the brightness difference characteristics between different areas and surrounding areas. Preferably, the information missing factor of each superpixel area is obtained according to the regional image characteristics of multiple superpixel areas, including: obtaining pixel mean data according to the pixel values of the pixel points in the area, forming a pixel mean data set, and obtaining the frequency of each pixel mean data in the pixel mean data set; the information missing factor of each superpixel area is calculated according to the pixel mean and the frequency of occurrence of all superpixel areas.
在一些具体实施方式中,获取超像素区域的信息缺失因子为:In some specific implementations, the information missing factor for obtaining the superpixel region is:
获取表面图像中每个超像素区域的像素均值数据,组成数据集合B。同时获取每个均值数据在集合中出现的频次;Obtain the pixel mean data of each superpixel area in the surface image to form a data set B. At the same time, obtain the frequency of each mean data in the set;
构建具体的目标超像素区域的信息缺失因子公式:Construct the information missing factor formula for the specific target superpixel area:
式中,为第个超像素区域之外的第个超像素区域的序号,为第个超像素区域的像素均值在像素均值数据集合中出现的频次,代表了第个超像素区域的像素均值频次,为除第个超像素区域之外的所有第个超像素区域的像素均值频次的均值,代表了第个超像素区域像素均值的突出程度系数,代表了第个超像素区域周围紧密相邻的所有超像素区域的总数量,代表了集合中的第个超像素区域的序号,代表了第个超像素区域的像素均值,代表了第个超像素区域的像素均值,为第个超像素区域的信息缺失因子。In the formula, For the The first The serial number of the superpixel region, For the The frequency of the pixel mean of a superpixel region appearing in the pixel mean data set, Represents the The average frequency of pixels in the superpixel region, For the All the first The average of the pixel mean frequencies in the superpixel region, Represents the The prominence coefficient of the mean pixel value in the superpixel region is Represents the The total number of all superpixel regions closely adjacent to the superpixel region, Represents a collection The The serial number of the superpixel region, Represents the The pixel mean of the superpixel region is Represents the The pixel mean of the superpixel region is For the The information loss factor of the superpixel region.
综上,表示了目标超像素区域像素均值在整体表面图像中的突出程度,由于表面图像中,正常区域面积一定远远大于区域面积,而正常区域的像素均值通常是相似的。因此,突出程度越大的区域像素值可以有效代表目标散热器表面的正常像素值;在对目标区域的信息进行缺失评估时,可以根据其余周围紧密相邻区域的亮度差异来进行信息缺失评估,同时对于趋近于正常表面区域的像素值设置较大的权重,以确保分析结果更能凸显出目标区域亮度异常导致的原有图像信息缺失情况,则取值越大,的取值越大。In summary, It indicates the prominence of the mean pixel value of the target superpixel region in the overall surface image. Since the area of the normal region in the surface image must be much larger than the area of the region, and the mean pixel value of the normal region is usually similar. Therefore, the pixel value of the region with a greater prominence can effectively represent the normal pixel value of the target radiator surface; when evaluating the missing information of the target region, the information missing can be evaluated based on the brightness difference of the remaining closely adjacent regions. At the same time, a larger weight is set for the pixel value close to the normal surface area to ensure that the analysis result can better highlight the missing information of the original image caused by the abnormal brightness of the target region. The larger the value, The larger the value of .
在步骤S32中,优选地,所述超像素区域的噪声系数的计算公式为:In step S32, preferably, the noise coefficient of the super pixel area is calculated as:
式中,为噪声系数,为信息缺失因子,为表面特性稳定因子。In the formula, is the noise factor, is the information missing factor, is the surface property stabilization factor.
为该区域的噪声系数,其取值越大,说明该超像素区域的信息缺失系数越大,同时其表面特性稳定性越小,该区域为异常区域且为噪声区域的可能性越大。 is the noise coefficient of the area. The larger its value is, the larger the information missing coefficient of the superpixel area is. At the same time, the smaller the stability of its surface characteristics is, the greater the possibility that the area is an abnormal area and a noise area.
在步骤S33中,优选地,根据所述各像素区域的噪声系数将多个像素区域分为噪声区域和表面区域为,预设一阈值,判断各像素区域的噪声系数是否大于所述预设的阈值,若是则为噪声区域,若否则为表面区域。本发明在此基于经验设置阈值,将任意超像素区域的噪声系数与阈值进行比较判断,大于阈值的视为噪声区域,小于阈值的视为表面区域(包含了正常区域和缺陷区域)。至此,也就准确区分出散热器表面图像中的正常区域、缺陷区域以及噪声区域。In step S33, preferably, the plurality of pixel regions are divided into noise regions and surface regions according to the noise coefficient of each pixel region, a threshold is preset, and it is determined whether the noise coefficient of each pixel region is greater than the preset threshold, if so, it is a noise region, otherwise, it is a surface region. The present invention sets the threshold based on experience , the noise coefficient of any superpixel area Compare with the threshold, the area greater than the threshold is considered as the noise area, and the area less than the threshold is considered as the surface area (including the normal area and the defect area). At this point, the normal area, defect area and noise area in the radiator surface image are accurately distinguished.
在步骤S4中,可以理解,后续对散热器表面图像中的任意超像素区域在进行滤波平滑处理时,当其周围的噪声区域越密集时,其可能与真实的缺陷边界非常接近,甚至重叠,因此对于任意长像素区域在进行后续滤波平滑处理前,需要综合考虑其区域特性以及周围噪声区域的密集程度来获取其区域的噪声影响程度系数。优选地,所述通过分析各超像素区域受所述噪声区域的干扰程度得到各超像素区域的噪声影响系数为,根据各超像素区域的表面特性稳定因子及其周围预设数量个所述噪声区域的表面特性稳定因子、以及两者之间的欧式距离计算得到各超像素区域的噪声影响系数。In step S4, it can be understood that when filtering and smoothing any super-pixel region in the radiator surface image, the denser the noise region around it is, the closer it may be to the real defect boundary, or even overlap it. Therefore, for any long pixel region, before performing subsequent filtering and smoothing, it is necessary to comprehensively consider its regional characteristics and the density of the surrounding noise region to obtain the noise influence coefficient of its region. Preferably, the noise influence coefficient of each super-pixel region obtained by analyzing the degree of interference of each super-pixel region by the noise region is calculated according to the surface characteristic stability factor of each super-pixel region and the surface characteristic stability factors of a preset number of the noise regions around it, and the Euclidean distance between the two.
在一些具体实施方式中,获取超像素区域的噪声影响系数为:In some specific implementations, the noise influence coefficient of the superpixel region is obtained as:
获取任意超像素区域周围距离最近的4个噪声区域,以及任意超像素区域质心之间的欧氏距离;Get the four nearest noise regions around any superpixel region, and the Euclidean distance between the centroids of any superpixel region;
构建具体的噪声影响系数公式:Construct a specific noise impact coefficient formula:
式中,为第个超像素区域的表面特性稳定因子,为第个超像素区域周围距离最近的四个噪声区域的总数量,为集合中的第个噪声区域的序号,为第个超像素区域与第个噪声区域的欧氏距离,为第个噪声区域的表面特性稳定因子,为第个超像素区域的噪声影响系数。可以理解,其中的取值为4。In the formula, For the The surface property stability factor of the superpixel area, For the The total number of the four nearest noise regions around the superpixel region, for The first in the collection The number of the noise region, For the The superpixel region is The Euclidean distance of the noise region, For the The surface characteristic stability factor of the noise region, For the The noise influence coefficient of the super pixel area. It can be understood that The value of is 4.
综上,通过分析目标区域自身的表面特性稳定因子结合周围距离最近的4个噪声区域的聚集程度以及其噪声强度来对目标区域的噪声影响进行量化,即,该取值越大,说明目标区域自身存在一定程度的表面特性不稳定性质或即使存在较稳定的表面特性,但其周围存在较为密集且噪声强度较大的噪声区域,这种情况下更容易使得目标区域的真实边缘曲线产生模糊,在后续进行图像平滑处理时,该部分区域需要设置较大的平滑效果。In summary, the noise impact of the target area is quantified by analyzing the surface characteristic stability factor of the target area itself and combining the aggregation degree and noise intensity of the four nearest noise areas around it, that is, The larger the value is, the more it indicates that the target area itself has a certain degree of unstable surface characteristics, or even if it has relatively stable surface characteristics, there is a relatively dense noise area with high noise intensity around it. In this case, it is easier to blur the real edge curve of the target area. When performing subsequent image smoothing processing, this part of the area needs to be set with a larger smoothing effect.
在步骤S5中,根据计算得到的局部区域噪声影响程度,对原始图像进行高斯滤波平滑处理,以减少噪声点的影响,并增加平滑后异常区域的可靠性,获得更加准确的表面图像,以便于后续对表面缺陷的进一步分析。优选地,基于所述各超像素区域的噪声影响系数得到各超像素区域的自适应滤波强度系数为,计算高斯滤波的最大标准差,将所述高斯滤波的最大标准差与所述超像素区域的噪声影响系数的乘积作为所述超像素区域的自适应滤波强度系数。In step S5, according to the calculated local area noise influence degree, the original image is subjected to Gaussian filtering and smoothing processing to reduce the influence of noise points and increase the reliability of the abnormal area after smoothing, so as to obtain a more accurate surface image, so as to facilitate the subsequent further analysis of surface defects. Preferably, based on the noise influence coefficient of each super-pixel area, the adaptive filtering strength coefficient of each super-pixel area is obtained, the maximum standard deviation of the Gaussian filter is calculated, and the product of the maximum standard deviation of the Gaussian filter and the noise influence coefficient of the super-pixel area is used as the adaptive filtering strength coefficient of the super-pixel area.
具体就是,设置面积为L的高斯滤波,在高斯滤波中,所有元素权重的总和为1,因此理论上高斯滤波的滤波强度最大应无限接近于“中心元素权重为1,其余元素权重为0”,即高斯滤波理论上服从的最大标准差为:Specifically, a Gaussian filter with an area of L is set. In the Gaussian filter, the sum of the weights of all elements is 1. Therefore, in theory, the maximum filtering strength of the Gaussian filter should be infinitely close to "the weight of the central element is 1, and the weights of the other elements are 0", that is, the maximum standard deviation that the Gaussian filter theoretically obeys is:
L代表高斯滤波的面积,代表中心元素权重为1时,中心权重与权重均值的平方差,代表其余L-1个元素权重为0时,与权重均值的平方差之和,因此代表当高斯滤波中心元素权重为1时,高斯滤波内所有元素权重的方差,对其开根号得到最大标准差为Z;L represents the area of Gaussian filtering, Represents the square difference between the center weight and the weight mean when the center element weight is 1. represents the sum of the squared differences between the remaining L-1 elements and the weight mean when their weights are 0, so It represents the variance of all element weights in the Gaussian filter when the weight of the central element of the Gaussian filter is 1. The maximum standard deviation obtained by taking the square root of the variance is Z.
需要说明的是,计算高斯滤波的最大标准差,是为了在其基础上自适应设置每个信号区域所需要的高斯滤波强度,仅作为参照数据,无实际意义;It should be noted that the maximum standard deviation of the Gaussian filter is calculated in order to adaptively set the Gaussian filter strength required for each signal area based on it. It is only used as reference data and has no practical significance.
代表第个区域的噪声影响程度系数,为第i个区域调节后的高斯滤波标准差; Representative The noise impact coefficient of the area, is the Gaussian filter standard deviation after adjustment in the i-th region;
利用面积为L的高斯滤波最大标准差与第i个区域的噪声影响程度系数相乘,得到第i个区域调节后的高斯滤波标准差。The maximum standard deviation of the Gaussian filter with area L is multiplied by the noise influence coefficient of the i-th region to obtain the adjusted Gaussian filter standard deviation of the i-th region. .
根据高斯滤波即可随机生成一组服从于标准差的元素权重集合,已得滤波内每个位置的元素权重与散热器表面图像上每个位置的像素点像素值一一对应,对数据进行加权平均处理,即可得到滤波后的表面图像,以上是公知技术在此不多赘述,最终得到平滑后的散热器表面图像,也即所述平滑表面图像。According to Gaussian filtering, a set of The element weight set of each position in the filter has a one-to-one correspondence with the pixel value of each position on the radiator surface image. The data is weighted averaged to obtain the filtered surface image. The above is a well-known technology and will not be described in detail here. Finally, the smoothed radiator surface image is obtained, that is, the smoothed surface image.
在步骤S6中,根据获得的平滑表面图像,利用边缘检测从图像中提取出可能的缺陷区域特征,对提取的特征进行识别,例如可以使用模版匹配技术,以检测和识别缺陷区域,获得更为准确地缺陷区域,最终将缺陷区域可视化生成报告,以便进一步分析和处理,从而更好的对风冷散热器表面加工质量进行评估和处理。In step S6, based on the obtained smooth surface image, edge detection is used to extract possible defective area features from the image, and the extracted features are identified. For example, template matching technology can be used to detect and identify defective areas to obtain more accurate defective areas. Finally, the defective areas are visualized and a report is generated for further analysis and processing, so as to better evaluate and process the surface processing quality of the air-cooled radiator.
需要说明的是:上述本发明实施例先后顺序仅仅为了描述,不代表实施例的优劣。在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411310736.9A CN118823024B (en) | 2024-09-20 | 2024-09-20 | A method for identifying machining defects of air-cooled radiators |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411310736.9A CN118823024B (en) | 2024-09-20 | 2024-09-20 | A method for identifying machining defects of air-cooled radiators |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118823024A true CN118823024A (en) | 2024-10-22 |
| CN118823024B CN118823024B (en) | 2024-11-29 |
Family
ID=93086330
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411310736.9A Active CN118823024B (en) | 2024-09-20 | 2024-09-20 | A method for identifying machining defects of air-cooled radiators |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118823024B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120430978A (en) * | 2025-07-07 | 2025-08-05 | 陕西日昇达塑业科技有限公司 | Real-time monitoring method and system for injection molding production line based on machine vision |
| CN120431091A (en) * | 2025-07-04 | 2025-08-05 | 西安隆源热技术有限公司 | Radiator surface treatment quality assessment method based on machine vision |
| CN120876475A (en) * | 2025-09-26 | 2025-10-31 | 宝鸡忠诚铸造有限责任公司 | Real-time detection method and system for surface defects for casting production |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115049835A (en) * | 2022-08-16 | 2022-09-13 | 众烁精密模架(南通)有限公司 | Data preprocessing method based on die-casting die defect identification |
| CN116310360A (en) * | 2023-05-18 | 2023-06-23 | 实德电气集团有限公司 | A method for detecting surface defects of a reactor |
-
2024
- 2024-09-20 CN CN202411310736.9A patent/CN118823024B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115049835A (en) * | 2022-08-16 | 2022-09-13 | 众烁精密模架(南通)有限公司 | Data preprocessing method based on die-casting die defect identification |
| CN116310360A (en) * | 2023-05-18 | 2023-06-23 | 实德电气集团有限公司 | A method for detecting surface defects of a reactor |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120431091A (en) * | 2025-07-04 | 2025-08-05 | 西安隆源热技术有限公司 | Radiator surface treatment quality assessment method based on machine vision |
| CN120431091B (en) * | 2025-07-04 | 2025-09-09 | 西安隆源热技术有限公司 | Radiator surface treatment quality assessment method based on machine vision |
| CN120430978A (en) * | 2025-07-07 | 2025-08-05 | 陕西日昇达塑业科技有限公司 | Real-time monitoring method and system for injection molding production line based on machine vision |
| CN120876475A (en) * | 2025-09-26 | 2025-10-31 | 宝鸡忠诚铸造有限责任公司 | Real-time detection method and system for surface defects for casting production |
| CN120876475B (en) * | 2025-09-26 | 2026-02-10 | 宝鸡忠诚铸造有限责任公司 | Real-time detection method and system for surface defects for casting production |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118823024B (en) | 2024-11-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN118823024A (en) | A method for identifying machining defects of air-cooled radiators | |
| CN117522870B (en) | Intelligent defect detection method for aeroengine parts based on machine vision | |
| CN117315289B (en) | Aeroengine blade contour edge detection method based on image processing | |
| CN116758083A (en) | Rapid detection method of metal washbasin defects based on computer vision | |
| CN117764989B (en) | Visual-aided display screen defect detection method | |
| CN115330767A (en) | Method for identifying production abnormity of corrosion foil | |
| CN118392891A (en) | Chip packaging defect detection method and system based on machine vision | |
| CN115018785B (en) | A method for detecting the tension of lifting wire rope based on visual vibration frequency recognition | |
| CN116228780B (en) | Silicon wafer defect detection method and system based on computer vision | |
| CN110427979B (en) | Identification method of road puddles based on K-Means clustering algorithm | |
| CN118799302A (en) | An adaptive segmentation method for rail surface defect images | |
| CN118037715B (en) | Intelligent solder joint analysis and optimization method and system for PCBA boards | |
| CN115330758B (en) | Welding quality detection method based on denoising process | |
| CN117274113B (en) | Visual detection method of broken silicon wafer cleaning effect based on image enhancement | |
| CN118823588A (en) | An improved YOLOV8 method for multi-pose target recognition and positioning of chili pepper | |
| CN119850619B (en) | Method and device for detecting surface defects of LED special-shaped screen based on image analysis | |
| CN118470015A (en) | A method and system for visual inspection of titanium alloy rod production quality | |
| CN119379609A (en) | A flange surface defect detection algorithm based on traditional image processing | |
| CN117522863B (en) | Integrated box body quality detection method based on image features | |
| CN117197138B (en) | Computer host shell scratch detection method based on image features | |
| CN114998226B (en) | A defect evaluation method for pitting areas of metal fasteners | |
| CN117115174B (en) | Automatic detection method and system for appearance of pliers | |
| CN120599285A (en) | Discharge channel extraction method and system based on edge detection and texture feature fusion | |
| CN119863455A (en) | Image detection method for circuit breaker conductive system | |
| CN116883401B (en) | Industrial product production quality detection system |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |