[go: up one dir, main page]

CN118009934A - A method and system for detecting surface roughness of an optical lens - Google Patents

A method and system for detecting surface roughness of an optical lens Download PDF

Info

Publication number
CN118009934A
CN118009934A CN202410150981.1A CN202410150981A CN118009934A CN 118009934 A CN118009934 A CN 118009934A CN 202410150981 A CN202410150981 A CN 202410150981A CN 118009934 A CN118009934 A CN 118009934A
Authority
CN
China
Prior art keywords
image
speckle image
optical lens
features
speckle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410150981.1A
Other languages
Chinese (zh)
Inventor
刘明
刘雪芬
黄德城
吴毅明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Shuangcheng Xin Technology Co ltd
Original Assignee
Huizhou Shuangcheng Xin Technology 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 Huizhou Shuangcheng Xin Technology Co ltd filed Critical Huizhou Shuangcheng Xin Technology Co ltd
Priority to CN202410150981.1A priority Critical patent/CN118009934A/en
Publication of CN118009934A publication Critical patent/CN118009934A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • 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/303Measuring arrangements characterised by the use of optical techniques for measuring roughness or irregularity of surfaces using photoelectric detection means
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • G06N20/10Machine learning using kernel methods, e.g. support vector machines [SVM]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/40Analysis of texture
    • G06T7/41Analysis of texture based on statistical description of texture
    • G06T7/45Analysis of texture based on statistical description of texture using co-occurrence matrix computation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/54Extraction of image or video features relating to texture
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/766Arrangements for image or video recognition or understanding using pattern recognition or machine learning using regression, e.g. by projecting features on hyperplanes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/771Feature selection, e.g. selecting representative features from a multi-dimensional feature space
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/30164Workpiece; Machine component

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Medical Informatics (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Physics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Quality & Reliability (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses a method and a system for detecting the surface roughness of an optical lens, wherein the method comprises the steps of obtaining a first speckle image and a second speckle image formed by imaging after laser with different wavelengths is irradiated on the surface of the optical lens to be detected; the method comprises the steps of carrying out image enhancement on a first speckle image and a second speckle image, carrying out texture feature and gray average feature extraction on the enhanced first speckle image, carrying out texture feature, gray standard deviation and gray root mean square feature extraction on the enhanced second speckle image, respectively inputting the extracted features of the first speckle image and the extracted features of the second speckle image into a support vector machine model to obtain a first detection value and a second detection value, and taking the average value of the first detection value and the second detection value as the surface roughness of an optical lens. According to the invention, the speckle images formed by different wavelengths are respectively extracted with different features, so that the detection result is prevented from being interfered by the redundancy of the features during the model detection, the detection efficiency is improved, and the detection precision of the surface roughness is improved.

Description

一种光学镜头表面粗糙度的检测方法及系统A method and system for detecting surface roughness of an optical lens

技术领域Technical Field

本发明涉及光学测量技术领域,尤其涉及一种光学镜头表面粗糙度的检测方法及系统。The present invention relates to the field of optical measurement technology, and in particular to a method and system for detecting the surface roughness of an optical lens.

背景技术Background technique

光学元件通常需要精密加工得到,而其表面的粗糙度对光学元件的性能有着重要影响。常见的表面粗糙度检测方法有光切显微镜测量、传统干涉测量等。光切显微镜测量中由光源发出的光经过聚光镜,穿过狭缝形成带状光束。光束再经物镜,以45度角射向工件,在凹凸不平的表面上呈现出曲折光带,再以45度角反射经物镜到达分划板上。从目镜看到的曲折亮带有两个边界,光带影像边界的曲折程度表示影像的峰谷高度,以此来测量表面粗糙度,干涉测量则是通过测量两束光的干涉条纹间距,从而计算出表面的粗糙度。然而上述方法对于设备要求较高,且由于步骤繁琐,在检测过程中容易受到干扰,从而影响检测精度。Optical components usually require precision machining, and the roughness of their surface has an important influence on the performance of optical components. Common surface roughness detection methods include light sectioning microscope measurement and traditional interferometry. In light sectioning microscope measurement, the light emitted by the light source passes through a condenser and passes through a slit to form a ribbon beam. The light beam then passes through the objective lens and shoots toward the workpiece at a 45-degree angle, presenting a zigzag light band on the uneven surface, and then reflects at a 45-degree angle through the objective lens to reach the graticule. The zigzag bright band seen from the eyepiece has two boundaries. The degree of tortuosity of the light band image boundary indicates the peak and valley height of the image, which is used to measure the surface roughness. Interferometry is to calculate the surface roughness by measuring the spacing between the interference fringes of the two beams of light. However, the above method has high requirements for equipment, and due to the cumbersome steps, it is easily disturbed during the detection process, thereby affecting the detection accuracy.

随着人工智能技术的发展,目前已有研究将光散射与人工智能模型结合从而进行粗糙度的测量。例如通过建立散斑图像特征参数与表面粗糙度评定参数之间的关系,实现对工件表面粗糙度的高效和无损测量。然而,这种方法在进行图像特征提取时,由于特征过多过于复杂,导致训练模型时往往需要花费大量时间,且模型的检测效率并不理想。With the development of artificial intelligence technology, there are studies combining light scattering with artificial intelligence models to measure roughness. For example, by establishing the relationship between the characteristic parameters of the speckle image and the surface roughness assessment parameters, efficient and non-destructive measurement of the surface roughness of the workpiece can be achieved. However, when extracting image features, this method often takes a lot of time to train the model due to the excessive number of features and the model's detection efficiency is not ideal.

发明内容Summary of the invention

为了解决上述提出的至少一个技术问题,本发明提供一种光学镜头表面粗糙度的检测方法及系统。In order to solve at least one of the above-mentioned technical problems, the present invention provides a method and system for detecting the surface roughness of an optical lens.

第一方面,本发明提供了一种光学镜头表面粗糙度的检测方法,所述方法包括:In a first aspect, the present invention provides a method for detecting the surface roughness of an optical lens, the method comprising:

将激光装置发射的激光辐照在待测光学镜头的表面上形成信号光,利用分光装置将信号光分离成波长不同的第一散射光和第二散射光;基于第一散射光和第二散射光,分别获取成像后的第一散斑图像和第二散斑图像;irradiating the laser emitted by the laser device onto the surface of the optical lens to be tested to form a signal light, and using a spectroscopic device to separate the signal light into a first scattered light and a second scattered light with different wavelengths; and acquiring a first speckle image and a second speckle image after imaging based on the first scattered light and the second scattered light, respectively;

对第一散斑图像和第二散斑图像进行图像增强,所述图像增强包括图像增强和归一化处理;Performing image enhancement on the first speckle image and the second speckle image, wherein the image enhancement includes image enhancement and normalization processing;

对增强后的第一散斑图像进行纹理特征以及灰度均值特征提取,对增强后的第二散斑图像进行纹理特征、灰度标准差以及灰度均方根特征提取,将提取的第一散斑图像的特征、第二散斑图像的特征分别输入至支持向量机模型进行粗糙度检测,得到第一检测值和第二检测值;Extracting texture features and grayscale mean features from the enhanced first speckle image, extracting texture features, grayscale standard deviation and grayscale root mean square features from the enhanced second speckle image, and inputting the extracted features of the first speckle image and the second speckle image into a support vector machine model for roughness detection, to obtain a first detection value and a second detection value;

计算第一检测值和第二检测值的平均值,得到光学镜头表面粗糙度。The average value of the first detection value and the second detection value is calculated to obtain the surface roughness of the optical lens.

优选地,所述对第一散斑图像和第二散斑图像进行图像增强,包括:Preferably, the performing image enhancement on the first speckle image and the second speckle image comprises:

分别将第一散斑图像和第二散斑图像均匀分成若干个子图像,计算每个子图像的平整度:The first speckle image and the second speckle image are evenly divided into several sub-images respectively, and the flatness of each sub-image is calculated:

βf=γcot-1f)+ε,f=1,2,...,Nβ f =γcot -1f )+ε,f=1,2,...,N

