CN114526694A - Method for measuring metal surface roughness - Google Patents

Method for measuring metal surface roughness Download PDF

Info

Publication number
CN114526694A
CN114526694A CN202210015553.9A CN202210015553A CN114526694A CN 114526694 A CN114526694 A CN 114526694A CN 202210015553 A CN202210015553 A CN 202210015553A CN 114526694 A CN114526694 A CN 114526694A
Authority
CN
China
Prior art keywords
image
algorithm
roughness
metal
measurement
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
Application number
CN202210015553.9A
Other languages
Chinese (zh)
Other versions
CN114526694B (en
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.)
Beijing Research Institute of Auotomation for Machinery Industry Co Ltd
Original Assignee
Beijing Research Institute of Auotomation for Machinery Industry Co Ltd
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 Beijing Research Institute of Auotomation for Machinery Industry Co Ltd filed Critical Beijing Research Institute of Auotomation for Machinery Industry Co Ltd
Priority to CN202210015553.9A priority Critical patent/CN114526694B/en
Publication of CN114526694A publication Critical patent/CN114526694A/en
Application granted granted Critical
Publication of CN114526694B publication Critical patent/CN114526694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/30Measuring arrangements characterised by the use of optical techniques for measuring roughness or irregularity of surfaces
    • G01B11/306Measuring arrangements characterised by the use of optical techniques for measuring roughness or irregularity of surfaces for measuring evenness
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • G06T2207/20032Median filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30136Metal

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

A method of metal surface roughness measurement comprising the steps of: scanning the surface of the metal to be detected by adopting a laser structured light 3D vision system; when the scanning plane of the 3D vision system is not parallel to the surface of the measured metal, the 3D vision system levels the surface of the measured metal and obtains a leveling image; the 3D vision system scans and images the surface of the metal to be detected to obtain the 3D appearance of the surface of the metal to be detected; and measuring the surface roughness of the metal to be measured by utilizing a plurality of image processing algorithms. The method adopts the laser structured light 3D vision system to scan and image the metal surface to obtain the 3D morphology of the metal surface, and then utilizes an image processing algorithm to automatically measure the roughness of the metal surface, so that the method has higher real-time performance, increases the measurement reliability, and can realize the full automation of large-scale construction surface roughness detection.

Description

一种金属表面粗糙度的测量方法A kind of measuring method of metal surface roughness

技术领域technical field

本发明涉及一种机械工程与机器视觉交叉技术,特别是一种采用激光结构光视觉进行金属表面粗糙度的测量方法。The invention relates to a cross technology of mechanical engineering and machine vision, in particular to a method for measuring metal surface roughness by using laser structured light vision.

背景技术Background technique

在船舶、核工业、重型机械、车辆等大型设备的生产过程中,金属材料是一种常用的结构材料,其中黑色金属,尤其是钢铁的使用量十分庞大,在这些构件服役的过程中,难免会产生腐蚀等问题,进而造成了构件使用寿命的降低、使用可靠性的降低以及外在美观度的降低。对表面进行喷涂是解决黑色金属表面腐蚀问题的常用办法,为了提高喷涂材料与金属表面的结合性,经常要对金属表面进行喷丸和喷砂处理,以提高金属表面的粗糙度,同时去除表面氧化物等杂质。In the production process of large-scale equipment such as ships, nuclear industry, heavy machinery, and vehicles, metal materials are a commonly used structural material. Among them, ferrous metals, especially steel, are used in a large amount. During the service process of these components, it is inevitable Problems such as corrosion will occur, which will lead to the reduction of the service life of the components, the reduction of the reliability of use and the reduction of the external aesthetics. Spraying the surface is a common method to solve the corrosion problem of ferrous metal surfaces. In order to improve the bonding between the sprayed material and the metal surface, the metal surface is often shot and sandblasted to improve the roughness of the metal surface and remove surface oxidation. impurities and other impurities.

金属表面喷丸和喷砂后,表面粗糙度的度量是决定喷涂质量的重要因素,因此,对表面粗糙度的测量是对喷丸、喷砂处理质量的重要衡量环节。目前,用于表面粗糙度测量的主要方法有比较样块目测法、显微镜调焦法、触针法以及复制带法,这些测量方法主要操作都依赖于人工,主要评价也依赖于工作人员的经验,存在测量效率低、测量客观性差、测量准确度低等问题。After the metal surface is shot and sandblasted, the measurement of surface roughness is an important factor in determining the quality of spraying. Therefore, the measurement of surface roughness is an important measure of the quality of shot and sandblasting. At present, the main methods used for surface roughness measurement include visual inspection of comparative samples, microscope focusing method, stylus method and replication tape method. , there are problems such as low measurement efficiency, poor measurement objectivity, and low measurement accuracy.

另外,喷丸、喷砂环境都是比较恶劣的环境,操作工人在检测过程中也存在各种不健康和危险因素。因此,实现粗糙度测量的自动化是亟需解决的问题。近年来,机器视觉技术有了很大的进步,将机器视觉技术应用于粗糙度自动化测量将有助于该作业自动化程度的提高和精度的提高。In addition, the shot blasting and sand blasting environments are relatively harsh environments, and operators also have various unhealthy and dangerous factors during the inspection process. Therefore, it is an urgent problem to realize the automation of roughness measurement. In recent years, machine vision technology has made great progress, and the application of machine vision technology to automatic roughness measurement will help to improve the degree of automation and accuracy of this operation.

发明内容SUMMARY OF THE INVENTION

本发明所要解决的技术问题是针对现有技术的上述缺陷,提供一种采用激光结构光视觉进行金属表面粗糙度的测量方法。The technical problem to be solved by the present invention is to provide a method for measuring metal surface roughness using laser structured light vision for the above-mentioned defects of the prior art.

为了实现上述目的,本发明提供了一种金属表面粗糙度测量的方法,其中,包括如下步骤:In order to achieve the above object, the present invention provides a method for measuring metal surface roughness, which includes the following steps:

S100、采用激光结构光3D视觉系统扫描被测金属的表面;S100, using a laser structured light 3D vision system to scan the surface of the metal to be tested;

S200、当所述3D视觉系统的扫描平面与所述被测金属的表面不平行时,所述3D视觉系统对所述被测金属的表面进行调平并得到调平图像;S200. When the scanning plane of the 3D vision system is not parallel to the surface of the metal to be measured, the 3D vision system levels the surface of the metal to be measured and obtains a leveling image;

S300、所述3D视觉系统对所述被测金属表面进行扫描成像,获取所述被测金属的表面3D形貌;以及S300, the 3D vision system scans and images the surface of the metal to be tested, and obtains the surface 3D topography of the metal to be tested; and

