[go: up one dir, main page]

CN110567918B - A Specular Quality Analysis Method Based on 2D Structured Light - Google Patents

A Specular Quality Analysis Method Based on 2D Structured Light Download PDF

Info

Publication number
CN110567918B
CN110567918B CN201910831046.0A CN201910831046A CN110567918B CN 110567918 B CN110567918 B CN 110567918B CN 201910831046 A CN201910831046 A CN 201910831046A CN 110567918 B CN110567918 B CN 110567918B
Authority
CN
China
Prior art keywords
mirror
point
image
model
color
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.)
Active
Application number
CN201910831046.0A
Other languages
Chinese (zh)
Other versions
CN110567918A (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.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
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 Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN201910831046.0A priority Critical patent/CN110567918B/en
Publication of CN110567918A publication Critical patent/CN110567918A/en
Application granted granted Critical
Publication of CN110567918B publication Critical patent/CN110567918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/55Specular reflectivity

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

A mirror surface quality analysis method based on 2D structured light comprises the following steps: 1) installing equipment; 2) constructing a mirror surface initial model; 3) analyzing the imaging process of the camera by using a pinhole model; 4) determining the corresponding relation among the pixel point P, the reflection point M and the target point T; 5) color checkerboard coding; 6) dividing and decoding the color checkerboard; 7) optimizing mirror equation description; 8) fitting a new mirror model according to the normal vector, wherein the fitting mode is a least square method; 9) calculating whether the model converges according to the new mirror model; 10) calculating a normal vector of a mirror reference point according to the obtained converged mirror model; 11) comparing whether the fitted normal vector at the reference point is the same as the designed normal vector; 12) calculating the focal length of the fitted parabolic mirror in the direction X, Y, calculating the standard deviation of the normal vector of the mirror surface from the ideal value, and representing the flatness of the mirror surface. The invention can obtain more accurate measurement results and higher measurement efficiency.

Description

一种基于2D结构光的镜面质量分析方法A Specular Quality Analysis Method Based on 2D Structured Light

技术领域technical field

本发明属于镜面质量分析检测领域,是一种聚光热发电中的聚光器镜面分析方面的技术,是一种基于2D结构光的镜面质量分析方法。The invention belongs to the field of specular quality analysis and detection, relates to a technology of concentrator specular analysis in concentrating thermal power generation, and is a specular quality analysis method based on 2D structured light.

背景技术Background technique

目前,化石能源的高速消耗和环境的严重污染已经成为世界共同关注的焦点问题,新能源的开发也成为各国研究的核心。其中,太阳能以其可持续性、清洁性吸引了越来越多的关注和研究。太阳能的主要利用方式是将光能转化为电能,现有的技术主要包括光伏发电和聚光热发电,在聚光热发电中,热源的质量直接影响设备的发电效率和使用寿命,而影响该质量的主要因素为聚光器组成镜面的质量和镜面安装的精度。镜面质量的分析是本发明的核心。At present, the rapid consumption of fossil energy and serious environmental pollution have become the focus of the world's common concerns, and the development of new energy has also become the core of research in various countries. Among them, solar energy has attracted more and more attention and research due to its sustainability and cleanliness. The main way of using solar energy is to convert light energy into electrical energy. The existing technologies mainly include photovoltaic power generation and concentrating thermal power generation. The main factors of quality are the quality of the mirror surface of the condenser and the accuracy of the mirror surface installation. The analysis of specular quality is the core of the present invention.

为了保证聚光器的质量,使得它汇聚阳光产生能量分布均匀的热源,组成镜面的光学参数需要与设计模型保持高度的一致性。但是加工误差可能改变镜面的焦距,甚至导致扭曲和表面不平整等情况,因此镜面质量需要进一步检测。镜面具有高反射率的特性,这使得三维扫描技术难以直接完成镜面形状的测量。近年来,基于反射的测量方法受到了越来越多的关注,如SOFAST。该方法利用LCD屏幕显示移相条纹图片作为目标靶,通过数字相机拍摄镜面的反射图片。解码反射条纹图像即可建立相机像素与反射目标点的映射关系,对应的镜面反射点和法向量可根据光学反射原理和光线追踪方法确定。利用选定的二阶方程拟合法向量数据,通过方程参数即可得到镜面光学特性相关的参数。但是该方法仍然处于发展阶段。In order to ensure the quality of the concentrator so that it can gather sunlight to generate a heat source with uniform energy distribution, the optical parameters of the mirror surface need to be highly consistent with the design model. However, machining errors may change the focal length of the mirror, and even cause distortion and surface unevenness, so the quality of the mirror needs to be further inspected. The mirror surface has the characteristics of high reflectivity, which makes it difficult for 3D scanning technology to directly measure the shape of the mirror surface. In recent years, reflection-based measurement methods have received increasing attention, such as SOFAST. The method uses the LCD screen to display the phase-shifted fringe image as the target, and captures the mirror reflection image through a digital camera. Decoding the reflection fringe image can establish the mapping relationship between the camera pixel and the reflection target point, and the corresponding specular reflection point and normal vector can be determined according to the optical reflection principle and ray tracing method. Using the selected second-order equation to fit the normal vector data, the parameters related to the optical properties of the mirror surface can be obtained through the equation parameters. But the method is still in the developmental stage.