式中,βf表示子图像f的平整度指数;γ、ε表示控制平整度指数的范围因子;δf表示子图像f的标准偏差;Where, β f represents the flatness index of sub-image f; γ and ε represent the range factors controlling the flatness index; δ f represents the standard deviation of sub-image f;

基于子图像f的平整度指数计算滤波器的最优尺度参数:The optimal scale parameter of the filter is calculated based on the flatness index of the sub-image f:

式中,μf表示子图像f的对应的滤波器的最优尺度参数,μmax和μmin分别是最优尺度参数的最大值和最小值,max(βf)和min(βf)分别是平整度指数的最大值和最小值;Wherein, μ f represents the optimal scale parameter of the filter corresponding to the sub-image f, μ max and μ min are the maximum and minimum values of the optimal scale parameter, max(β f ) and min(β f ) are the maximum and minimum values of the flatness index, respectively;

计算各个子图像的权重:Calculate the weight of each sub-image:

bf,i=|μfi|,i=1,2,3b f,i = |μ fi |,i = 1, 2, 3

式中,μ1、μ2和μ3分别是平整度指数的最小值、中间值和最大值;bf,1、bf,2,bf,3表示子图像f的三个不同尺度;wf,c是子图像f在尺度c上的权重;i和c是尺度索引;Wherein, μ 1 , μ 2 and μ 3 are the minimum, middle and maximum values of the flatness index respectively; b f,1 , b f,2 , b f,3 represent three different scales of sub-image f; w f,c is the weight of sub-image f at scale c; i and c are scale indices;

进行图像增强和亮度归一化处理,得到增强图像:Perform image enhancement and brightness normalization to obtain an enhanced image:

Je(x,y)=We(x,y)M(x,y)+le(x,y)(1-M(x,y)) Je (x,y)= We (x,y)M(x,y)+ le (x,y)(1-M(x,y))

式中,Je(x,y)是散斑图像的增强图像,M(x,y)是散斑图像的经过亮度归一化处理后的图像;We(x,y)是散斑图像R、G和B颜色通道的增强效果;ΔCF是补偿因子;le(x,y)是光学镜头表面图像的第e个颜色通道的亮度值;e是颜色通道索引;是卷积运算符;ge(x,y)是光学镜头表面图像的第e个颜色通道经过滤波器处理后的效果,h是归一化因子;x和y分别是光学镜头表面图像的横坐标索引和纵坐标索引。Where, Je (x,y) is the enhanced image of the speckle image, M(x,y) is the image of the speckle image after brightness normalization; We (x,y) is the enhancement effect of the R, G and B color channels of the speckle image; ΔCF is the compensation factor; l e (x,y) is the brightness value of the e-th color channel of the optical lens surface image; e is the color channel index; is the convolution operator; ge (x, y) is the effect of the e-th color channel of the optical lens surface image after being processed by the filter, h is the normalization factor; x and y are the horizontal and vertical coordinate indexes of the optical lens surface image respectively.

优选地,对增强后的第一散斑图像或第二散斑图像进行纹理特征时,包括:Preferably, when performing texture feature analysis on the enhanced first speckle image or the second speckle image, the method includes:

利用灰度共生矩阵法提取第一散斑图像或第二散斑图像的纹理特征:The texture features of the first speckle image or the second speckle image are extracted using the gray level co-occurrence matrix method:

式中,E是能量;S是熵;I是惯性矩;L是相关性;H是逆差矩,Gg是灰度级数;是增强后的灰度共生矩阵;μx、μy是均值;δx、δy是方差;x和y分别是光学镜头表面图像的横坐标索引和纵坐标索引。Where E is energy, S is entropy, I is moment of inertia, L is correlation, H is inverse moment, and G g is gray level. is the enhanced gray-level co-occurrence matrix; μ x , μ y are means; δ x , δ y are variances; x and y are the abscissa index and ordinate index of the optical lens surface image, respectively.

优选地,在所述将提取的第一散斑图像的特征、第二散斑图像的特征分别输入至支持向量机模型进行粗糙度检测之前,还包括:Preferably, before the extracted features of the first speckle image and the extracted features of the second speckle image are respectively input into a support vector machine model for roughness detection, the method further includes:

利用斯皮尔曼相关系数对提取的纹理特征进行相关性分析,根据分析结果将逆差矩特征进行剔除;The Spearman correlation coefficient is used to conduct correlation analysis on the extracted texture features, and the inverse moment feature is eliminated according to the analysis results;

利用皮尔逊相关系数对提取的灰度均值、灰度标准差以及灰度均方根进行相关性分析,根据分析结果将灰度标准差特征进行剔除。The Pearson correlation coefficient is used to perform correlation analysis on the extracted grayscale mean, grayscale standard deviation and grayscale root mean square, and the grayscale standard deviation feature is eliminated based on the analysis results.

优选地,所述支持向量机模型的表达式为:Preferably, the expression of the support vector machine model is:

K(xi,x*)=exp(-g‖xi-x*‖2)K( xi ,x*)=exp(-g‖xi- x * ‖2 )

式中,α1、α2表示拉格朗日乘子;xi为输入样本;g为核函数参数,K(xi,x*)为高斯径向基核函数;b为偏置值,f(x*)表示支持向量机的回归函数值。Wherein, α 1 and α 2 represent Lagrange multipliers; xi is the input sample; g is the kernel function parameter, K( xi , x*) is the Gaussian radial basis kernel function; b is the bias value, and f(x*) represents the regression function value of the support vector machine.

优选地,所述方法还包括利用均绝对百分比误差和均方根误差作为支持向量机模型的评价指标。Preferably, the method further comprises using mean absolute percentage error and root mean square error as evaluation indicators of the support vector machine model.

第二方面,本发明还提供了一种光学镜头表面粗糙度的检测系统,所述系统包括:In a second aspect, the present invention further provides a system for detecting the surface roughness of an optical lens, the system comprising:

图像获取单元,用于将激光装置发射的激光辐照在待测光学镜头的表面上形成信号光,利用分光装置将信号光分离成波长不同的第一散射光和第二散射光;基于第一散射光和第二散射光,分别获取成像后的第一散斑图像和第二散斑图像;An image acquisition unit is used to irradiate the laser emitted by the laser device onto the surface of the optical lens to be tested to form a signal light, and use a spectroscopic device to separate the signal light into a first scattered light and a second scattered light with different wavelengths; based on the first scattered light and the second scattered light, respectively acquire a first speckle image and a second speckle image after imaging;

图像增强单元,用于对第一散斑图像和第二散斑图像进行图像增强,所述图像增强包括图像增强和归一化处理;An image enhancement unit, configured to perform image enhancement on the first speckle image and the second speckle image, wherein the image enhancement includes image enhancement and normalization processing;

特征提取单元,用于对增强后的第一散斑图像进行纹理特征以及灰度均值特征提取,对增强后的第二散斑图像进行纹理特征、灰度标准差以及灰度均方根特征提取,将提取的第一散斑图像的特征、第二散斑图像的特征分别输入至支持向量机模型进行粗糙度检测,得到第一检测值和第二检测值;a feature extraction unit, configured to extract texture features and grayscale mean features from the enhanced first speckle image, extract texture features, grayscale standard deviation and grayscale root mean square features from the enhanced second speckle image, and input the extracted features of the first speckle image and the second speckle image into a support vector machine model for roughness detection, to obtain a first detection value and a second detection value;

粗糙度检测单元,用于计算第一检测值和第二检测值的平均值,得到光学镜头表面粗糙度。The roughness detection unit is used to calculate the average value of the first detection value and the second detection value to obtain the surface roughness of the optical lens.

优选地,所述特征提取单元,还用于:Preferably, the feature extraction unit is further used for:

利用斯皮尔曼相关系数对提取的纹理特征进行相关性分析,根据分析结果将逆差矩特征进行剔除;The Spearman correlation coefficient is used to conduct correlation analysis on the extracted texture features, and the inverse moment feature is eliminated according to the analysis results;