S400、利用多种图像处理算法,对所述被测金属的表面粗糙度进行测量。S400, using a variety of image processing algorithms to measure the surface roughness of the metal to be tested.

上述的金属表面粗糙度测量的方法,其中,步骤S200中,所述调平图像采用调平算法获得,所述调平算法包括如下步骤:In the above method for measuring metal surface roughness, in step S200, the leveling image is obtained by using a leveling algorithm, and the leveling algorithm includes the following steps:

S201、对所述3D视觉系统扫描所述被测金属表面得到的原始图像Isr进行平滑,得到平滑图像IsmS201, smooth the original image Isr obtained by scanning the measured metal surface by the 3D vision system to obtain a smoothed image Ism ;

S202、用所述原始图像Isr与所述平滑图像Ism相减得到相减图像Isu;以及S202, subtracting the original image Isr and the smoothed image Ism to obtain a subtracted image Isu ; and

S203、将所述相减图像Isu与所述原始图像Isr的平均值相加得到所述调平图像IslS203. Add the average value of the subtracted image I su and the original image Is sr to obtain the leveled image I sl .

上述的金属表面粗糙度测量的方法,其中,步骤S400中的多种图像处理算法包括:In the above method for measuring metal surface roughness, the various image processing algorithms in step S400 include:

S410、深度图像缺失信息补回算法;S410, a depth image missing information compensation algorithm;

S420、深度图像噪声去除算法;S420, a depth image noise removal algorithm;

S430、指定线段与区域粗糙度测量算法;S430. Specify the line segment and area roughness measurement algorithm;

S440、改进抗干扰分水岭分割算法;以及S440. Improve the anti-jamming watershed segmentation algorithm; and

S450、抛砂抛丸沙坑参数统计算法。S450. Statistical algorithm of sand and shot blasting bunker parameters.

上述的金属表面粗糙度测量的方法,其中,所述深度图像缺失信息补回算法,包括如下步骤:The above-mentioned method for measuring metal surface roughness, wherein, the depth image missing information compensation algorithm includes the following steps:

S411、用形态学算子对调平图像Isl进行闭运算,得到闭运算图像IscS411, perform a closing operation on the leveling image I sl with a morphological operator to obtain a closing operation image I sc ;

S412、查找所述被测金属的原始图像Isr的缺失点,所述缺失点的值为零,得到缺失区二值图像IzbS412, find the missing point of the original image I sr of the tested metal, the value of the missing point is zero, and obtain the binary image I zb of the missing area;

S413、用所述缺失区二值图像Izb与所述闭运算图像Isc进行点乘,得到缺失区补回图像Izr;以及S413, perform point multiplication with the binary image I zb of the missing area and the closed operation image I sc to obtain the replacement image I zr of the missing area; and

S414、将所述缺失区补回图像Izr与原始图像Isr相加得到补回图像IreS414. Add the complemented image I zr of the missing area to the original image Isr to obtain the complemented image I re .

上述的金属表面粗糙度测量的方法,其中,所述深度图像噪声去除算法包括如下步骤:The above method for measuring metal surface roughness, wherein, the depth image noise removal algorithm includes the following steps:

S421、对所述补回图像Ire进行拉普拉斯滤波,得到高频图像IlpS421, carry out Laplacian filtering to the described supplementary image I re , obtain high-frequency image I lp ;

S422、对所述高频图像Ilp求绝对值,得到绝对高频图像IalS422, seek absolute value to described high frequency image Ilp , obtain absolute high frequency image Ia1 ;

S423、对所述绝对高频图像Ial进行阈值分割,得到高频二值图像Ihb和所述高频二值图像Ihb的补集低频二值图像Ilb S423 , carry out threshold segmentation to the described absolute high frequency image I a1, obtain high frequency binary image I hb and the complementary low frequency binary image I 1b of the high frequency binary image I hb ;

S424、对所述补回图像Ire进行中值滤波,得到中值图像ImeS424, carry out median filtering to the described supplementary image I re , obtain the median image I me ;

S425、用所述高频二值图像Ihb与中值图像Ime进行点乘,得到高频平滑图像IhsS425, perform point multiplication with the high-frequency binary image I hb and the median image I me to obtain a high-frequency smoothing image I hs ;

S426、用所述低频二值图像Ilb与所述补回图像Ire点乘,得到低频补回图像Ils;以及S426, using the low-frequency binary image I 1b and the described complementary image I re point multiplication, obtains the low-frequency complementary image I 1s ; And

S427、将所述高频平滑图像Ihs与低频补回图像Ils相加,得到去噪图像IdnS427. Add the high-frequency smoothed image I hs and the low-frequency compensated image I ls to obtain a denoised image I dn .

上述的金属表面粗糙度测量的方法,其中,所述指定线段与区域粗糙度测量算法包括:The above-mentioned method for measuring metal surface roughness, wherein, the specified line segment and area roughness measuring algorithm includes:

S431、区域粗糙的测量算法;以及S431, an area roughness measurement algorithm; and

S432、线粗糙的测量算法。S432, a measurement algorithm for line roughness.

上述的金属表面粗糙度测量的方法,其中,所述区域粗糙的测量算法包括:The above-mentioned method for measuring metal surface roughness, wherein, the measuring algorithm of the area roughness includes:

S4311、设置粗糙度测量的测量区,以进行区域粗糙的测量;以及S4311. Set a measurement area for roughness measurement to measure regional roughness; and

S4312、在所述测量区的区域内找到最高点与最低点,并求所述最高点与最低点二值的差值。S4312. Find the highest point and the lowest point in the area of the measurement area, and obtain the difference between the two values of the highest point and the lowest point.

上述的金属表面粗糙度测量的方法,其中,所述线粗糙的测量算法包括:The above-mentioned method for measuring metal surface roughness, wherein the measurement algorithm of the line roughness includes:

S4321、设置粗糙度测量的测量线,以进行线粗糙的测量;S4321. Set a measurement line for roughness measurement to measure line roughness;

S4322、获取所述测量线的每个像素点上的高度值;S4322, obtain the height value on each pixel of the measurement line;

S4323、将线段按照粗糙度测量要求分为n段;S4323. Divide the line segment into n segments according to the roughness measurement requirements;

S4324、求所述n段每段内的最高值与最低值,并求取最高值与最低值之间的差值;以及S4324, find the highest value and the lowest value in each of the n segments, and find the difference between the highest value and the lowest value; and