发明内容SUMMARY OF THE INVENTION

为了克服已有镜面质量分析的不足,本发明提供了一种能够获得较准确的测量结果和较高的测量效率的镜面分析方法,并且不需要复杂的设备以及较高的成本。In order to overcome the deficiencies of the existing mirror surface quality analysis, the present invention provides a mirror surface analysis method capable of obtaining more accurate measurement results and higher measurement efficiency, and does not require complex equipment and high cost.

本发明解决其技术问题所采用的技术方案是:The technical scheme adopted by the present invention to solve its technical problems is:

一种基于2D结构光的镜面质量分析方法,包括以下步骤:A specular quality analysis method based on 2D structured light, comprising the following steps:

1)安装设备,该测量系统将彩色编码棋盘格图像作为目标靶,利用数字相机拍摄镜面的反射图像,相机的拍摄距离为5.5~6.5m镜面距离目标靶0.9~1.1m;1) Install the equipment, the measurement system uses the color-coded checkerboard image as the target, and uses a digital camera to capture the reflection image of the mirror. The shooting distance of the camera is 5.5-6.5m. The distance between the mirror and the target is 0.9-1.1m;

2)构建镜面初始模型2) Build a specular initial model

为了将阳光有效地汇聚到接收器上,聚光镜面设计成旋转抛物面的形状,镜面通过如下方程进行描述:In order to efficiently concentrate sunlight onto the receiver, the condenser mirror is designed in the shape of a paraboloid of revolution, and the mirror is described by the following equation:

Z=A×X2+B×Y2+C×XY+D×X+E×Y+FZ=A×X 2 +B×Y 2 +C×XY+D×X+E×Y+F

其中,X、Y和Z为镜面坐标系三坐标轴,A、B、C、D、E和F为需要拟合的参数;Among them, X, Y and Z are the three coordinate axes of the mirror coordinate system, and A, B, C, D, E and F are the parameters to be fitted;

3)利用针孔模型分析相机成像过程3) Using the pinhole model to analyze the camera imaging process

C点为相机透射中心,P为像点,PC确定了反射光线的方向向量

Figure BDA0002190714570000021
M为镜面反射点,它的空间位置通过光线与镜面(初始采用设计模型进行描述)的交点进行计算,对应的反射目标点T通过棋盘格图像解码算法得到,TM确定了光线的入射方向
Figure BDA0002190714570000022
根据光线反射原理,M点处法向量通过以下方程计算:Point C is the transmission center of the camera, P is the image point, and PC determines the direction vector of the reflected light
Figure BDA0002190714570000021
M is the mirror reflection point, its spatial position is calculated by the intersection of the light and the mirror (initially described by the design model), the corresponding reflection target point T is obtained by the checkerboard image decoding algorithm, TM determines the incident direction of the light
Figure BDA0002190714570000022
According to the principle of light reflection, the normal vector at point M is calculated by the following equation:

Figure BDA0002190714570000023
Figure BDA0002190714570000023

4)确定像素点P、反射点M和目标点T的对应关系,P与M间的对应关系通过几何分析进行确定;采用空域编码的结构光图像(彩色棋盘格)作为反射目标图像,将目标靶简化为一块平板,图像通过棋盘格编码算法生成,解码图像即建立像素P和目标点T间的映射关系;4) Determine the corresponding relationship between the pixel point P, the reflection point M and the target point T, and the corresponding relationship between P and M is determined by geometric analysis; the structured light image (color checkerboard) encoded in the space is used as the reflection target image, and the target The target is simplified as a flat plate, the image is generated by the checkerboard coding algorithm, and the decoding image is to establish the mapping relationship between the pixel P and the target point T;

5)彩色棋盘格编码5) Color checkerboard coding