利用皮尔逊相关系数对提取的灰度均值、灰度标准差以及灰度均方根进行相关性分析,根据分析结果将灰度标准差特征进行剔除。The Pearson correlation coefficient is used to perform correlation analysis on the extracted grayscale mean, grayscale standard deviation and grayscale root mean square, and the grayscale standard deviation feature is eliminated based on the analysis results.

第三方面,本发明还提供了一种电子设备,包括:处理器和存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,所述电子设备执行如上述第一方面及其任意一种可能实现的方式的方法。In a third aspect, the present invention further provides an electronic device comprising: a processor and a memory, wherein the memory is used to store computer program code, and the computer program code comprises computer instructions, and when the processor executes the computer instructions, the electronic device executes the method as described in the first aspect above and any possible implementation method thereof.

第四方面,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被电子设备的处理器执行时,使所述处理器执行如上述第一方面及其任意一种可能实现的方式的方法。In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by a processor of an electronic device, the processor executes the method as described in the first aspect above and any possible implementation thereof.

与现有技术相比,本发明的有益效果在于:Compared with the prior art, the present invention has the following beneficial effects:

1)本发明将激光装置发射的激光辐照在待测光学镜头的表面上形成信号光,利用分光装置将信号光分离成波长不同的第一散射光和第二散射光;基于第一散射光和第二散射光,分别获取成像后的第一散斑图像和第二散斑图像;通过利用第一散斑图像和第二散斑图像分别检测出的粗糙度再去平均值,能够基于不同的入射波长来检测光学镜头表面粗糙度,相比于采用单一光源来说,能够提高检测结果的准确度。1) The present invention irradiates the laser emitted by the laser device on the surface of the optical lens to be tested to form signal light, and uses a spectroscopic device to separate the signal light into a first scattered light and a second scattered light with different wavelengths; based on the first scattered light and the second scattered light, a first speckle image and a second speckle image after imaging are respectively acquired; by using the roughness respectively detected by the first speckle image and the second speckle image and then removing the average value, the surface roughness of the optical lens can be detected based on different incident wavelengths, and compared with using a single light source, the accuracy of the detection result can be improved.

2)本发明通过对第一散斑图像和第二散斑图像进行图像增强,通过引入补偿因子修正MSR算法的对数函数,能够更好地保留和增强图像中的细节信息,基于平整度指数计算最优尺度参数,从而确定权重,能够有效抑制图像中的噪声,从而更好地平衡图像中的细节和噪声;通过对图像的亮度进行归一化处理,能够使得增强后的图像更加平衡和自然,提高图像质量。2) The present invention performs image enhancement on the first speckle image and the second speckle image, introduces a compensation factor to modify the logarithmic function of the MSR algorithm, and can better retain and enhance the detail information in the image. The optimal scale parameter is calculated based on the flatness index to determine the weight, which can effectively suppress the noise in the image, thereby better balancing the details and noise in the image. By normalizing the brightness of the image, the enhanced image can be made more balanced and natural, thereby improving the image quality.

3)本发明通过对增强后的第一散斑图像进行纹理特征以及灰度均值特征提取,对增强后的第二散斑图像进行纹理特征、灰度标准差以及灰度均方根特征提取,将提取的特征分别输入至支持向量机模型,以进行粗糙度检测,能够在不同波长下研究不同图像特征与表面粗糙度的关系,从而提高了检测结果的精确度。3) The present invention extracts texture features and grayscale mean features from the enhanced first speckle image, extracts texture features, grayscale standard deviation and grayscale root mean square features from the enhanced second speckle image, and inputs the extracted features into the support vector machine model for roughness detection. The relationship between different image features and surface roughness can be studied at different wavelengths, thereby improving the accuracy of the detection results.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或背景技术中的技术方案,下面将对本发明实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.

此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.

图1为本发明实施例提供的一种光学镜头表面粗糙度的检测方法的流程示意图;FIG1 is a schematic flow chart of a method for detecting surface roughness of an optical lens provided by an embodiment of the present invention;

图2为本发明实施例提供的一种散斑图像采集装置的结构示意图;FIG2 is a schematic structural diagram of a speckle image acquisition device provided by an embodiment of the present invention;

图3为本发明实施例提供的一种光学镜头表面粗糙度的检测系统的结构示意图;FIG3 is a schematic structural diagram of a system for detecting surface roughness of an optical lens provided by an embodiment of the present invention;

图4为本发明实施例提供的一种电子设备的硬件结构示意图。FIG. 4 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

请参阅图1,图1为本发明实施例提供的一种光学镜头表面粗糙度的检测方法的流程示意图。如图1所示,一种光学镜头表面粗糙度的检测方法,包括以下步骤:Please refer to Figure 1, which is a schematic flow chart of a method for detecting the surface roughness of an optical lens provided by an embodiment of the present invention. As shown in Figure 1, a method for detecting the surface roughness of an optical lens comprises the following steps:

S11、将激光装置发射的激光辐照在待测光学镜头的表面上形成信号光,利用分光装置将信号光分离成波长不同的第一散射光和第二散射光;基于第一散射光和第二散射光,分别获取成像后的第一散斑图像和第二散斑图像。S11, irradiating the laser emitted by the laser device onto the surface of the optical lens to be tested to form signal light, and using a spectroscopic device to separate the signal light into a first scattered light and a second scattered light with different wavelengths; based on the first scattered light and the second scattered light, respectively acquiring a first speckle image and a second speckle image after imaging.

散射光斑测量表面粗糙度的基本原理是当一束光入射到粗糙表面时,由于表面是粗糙的,反射光向空间各个方向散射,形成一个散射场。因此通过获取散射光斑并提取对应的特征,就能够通过对特征分析以得到光学镜头表面粗糙度。本实施例中,具体是获取不同波长散射后得到的第一散斑图像和第二散斑图像。The basic principle of measuring surface roughness by scattered light spots is that when a beam of light is incident on a rough surface, the reflected light is scattered in all directions in space due to the roughness of the surface, forming a scattering field. Therefore, by obtaining the scattered light spots and extracting the corresponding features, the surface roughness of the optical lens can be obtained by analyzing the features. In this embodiment, the first speckle image and the second speckle image obtained after scattering at different wavelengths are obtained.

参见图2,图2提供了一种获取散斑图像的测量装置。如图2所示,该测量装置包含了激光器01、分光装置02、第一相机04、第二相机05、以及载物台03。Referring to FIG2 , FIG2 provides a measuring device for acquiring a speckle image. As shown in FIG2 , the measuring device comprises a laser 01 , a spectrometer 02 , a first camera 04 , a second camera 05 , and a stage 03 .

具体地,被测光学镜头安装在载物台03上,且载物台03可移动,当载物台03移动时,可以改变激光器01入发射的入射激光的角度。激光器01用于发出设定的倾斜角度激光束,激光束经过分光装置02后,会被分为不同角度的光束射到待测光学镜头表面;由于分光装置02改变了入射光的相位,因此可以将激光器01发射出的激光束分为不同波长的入射光从而得到不同成像结果下的散斑。第一相机04、第二相机05分别用于拍摄第一散斑图像和第二散斑图像。优选地,激光器01采用准直激光器。Specifically, the optical lens to be tested is mounted on a stage 03, and the stage 03 is movable. When the stage 03 moves, the angle of the incident laser emitted by the laser 01 can be changed. The laser 01 is used to emit a laser beam with a set tilt angle. After the laser beam passes through the spectrometer 02, it will be divided into beams of different angles and emitted to the surface of the optical lens to be tested; since the spectrometer 02 changes the phase of the incident light, the laser beam emitted by the laser 01 can be divided into incident lights of different wavelengths to obtain speckles under different imaging results. The first camera 04 and the second camera 05 are used to capture the first speckle image and the second speckle image, respectively. Preferably, the laser 01 adopts a collimated laser.