S4325、求n段差值的平均值,得到线粗糙度。S4325. Calculate the average value of the n-stage difference to obtain the line roughness.

上述的金属表面粗糙度测量的方法,其中,所述改进抗干扰分水岭分割算法用于实现所述被测金属的表面凹坑的分割,包括如下步骤:The above-mentioned method for measuring metal surface roughness, wherein, the improved anti-interference watershed segmentation algorithm is used to realize the segmentation of the surface pits of the metal to be measured, including the following steps:

S441、对去噪后的所述去噪图像Idn进行平滑,得到平滑图像IsmS441, smoothing the denoised image I dn after denoising to obtain a smoothed image I sm ;

S442、用所述去噪图像Idn与所述平滑图像Ism相减得到边界图像IedS442, subtracting the denoised image I dn and the smoothed image I sm to obtain a boundary image I ed ;

S443、用所述去噪图像Idn与所述边界图像Ied相加得到增强图像IehS443, adding the denoised image I dn and the boundary image I ed to obtain an enhanced image I eh ;

S444、对所述增强图像Ieh进行闭运算,得到闭合图像Icl;以及S444, perform a closing operation on the enhanced image I eh to obtain a closed image I cl ; and

S445、对所述闭合图像Icl进行分水岭算法,得到凹坑分割图像。S445, performing a watershed algorithm on the closed image I cl to obtain a pit segmentation image.

上述的金属表面粗糙度测量的方法,其中,所述抛砂抛丸沙坑参数统计算法包括如下步骤:The above-mentioned method for measuring the roughness of metal surfaces, wherein, the statistical algorithm for the parameters of the sand blasting sand pit includes the following steps:

S451、求取每个凹坑的像素标记图,在所述像素标记图上统计凹坑的像素点数,根据比例关系求取凹坑面积;以及S451, obtain the pixel marking map of each pit, count the number of pixels of the pit on the pixel marking map, and obtain the pit area according to the proportional relationship; and

S452、在所述像素标记图上求取凹坑的边界,并求所述凹坑的边界高度平均值、凹坑最深值及所述凹坑最深值与所述边界高度平均值的差值。S452: Obtain the boundary of the pit on the pixel marker map, and obtain the average height of the boundary of the pit, the deepest value of the pit, and the difference between the deepest value of the pit and the average height of the boundary.

本发明的技术效果在于:The technical effect of the present invention is:

本发明采用激光结构光3D视觉系统,对金属表面进行扫描成像,获取金属表面的3D形貌,然后利用图像处理算法,对金属表面的粗糙度进行自动测量,至少具有如下优点:The invention adopts a laser structured light 3D vision system to scan and image the metal surface to obtain the 3D topography of the metal surface, and then uses an image processing algorithm to automatically measure the roughness of the metal surface, which at least has the following advantages:

1)采用激光机构光3D视觉来获取金属表面的粗糙度信息,可以为后续的粗糙度评价与分析提供可靠信息,同时为信息的长时间保存提供可能,该3D视觉机构配合移动机器人,可进一步实现大型构建表面粗糙度检测的全自动化;1) Using the laser mechanism optical 3D vision to obtain the roughness information of the metal surface can provide reliable information for subsequent roughness evaluation and analysis, and at the same time provide the possibility of long-term preservation of information. The 3D vision mechanism cooperates with the mobile robot to further Realize full automation of surface roughness inspection of large-scale construction;

2)采用在数字图像基础上的调平算法,解决了现有技术在激光结构光3D视觉的过程中,很难保证扫描机构扫描运动的轨迹与被扫描平面之间平行关系,严重影响后续的粗糙度评价的问题;2) Using the leveling algorithm based on digital images, it is difficult to ensure the parallel relationship between the trajectory of the scanning movement of the scanning mechanism and the scanned plane in the process of laser structured light 3D vision in the prior art, which seriously affects the follow-up. The problem of roughness evaluation;

3)缺失信号补回算法具有较宽的尺度和形状适应性,解决了现有技术在激光结构光视觉中,由于金属表面的反光、凸起部分的遮挡等,造成激光结构光深度图像的局部信号缺失,且信号缺失区域大小不定、形状不定,缺失信号给后续的处理带来严重干扰的问题,同时解决了信号补回的可信度问题;3) The missing signal compensation algorithm has wide scale and shape adaptability, which solves the problem of local laser structured light depth image caused by reflection of metal surface and occlusion of convex parts in the laser structured light vision in the prior art. The signal is missing, and the size and shape of the missing signal area are indeterminate. The missing signal brings serious interference to the subsequent processing, and at the same time solves the problem of the reliability of the signal replenishment;

4)基于拉普拉斯算子和中值滤波相结合的噪声去除算法,对于噪声尺度和形状不敏感,且可以合理地估计噪声部位的原始信息;同时该算法全部采用卷积并行运算,具有良好的可操作性,配合并行运算的硬件,具有较高的实时性;4) The noise removal algorithm based on the combination of Laplacian operator and median filter is insensitive to noise scale and shape, and can reasonably estimate the original information of noise parts; Good operability, with parallel computing hardware, high real-time performance;

5)在深度图像基础上进行粗糙度测量,可以避开比较样块目测法、显微镜调焦法、触针法以及复制带法等方法中人为操作的偶然因素干扰,可以方便地确定粗糙度测量算法和统计算法的目标区域;同时可以有效地增加统计点,进而增加统计的可靠性;5) The roughness measurement on the basis of the depth image can avoid the accidental interference of human operation in methods such as the visual inspection method of the comparative sample, the microscope focusing method, the stylus method and the replica belt method, etc., and the roughness measurement can be easily determined. The target area of algorithms and statistical algorithms; at the same time, it can effectively increase statistical points, thereby increasing the reliability of statistics;

6)采用改进的分水岭算法,有效避免了现有技术中微小下凹带来的过度分割问题,可准确地分割出每一个沙坑;6) The improved watershed algorithm is adopted, which effectively avoids the over-segmentation problem caused by the tiny depression in the prior art, and can accurately segment each bunker;

7)在数字图像技术上进行沙坑的统计分析,可以获取喷丸、喷砂凹坑的面积、面积的分布、凹坑的深度及深度的分布、凹坑的形状等信息,为喷丸、喷砂的工艺性提供了评价依据,也为表面处理质量和喷涂质量的相关性研究提供了更丰富的信息。7) Statistical analysis of sand pits on digital image technology can obtain information such as shot peening, sand blasting pit area, area distribution, pit depth and depth distribution, pit shape, etc. The manufacturability of sandblasting provides an evaluation basis, and also provides more abundant information for the correlation research between surface treatment quality and spraying quality.