采用七种颜色编码生成目标靶图像,采用不同的数字代替不同的颜色,棋盘格图像转变为对应的数字矩阵,完成该矩阵的编码,即得到了对应的棋盘格图像。编码过程需要首先产生对应的横向序列和状态转换序列,然后将二者结合得到目标矩阵,分为:编码横向序列、生成状态转换序列、生成目标数字矩阵;Seven color codes are used to generate the target image, and different numbers are used to replace different colors. The checkerboard image is converted into a corresponding digital matrix, and the coding of the matrix is completed, that is, the corresponding checkerboard image is obtained. The encoding process needs to first generate the corresponding horizontal sequence and state transition sequence, and then combine the two to obtain the target matrix, which is divided into: encoding the horizontal sequence, generating the state transition sequence, and generating the target digital matrix;

6)彩色棋盘格分割与解码6) Color checkerboard segmentation and decoding

棋盘格的解码过程分为三步:颜色识别、棋盘格分割和码字匹配;The decoding process of the checkerboard is divided into three steps: color recognition, checkerboard segmentation and codeword matching;

将RGB图像转化到HSV颜色域图像,在该图像格式下,颜色信息独立于亮度信息而仅包含在色相H(hue)通道数值中,首先通过饱和度判断像素是否为彩色,然后通过颜色距离将其归一化为标准颜色;针对非彩色像素,如果它的图片亮度值较大则判断为白色,否则为黑色,采用颜色识别方法遍历图像,将所有像素的颜色归一化到标准色(6种彩色、白色和黑色),即可完成颜色的识别;Convert the RGB image to the HSV color domain image. In this image format, the color information is independent of the brightness information and only included in the hue H (hue) channel value. First, determine whether the pixel is color by saturation, and then use the color distance. It is normalized to the standard color; for achromatic pixels, if its picture brightness value is large, it is judged as white, otherwise it is black, and the color recognition method is used to traverse the image, and the color of all pixels is normalized to the standard color (6 color, white and black) to complete the color identification;

将原始图片分成7种不同颜色的子图片,通过腐蚀和膨胀算法即完成噪声的滤除,最后合并滤波后的7副图片得到目标图像;Divide the original image into 7 sub-images of different colors, complete the noise filtering through the erosion and expansion algorithm, and finally merge the filtered 7 images to obtain the target image;

7)镜面方程描述优化7) Specular equation description optimization

镜面方程的拟合在镜面坐标系下进行,因此需要将像素平面和彩色棋盘格目标靶的坐标转换到镜面坐标系下,通过如下三步完成坐标系的转换:The fitting of the mirror equation is carried out in the mirror coordinate system, so it is necessary to convert the coordinates of the pixel plane and the color checkerboard target into the mirror coordinate system, and complete the conversion of the coordinate system through the following three steps:

7.1)转化像素平面坐标系到相机坐标系(X'Y'Z');7.1) Convert the pixel plane coordinate system to the camera coordinate system (X'Y'Z');

7.2)转化棋盘格目标靶坐标系(X"Y"Z")到相机坐标系(X'Y'Z');7.2) Convert the checkerboard target coordinate system (X"Y"Z") to the camera coordinate system (X'Y'Z');

7.3)转化相机坐标系(X'Y'Z')到镜面坐标系(XYZ)。由于镜面角点的位置是根据镜面设计模型估算得到,存在一定误差,将会导致坐标系XYZ的标定偏差。为了得到准确的镜面质量分析结果,本方法使用梯度下降法最小化镜面方程的斜率误差(RMS)。7.3) Convert the camera coordinate system (X'Y'Z') to the mirror coordinate system (XYZ). Since the position of the mirror corner point is estimated according to the mirror design model, there is a certain error, which will lead to the calibration deviation of the coordinate system XYZ. In order to obtain accurate specular quality analysis results, this method uses gradient descent to minimize the slope error (RMS) of the specular equation.

8)根据法向量拟合新的镜面模型,拟合方式为最小二乘法,镜面的模型公式如下:8) Fit a new mirror model according to the normal vector, the fitting method is the least square method, and the model formula of the mirror is as follows:

Z=A×X2+B×Y2+C×XY+D×X+E×Y+FZ=A×X 2 +B×Y 2 +C×XY+D×X+E×Y+F

其中,X、Y和Z为镜面坐标系三坐标轴,A、B、C、D、E和F为需要拟合的参数;Among them, X, Y and Z are the three coordinate axes of the mirror coordinate system, and A, B, C, D, E and F are the parameters to be fitted;

由偏导公式可知,在(x,y,z)点处的法向量为(n1,n2,n3)According to the partial derivative formula, the normal vector at the point (x,y,z) is (n 1 ,n 2 ,n 3 )

n1=2A×X+C×Y+Dn 1 =2A×X+C×Y+D