因此,本实施例中可以通过分光装置改变入射光的波长,从而获得不同波长入射光情况下对应的散斑图像,相比于单一波长的入射光进行测量,本实施例能够提高检测结果的精确度。Therefore, in this embodiment, the wavelength of the incident light can be changed by the spectroscopic device, so as to obtain the corresponding speckle images under the conditions of incident light of different wavelengths. Compared with the measurement of incident light of a single wavelength, this embodiment can improve the accuracy of the detection result.

S12、对第一散斑图像和第二散斑图像进行图像增强,并对图像的亮度进行归一化处理。S12: Perform image enhancement on the first speckle image and the second speckle image, and normalize the brightness of the images.

通过相机拍摄散斑图像很容易存在图像细节的丢失或失真的情况,而如果只是单纯的对图像进行放大,会存在放大图像噪声导致增强后的图像质量下降的问题,因此为了保证图像质量,使得后续能够准确地提取出图像特征。本实施例需要对图像进行增强和归一化处理。It is easy to lose or distort image details when taking speckle images with a camera, and if the image is simply amplified, the image noise will be amplified, resulting in a decrease in the quality of the enhanced image. Therefore, in order to ensure the image quality and enable accurate extraction of image features later, this embodiment requires image enhancement and normalization.

在一个实施例中,对第一散斑图像和第二散斑图像进行图像增强,包括以下步骤:In one embodiment, performing image enhancement on the first speckle image and the second speckle image comprises the following steps:

1)分别将第一散斑图像和第二散斑图像均匀分成若干个子图像,计算每个子图像的平整度:1) The first speckle image and the second speckle image are evenly divided into several sub-images respectively, and the flatness of each sub-image is calculated:

βf=γcot-1f)+ε,f=1,2,...,Nβ f =γcot -1f )+ε,f=1,2,...,N

式中,βf表示子图像f的平整度指数;γ、ε表示控制平整度指数的范围因子;δf表示子图像f的标准偏差;βf和δf满足逆关系。Where β f represents the flatness index of sub-image f; γ and ε represent the range factors that control the flatness index; δ f represents the standard deviation of sub-image f; β f and δ f satisfy an inverse relationship.

为了保证图像增强的效果,本实施例首先对图像进行区域划分,将散斑图像均匀的分区,然后分别计算每个区域的平整度。优选地,可以先设定一个平整度阈值,然后在计算完每个区域的平整度指数后,将该区域的平整度指数与平整度阈值进行比较,如果超过就将该区域认为是非平坦区,否则就位平坦区域。In order to ensure the effect of image enhancement, this embodiment first divides the image into regions, divides the speckle image into even regions, and then calculates the flatness of each region. Preferably, a flatness threshold can be set first, and then after calculating the flatness index of each region, the flatness index of the region is compared with the flatness threshold. If the difference exceeds, the region is considered to be a non-flat region, otherwise, it is considered to be a flat region.

2)基于子图像f的平整度指数计算滤波器的最优尺度参数:2) Calculate the optimal scale parameter of the filter based on the flatness index of the sub-image f:

式中,μf表示子图像f的对应的滤波器的最优尺度参数,μmax和μmin分别是最优尺度参数的最大值和最小值,max(βf)和min(βf)分别是平整度指数的最大值和最小值;Wherein, μ f represents the optimal scale parameter of the filter corresponding to the sub-image f, μ max and μ min are the maximum and minimum values of the optimal scale parameter, max(β f ) and min(β f ) are the maximum and minimum values of the flatness index, respectively;

3)计算各个子图像的权重:3) Calculate the weight of each sub-image:

bf,i=|μfi|,i=1,2,3b f,i = |μ fi |,i = 1, 2, 3

式中,μ1、μ2和μ3分别是平整度指数的最小值、中间值和最大值;bf,1、bf,2,bf,3表示子图像f的三个不同尺度;wf,c是子图像f在尺度c上的权重;i和c是尺度索引;Wherein, μ 1 , μ 2 and μ 3 are the minimum, middle and maximum values of the flatness index respectively; b f,1 , b f,2 , b f,3 represent three different scales of sub-image f; w f,c is the weight of sub-image f at scale c; i and c are scale indices;

4)进行图像增强和亮度归一化处理,得到增强图像:4) Perform image enhancement and brightness normalization to obtain an enhanced image:

Je(x,y)=We(x,y)M(x,y)+le(x,y)(1-M(x,y)) Je (x,y)= We (x,y)M(x,y)+ le (x,y)(1-M(x,y))

式中,Je(x,y)是散斑图像的增强图像,M(x,y)是散斑图像的经过亮度归一化处理后的图像;We(x,y)是散斑图像R、G和B颜色通道的增强效果;ΔCF是补偿因子;le(x,y)是光学镜头表面图像的第e个颜色通道的亮度值;e是颜色通道索引;是卷积运算符;ge(x,y)是光学镜头表面图像的第e个颜色通道经过滤波器处理后的效果,h是归一化因子;x和y分别是光学镜头表面图像的横坐标索引和纵坐标索引。Where, Je (x,y) is the enhanced image of the speckle image, M(x,y) is the image of the speckle image after brightness normalization; We (x,y) is the enhancement effect of the R, G and B color channels of the speckle image; ΔCF is the compensation factor; l e (x,y) is the brightness value of the e-th color channel of the optical lens surface image; e is the color channel index; is the convolution operator; ge (x, y) is the effect of the e-th color channel of the optical lens surface image after being processed by the filter, h is the normalization factor; x and y are the horizontal and vertical coordinate indexes of the optical lens surface image respectively.

因此,本实施例通过引入补偿因子修正MSR算法的对数函数,能够更好地保留和增强图像中的细节信息,基于平整度指数计算最优尺度参数,从而确定权重,有效抑制图像中的噪声,更好地平衡图像中的细节和噪声,并对图像的亮度进行归一化处理,使增强后的图像更加平衡和自然,提高图像质量。Therefore, this embodiment introduces a compensation factor to correct the logarithmic function of the MSR algorithm, which can better retain and enhance the detail information in the image, calculate the optimal scale parameter based on the flatness index, and thus determine the weight, effectively suppress the noise in the image, better balance the details and noise in the image, and normalize the brightness of the image, so that the enhanced image is more balanced and natural, thereby improving the image quality.

S13、对增强后的第一散斑图像进行纹理特征以及灰度均值特征提取,对增强后的第二散斑图像进行纹理特征、灰度标准差以及灰度均方根特征提取,将提取的特征分别输入至支持向量机模型进行粗糙度检测,得到第一检测值和第二检测值。S13, extracting texture features and grayscale mean features from the enhanced first speckle image, extracting texture features, grayscale standard deviation and grayscale root mean square features from the enhanced second speckle image, and inputting the extracted features into a support vector machine model for roughness detection, to obtain a first detection value and a second detection value.

需要说明的是,粗糙表面被激光照射时,反射光会在观察平面上形成亮斑和暗斑,这些随机分布的亮斑和暗斑被称为激光散斑。通常用光强的概率密度函数描述激光散斑。然而,用光强的概率密度函数直接建立表面粗糙度测量模型具有较大难度,因此需要对散斑图像进行特征提取,以研究图像特征与粗糙度直接的关系。It should be noted that when a rough surface is irradiated by a laser, the reflected light will form bright and dark spots on the observation plane. These randomly distributed bright and dark spots are called laser speckles. Laser speckles are usually described by the probability density function of light intensity. However, it is difficult to directly establish a surface roughness measurement model using the probability density function of light intensity. Therefore, it is necessary to extract features from the speckle image to study the direct relationship between image features and roughness.