以下结合附图和具体实施例对本发明进行详细描述,但不作为对本发明的限定。The present invention is described in detail below with reference to the accompanying drawings and specific embodiments, but is not intended to limit the present invention.

附图说明Description of drawings

图1为本发明一实施例的方法流程图;FIG. 1 is a flow chart of a method according to an embodiment of the present invention;

图2A-2D为本发明一实施例的金属标粗糙度图像处理效果图;2A-2D are renderings of image processing effects of metal scale roughness according to an embodiment of the present invention;

图3A-3B为本发明一实施例的改进的分水岭算法过度分割图像效果图;3A-3B are effect diagrams of over-segmented images by an improved watershed algorithm according to an embodiment of the present invention;

图4为本发明一实施例的抛砂、抛丸沙坑参数统计的凹坑面积直方图;FIG. 4 is a histogram of the pit area of the sand blasting and shot blasting sand pit parameter statistics according to an embodiment of the present invention;

图5为本发明一实施例的粗糙度测量算法结果图。FIG. 5 is a result diagram of a roughness measurement algorithm according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图对本发明的结构原理和工作原理作具体的描述:Below in conjunction with accompanying drawing, structure principle and working principle of the present invention are described in detail:

现有技术的机器视觉技术中,3D视觉有多种方式,但相对而言,激光结构光视觉是一种精度高,且可靠性好的3D视觉方式,基于此背景,本发明采用激光结构光视觉进行金属表面扫描,并通过由深度信号到粗糙度测量许多关键环节的算法实现金属表面粗糙度的测量。In the machine vision technology of the prior art, there are many ways of 3D vision, but relatively speaking, laser structured light vision is a 3D vision method with high precision and good reliability. Based on this background, the present invention adopts laser structured light. It scans the metal surface visually, and realizes the measurement of metal surface roughness through the algorithm of many key links from the depth signal to the roughness measurement.

本发明的金属表面粗糙度的测量方法,采用激光结构光3D视觉系统,首先将视觉系统对被测平面按照调平算法进行调平,然后再对金属表面进行扫描成像,获取金属表面的3D形貌,然后利用多种图像处理算法,对金属表面的粗糙度进行自动测量。The method for measuring metal surface roughness of the present invention adopts a laser structured light 3D vision system. First, the vision system is used to level the measured plane according to a leveling algorithm, and then the metal surface is scanned and imaged to obtain the 3D shape of the metal surface. Then, the roughness of the metal surface is automatically measured using a variety of image processing algorithms.

参见图1,图1为本发明一实施例的方法流程图。本实施例的金属表面粗糙度测量的方法,包括如下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a method according to an embodiment of the present invention. The method for measuring the metal surface roughness of the present embodiment includes the following steps:

步骤S100、采用激光结构光3D视觉系统扫描被测金属的表面;Step S100, using a laser structured light 3D vision system to scan the surface of the metal to be tested;

步骤S200、当所述3D视觉系统的扫描平面与所述被测金属的表面不平行时,所述3D视觉系统对所述被测金属的表面进行调平并得到调平图像;Step S200, when the scanning plane of the 3D vision system is not parallel to the surface of the metal to be measured, the 3D vision system levels the surface of the metal to be measured and obtains a leveling image;

步骤S300、所述3D视觉系统对所述被测金属表面进行扫描成像,获取所述被测金属的表面3D形貌;以及Step S300, the 3D vision system scans and images the surface of the metal to be tested, and obtains the surface 3D topography of the metal to be tested; and

步骤S400、利用多种图像处理算法,对所述被测金属的表面粗糙度进行测量。Step S400, using a variety of image processing algorithms to measure the surface roughness of the metal to be measured.

步骤S200中,所述调平图像采用调平算法获得,该方法在扫描平面与被测平面不平行的情况下,具有调平功能,所述调平算法包括如下步骤:In step S200, the leveling image is obtained by a leveling algorithm, which has a leveling function when the scanning plane is not parallel to the measured plane, and the leveling algorithm includes the following steps:

步骤S201、对所述3D视觉系统扫描所述被测金属表面得到的原始图像Isr进行平滑,得到平滑图像IsmStep S201, smoothing the original image Isr obtained by scanning the measured metal surface by the 3D vision system to obtain a smoothed image Ism ;

步骤S202、用所述原始图像Isr与所述平滑图像Ism相减得到相减图像Isu;以及Step S202, subtracting the original image Isr and the smoothed image Ism to obtain a subtracted image Isu ; and

步骤S203、将所述相减图像Isu与所述原始图像Isr的平均值相加得到所述调平图像IslStep S203 , adding the average value of the subtracted image I su and the original image Is sr to obtain the leveled image I sl .

本实施例的步骤S400中的多种图像处理算法包括五种图像处理算法,具体包括:The multiple image processing algorithms in step S400 of this embodiment include five image processing algorithms, specifically including:

步骤S410、深度图像缺失信息补回算法;Step S410, a depth image missing information compensation algorithm;

步骤S420、深度图像噪声去除算法;Step S420, a depth image noise removal algorithm;

步骤S430、指定线段与区域粗糙度测量算法;Step S430, specifying a line segment and a region roughness measurement algorithm;

步骤S440、改进抗干扰分水岭分割算法;以及Step S440, improving the anti-interference watershed segmentation algorithm; and

步骤S450、抛砂抛丸沙坑参数统计算法。Step S450, a statistical algorithm for sand blasting and shot blasting bunker parameters.

其中,步骤S410中,所述深度图像缺失信息补回算法,是针对激光结构光视觉的缺失信息补回算法,包括如下步骤:Wherein, in step S410, the depth image missing information compensation algorithm is a missing information compensation algorithm for laser structured light vision, including the following steps:

步骤S411、用形态学算子对调平图像Isl进行闭运算,得到闭运算图像IscStep S411, performing a closing operation on the leveling image I sl with a morphological operator to obtain a closing operation image I sc ;

步骤S412、查找所述被测金属的原始图像Isr的缺失点,所述缺失点的值为零,得到缺失区二值图像IzbStep S412, searching for the missing point of the original image I sr of the tested metal, the value of the missing point is zero, and obtaining the binary image I zb of the missing area;

步骤S413、用所述缺失区二值图像Izb与所述闭运算图像Isc进行点乘,得到缺失区补回图像Izr;以及Step S413, performing dot multiplication with the binary image I zb of the missing area and the closed operation image I sc to obtain the replacement image I zr of the missing area; and