n2=2B×Y+C×X+En 2 =2B×Y+C×X+E

n3=-1n 3 = -1

根据步骤3)4)5)6)计算出来的各点法向量,拟合出所有的参数,其中C值取两个拟合值的平均值,实现了新镜面模型的拟合;According to the normal vectors of each point calculated in step 3) 4) 5) 6), all parameters are fitted, and the C value is the average of the two fitting values, which realizes the fitting of the new mirror model;

9)根据新镜面模型,计算模型是否收敛,若是否,则重复步骤3)4)5)6)8)9)重新拟合镜面,直至模型收敛,若是则进入步骤10);9) According to the new mirror surface model, calculate whether the model converges, if not, then repeat steps 3) 4) 5) 6) 8) 9) re-fit the mirror surface until the model converges, if so, enter step 10);

10)根据以上得到的收敛后的镜面模型,计算镜面参考点处法向量,参考点在镜面两短边的平分线上,从较小短边到较大短边3/4处;10) Calculate the normal vector at the mirror reference point according to the converged mirror model obtained above, and the reference point is on the bisector of the two short sides of the mirror, from the smaller short side to the larger short side 3/4;

11)比较参考点处拟合的法向量与设计的法向量是否相同,如果相同,则进入下一步;如果不同,则通过镜面坐标系绕参考点的旋转,使得两法向量重合,然后重复步骤5)到11);11) Compare whether the normal vector fitted at the reference point is the same as the designed normal vector, if it is the same, go to the next step; if it is different, rotate the mirror coordinate system around the reference point to make the two normal vectors coincide, and then repeat the steps 5) to 11);

12)根据以上拟合的镜面模型公式,计算被拟合的抛物镜面在X、Y方向上的焦距,计算镜面表面法向量与理想值偏差的标准差,以此表征镜面的平整度。12) According to the above fitted mirror model formula, calculate the focal length of the fitted parabolic mirror in the X and Y directions, and calculate the standard deviation of the deviation between the normal vector of the mirror surface and the ideal value, so as to characterize the flatness of the mirror surface.

本发明中的方法仅仅需要采集1张图片,镜面表面的法向量计算过程采用并行的方式,并利用双层迭代保证镜面模型的拟合精度,从而大大提高的镜面检测的效率,可以直接用于流水线工作。The method in the present invention only needs to collect one picture, the normal vector calculation process of the mirror surface adopts a parallel method, and uses double-layer iteration to ensure the fitting accuracy of the mirror surface model, thereby greatly improving the efficiency of mirror surface detection, which can be directly used for Pipeline work.

本发明的有益效果主要表现在:将镜面的测量设备简化为一块平板和一个数字相机。通过单张图片即可完成镜面的测量,可实现约3000的采样分辨率,适用于镜面的快速检测场景。The beneficial effects of the present invention are mainly manifested in that the measuring equipment of the mirror surface is simplified into a flat plate and a digital camera. The mirror surface can be measured by a single image, and the sampling resolution of about 3000 can be achieved, which is suitable for the fast detection scene of the mirror surface.

附图说明Description of drawings

图1是基于2D结构光的镜面质量分析方法的流程图。FIG. 1 is a flowchart of a specular quality analysis method based on 2D structured light.

具体实施方式Detailed ways

下面结合附图对本发明作进一步描述。The present invention will be further described below in conjunction with the accompanying drawings.

参照图1,一种基于2D结构光的镜面质量分析方法,包括以下步骤:1, a specular quality analysis method based on 2D structured light, comprising the following steps:

1)安装设备,本发明的测量设备为一块彩色棋盘格平板和一个数字相机,数字相机放置在距离镜面约6m的位置,目标靶距离镜面约1m;镜面与目标靶呈一定的夹角,保证了相机通过镜面的反射可以拍摄目标靶的棋盘格图像。调整相机参数,包括光焦距、光圈、ISO、白平衡和曝光时间等,保证相机拍摄图像的清晰。设置相机为遥控模式,避免手动拍摄破坏测量组件间坐标关系的风险;1) installation equipment, the measuring equipment of the present invention is a color checkerboard flat panel and a digital camera, the digital camera is placed at a position about 6m away from the mirror surface, and the target target is about 1m away from the mirror surface; the mirror surface and the target target are at a certain angle to ensure that The camera can take a checkerboard image of the target through the reflection of the mirror. Adjust camera parameters, including focal length, aperture, ISO, white balance and exposure time, etc., to ensure clear images captured by the camera. Set the camera to remote control mode to avoid the risk of manual shooting destroying the coordinate relationship between the measurement components;