具体地,可以用灰度共生矩阵法、灰度差分统计法提取散斑图像的纹理特征,其中灰度共生矩阵法可以提取能量、熵、惯性矩、相关性以及逆差矩这五个纹理特征。灰度差分统计法可以提取平均值、对比度以及熵这三个特征。还可以根据提取二值图像的前景像素占比。其中,二值图像的前景像素占比定义为二值图像中像素值为1的像素数与总像素数的比值。提取的每个原始特征参数都提供了散斑图像的信息,但是并非每一个原始特征参数都与表面粗糙度参数有良好的相关性。特征参数越多,提取特征参数的过程越复杂,模型数据维数也越高。因此在本实施例中主要以灰度共生矩阵法提取纹理特征,以及提取散斑灰度图像的相关特征。Specifically, the texture features of the speckle image can be extracted by the grayscale co-occurrence matrix method and the grayscale difference statistics method, wherein the grayscale co-occurrence matrix method can extract five texture features, namely energy, entropy, moment of inertia, correlation and inverse moment. The grayscale difference statistics method can extract three features, namely, average value, contrast and entropy. It is also possible to extract the foreground pixel ratio of the binary image. Among them, the foreground pixel ratio of the binary image is defined as the ratio of the number of pixels with a pixel value of 1 to the total number of pixels in the binary image. Each extracted original feature parameter provides information about the speckle image, but not every original feature parameter has a good correlation with the surface roughness parameter. The more feature parameters there are, the more complicated the process of extracting the feature parameters is, and the higher the model data dimension is. Therefore, in this embodiment, the grayscale co-occurrence matrix method is mainly used to extract texture features and extract relevant features of the speckle grayscale image.

具体地,对增强后的第一散斑图像进行纹理特征以及灰度均值特征提取,包括:Specifically, the texture feature and grayscale mean feature extraction are performed on the enhanced first speckle image, including:

式中,E是能量;S是熵;I是惯性矩;L是相关性;H是逆差矩,Gg是灰度级数;是增强后的灰度共生矩阵;μx、μy是均值;δx、δy是方差;x和y分别是光学镜头表面图像的横坐标索引和纵坐标索引。Where E is energy, S is entropy, I is moment of inertia, L is correlation, H is inverse moment, and G g is gray level. is the enhanced gray-level co-occurrence matrix; μ x , μ y are means; δ x , δ y are variances; x and y are the abscissa index and ordinate index of the optical lens surface image, respectively.

在一个实施例中,对增强后的第一散斑图像提取灰度均值,包括:In one embodiment, extracting the grayscale mean of the enhanced first speckle image includes:

式中,λ1表示第一散斑图像的灰度均值;Nx、Ny表示图像的水平方向和竖直方向的像素数,i,j表示图像的水平方向和竖直方向的像素点,Ig(i,j)表示灰度图像各像素点的灰度值。Wherein, λ 1 represents the grayscale mean of the first speckle image; N x , N y represent the number of pixels in the horizontal and vertical directions of the image, i, j represent the pixel points in the horizontal and vertical directions of the image, and I g (i, j) represents the grayscale value of each pixel point in the grayscale image.

进一步地,基于增强后的灰度共生矩阵,按照与提取第一散斑图像的纹理特征相同的方式提取第二散斑图像的纹理特征,分别得到能量E;熵S;惯性矩I;相关性L;逆差矩H这5个纹理特征。Furthermore, based on the enhanced gray level co-occurrence matrix, the texture features of the second speckle image are extracted in the same way as the texture features of the first speckle image, and five texture features, namely, energy E, entropy S, moment of inertia I, correlation L, and inverse moment H, are obtained respectively.

对增强后的第二散斑图像提取灰度标准差以及灰度均方根,包括:The grayscale standard deviation and grayscale root mean square are extracted from the enhanced second speckle image, including:

式中,λ2表示第二散斑图像的灰度均值;σ、ν表示第二散斑图像的灰度标准差、灰度均方根。Wherein, λ 2 represents the grayscale mean of the second speckle image; σ and ν represent the grayscale standard deviation and grayscale root mean square of the second speckle image.

因此,根据上述步骤提取的特征,可以分别构建第一散斑图像、第二散斑图像的特征组合,第一散斑图像的特征组合主要包括能量E;熵S;惯性矩I;相关性L;逆差矩H这5个纹理特征以及灰度均值λ1这1个灰度特征;而第二散斑图像的特征组合主要包括能量E;熵S;惯性矩I;相关性L;逆差矩H这5个纹理特征以及灰度标准差σ以及灰度均方根ν这2个灰度特征;Therefore, according to the features extracted in the above steps, the feature combinations of the first speckle image and the second speckle image can be constructed respectively. The feature combination of the first speckle image mainly includes five texture features of energy E, entropy S, moment of inertia I, correlation L, inverse moment H and one grayscale feature of grayscale mean λ 1 ; while the feature combination of the second speckle image mainly includes five texture features of energy E, entropy S, moment of inertia I, correlation L, inverse moment H and two grayscale features of grayscale standard deviation σ and grayscale root mean square ν.

为了进一步优化特征组合,本实施例考虑了特征之间的相关性,将相关性较弱的特征进行剔除,从而加快模型的训练速度,减少冗余特征对模型检测粗糙度能力的干扰。In order to further optimize the feature combination, this embodiment takes into account the correlation between features and removes features with weak correlation, thereby speeding up the training of the model and reducing the interference of redundant features on the model's ability to detect roughness.

在一个优选地实施方式中,在将提取的第一散斑图像的特征、第二散斑图像的特征分别输入至支持向量机模型进行粗糙度检测之前,还包括:In a preferred embodiment, before the extracted features of the first speckle image and the extracted features of the second speckle image are respectively input into a support vector machine model for roughness detection, the method further includes:

1)利用斯皮尔曼相关系数对提取的纹理特征进行相关性分析,根据分析结果将逆差矩特征进行剔除。1) Use the Spearman correlation coefficient to perform correlation analysis on the extracted texture features, and eliminate the inverse moment features based on the analysis results.

斯皮尔曼相关系数常用于度量两个变量之间的依赖性,先对两个变量进行等级交换,然后计算二者的相关性,如果数据中不存在重复值时,当两个变量完全单调相关时,斯皮尔曼相关系数则为+1或-1。因此对于第一散斑图像的纹理特征或者第二散斑图像的纹理特征来说,可以利用斯皮尔曼相关系数来计算这5个特征之间的相关性,通过计算可知,逆差矩特征与其他特征的相关关系较弱,因此可以对该特征进行剔除。The Spearman correlation coefficient is often used to measure the dependence between two variables. First, the two variables are rank-exchanged, and then the correlation between the two is calculated. If there are no repeated values in the data, when the two variables are completely monotonically correlated, the Spearman correlation coefficient is +1 or -1. Therefore, for the texture features of the first speckle image or the texture features of the second speckle image, the Spearman correlation coefficient can be used to calculate the correlation between the five features. Through calculation, it can be seen that the inverse difference moment feature has a weak correlation with other features, so this feature can be eliminated.

2)利用皮尔逊相关系数对提取的灰度均值、灰度标准差以及灰度均方根进行相关性分析,根据分析结果将灰度标准差特征进行剔除。2) Use the Pearson correlation coefficient to perform correlation analysis on the extracted grayscale mean, grayscale standard deviation and grayscale root mean square, and eliminate the grayscale standard deviation feature based on the analysis results.

进一步地,在对纹理特征进行剔除后,还需要对灰度特征进行相关性分析,其中第一散斑图像中的灰度特征只有灰度均值这一个,因此无需进行分析,而在第二散斑图像中的灰度特征中,一共包含了灰度标准差、灰度均方根这两个特征,因此在这一步中,通过皮尔逊相关系数分别计算了灰度标准差、灰度均方根与灰度均值之间的相关关系,从而保留相关性更强的特征,根据计算结果可知,灰度均方根与灰度均值的相关性更强,因此为了减少特征,此处将灰度标准差特征进行剔除。Furthermore, after removing the texture features, the grayscale features need to be subjected to correlation analysis. The grayscale feature in the first speckle image only has the grayscale mean, so no analysis is required. The grayscale features in the second speckle image include the grayscale standard deviation and the grayscale root mean square. Therefore, in this step, the correlation between the grayscale standard deviation, the grayscale root mean square and the grayscale mean is calculated by the Pearson correlation coefficient, so as to retain the features with stronger correlation. According to the calculation results, the grayscale root mean square is more strongly correlated with the grayscale mean. Therefore, in order to reduce the features, the grayscale standard deviation feature is removed here.