步骤S414、将所述缺失区补回图像Izr与原始图像Isr相加得到补回图像IreStep S414 , adding the complemented image I zr of the missing area to the original image Isr to obtain the complemented image I re .

步骤S420中,所述深度图像噪声去除算法包括如下步骤:In step S420, the depth image noise removal algorithm includes the following steps:

步骤S421、对所述补回图像Ire进行拉普拉斯滤波,得到高频图像IlpStep S421, performing Laplacian filtering on the complementary image I re to obtain a high-frequency image I lp ;

步骤S422、对所述高频图像Ilp求绝对值,得到绝对高频图像IalStep S422, the absolute value of the high-frequency image Ilp is obtained to obtain the absolute high-frequency image Ial ;

步骤S423、对所述绝对高频图像Ial进行阈值分割,得到高频二值图像Ihb和所述高频二值图像Ihb的补集低频二值图像IlbStep S423 , performing threshold segmentation on the absolute high-frequency image I a1 , obtaining the high-frequency binary image I hb and the complementary low-frequency binary image I lb of the high-frequency binary image I hb ;

步骤S424、对所述补回图像Ire进行中值滤波,得到中值图像ImeStep S424, performing median filtering on the complemented image I re to obtain the median image I me ;

步骤S425、用所述高频二值图像Ihb与中值图像Ime进行点乘,得到高频平滑图像IhsStep S425, performing point multiplication with the high-frequency binary image I hb and the median image I me to obtain a high-frequency smoothing image I hs ;

步骤S426、用所述低频二值图像Ilb与所述补回图像Ire点乘,得到低频补回图像Ils;以及Step S426, using the low-frequency binary image I 1b and the complementary image I re point multiplication, obtains the low-frequency complementary image I s ; And

步骤S427、将所述高频平滑图像Ihs与低频补回图像Ils相加,得到去噪图像IdnStep S427, adding the high-frequency smoothed image I hs and the low-frequency complementary image I ls to obtain a denoised image I dn .

步骤S430中,所述指定线段与区域粗糙度测量算法,包括两种粗糙的测量算法,其分别是区域粗糙的测量算法和线粗糙的测量算法,即:In step S430, the specified line segment and region roughness measurement algorithm includes two kinds of roughness measurement algorithms, which are respectively a region roughness measurement algorithm and a line roughness measurement algorithm, namely:

步骤S431、区域粗糙的测量算法;以及Step S431, area rough measurement algorithm; and

步骤S432、线粗糙的测量算法。Step S432, a measurement algorithm for line roughness.

步骤S431的所述区域粗糙的测量算法包括:The area roughness measurement algorithm in step S431 includes:

步骤S4311、可自行设置粗糙度测量的测量区,以进行区域粗糙的测量;以及In step S4311, a measurement area for roughness measurement can be set by itself, so as to measure the regional roughness; and

步骤S4312、在所述测量区的区域内找到最高点与最低点,并求所述最高点与最低点二值的差值。Step S4312, find the highest point and the lowest point in the area of the measurement area, and find the difference between the two values of the highest point and the lowest point.

步骤S432的所述线粗糙的测量算法包括:The line roughness measurement algorithm in step S432 includes:

步骤S4321、可自行设置粗糙度测量的测量线,以进行线粗糙的测量;In step S4321, a measurement line for roughness measurement can be set by itself, so as to measure the line roughness;

步骤S4322、获取所述测量线上的每个像素点上的高度值;Step S4322, obtaining the height value on each pixel on the measurement line;

步骤S4323、将线段按照粗糙度测量要求分为n段;Step S4323, dividing the line segment into n segments according to the roughness measurement requirements;

步骤S4324、求所述n段每段内的最高值与最低值,并求取最高值与最低值之间的差值;以及Step S4324, finding the highest value and the lowest value in each of the n segments, and finding the difference between the highest value and the lowest value; and

步骤S4325、求n段差值的平均值,得到线粗糙度。Step S4325: Calculate the average value of the n-stage difference values to obtain the line roughness.

步骤S440中,所述改进抗干扰分水岭分割算法用于实现所述被测金属的表面凹坑的分割,包括如下步骤:In step S440, the improved anti-interference watershed segmentation algorithm is used to realize the segmentation of the surface pits of the tested metal, including the following steps:

步骤S441、对去噪后的所述去噪图像Idn进行平滑,得到平滑图像IsmStep S441, smoothing the denoised image I dn after denoising to obtain a smoothed image I sm ;

步骤S442、用所述去噪图像Idn与所述平滑图像Ism相减得到边界图像IedStep S442, subtracting the denoised image I dn and the smoothed image I sm to obtain a boundary image I ed ;

步骤S443、用所述去噪图像Idn与所述边界图像Ied相加得到增强图像IehStep S443, adding the denoised image I dn and the boundary image I ed to obtain an enhanced image I eh ;

步骤S444、对所述增强图像Ieh进行闭运算,得到闭合图像Icl;以及Step S444, performing a closing operation on the enhanced image I eh to obtain a closed image I cl ; and

步骤S445、对所述闭合图像Icl进行分水岭算法,得到凹坑分割图像。Step S445, performing a watershed algorithm on the closed image I cl to obtain a pit segmentation image.

步骤S450中,所述抛砂抛丸沙坑参数统计算法,在凹坑分割的基础上,可以实现凹坑参数的统计分析,统计参数包括凹坑的面积、凹坑的深度等,包括如下步骤:In step S450, the statistical algorithm of the parameters of the sand blasting and shot blasting can realize the statistical analysis of the pit parameters on the basis of the pit segmentation, and the statistical parameters include the area of the pit, the depth of the pit, etc., including the following steps :

步骤S451、求取每个凹坑的像素标记图,在所述像素标记图上统计凹坑的像素点数,根据比例关系求取凹坑面积;以及Step S451, obtain the pixel marking map of each pit, count the number of pixels of the pit on the pixel marking map, and obtain the pit area according to the proportional relationship; and

步骤S452、在所述像素标记图上求取凹坑的边界,并求所述凹坑的边界高度平均值、凹坑最深值及所述凹坑最深值与所述边界高度平均值的差值。Step S452, obtain the boundary of the pit on the pixel marking map, and obtain the average value of the boundary height of the pit, the deepest value of the pit and the difference between the deepest value of the pit and the average value of the boundary height .

本发明采用激光结构光3D视觉系统,首先将视觉系统对被测平面按照调平算法进行调平,然后再对金属表面进行扫描成像,获取金属表面的3D形貌,然后利用多种图像处理算法,对金属表面的粗糙度进行自动测量。其工作原理为:The invention adopts a laser structured light 3D vision system, firstly, the vision system is used to level the measured plane according to the leveling algorithm, and then the metal surface is scanned and imaged to obtain the 3D topography of the metal surface, and then a variety of image processing algorithms are used. , which automatically measures the roughness of metal surfaces. Its working principle is:

如图2A-2D所示,图2A为原始图像,可以看到原始图像的上半部亮度较暗,而下半部亮度较高,图2B为原始图像经过数字调平后的图像,可以看出该图像的上半部和下半部亮度已经较为均衡,表明其表面已无大范围的倾斜;图2C为通过缺失信号补回算法恢复的金属表面深度图,图2B中的信号缺失区域(黑色区域),在图2C中已经完全补回,剩余部分黑色区域为噪声点;图2D为经过去噪算法得到的图像,黑色噪声区已经全部去除。As shown in Figures 2A-2D, Figure 2A is the original image. It can be seen that the upper half of the original image is darker, while the lower half is brighter. Figure 2B is the original image after digital leveling. You can see It can be seen that the brightness of the upper and lower half of the image has been relatively balanced, indicating that the surface has no large-scale inclination; Figure 2C is the depth map of the metal surface restored by the missing signal compensation algorithm, and the signal missing area in Figure 2B ( Black area), which has been completely filled in in Figure 2C, and the remaining black areas are noise points; Figure 2D is the image obtained by the denoising algorithm, and the black noise areas have been completely removed.

图3A-3B为通过分水岭算法分割后的凹坑图像,其中图3A为通用分水岭算法分割的凹坑图像,图3B为改进的分水岭算法分割的凹坑图像,可以看出,图3A产生了过度分割,而图3B分割的效果要远好于图3A分割的效果。Figures 3A-3B are the pit images segmented by the watershed algorithm, wherein Figure 3A is the pit image segmented by the general watershed algorithm, and Figure 3B is the pit image segmented by the improved watershed algorithm. It can be seen that Figure 3A produces excessive segmentation, and the effect of the segmentation in Figure 3B is much better than that of the segmentation in Figure 3A.

图4为在凹坑提取的基础上,进行直方图分析后的结果,本发明可以方便地得到其统计分布。图中,横轴为凹坑的面积,此处面积的单位为单个凹坑所占像素点的个数,每隔2000为一个区间,纵轴为该面积区间内出现的凹坑的个数。Fig. 4 is the result after the histogram analysis is performed on the basis of the pit extraction, and the present invention can easily obtain its statistical distribution. In the figure, the horizontal axis is the area of the pit, where the unit of the area is the number of pixels occupied by a single pit, every 2000 is an interval, and the vertical axis is the number of pits that appear in the area.

图5为根据标准得到的粗糙度测量结果。图中横轴为测量线段上像素序列,该序列分为5段,每段对应的实际长度为2.5mm,用竖的虚线隔开,纵轴为线段上每个测量点的高度,代表金属表面的高度,单位为μm,在每段中求出一个最高点和最低点,最高点用*号表示,最低点用o表示。最后粗糙度的计算方式为先求每段最高点与最低点之间的差值,然后再求5个差值的平均值。Figure 5 shows the roughness measurements obtained according to the standard. The horizontal axis in the figure is the pixel sequence on the measurement line segment, which is divided into 5 segments, each segment corresponds to an actual length of 2.5mm, separated by a vertical dotted line, and the vertical axis is the height of each measurement point on the line segment, representing the metal surface The height of , the unit is μm, the highest point and the lowest point are obtained in each segment, the highest point is represented by *, and the lowest point is represented by o. The final roughness is calculated by first finding the difference between the highest point and the lowest point of each segment, and then finding the average of five differences.

本发明采用激光结构光视觉进行金属表面粗糙度的测量,采用激光结构光3D视觉系统,对金属表面进行扫描成像,获取金属表面的3D形貌,然后利用图像处理算法,对金属表面的粗糙度进行测量。在扫描平面与被测平面不平行的情况下,还具有调平功能。图像处理算法包括在设定区域或设定线段情况下的粗糙度测量算法;针对激光结构光深度信号的缺失信号的补回算法;针对激光结构光深度信号的去噪算法;改进的分水岭算法,可实现复杂干扰情况下表面凹坑的分割;以及在凹坑分割的基础上,凹坑参数的统计算法。现有技术的表面检测主要关注粗糙度,本发明在粗糙度检测的基础上,增加了喷丸、喷砂表面凹坑的分析及相应的图像处理算法,为后续表面质量评价和工艺相关性分析提供了更为丰富的信息。The invention uses laser structured light vision to measure the metal surface roughness, and uses a laser structured light 3D vision system to scan and image the metal surface to obtain the 3D topography of the metal surface, and then use an image processing algorithm to measure the roughness of the metal surface. Take measurements. It also has a leveling function when the scanning plane is not parallel to the measured plane. The image processing algorithm includes roughness measurement algorithm in the case of setting area or line segment; compensation algorithm for missing signal of laser structured light depth signal; denoising algorithm for laser structured light depth signal; improved watershed algorithm, It can realize the segmentation of surface pits in the case of complex interference; and on the basis of pit segmentation, the statistical algorithm of pit parameters. Surface detection in the prior art mainly focuses on roughness. On the basis of roughness detection, the present invention adds the analysis of shot peening and sandblasted surface pits and the corresponding image processing algorithm for subsequent surface quality evaluation and process correlation analysis. Provides richer information.

当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。Of course, the present invention can also have other various embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and modifications according to the present invention, but these corresponding Changes and deformations should belong to the protection scope of the appended claims of the present invention.

Claims (10)