2)相机内部参数校准,利用棋盘格标定板对相机的内部参数进行校准,包括焦距、图片中心和镜头畸变等校准;2) Calibration of camera internal parameters, using the checkerboard calibration board to calibrate the internal parameters of the camera, including calibration of focal length, image center and lens distortion;

3)确定摄像机和目标靶的初始坐标系,借助一块高质量的平面镜,通过反射标定算法计算彩色棋盘格目标靶与相机的坐标转换矩阵,基于镜面的角点信息,通过LHM算法确定相机到镜面坐标系的转换关系。再根据之前获取的相机内部参数得到像素平面到相机坐标系的转换关系;3) Determine the initial coordinate system of the camera and the target, and use a high-quality plane mirror to calculate the coordinate transformation matrix of the color checkerboard target and the camera through the reflection calibration algorithm. Based on the corner information of the mirror, the LHM algorithm is used to determine the camera to the mirror. The transformation relationship of the coordinate system. Then, the conversion relationship between the pixel plane and the camera coordinate system is obtained according to the internal parameters of the camera obtained before;

4)初步建立相机与镜面位置关系。本发明采用激光测距仪测量相机到镜面的距离;4) Preliminarily establish the positional relationship between the camera and the mirror. The invention adopts the laser range finder to measure the distance from the camera to the mirror surface;

5)根据镜面初始模型估算镜面表面法向量的分布,首先分割棋盘格图像,得到棋盘格的码字,建立采样点与反射目标点的映射关系,根据标定测量系统得到的的坐标关系,将解码图像获得的采样点和目标点的坐标转换到镜面坐标系下,使用梯度下降法最小化镜面方程的斜率误差(RMS),即可得到镜面光学参数的测量结果;5) Estimate the distribution of the normal vector of the mirror surface according to the mirror initial model, firstly segment the checkerboard image, obtain the codeword of the checkerboard, establish the mapping relationship between the sampling point and the reflection target point, and decode the decoding according to the coordinate relationship obtained by the calibration measurement system. The coordinates of the sampling point and the target point obtained from the image are converted into the mirror coordinate system, and the gradient descent method is used to minimize the slope error (RMS) of the mirror equation, and the measurement results of the mirror optical parameters can be obtained;

6)根据法向量拟合新的镜面模型,拟合方式为最小二乘法。镜面的模型公式如下:6) Fit a new specular model according to the normal vector, and the fitting method is the least square method. The model formula for the mirror surface is as follows:

Z=A×X2+B×Y2+C×XY+D×X+E×Y+FZ=A×X 2 +B×Y 2 +C×XY+D×X+E×Y+F

其中,X、Y和Z为镜面坐标系三坐标轴,A、B、C、D、E和F为需要拟合的参数;Among them, X, Y and Z are the three coordinate axes of the mirror coordinate system, and A, B, C, D, E and F are the parameters to be fitted;

由偏导公式可知,在(x,y,z)点处的法向量为(n1,n2,n3)According to the partial derivative formula, the normal vector at the point (x,y,z) is (n 1 ,n 2 ,n 3 )

n1=2A×X+C×Y+Dn 1 =2A×X+C×Y+D

n2=2B×Y+C×X+En 2 =2B×Y+C×X+E

n3=-1n 3 = -1

根据步骤5)计算出来的各点法向量,拟合出所有的参数,其中C值取两个拟合值的平均值。这样就实现了新镜面模型的拟合;According to the normal vector of each point calculated in step 5), all parameters are fitted, and the C value is the average of the two fitted values. In this way, the fitting of the new specular model is realized;

7)根据新镜面模型,计算模型是否收敛,若是否,则重复步骤5)6)7)重新拟合镜面,直至模型收敛,若是则进入步骤8);7) According to the new mirror surface model, calculate whether the model converges, if not, then repeat step 5) 6) 7) refit the mirror surface, until the model converges, if so, enter step 8);

8)根据以上得到的收敛后的镜面模型,计算镜面参考点处法向量,参考点在镜面两短边的平分线上,从较小短边到较大短边3/4处;8) Calculate the normal vector at the mirror reference point according to the converged mirror model obtained above, and the reference point is on the bisector of the two short sides of the mirror, from the smaller short side to 3/4 of the larger short side;

9)比较参考点处拟合的法向量与设计的法向量是否相同,如果相同,则进入下一步,如果不同,则通过镜面坐标系绕参考点的旋转,使得两法向量重合,然后重复步骤5)到9);9) Compare whether the normal vector fitted at the reference point is the same as the designed normal vector. If they are the same, go to the next step. If they are different, rotate the mirror coordinate system around the reference point to make the two normal vectors coincide, and then repeat the steps. 5) to 9);