经过上述特征筛选的步骤可以得到,第一散斑图像的特征共包括能量E、熵S、惯性矩I、相关性L、灰度均值λ1;第二散斑图像的特征共包括能量E、熵S、惯性矩I、相关性L、灰度均方根ν。Through the above feature screening steps, it can be obtained that the features of the first speckle image include energy E, entropy S, moment of inertia I, correlation L, and grayscale mean λ 1 ; the features of the second speckle image include energy E, entropy S, moment of inertia I, correlation L, and grayscale root mean square ν.

最后,将第一散斑图像的特征、第二散斑图像的特征分别输入至支持向量机模型进行粗糙度检测,得到第一检测值和第二检测值。Finally, the features of the first speckle image and the features of the second speckle image are respectively input into the support vector machine model for roughness detection to obtain a first detection value and a second detection value.

需要说明的是,支持向量机SVM是一种适合小样本问题的分类和回归算法。通过设置高维空间的线性回归函数,可以将建立对应的SVR模型,具体地表达式如下:It should be noted that the support vector machine (SVM) is a classification and regression algorithm suitable for small sample problems. By setting the linear regression function in high-dimensional space, the corresponding SVR model can be established. The specific expression is as follows:

K(xi,x*)=exp(-g‖xi-x*||2)K( xi ,x*)=exp(-g‖xi- x *|| 2 )

式中,α1、α2表示拉格朗日乘子;xi为输入样本;g为核函数参数,K(xi,x*)为高斯径向基核函数;b为偏置值,f(x*)表示支持向量机的回归函数值。Wherein, α 1 and α 2 represent Lagrange multipliers; xi is the input sample; g is the kernel function parameter, K( xi , x*) is the Gaussian radial basis kernel function; b is the bias value, and f(x*) represents the regression function value of the support vector machine.

可以理解的是,在上述步骤中,给出了特征提取和特征筛选的过程,最后只需要将最终筛选出的特征输入至训练好的支持向量机模型中,即可得到粗糙度的检测值。因此在训练支持向量机模型,同样要基于上述实施例中所采用的特征指标进行训练,例如可以选取若干张散斑图像作为训练样本,然后对于每张样本图像,对应提取与上述实施例中相同的特征,然后对支持向量机进行训练。每训练一次后需要对模型的检测精度进行评估,评估后可以再返回特征提取的步骤,筛选和剔除无关特征,再重新选择训练模型所采用的特征,从而使得模型的检测精度更优。It can be understood that in the above steps, the process of feature extraction and feature screening is given. Finally, it is only necessary to input the finally screened features into the trained support vector machine model to obtain the roughness detection value. Therefore, when training the support vector machine model, it is also necessary to train based on the feature indicators used in the above embodiment. For example, several speckle images can be selected as training samples, and then for each sample image, the same features as in the above embodiment are extracted, and then the support vector machine is trained. After each training, the detection accuracy of the model needs to be evaluated. After the evaluation, the feature extraction step can be returned to screen and eliminate irrelevant features, and then the features used in the training model can be reselected, so that the detection accuracy of the model is better.

优选地,可以利用均绝对百分比误差和均方根误差作为支持向量机模型的评价指标,当评价指标不满足预设条件时,就通过调整输入特征对模型进行训练,直至指标能够满足预设条件时,即认为训练得到的支持向量机模型的检测精度已经满足要求。最后将第一散斑图像的特征、第二散斑图像的特征分别输入至训练好的支持向量机模型进行粗糙度检测,就能够得到第一检测值和第二检测值。Preferably, the mean absolute percentage error and the root mean square error can be used as evaluation indicators of the support vector machine model. When the evaluation indicators do not meet the preset conditions, the model is trained by adjusting the input features until the indicators meet the preset conditions, and it is considered that the detection accuracy of the trained support vector machine model has met the requirements. Finally, the features of the first speckle image and the features of the second speckle image are respectively input into the trained support vector machine model for roughness detection, so that the first detection value and the second detection value can be obtained.

S14、计算第一检测值和第二检测值的平均值,得到光学镜头表面粗糙度。S14, calculating the average value of the first detection value and the second detection value to obtain the surface roughness of the optical lens.

综上所述,本实施例首先采用分光装置对激光器发射出的光源进行分光操作,能够得到不同波长射到待测光学镜头表面所产生的散斑图像,相比于采用单一波长的光源来说,能够提高检测结果的准确度。通过对图像进行增强,能够有效抑制图像中的噪声,从而更好地平衡图像中的细节和噪声,提升了图像质量;最后,对于不同的波长得到的散斑图像,引入了斯皮尔曼相关系数和皮尔逊相关系数分析特征的相关性,最后通过筛选提取了不同的特征作为支持向量机模型输入,以进行粗糙度检测,最终将二者得到的粗糙度检测值取平均,得到了最终的光学镜头表面粗糙度,在提升检测效率的同时,大大提升了检测精度。In summary, this embodiment first uses a spectroscopic device to perform a spectroscopic operation on the light source emitted by the laser, and can obtain a speckle image generated by different wavelengths irradiating the surface of the optical lens to be tested, which can improve the accuracy of the detection result compared to the use of a single wavelength light source. By enhancing the image, the noise in the image can be effectively suppressed, thereby better balancing the details and noise in the image and improving the image quality; finally, for the speckle images obtained at different wavelengths, the Spearman correlation coefficient and the Pearson correlation coefficient are introduced to analyze the correlation of features, and finally different features are extracted by screening as inputs to the support vector machine model for roughness detection, and finally the roughness detection values obtained by the two are averaged to obtain the final surface roughness of the optical lens, which greatly improves the detection efficiency and the detection accuracy.

参见图3,在本发明某一个实施例中,还提供了一种光学镜头表面粗糙度的检测系统,所述系统包括:Referring to FIG. 3 , in one embodiment of the present invention, a system for detecting the surface roughness of an optical lens is further provided, the system comprising:

图像获取单元100,用于将激光装置发射的激光辐照在待测光学镜头的表面上形成信号光,利用分光装置将信号光分离成波长不同的第一散射光和第二散射光;基于第一散射光和第二散射光,分别获取成像后的第一散斑图像和第二散斑图像;The image acquisition unit 100 is used to irradiate the laser emitted by the laser device onto the surface of the optical lens to be tested to form a signal light, and use a spectroscopic device to separate the signal light into a first scattered light and a second scattered light with different wavelengths; based on the first scattered light and the second scattered light, respectively acquire a first speckle image and a second speckle image after imaging;

图像增强单元200,用于对第一散斑图像和第二散斑图像进行图像增强,所述图像增强包括图像增强和归一化处理;An image enhancement unit 200, configured to perform image enhancement on the first speckle image and the second speckle image, wherein the image enhancement includes image enhancement and normalization processing;

特征提取单元300,用于对增强后的第一散斑图像进行纹理特征以及灰度均值特征提取,对增强后的第二散斑图像进行纹理特征、灰度标准差以及灰度均方根特征提取,将提取的第一散斑图像的特征、第二散斑图像的特征分别输入至支持向量机模型进行粗糙度检测,得到第一检测值和第二检测值;The feature extraction unit 300 is used to extract texture features and grayscale mean features from the enhanced first speckle image, extract texture features, grayscale standard deviation and grayscale root mean square features from the enhanced second speckle image, and input the extracted features of the first speckle image and the second speckle image into a support vector machine model for roughness detection, to obtain a first detection value and a second detection value;

粗糙度检测单元400,用于计算第一检测值和第二检测值的平均值,得到光学镜头表面粗糙度。The roughness detection unit 400 is used to calculate the average value of the first detection value and the second detection value to obtain the surface roughness of the optical lens.

在一个实施例中,特征提取单元300,还用于:In one embodiment, the feature extraction unit 300 is further configured to:

利用斯皮尔曼相关系数对提取的纹理特征进行相关性分析,根据分析结果将逆差矩特征进行剔除;The Spearman correlation coefficient is used to conduct correlation analysis on the extracted texture features, and the inverse moment feature is eliminated according to the analysis results;