1.一种金属表面粗糙度测量的方法,其特征在于,包括如下步骤:1. a method for measuring metal surface roughness, is characterized in that, comprises the steps: S100、采用激光结构光3D视觉系统扫描被测金属的表面;S100, using a laser structured light 3D vision system to scan the surface of the metal to be tested; S200、当所述3D视觉系统的扫描平面与所述被测金属的表面不平行时,所述3D视觉系统对所述被测金属的表面进行调平并得到调平图像;S200. When the scanning plane of the 3D vision system is not parallel to the surface of the metal to be measured, the 3D vision system levels the surface of the metal to be measured and obtains a leveling image; S300、所述3D视觉系统对所述被测金属表面进行扫描成像,获取所述被测金属的表面3D形貌;以及S300, the 3D vision system scans and images the surface of the metal to be tested, and obtains the surface 3D topography of the metal to be tested; and S400、利用多种图像处理算法,对所述被测金属的表面粗糙度进行测量。S400, using a variety of image processing algorithms to measure the surface roughness of the metal to be tested. 2.根据权利要求1所述的金属表面粗糙度测量的方法,其特征在于,步骤S200中,所述调平图像采用调平算法获得,所述调平算法包括如下步骤:2 . The method for measuring metal surface roughness according to claim 1 , wherein, in step S200 , the leveling image is obtained by a leveling algorithm, and the leveling algorithm comprises the following steps: 3 . S201、对所述3D视觉系统扫描所述被测金属表面得到的原始图像Isr进行平滑,得到平滑图像IsmS201, smooth the original image Isr obtained by scanning the measured metal surface by the 3D vision system to obtain a smoothed image Ism ; S202、用所述原始图像Isr与所述平滑图像Ism相减得到相减图像Isu;以及S202, subtracting the original image Isr and the smoothed image Ism to obtain a subtracted image Isu ; and S203、将所述相减图像Isu与所述原始图像Isr的平均值相加得到所述调平图像IslS203. Add the average value of the subtracted image I su and the original image Is sr to obtain the leveled image I sl . 3.根据权利要求1或2所述的金属表面粗糙度测量的方法,其特征在于,步骤S400中的多种图像处理算法包括:3. The method for measuring metal surface roughness according to claim 1 or 2, wherein the multiple image processing algorithms in step S400 include: S410、深度图像缺失信息补回算法;S410, a depth image missing information compensation algorithm; S420、深度图像噪声去除算法;S420, a depth image noise removal algorithm; S430、指定线段与区域粗糙度测量算法;S430. Specify the line segment and area roughness measurement algorithm; S440、改进抗干扰分水岭分割算法;以及S440. Improve the anti-jamming watershed segmentation algorithm; and S450、抛砂抛丸沙坑参数统计算法。S450. Statistical algorithm of sand and shot blasting bunker parameters. 4.根据权利要求3所述的金属表面粗糙度测量的方法,其特征在于,所述深度图像缺失信息补回算法,包括如下步骤:4. The method for measuring metal surface roughness according to claim 3, wherein the algorithm for complementing missing information of the depth image comprises the following steps: S411、用形态学算子对调平图像Isl进行闭运算,得到闭运算图像IscS411, perform a closing operation on the leveling image I sl with a morphological operator to obtain a closing operation image I sc ; S412、查找所述被测金属的原始图像Isr的缺失点,所述缺失点的值为零,得到缺失区二值图像IzbS412, find the missing point of the original image I sr of the tested metal, the value of the missing point is zero, and obtain the binary image I zb of the missing area; S413、用所述缺失区二值图像Izb与所述闭运算图像Isc进行点乘,得到缺失区补回图像Izr;以及S413, perform point multiplication with the binary image I zb of the missing area and the closed operation image I sc to obtain the replacement image I zr of the missing area; and S414、将所述缺失区补回图像Izr与原始图像Isr相加得到补回图像IreS414. Add the complemented image I zr of the missing area to the original image Isr to obtain the complemented image I re . 5.根据权利要求4所述的金属表面粗糙度测量的方法,其特征在于,所述深度图像噪声去除算法包括如下步骤:5. The method for measuring metal surface roughness according to claim 4, wherein the depth image noise removal algorithm comprises the following steps: S421、对所述补回图像Ire进行拉普拉斯滤波,得到高频图像IlpS421, carry out Laplacian filtering to the described supplementary image I re , obtain high-frequency image I lp ; S422、对所述高频图像Ilp求绝对值,得到绝对高频图像IalS422, seek absolute value to described high frequency image Ilp , obtain absolute high frequency image Ia1 ; S423、对所述绝对高频图像Ial进行阈值分割,得到高频二值图像Ihb和所述高频二值图像Ihb的补集低频二值图像Ilb S423 , carry out threshold segmentation to the described absolute high frequency image I a1, obtain high frequency binary image I hb and the complementary low frequency binary image I 1b of the high frequency binary image I hb ; S424、对所述补回图像Ire进行中值滤波,得到中值图像ImeS424, carry out median filtering to the described supplementary image I re , obtain the median image I me ; S425、用所述高频二值图像Ihb与中值图像Ime进行点乘,得到高频平滑图像IhsS425, perform point multiplication with the high-frequency binary image I hb and the median image I me to obtain a high-frequency smoothing image I hs ; S426、用所述低频二值图像Ilb与所述补回图像Ire点乘,得到低频补回图像Ils;以及S426, using the low-frequency binary image I 1b and the described complementary image I re point multiplication, obtains the low-frequency complementary image I 1s ; And S427、将所述高频平滑图像Ihs与低频补回图像Ils相加,得到去噪图像IdnS427. Add the high-frequency smoothed image I hs and the low-frequency compensated image I ls to obtain a denoised image I dn . 6.根据权利要求3所述的金属表面粗糙度测量的方法,其特征在于,所述指定线段与区域粗糙度测量算法包括:6. The method for measuring metal surface roughness according to claim 3, wherein the specified line segment and area roughness measuring algorithm comprises: S431、区域粗糙的测量算法;以及S431, an area roughness measurement algorithm; and S432、线粗糙的测量算法。S432, a measurement algorithm for line roughness. 7.根据权利要求6所述的金属表面粗糙度测量的方法,其特征在于,所述区域粗糙的测量算法包括:7. The method for measuring metal surface roughness according to claim 6, wherein the measurement algorithm for the area roughness comprises: S4311、设置粗糙度测量的测量区,以进行区域粗糙的测量;以及S4311. Set a measurement area for roughness measurement to measure regional roughness; and S4312、在所述测量区的区域内找到最高点与最低点,并求所述最高点与最低点二值的差值。S4312. Find the highest point and the lowest point in the area of the measurement area, and obtain the difference between the two values of the highest point and the lowest point. 8.根据权利要求6所述的金属表面粗糙度测量的方法,其特征在于,所述线粗糙的测量算法包括:8. The method for measuring metal surface roughness according to claim 6, wherein the measurement algorithm for the line roughness comprises: S4321、设置粗糙度测量的测量线,以进行线粗糙的测量;S4321. Set a measurement line for roughness measurement to measure line roughness; S4322、获取所述测量线的每个像素点上的高度值;S4322, obtain the height value on each pixel of the measurement line; S4323、将线段按照粗糙度测量要求分为n段;S4323. Divide the line segment into n segments according to the roughness measurement requirements; S4324、求所述n段每段内的最高值与最低值,并求取最高值与最低值之间的差值;以及S4324, find the highest value and the lowest value in each of the n segments, and find the difference between the highest value and the lowest value; and S4325、求n段差值的平均值,得到线粗糙度。S4325. Calculate the average value of the n-stage difference to obtain the line roughness. 9.根据权利要求5所述的金属表面粗糙度测量的方法,其特征在于,所述改进抗干扰分水岭分割算法用于实现所述被测金属的表面凹坑的分割,包括如下步骤:9. The method for measuring metal surface roughness according to claim 5, wherein the improved anti-interference watershed segmentation algorithm is used to realize the segmentation of the surface pits of the measured metal, comprising the steps of: S441、对去噪后的所述去噪图像Idn进行平滑,得到平滑图像IsmS441, smoothing the denoised image I dn after denoising to obtain a smoothed image I sm ; S442、用所述去噪图像Idn与所述平滑图像Ism相减得到边界图像IedS442, subtracting the denoised image I dn and the smoothed image I sm to obtain a boundary image I ed ; S443、用所述去噪图像Idn与所述边界图像Ied相加得到增强图像IehS443, adding the denoised image I dn and the boundary image I ed to obtain an enhanced image I eh ; S444、对所述增强图像Ieh进行闭运算,得到闭合图像Icl;以及S444, perform a closing operation on the enhanced image I eh to obtain a closed image I cl ; and S445、对所述闭合图像Icl进行分水岭算法,得到凹坑分割图像。S445, performing a watershed algorithm on the closed image I cl to obtain a pit segmentation image. 10.根据权利要求3所述的金属表面粗糙度测量的方法,其特征在于,所述抛砂抛丸沙坑参数统计算法包括如下步骤:10. The method for measuring metal surface roughness according to claim 3, wherein the statistical algorithm for the parameters of the sand and shot blasting bunker comprises the following steps: S451、求取每个凹坑的像素标记图,在所述像素标记图上统计凹坑的像素点数,根据比例关系求取凹坑面积;以及S451, obtain the pixel marking map of each pit, count the number of pixels of the pit on the pixel marking map, and obtain the pit area according to the proportional relationship; and S452、在所述像素标记图上求取凹坑的边界,并求所述凹坑的边界高度平均值、凹坑最深值及所述凹坑最深值与所述边界高度平均值的差值。S452: Obtain the boundary of the pit on the pixel marker map, and obtain the average height of the boundary of the pit, the deepest value of the pit, and the difference between the deepest value of the pit and the average height of the boundary.
CN202210015553.9A 2022-01-07 2022-01-07 Method for measuring metal surface roughness Active CN114526694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210015553.9A CN114526694B (en) 2022-01-07 2022-01-07 Method for measuring metal surface roughness

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210015553.9A CN114526694B (en) 2022-01-07 2022-01-07 Method for measuring metal surface roughness