10)根据以上拟合的镜面模型公式,计算被拟合的抛物镜面在X、Y方向上的焦距,计算镜面表面法向量与理想值偏差的标准差,以此表征镜面的平整度。10) According to the above fitted mirror model formula, calculate the focal length of the fitted parabolic mirror in the X and Y directions, and calculate the standard deviation of the deviation between the normal vector of the mirror surface and the ideal value, so as to characterize the flatness of the mirror surface.

本发明中的方法仅仅需要拍摄1张图片,将镜面的测量设备简化为一块平板和一个数字相机,通过单张图片即可完成镜面的测量,可实现约3000的采样分辨率,适用于镜面的快速检测场景。镜面表面的三维信息计算过程采用并行的方式,并利用双层迭代的方法来保证镜面模型的拟合精度,从而大大提高的镜面检测的效率,达到了可以直接用于流水线工作的水平。The method in the present invention only needs to take one picture, simplifies the measuring device of the mirror surface into a flat plate and a digital camera, and can complete the measurement of the mirror surface through a single picture, and can achieve a sampling resolution of about 3000, which is suitable for mirror surface measurement. Quickly detect scenes. The three-dimensional information calculation process of the mirror surface adopts a parallel method, and uses the double-layer iterative method to ensure the fitting accuracy of the mirror surface model, thereby greatly improving the efficiency of mirror surface detection and reaching the level that can be directly used in pipeline work.

本说明书实施例所述的内容仅仅是对发明构思的实现形式的列举,本发明的保护范围不应当被视为仅限于实施例所陈述的具体形式,本发明的保护范围也及于本领域技术人员根据本发明构思所能够想到的等同技术手段。The content described in the embodiments of the present specification is only an enumeration of the realization forms of the inventive concept, and the protection scope of the present invention should not be regarded as limited to the specific forms stated in the embodiments, and the protection scope of the present invention also extends to those skilled in the art. Equivalent technical means that can be conceived by a person based on the inventive concept.

Claims (1)