利用皮尔逊相关系数对提取的灰度均值、灰度标准差以及灰度均方根进行相关性分析,根据分析结果将灰度标准差特征进行剔除。The Pearson correlation coefficient is used to perform correlation analysis on the extracted grayscale mean, grayscale standard deviation and grayscale root mean square, and the grayscale standard deviation feature is eliminated based on the analysis results.

可以理解的是,本实施例提供的系统具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。It can be understood that the functions or modules included in the system provided in this embodiment can be used to execute the method described in the above method embodiment. Its specific implementation can refer to the description of the above method embodiment. For the sake of brevity, it will not be repeated here.

本发明还提供了一种电子设备,包括:处理器、发送装置、输入装置、输出装置和存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,所述电子设备执行如上述任意一种可能实现的方式的方法。The present invention also provides an electronic device, comprising: a processor, a sending device, an input device, an output device and a memory, wherein the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes a method as described in any possible implementation manner.

本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被电子设备的处理器执行时,使所述处理器执行如上述任意一种可能实现的方式的方法。The present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes a method as described in any possible implementation manner.

请参阅图4,图4为本发明实施例提供的一种电子设备的硬件结构示意图。Please refer to FIG. 4 , which is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.

该电子设备2包括处理器21,存储器22,输入装置23,输出装置24。该处理器21、存储器22、输入装置23和输出装置24通过连接器相耦合,该连接器包括各类接口、传输线或总线等等,本发明实施例对此不作限定。应当理解,本发明的各个实施例中,耦合是指通过特定方式的相互联系,包括直接相连或者通过其他设备间接相连,例如可以通过各类接口、传输线、总线等相连。The electronic device 2 includes a processor 21, a memory 22, an input device 23, and an output device 24. The processor 21, the memory 22, the input device 23, and the output device 24 are coupled via a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiments of the present invention. It should be understood that in various embodiments of the present invention, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, through various interfaces, transmission lines, buses, etc.

处理器21可以是一个或多个图形处理器(graphics processing unit,GPU),在处理器21是一个GPU的情况下,该GPU可以是单核GPU,也可以是多核GPU。可选的,处理器21可以是多个GPU构成的处理器组,多个处理器之间通过一个或多个总线彼此耦合。可选的,该处理器还可以为其他类型的处理器等等,本发明实施例不作限定。The processor 21 may be one or more graphics processing units (GPUs). When the processor 21 is a GPU, the GPU may be a single-core GPU or a multi-core GPU. Optionally, the processor 21 may be a processor group consisting of multiple GPUs, and the multiple processors are coupled to each other via one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present invention.

存储器22可用于存储计算机程序指令,以及用于执行本发明方案的程序代码在内的各类计算机程序代码。可选地,存储器包括但不限于是随机存储记忆体(random accessmemory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasableprogrammable read only memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM),该存储器用于相关指令及数据。The memory 22 can be used to store computer program instructions and various computer program codes including program codes for executing the scheme of the present invention. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.

输入装置23用于输入数据和/或信号,以及输出装置24用于输出数据和/或信号。输入装置23和输出装置24可以是独立的器件,也可以是一个整体的器件。The input device 23 is used to input data and/or signals, and the output device 24 is used to output data and/or signals. The input device 23 and the output device 24 can be independent devices or an integrated device.

可理解,本发明实施例中,存储器22不仅可用于存储相关指令,本发明实施例对于该存储器中具体所存储的数据不作限定。It is understandable that in the embodiment of the present invention, the memory 22 is not only used to store related instructions, and the embodiment of the present invention does not limit the specific data stored in the memory.

可以理解的是,图4仅仅示出了一种电子设备的简化设计。在实际应用中,电子设备还可以分别包含必要的其他元件,包含但不限于任意数量的输入/输出装置、处理器、存储器等,而所有可以实现本发明实施例的视频解析装置都在本发明的保护范围之内。It is understandable that FIG4 only shows a simplified design of an electronic device. In practical applications, the electronic device may also include other necessary components, including but not limited to any number of input/output devices, processors, memories, etc., and all video analysis devices that can implement the embodiments of the present invention are within the protection scope of the present invention.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。所属领域的技术人员还可以清楚地了解到,本发明各个实施例描述各有侧重,为描述的方便和简洁,相同或类似的部分在不同实施例中可能没有赘述,因此,在某一实施例未描述或未详细描述的部分可以参见其他实施例的记载。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present invention have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.

在本发明所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriberline,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字通用光盘(digitalversatiledisc,DVD))、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:只读存储器(read-only memory,ROM)或随机存储存储器(random access memory,RAM)、磁碟或者光盘等各种可存储程序代码的介质。A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

Claims (10)

1. A method for detecting surface roughness of an optical lens, the method comprising:
Irradiating laser emitted by a laser device on the surface of an optical lens to be detected to form signal light, and separating the signal light into first scattered light and second scattered light with different wavelengths by using a light splitting device; acquiring a first speckle image and a second speckle image after imaging based on the first scattered light and the second scattered light, respectively;
performing image enhancement on the first speckle image and the second speckle image, wherein the image enhancement comprises image enhancement and normalization processing;
Extracting texture features and gray average features of the enhanced first speckle image, extracting texture features, gray standard deviation and gray root mean square features of the enhanced second speckle image, and respectively inputting the extracted features of the first speckle image and the extracted features of the second speckle image into a support vector machine model for roughness detection to obtain a first detection value and a second detection value;
and calculating the average value of the first detection value and the second detection value to obtain the surface roughness of the optical lens.
2. The method for detecting surface roughness of an optical lens of claim 1, wherein the image enhancement of the first speckle image and the second speckle image comprises:
Uniformly dividing the first speckle image and the second speckle image into a plurality of sub-images respectively, and calculating the flatness of each sub-image:
βf=γcot-1f)+ε,f=1,2,...,N
wherein β f represents the flatness index of the sub-image f; gamma, epsilon represent the range factor controlling the flatness index; δ f represents the standard deviation of the sub-image f;
Calculating an optimal scale parameter of the filter based on the flatness index of the sub-image f:
Wherein μ f represents the optimal scale parameters of the corresponding filters of the sub-image f, μ max and μ min are the maximum and minimum values of the optimal scale parameters, respectively, and max (β f) and min (β f) are the maximum and minimum values of the flatness index, respectively;
Calculating the weight of each sub-image:
bf,i=|μfi|,i=1,2,3
Wherein μ 1、μ2 and μ 3 are the minimum, intermediate and maximum values of the flatness index, respectively; b f,1、bf,2,bf,3 represents three different scales of the sub-image f; w f,c is the weight of sub-image f on scale c; i and c are scale indices;
performing image enhancement and brightness normalization processing to obtain an enhanced image:
Je(x,y)=We(x,y)M(x,y)+le(x,y)(1-M(x,y))
Wherein J e (x, y) is an enhanced image of the speckle image, and M (x, y) is an image of the speckle image subjected to brightness normalization; w e (x, y) is the enhancement effect of the speckle image R, G and the B color channel; Δ CF is the compensation factor; l e (x, y) is the luminance value of the e-th color channel of the optical lens surface image; e is the color channel index; Is a convolution operator; g e (x, y) is the effect of the e-th color channel of the optical lens surface image after being processed by the filter, and h is a normalization factor; x and y are the abscissa index and the ordinate index, respectively, of the optical lens surface image.
3. The method for detecting surface roughness of an optical lens of claim 1, wherein the texture feature of the enhanced first speckle image or the enhanced second speckle image comprises:
extracting texture features of the first speckle image or the second speckle image by using a gray level co-occurrence matrix method:
wherein E is energy; s is entropy; i is the moment of inertia; l is a correlation; h is the inverse moment, G g is the number of gray levels; Is an enhanced gray level co-occurrence matrix; mu x、μy is the mean; delta x、δy is variance; x and y are the abscissa index and the ordinate index, respectively, of the optical lens surface image.
4. The method for detecting surface roughness of an optical lens as claimed in claim 1, wherein before the extracted features of the first speckle image and the extracted features of the second speckle image are respectively input to the support vector machine model for roughness detection, further comprising:
Carrying out correlation analysis on the extracted texture features by utilizing the spearman correlation coefficient, and eliminating inverse difference moment features according to analysis results;
and carrying out correlation analysis on the extracted gray average value, gray standard deviation and gray root mean square by using the pearson correlation coefficient, and eliminating gray standard deviation features according to analysis results.
5. The method for detecting surface roughness of an optical lens of claim 1, wherein the expression of the support vector machine model is:
K(xi,x*)=exp(-g||xi-x*||2)
Wherein α 1、α2 represents a lagrange multiplier; x i is the input sample; g is a kernel function parameter, and K (x i, x) is a Gaussian radial basis kernel function; b is the bias value and f (x) represents the regression function value of the support vector machine.
6. The method for detecting surface roughness of an optical lens of claim 1, further comprising using the average absolute percentage error and the root mean square error as an evaluation index of a support vector machine model.
7. A system for detecting surface roughness of an optical lens, the system comprising:
An image acquisition unit for irradiating laser emitted by a laser device on the surface of an optical lens to be tested to form signal light, and separating the signal light into first scattered light and second scattered light with different wavelengths by using a light splitting device; acquiring a first speckle image and a second speckle image after imaging based on the first scattered light and the second scattered light, respectively;
An image enhancement unit for performing image enhancement on the first speckle image and the second speckle image, the image enhancement including image enhancement and normalization processing;
The feature extraction unit is used for extracting texture features and gray average features of the enhanced first speckle image, extracting texture features, gray standard deviation and gray root mean square features of the enhanced second speckle image, and respectively inputting the extracted features of the first speckle image and the extracted features of the second speckle image into the support vector machine model for roughness detection to obtain a first detection value and a second detection value;
And the roughness detection unit is used for calculating the average value of the first detection value and the second detection value to obtain the surface roughness of the optical lens.
8. The system for detecting surface roughness of an optical lens of claim 7, wherein the feature extraction unit is further configured to:
Carrying out correlation analysis on the extracted texture features by utilizing the spearman correlation coefficient, and eliminating inverse difference moment features according to analysis results;
and carrying out correlation analysis on the extracted gray average value, gray standard deviation and gray root mean square by using the pearson correlation coefficient, and eliminating gray standard deviation features according to analysis results.
9. An electronic device, comprising: a processor and a memory for storing computer program code comprising computer instructions which, when executed by the processor, the electronic device performs the method of detecting surface roughness of an optical lens as claimed in any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program comprising program instructions which, when executed by a processor of an electronic device, cause the processor to perform the method of detecting the surface roughness of an optical lens according to any of claims 1 to 7.
CN202410150981.1A 2024-02-02 2024-02-02 A method and system for detecting surface roughness of an optical lens Pending CN118009934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410150981.1A CN118009934A (en) 2024-02-02 2024-02-02 A method and system for detecting surface roughness of an optical lens

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410150981.1A CN118009934A (en) 2024-02-02 2024-02-02 A method and system for detecting surface roughness of an optical lens