Publications (2)

Publication Number Publication Date
CN114526694A true CN114526694A (en) 2022-05-24
CN114526694B CN114526694B (en) 2024-08-20

Family

ID=81621011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210015553.9A Active CN114526694B (en) 2022-01-07 2022-01-07 Method for measuring metal surface roughness

Country Status (1)

Country Link
CN (1) CN114526694B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000146557A (en) * 1998-11-05 2000-05-26 Ngk Insulators Ltd Measuring method for precision of inner surface of through hole and manufacture of base using it
CN103267498A (en) * 2013-05-09 2013-08-28 北京科技大学 Automatic digital quantizing method for measuring iron ore roughness
CN103884298A (en) * 2014-03-20 2014-06-25 河海大学常州校区 System and method for measuring metal surface roughness on basis of guiding mold
KR101793526B1 (en) * 2016-12-30 2017-11-06 한국산업기술대학교산학협력단 Apparatus for Measuring Surface Roughness Using Image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000146557A (en) * 1998-11-05 2000-05-26 Ngk Insulators Ltd Measuring method for precision of inner surface of through hole and manufacture of base using it
CN103267498A (en) * 2013-05-09 2013-08-28 北京科技大学 Automatic digital quantizing method for measuring iron ore roughness
CN103884298A (en) * 2014-03-20 2014-06-25 河海大学常州校区 System and method for measuring metal surface roughness on basis of guiding mold
KR101793526B1 (en) * 2016-12-30 2017-11-06 한국산업기술대학교산학협력단 Apparatus for Measuring Surface Roughness Using Image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
时小军;张玉琴;张小辉;: "基于机器视觉技术的研磨表面粗糙度检测", 机械设计与研究, no. 03, 20 June 2010 (2010-06-20) *

Also Published As

Publication number Publication date
CN114526694B (en) 2024-08-20

Similar Documents

Publication Publication Date Title
CN110286124B (en) Machine vision-based refractory brick measuring system
CN101526484B (en) Bearing defect detection method based on embedded machine vision
CN110544261B (en) A detection method of blast furnace tuyere coal injection state based on image processing
CN107369136B (en) Visual detection method for surface cracks of polycrystalline diamond compact
CN110223267B (en) Refractory Brick Depth Defect Recognition Method Based on Height Histogram Segmentation
JP2012202858A (en) Closure crack detection method of concrete surface
CN108416766A (en) Visual inspection method for defects of double-side incident light guide plate
CN111192273A (en) A digital shot peening coverage measurement method based on computer vision technology
CN113298776B (en) Method for detecting appearance defects of metal closed water pump impeller
CN111354047B (en) Computer vision-based camera module positioning method and system
CN114140384A (en) Transverse vibration image recognition algorithm for hoisting steel wire rope based on contour fitting and centroid tracking
CN107462587A (en) A kind of the precise vision detecting system and method for flexible IC substrates bump mark defect
CN110567963B (en) Alloy analysis visual positioning method and device and alloy analysis system
CN110070523A (en) A kind of foreign matter detecting method for bottom of bottle
Li et al. A method of surface defect detection of irregular industrial products based on machine vision
CN112102319A (en) Dirty image detection method, dirty image detection device, and dirty image detection mechanism
CN104458764A (en) Curved uneven surface defect identification method based on large-field-depth stripped image projection
CN113155839A (en) Steel plate outer surface defect online detection method based on machine vision
CN116862973A (en) Underwater dam surface defect measurement method based on acoustics
CN114663457A (en) Bobbin identification method and system based on circular convolution kernel under complex background
CN111553886B (en) Self-adaptive identification method for particles in CT image of asphalt mixture
CN118333985A (en) Foundation pit slope deformation monitoring method based on multi-source image recognition
CN109671084A (en) A kind of measurement method of workpiece shapes
CN114526694A (en) Method for measuring metal surface roughness
CN113298775A (en) Self-priming pump double-sided metal impeller appearance defect detection method, system and medium

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