1. A method for analyzing the quality of a mirror surface based on 2D structured light, which is characterized by comprising the following steps:
1) installing equipment, taking the color coded checkerboard image as a target by a measuring system, and shooting a reflection image of a mirror surface by using a digital camera, wherein the shooting distance of the camera is 5.5-6.5 m, and the distance between the mirror surface and the target is 0.9-1.1 m;
2) constructing a mirror initial model
In order to efficiently concentrate sunlight onto a receiver, the collector mirror is designed in the shape of a paraboloid of revolution, which is described by the following equation:
Z=A×X2+B×Y2+C×XY+D×X+E×Y+F
wherein X, Y and Z are mirror coordinate system three coordinate axes, A, B, C, D, E and F are parameters needing fitting;
3) analyzing camera imaging process using pinhole model
Point C is the camera transmission center, point P is the image point, and PC determines the direction vector of the reflected light
Figure FDA0002190714560000011
M is a mirror reflection point, the spatial position of the mirror reflection point is calculated through the intersection point of the light and the mirror, the corresponding reflection target point T is obtained through a checkerboard image decoding algorithm, and TM determines the incident direction of the light
Figure FDA0002190714560000012
According to the principle of ray reflection, the normal vector at the point M is calculated by the following equation:
Figure FDA0002190714560000013
4) determining the corresponding relation among the pixel point P, the reflection point M and the target point T, wherein the corresponding relation between P and M is determined through geometric analysis; the method comprises the steps of adopting a spatial coding structured light image as a reflection target image, simplifying the target image into a flat plate, generating the image through a checkerboard coding algorithm, and decoding the image to establish a mapping relation between a pixel P and a target point T;
5) color checkerboard coding
Seven colors are adopted for coding to generate a target image, different colors are replaced by different numbers, the checkerboard image is converted into a corresponding number matrix, the coding of the matrix is completed, and the corresponding checkerboard image is obtained; the encoding process needs to generate a corresponding transverse sequence and a state transition sequence first, and then combine the transverse sequence and the state transition sequence to obtain a target matrix, which is divided into: coding a transverse sequence, generating a state conversion sequence and generating a target digital matrix;
6) color checkerboard segmentation and decoding
The checkerboard decoding process is divided into three steps: color identification, checkerboard segmentation and codeword matching;
converting the RGB image into an HSV color domain image, wherein in the image format, color information is independent of brightness information and only contained in hue H channel numerical values, firstly judging whether a pixel is colorful according to saturation, and then normalizing the pixel into a standard color according to color distance; aiming at an achromatic color pixel, if the picture brightness value of the achromatic color pixel is larger, the achromatic color pixel is judged to be white, otherwise, the picture is black, a color identification method is adopted to traverse the image, and the colors of all pixels are normalized to a standard color, so that the color identification can be completed;
dividing an original picture into 7 sub-pictures with different colors, completing noise filtering through corrosion and expansion algorithms, and finally combining 7 filtered pictures to obtain a target image;
7) mirror equation description optimization
The fitting of the mirror equation is performed in a mirror coordinate system, and therefore the coordinates of the pixel plane and the color checkerboard target need to be converted into the mirror coordinate system, and the conversion of the coordinate system is completed by the following three steps:
7.1) converting the pixel plane coordinate system to a camera coordinate system (X ' Y ' Z ');
7.2) converting the checkerboard target coordinate system (X 'Y' Z ') to a camera coordinate system (X' Y 'Z');
7.3) converting the camera coordinate system (X ' Y ' Z ') to the mirror coordinate system (XYZ) and minimizing the slope error of the mirror equation by using a gradient descent method;
8) and fitting a new mirror surface model according to the normal vector, wherein the fitting mode is a least square method, and the model formula of the mirror surface is as follows:
Z=A×X2+B×Y2+C×XY+D×X+E×Y+F
wherein X, Y and Z are mirror coordinate system three coordinate axes, A, B, C, D, E and F are parameters needing fitting;
from the partial derivative formula, the normal vector at the point (x, y, z) is (n)1,n2,n3)
n1=2A×X+C×Y+D
n2=2B×Y+C×X+E
n3=-1
Fitting all parameters according to the normal vectors of each point calculated in the step 3)4)5)6), wherein the C value is the average value of the two fitting values, so that the fitting of a new mirror model is realized;
9) calculating whether the model is converged according to the new mirror model, if not, repeating the step 3)4)5)6)7)8)9) to fit the mirror again until the model is converged, and if yes, entering the step 10);
10) calculating a normal vector of a mirror reference point according to the obtained converged mirror model, wherein the reference point is on a bisector of two short sides of the mirror and is 3/4 from the smaller short side to the larger short side;
11) comparing whether the normal vector fitted at the reference point is the same as the designed normal vector or not, and if so, entering the next step; if not, rotating around the reference point through the mirror coordinate system to enable the two normal vectors to be coincident, and then repeating the steps 5) to 11);
12) according to the fitted mirror model formula, the focal length of the fitted parabolic mirror in the direction X, Y is calculated, and the standard deviation of the normal vector of the mirror surface and the ideal value is calculated, so that the flatness of the mirror surface is represented.
CN201910831046.0A 2019-09-04 2019-09-04 A Specular Quality Analysis Method Based on 2D Structured Light Active CN110567918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910831046.0A CN110567918B (en) 2019-09-04 2019-09-04 A Specular Quality Analysis Method Based on 2D Structured Light

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910831046.0A CN110567918B (en) 2019-09-04 2019-09-04 A Specular Quality Analysis Method Based on 2D Structured Light

Publications (2)

Publication Number Publication Date
CN110567918A CN110567918A (en) 2019-12-13
CN110567918B true CN110567918B (en) 2022-05-03

Family

ID=68777723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910831046.0A Active CN110567918B (en) 2019-09-04 2019-09-04 A Specular Quality Analysis Method Based on 2D Structured Light

Country Status (1)