Publications (1)

Publication Number Publication Date
CN118009934A true CN118009934A (en) 2024-05-10

Family

ID=90957747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410150981.1A Pending CN118009934A (en) 2024-02-02 2024-02-02 A method and system for detecting surface roughness of an optical lens

Country Status (1)

Country Link
CN (1) CN118009934A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119476397A (en) * 2024-11-07 2025-02-18 北京邮电大学 Optical transmission matrix measurement model training method, matrix measurement method and device
CN120506911A (en) * 2025-05-30 2025-08-19 江苏科盛汽车部件有限公司 Rearview mirror flatness detection method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4145140A (en) * 1977-06-15 1979-03-20 Hitoshi Fujii Measurement of surface roughness
WO2006069443A1 (en) * 2004-12-27 2006-07-06 Bc Cancer Agency Surface roughness measurement methods and apparatus
CN103759676A (en) * 2014-01-06 2014-04-30 南京信息工程大学 Non-contact type workpiece surface roughness detecting method
CN113034482A (en) * 2021-04-07 2021-06-25 山东大学 Surface roughness detection method based on machine vision and machine learning
CN114485470A (en) * 2022-01-30 2022-05-13 北京理工大学 Speckle-based composite material three-dimensional appearance and defect comprehensive measurement system and method
CN117314891A (en) * 2023-11-23 2023-12-29 深圳市永泰光电有限公司 An optical lens surface defect detection method and system based on image processing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4145140A (en) * 1977-06-15 1979-03-20 Hitoshi Fujii Measurement of surface roughness
WO2006069443A1 (en) * 2004-12-27 2006-07-06 Bc Cancer Agency Surface roughness measurement methods and apparatus
CN103759676A (en) * 2014-01-06 2014-04-30 南京信息工程大学 Non-contact type workpiece surface roughness detecting method
CN113034482A (en) * 2021-04-07 2021-06-25 山东大学 Surface roughness detection method based on machine vision and machine learning
CN114485470A (en) * 2022-01-30 2022-05-13 北京理工大学 Speckle-based composite material three-dimensional appearance and defect comprehensive measurement system and method
CN117314891A (en) * 2023-11-23 2023-12-29 深圳市永泰光电有限公司 An optical lens surface defect detection method and system based on image processing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴鹏飞 等: "基于激光散斑图像多特征参数的表面粗糙度建模研究", 红外与激光工程, vol. 52, no. 12, 31 December 2023 (2023-12-31), pages 20230348 - 1 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119476397A (en) * 2024-11-07 2025-02-18 北京邮电大学 Optical transmission matrix measurement model training method, matrix measurement method and device
CN119476397B (en) * 2024-11-07 2025-06-17 北京邮电大学 Optical transmission matrix measurement model training method, matrix measurement method and device
CN120506911A (en) * 2025-05-30 2025-08-19 江苏科盛汽车部件有限公司 Rearview mirror flatness detection method and system

Similar Documents

Publication Publication Date Title
CN104812288B (en) Image processing apparatus and image processing method
CN118009934A (en) A method and system for detecting surface roughness of an optical lens
CN112462349A (en) Wavelength calculation method, system, server and storage medium for spectrum confocal displacement sensor
CN107478656B (en) Paper pulp stirring effect detection and evaluation method, device and system based on machine vision
CN116703909B (en) Intelligent detection method for production quality of power adapter
Van Zwanenberg et al. Edge detection techniques for quantifying spatial imaging system performance and image quality
CN110110758A (en) A kind of surface roughness classification method based on convolutional neural networks
CN116109627B (en) Defect detection method, device and medium based on migration learning and small sample learning
CN119131260A (en) A method for constructing a food nondestructive inspection model based on machine vision
CN119985484A (en) A method for visual inspection of surface quality of precision injection mold base
CN111353992B (en) Agricultural product defect detection method and system based on textural features
CN113272639B (en) Method for extracting spectral information of substance to be detected
CN115326362A (en) Method and system for measuring modulation transfer function of digital input equipment
CN118329887B (en) Chip package detection method, device, equipment and storage medium
CN120064296A (en) Metal part defect identification method and system based on image processing technology
Chiamaka Okafor et al. The effect of image preprocessing algorithms on diabetic foot ulcer classification
CN119477893A (en) A medical image acquisition and analysis method and system for endocrine patients
CN118864429A (en) A milling cutter cutting accuracy detection method and detection system
CN117058106A (en) Measurement method of flatness and surface defects of flexible glass based on random forest
CN118150126A (en) Light spot quality analysis method, system, device, computer equipment and storage medium
CN107529962A (en) Image processing apparatus, image processing method and image processing program
CN119295451B (en) White tea fermentation quality evaluation method, system and device based on image analysis
CN120801216B (en) A method and system for detecting antibacterial properties of flooring
CN120747109B (en) Display screen defect detection method, system and medium based on machine vision
CN121033039B (en) Beet single embryo pelleting seed breakage rate detection method based on machine vision

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20240510