Country Link
CN (1) CN110567918B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113012289B (en) * 2021-02-02 2021-11-12 广东领盛装配式建筑科技有限公司 Building indoor impression quality measuring method and system
CN113686897B (en) * 2021-08-05 2023-11-03 江苏维普光电科技有限公司 Mask surface particle defect detection method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102155937A (en) * 2011-03-23 2011-08-17 中国科学院国家天文台南京天文光学技术研究所 Method for measuring flexible netty surface shape by shooting
CN102519395A (en) * 2011-11-25 2012-06-27 东南大学 Color response calibration method in colored structure light three-dimensional measurement
CN104111036A (en) * 2013-04-18 2014-10-22 中国科学院沈阳自动化研究所 Mirror object measuring device and method based on binocular vision
CN105068212A (en) * 2015-09-06 2015-11-18 湖南科技大学 Solar energy heat-collecting condenser reflection mirror surface installation pose indicating device and adjusting method
CN106500596A (en) * 2016-11-25 2017-03-15 清华大学 The measuring method of structure light panorama measuring system
CN106556356A (en) * 2016-12-07 2017-04-05 西安知象光电科技有限公司 A kind of multi-angle measuring three-dimensional profile system and measuring method
CN108332658A (en) * 2018-01-25 2018-07-27 清华大学 A kind of welding bead pose real-time detection method for complex-curved welding
CN108399640A (en) * 2018-03-07 2018-08-14 中国工程物理研究院机械制造工艺研究所 A kind of speculum relative pose measurement method based on camera calibration

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102155937A (en) * 2011-03-23 2011-08-17 中国科学院国家天文台南京天文光学技术研究所 Method for measuring flexible netty surface shape by shooting
CN102519395A (en) * 2011-11-25 2012-06-27 东南大学 Color response calibration method in colored structure light three-dimensional measurement
CN104111036A (en) * 2013-04-18 2014-10-22 中国科学院沈阳自动化研究所 Mirror object measuring device and method based on binocular vision
CN105068212A (en) * 2015-09-06 2015-11-18 湖南科技大学 Solar energy heat-collecting condenser reflection mirror surface installation pose indicating device and adjusting method
CN106500596A (en) * 2016-11-25 2017-03-15 清华大学 The measuring method of structure light panorama measuring system
CN106556356A (en) * 2016-12-07 2017-04-05 西安知象光电科技有限公司 A kind of multi-angle measuring three-dimensional profile system and measuring method
CN108332658A (en) * 2018-01-25 2018-07-27 清华大学 A kind of welding bead pose real-time detection method for complex-curved welding
CN108399640A (en) * 2018-03-07 2018-08-14 中国工程物理研究院机械制造工艺研究所 A kind of speculum relative pose measurement method based on camera calibration

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
一种基于平面靶标的圆结构光标定方法;王颖 等;《红外与激光工程》;20131231;第174-178页 *
一种基于计算机控制的抛物面型聚光系统的自动调校方法;许金山 等;《太阳能学报》;20171231;第1741-1748页 *
伪随机编码图像的特征点自动检测方法;李玉欣 等;《计算机工程与应用》;20101231;第137-140页 *
基于Soltrace 的聚光碟面反射目标靶设计方法;许金山 等;《太阳能学报》;20170531;第38卷(第5期);第1193-1199页 *
基于成像模拟法的镜面体表面三维测量;付生鹏 等;《机械工程学报》;20150531;第51卷(第10期);第17-24页 *
基于结构光方法的类镜面物体的面形测量;李锋 等;《电子器件》;20141031;第882-886页 *

Also Published As

Publication number Publication date
CN110567918A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN107607040B (en) Three-dimensional scanning measurement device and method suitable for strong reflection surface
CN113205593B (en) A three-dimensional reconstruction method of highly reflective surface structured light field based on point cloud adaptive repair
CN103530880B (en) Based on the camera marking method of projection Gaussian network pattern
CN107424118A (en) Based on the spherical panorama mosaic method for improving Lens Distortion Correction
CN104729428B (en) Mirror face part three dimensional shape measurement system and measurement method based on coaxial configuration light
CN107103626A (en) A kind of scene reconstruction method based on smart mobile phone
CN106643555B (en) Connector recognition methods based on structured light three-dimensional measurement system
CN107358632B (en) Underwater camera calibration method applied to underwater binocular stereo vision
CN110567918B (en) A Specular Quality Analysis Method Based on 2D Structured Light
CN108389233A (en) Laser Scanner and Camera Calibration Method Based on Boundary Constraint and Mean Approximation
CN109087339A (en) A kind of laser scanning point and Image registration method
CN106023193A (en) Array camera observation method for detecting structure surface in turbid media
CN103994732A (en) Three-dimensional measurement method based on fringe projection
CN106952262A (en) A Method of Analyzing Ship Plate Machining Accuracy Based on Stereo Vision
CN112595236A (en) Measuring device for underwater laser three-dimensional scanning and real-time distance measurement
CN113963068A (en) A global calibration method for omnidirectional stereo vision sensor of mirrored single camera
CN108362205A (en) Space ranging method based on fringe projection
CN111968182A (en) Calibration method for binocular camera nonlinear model parameters
CN115187612A (en) Plane area measuring method, device and system based on machine vision
CN115359127A (en) A Polarization Camera Array Calibration Method Applicable to Multilayer Media Environment
CN102735220A (en) Long-focus large-field-of-view camera focal plane resetting method
CN118482665A (en) A structured light three-dimensional measurement method and device using polarization self-rotation filtering
CN106918313B (en) A kind of dish-style Stirling Salar light-gatherings minute surface quality determining method
CN117274158A (en) A method for online monitoring of paving defects in ceramic photocuring additive manufacturing processes
CN114332373B (en) Magnetic circuit fall detection method and system for overcoming reflection of metal surface of relay

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