[go: up one dir, main page]

CN109556535B - A one-step reconstruction method of 3D surface shape based on color fringe projection - Google Patents

A one-step reconstruction method of 3D surface shape based on color fringe projection Download PDF

Info

Publication number
CN109556535B
CN109556535B CN201811150693.7A CN201811150693A CN109556535B CN 109556535 B CN109556535 B CN 109556535B CN 201811150693 A CN201811150693 A CN 201811150693A CN 109556535 B CN109556535 B CN 109556535B
Authority
CN
China
Prior art keywords
measured object
phase
background
color
image
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
CN201811150693.7A
Other languages
Chinese (zh)
Other versions
CN109556535A (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.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201811150693.7A priority Critical patent/CN109556535B/en
Publication of CN109556535A publication Critical patent/CN109556535A/en
Application granted granted Critical
Publication of CN109556535B publication Critical patent/CN109556535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • G01B11/25Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures by projecting a pattern, e.g. one or more lines, moiré fringes on the object
    • G01B11/254Projection of a pattern, viewing through a pattern, e.g. moiré

Landscapes

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

Abstract

The invention relates to a three-dimensional surface type one-step reconstruction method based on color stripe projection, which comprises the steps of generating a color sine stripe image through a computer, transmitting the color sine stripe image to a projector to be projected on the surface of a measured object, and collecting the image of the measured object with a stripe image by a color industrial camera which forms a certain angle with the projector; then, solving the acquired measured object image by using a phase shift method to obtain a phase image; performing foreground and background segmentation to obtain partial background information, and performing function fitting on the partial background information to recover a complete background phase diagram; and finally, mapping depth information through the phase difference between the foreground and the background. Compared with the traditional phase shift method, the method does not need to separately acquire a plurality of background images, but completes reconstruction in one step by utilizing function fitting, reduces the number of acquired measured object images, directly skips the step of separately acquiring the background images, and realizes flexible and rapid three-dimensional surface type reconstruction.

Description

一种基于彩色条纹投影的三维面型一步重构方法A one-step reconstruction method of 3D surface shape based on color fringe projection

技术领域technical field

本发明属于光学检测技术,涉及非接触式三维面型重构与测量技术领域,具体涉及一种基于彩色条纹投影的三维面型一步重构方法。The invention belongs to optical detection technology and relates to the technical field of non-contact three-dimensional surface reconstruction and measurement, in particular to a three-dimensional surface reconstruction method based on color fringe projection.

背景技术Background technique

立体视觉的发展越来越火热,对物体三维面貌的重构应用广泛,例如三维人脸识别,工件三维尺寸测量,医学影像中三维面型的观察等等。The development of stereo vision is becoming more and more popular, and the reconstruction of the three-dimensional appearance of objects is widely used, such as three-dimensional face recognition, three-dimensional size measurement of workpieces, and three-dimensional face observation in medical images.

目前三维重构技术中主要分为被动式和主动式两种。At present, the 3D reconstruction technology is mainly divided into two types: passive and active.

其中,被动式三维重构为双目视觉技术,利用模拟人双眼来感知物体的深度,此方案对于表面缺少纹理的物体重构效果不够理想。主动式重构技术主要有结构光投影的方案。其中正弦条纹结构光方法利用相位与高度映射的方法可以达到比较高的重构精度,但是其缺点在于利用相移法需要最少拍摄6幅图像,而且必须要分开两步拍摄背景和前景,此操作大大影响重构效率。Among them, the passive 3D reconstruction is a binocular vision technology, which uses the simulated human eyes to perceive the depth of the object. This scheme is not ideal for the reconstruction of objects whose surface lacks texture. The active reconstruction technology mainly includes the scheme of structured light projection. Among them, the sinusoidal stripe structured light method can achieve relatively high reconstruction accuracy by using the phase and height mapping method, but its disadvantage is that using the phase shift method requires at least 6 images to be captured, and the background and foreground must be captured in two steps. This operation Greatly affects the reconstruction efficiency.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于克服现有技术的不足,提供一种基于彩色条纹投影的三维面型一步重构方法,通过拟合背景相位数据,在结构光投影三维重构中可以实现仅投射两次结构光图像便可快速完成重构的过程,并且此过程不需要单独采集背景图像的繁琐步骤。The purpose of the present invention is to overcome the deficiencies of the prior art and provide a one-step reconstruction method of three-dimensional surface shape based on color fringe projection. By fitting the background phase data, only two structures can be projected in the three-dimensional reconstruction of structured light projection. The reconstruction process can be completed quickly with the light image, and this process does not require the cumbersome steps of separately collecting background images.

为实现上述目的,本发明所提供的技术方案为:For achieving the above object, the technical scheme provided by the present invention is:

一种基于彩色条纹投影的三维面型一步重构方法,包括以下步骤:A one-step reconstruction method of three-dimensional surface shape based on color fringe projection, comprising the following steps:

S1:搭建结构光投影三维重建系统;S1: Build a structured light projection 3D reconstruction system;

S2:分别测量RGB工业相机光心与接收平面间的距离L,RGB工业相机光心与投影仪光心之间的距离D;S2: Measure the distance L between the optical center of the RGB industrial camera and the receiving plane, and the distance D between the optical center of the RGB industrial camera and the projector;

S3:投射结构光采集被测物图像I_obj1和I_obj2;S3: Projecting structured light to collect the measured object images I_obj1 and I_obj2;

S4:对采集到的图像进行处理,完成三维面型重构。S4: Process the collected images to complete the three-dimensional surface reconstruction.

进一步地,所述步骤S1搭建的结构光投影三维重建系统包括投影仪、RGB工业相机、计算机、光学平板以及接收平面;系统搭建时,将投影仪和相机分别固定在光学平板上,且二者光心轴线成一定角度,二者光心连线与接收平面保持平行。Further, the structured light projection three-dimensional reconstruction system built in the step S1 includes a projector, an RGB industrial camera, a computer, an optical flat panel and a receiving plane; when the system is built, the projector and the camera are respectively fixed on the optical flat panel, and the two The axis of the optical center is at a certain angle, and the line connecting the two optical centers is kept parallel to the receiving plane.

进一步地,所述步骤S3投射结构光采集被测物图像I_obj1和I_obj2的具体过程如下:Further, the specific process of projecting structured light to collect the measured object images I_obj1 and I_obj2 in the step S3 is as follows:

由计算机生成四幅具有相同相位差的正弦条纹图案,利用彩色图像拥有RGB三通道的优势,把该四幅正弦条纹图分为两组输入到两幅彩色图像的R和B通道;得到两幅彩色条纹结构光图案后,采用投影仪依次投射该两幅彩色条纹结构光图案到被测物表面,并采用RGB工业相机依次采集带条纹结构光的图像I_obj1和I_obj2。Four sinusoidal fringe patterns with the same phase difference are generated by the computer, and the four sinusoidal fringe patterns are divided into two groups and input to the R and B channels of the two color images by taking advantage of the advantage of the color image with three RGB channels; two color fringes are obtained. After the structured light pattern is formed, a projector is used to project the two colored striped structured light patterns on the surface of the object to be measured in turn, and an RGB industrial camera is used to sequentially collect images I_obj1 and I_obj2 with striped structured light.

进一步地,所述步骤S4对采集到的图像进行处理的具体步骤如下:Further, the specific steps of processing the collected images in the step S4 are as follows:

S4-1:利用四步相移法得到被测物包裹相位图,并解包裹得到被测物连续相位图unwrap_obj;S4-1: Use the four-step phase shift method to obtain the wrapped phase map of the measured object, and unwrap it to obtain the continuous phase map unwrap_obj of the measured object;

S4-2:在原始被测物图像I_obj1或I_obj2中,提取被测物ROI区域并分割出其最小外接矩形区域,并将此区域数据剔除,使得被测物连续相位图unwrap_obj中的被测物最小外接矩形区域内的数据全部为空,留下剩余背景相位信息,此时得到背景残缺相位图unwrap_subori;S4-2: In the original measured object image I_obj1 or I_obj2, extract the measured object ROI area and segment its minimum circumscribed rectangular area, and remove the data in this area, so that the measured object in the continuous phase map of the measured object is unwrap_obj. The data in the minimum circumscribed rectangular area is all empty, leaving the remaining background phase information, and the background incomplete phase map unwrap_subori is obtained at this time;

S4-3:从中间将背景残缺相位图unwrap_subori分割为两部分,再对左右两部分分别按每N行分割为若干子区域;S4-3: Divide the background incomplete phase map unwrap_subori into two parts from the middle, and then divide the left and right parts into several sub-regions per N lines respectively;

S4-4:对所有子区域分别进行最小二乘法二元二次项拟合;S4-4: Perform the least squares binary quadratic term fitting on all sub-regions respectively;

S4-5:把所有子区域拟合的结果拼接为完整的背景相位图;S4-5: splicing the fitting results of all sub-regions into a complete background phase map;

S4-6:利用相位差高度映射公式计算被测物每一点的深度,得到其三维点云数据,完成三维面型重构。S4-6: Use the phase difference height mapping formula to calculate the depth of each point of the measured object, obtain its three-dimensional point cloud data, and complete the three-dimensional surface reconstruction.

进一步地,所述步骤S4-6中相位差高度映射,即为被测物相位减去背景相位,结合事先标定好的系统参数L,D和f,通过以下公式:Further, the phase difference height mapping in the step S4-6 is the phase of the measured object minus the background phase, combined with the pre-calibrated system parameters L, D and f, through the following formula:

Figure GDA0002467293540000031
Figure GDA0002467293540000031

求得被测物深度信息;式中,L为已知RGB工业相机光心与接收平面间的距离;D为RGB工业相机光心与投影仪间的距离;f为生成条纹的频率。Obtain the depth information of the measured object; in the formula, L is the distance between the optical center of the known RGB industrial camera and the receiving plane; D is the distance between the optical center of the RGB industrial camera and the projector; f is the frequency of generating fringes.

与现有技术相比,本方案原理和优点如下:Compared with the prior art, the principle and advantages of this scheme are as follows:

1、目前使用相移技术进行三维重构的方案中,均需要分别采集大于等于三幅被测物图像和三幅背景图像,共至少六幅图像。本发明方案实现了只需采集大于等于两幅被测物图像,且无需单独采集背景图像就可进行三维面型重构,因此简化操作流程和减少采集时间,大大提高系统工作效率。1. In the current three-dimensional reconstruction scheme using phase shift technology, it is necessary to collect three or more images of the object to be measured and three background images, and at least six images in total. The solution of the invention realizes that three-dimensional surface reconstruction can be performed only by collecting two or more images of the object to be measured, and without collecting background images separately, thus simplifying the operation process and reducing the collecting time, and greatly improving the working efficiency of the system.

2、本发明方案由于不需要单独采集背景图像,所以不存在背景接收面发生拍摄前后位置移动而导致重构结果错误的问题,不用特定设置固定的接收平面,系统灵活性和适用性大大提高。2. Since the solution of the present invention does not need to collect the background image separately, there is no problem that the position of the background receiving surface moves before and after shooting, resulting in incorrect reconstruction results. There is no need to set a fixed receiving plane, and the flexibility and applicability of the system are greatly improved.

3、由于参考面不是严格平整,投影仪投射的条纹质量以及光照不是严格均匀等不可控因素的影响,实际的连续相位图必定不是理想的空间平面。通过把背景相位图按行分块为若干子区域再进行拟合得以提高拟合精度,使拟合的背景相位图更趋近真实分布,减小重构误差。3. Due to the influence of uncontrollable factors such as the reference surface is not strictly flat, the quality of the stripes projected by the projector and the illumination is not strictly uniform, the actual continuous phase map must not be an ideal spatial plane. By dividing the background phase image into several sub-regions by row, the fitting accuracy can be improved, the fitted background phase image is closer to the real distribution, and the reconstruction error is reduced.

4、利用彩色图像RGB三通道的优势,一幅彩色条纹图像中最多可储存三幅灰度条纹图像的信息。考虑到三色通道之间的串扰影响,只在R和B通道储存正弦条纹信息,大大减小颜色串扰影响。与此同时,在利用四步相移技术的前提下,灰度条纹图需要投射四幅图像,而使用RB彩色图像只需投射两幅,即可解算连续相位图。4. Taking advantage of the RGB three-channel color image, one color stripe image can store up to three grayscale stripe images. Considering the effect of crosstalk between the three-color channels, only the sinusoidal fringe information is stored in the R and B channels, which greatly reduces the effect of color crosstalk. At the same time, under the premise of using the four-step phase-shifting technique, the gray-scale fringe image needs to project four images, while using the RB color image only needs to project two images to solve the continuous phase map.

附图说明Description of drawings

图1为结构光投影系统示意图;1 is a schematic diagram of a structured light projection system;

图2为背景相位图分块拟合示意图;Fig. 2 is a schematic diagram of block fitting of background phase map;

图3为本发明一种基于彩色条纹投影的三维面型一步重构方法的工作流程图。FIG. 3 is a working flow chart of a one-step reconstruction method of three-dimensional surface shape based on color fringe projection according to the present invention.

具体实施方式Detailed ways

下面结合具体实施例对本发明作进一步说明:Below in conjunction with specific embodiment, the present invention will be further described:

如图3所示,本实施例所述的一种基于彩色条纹投影的三维面型一步重构方法,包括以下步骤:As shown in FIG. 3 , a one-step reconstruction method for three-dimensional surface shape based on color fringe projection described in this embodiment includes the following steps:

S1:搭建结构光投影三维重建系统:S1: Build a structured light projection 3D reconstruction system:

结构光投影三维重建系统如图1所示,包括投影仪、RGB工业相机、计算机、光学平板以及接收平面;系统搭建时,将投影仪和相机分别固定在光学平板上,且二者光心轴线成一定角度,二者光心连线与接收平面保持平行。The structured light projection 3D reconstruction system is shown in Figure 1, including a projector, an RGB industrial camera, a computer, an optical flat panel and a receiving plane; when the system is built, the projector and the camera are respectively fixed on the optical flat panel, and the optical center axes of the two are At a certain angle, the line connecting the optical centers of the two remains parallel to the receiving plane.

S2:系统搭建完成后,分别测量RGB工业相机光心与接收平面间的距离L,RGB工业相机光心与投影仪光心之间的距离D。S2: After the system is built, measure the distance L between the optical center of the RGB industrial camera and the receiving plane, and the distance D between the optical center of the RGB industrial camera and the projector.

S3:投射结构光采集被测物图像I_obj1和I_obj2,具体步骤为:S3: Projecting structured light to collect the measured object images I_obj1 and I_obj2, the specific steps are:

由计算机生成四幅具有相同相位差的正弦条纹图案,利用彩色图像拥有RGB三通道的优势,把条纹图案分别输入到RGB通道里。考虑到RGB三个通道之间会产生串扰,影响后期采集的条纹图质量,所以本发明选择把四幅正弦条纹图分为两组输入到两幅彩色图像的R和B通道,减小串扰现象。例如:计算机生成四幅正弦条纹图案I1,I2,I3,I4,其相位依次为0,pi/2,pi,3pi/2,然后把I1和I2分别输入到彩色图像I_color1的R和B通道,把I3和I4分别输入到彩色图像I_color2的R和B通道。Four sinusoidal fringe patterns with the same phase difference are generated by the computer, and the fringe patterns are input into the RGB channels by using the advantage of the color image with three RGB channels. Considering that crosstalk will occur between the three RGB channels and affect the quality of the fringe images collected later, the present invention chooses to divide the four sinusoidal fringe images into two groups and input them to the R and B channels of the two color images to reduce the crosstalk phenomenon. For example: the computer generates four sine fringe patterns I1, I2, I3, I4, the phases are 0, pi/2, pi, 3pi/2 in turn, and then I1 and I2 are input to the R and B channels of the color image I_color1 respectively, and the I3 and I4 are input to the R and B channels of the color image I_color2, respectively.

得到I_color1和I_color2后,用投影仪依次投射这两幅彩色条纹结构光到被测物表面,用彩色工业相机依次采集带条纹结构光的图像I_obj1和I_obj2。After obtaining I_color1 and I_color2, use a projector to project these two colored striped structured lights onto the surface of the object to be measured in turn, and use a color industrial camera to sequentially collect images I_obj1 and I_obj2 with striped structured light.

S4:对采集到的图像进行处理,具体过程如下:S4: Process the collected image, and the specific process is as follows:

S4-1:利用四步相移法得到被测物包裹相位图,并解包裹得到被测物连续相位图unwrap_obj;S4-1: Use the four-step phase shift method to obtain the wrapped phase map of the measured object, and unwrap it to obtain the continuous phase map unwrap_obj of the measured object;

S4-2:在原始被测物图像I_obj1或I_obj2中,提取被测物ROI区域并分割出其最小外接矩形区域,并将此区域数据剔除,使得被测物连续相位图unwrap_obj中的被测物最小外接矩形区域内的数据全部为空,留下剩余背景相位信息,此时得到背景残缺相位图unwrap_subori;S4-2: In the original measured object image I_obj1 or I_obj2, extract the measured object ROI area and segment its minimum circumscribed rectangular area, and remove the data in this area, so that the measured object in the continuous phase map of the measured object is unwrap_obj. The data in the minimum circumscribed rectangular area is all empty, leaving the remaining background phase information, and the background incomplete phase map unwrap_subori is obtained at this time;

S4-3:如图2(a)所示,从中间将背景残缺相位图unwrap_subori分割为两部分,再对左右两部分分别按每N行分割为若干子区域;利用左半边图像数据拟合被测物左半部分数据,右半边图像数据拟合被测物右半部分数据。假设背景残缺相位图unwrap_subori共有N行,然后对左右两半部分图像分别按每n行分割为一块子区域,如图2(b)所示,整幅图像被分割为2N/n块子区域的数据。S4-3: As shown in Figure 2(a), the background incomplete phase map unwrap_subori is divided into two parts from the middle, and then the left and right parts are divided into several sub-regions by N lines respectively; the left half of the image data is used to fit the The data of the left half of the measured object, and the right half of the image data fit the data of the right half of the measured object. Assuming that the background incomplete phase map unwrap_subori has N lines in total, then the left and right half of the image are divided into sub-regions by every n lines, as shown in Figure 2(b), the entire image is divided into 2N/n sub-regions data.

S4-4:对所有子区域分别进行最小二乘法二元二次项拟合:S4-4: Perform the least-squares binary quadratic term fitting for all sub-regions:

Z(x,y)=p00+p10x+p01y+p20x2+p11xy+p02y2 Z(x,y)=p 00 +p 10 x+p 01 y+p 20 x 2 +p 11 xy+p 02 y 2

式中,p00,p10,p01,p20,p11,p02表示拟合空间曲面方程的参数数值,得到确定的参数数值,就可确定相应的拟合空间曲面形状。In the formula, p 00 , p 10 , p 01 , p 20 , p 11 , p 02 represent the parameter values of the fitting space surface equation, and the corresponding fitting space surface shape can be determined by obtaining the determined parameter values.

如图2(b)所示,即用黑色部分的已知数据拟合出白色部分的空白数据。As shown in Figure 2(b), the blank data in the white part is fitted with the known data in the black part.

S4-5:把所有子区域拟合的结果拼接为完整的背景相位图unwrap_ori;S4-5: Splicing the fitting results of all sub-regions into a complete background phase map unwrap_ori;

S4-6:利用相位差高度映射公式计算被测物每一点的深度,得到其三维点云数据,完成三维面型重构,具体过程如下:S4-6: Use the phase difference height mapping formula to calculate the depth of each point of the measured object, obtain its 3D point cloud data, and complete the 3D surface reconstruction. The specific process is as follows:

已知RGB工业相机光心与接收平面间的距离L,RGB工业相机光心与投影仪间距离D,生成条纹的频率f,以及相位差表示为:It is known that the distance L between the optical center of the RGB industrial camera and the receiving plane, the distance D between the optical center of the RGB industrial camera and the projector, the frequency f of the generated fringes, and the phase difference are expressed as:

Figure GDA0002467293540000052
Figure GDA0002467293540000052

根据三角测量原理,相位差与被测物深度的映射关系可由下式表示:According to the principle of triangulation, the mapping relationship between the phase difference and the depth of the measured object can be expressed by the following formula:

Figure GDA0002467293540000051
Figure GDA0002467293540000051

由此便可得到物体的空间点云数据,完成三维面型重构。In this way, the spatial point cloud data of the object can be obtained, and the three-dimensional surface reconstruction can be completed.

本发明实施例只需采集大于等于两幅被测物图像,且无需单独采集背景图像就可进行三维面型重构,因此简化操作流程和减少采集时间,大大提高系统工作效率。另外,本发明实施例由于不需要单独采集背景图像,所以不存在背景接收面发生拍摄前后位置移动而导致重构结果错误的问题,不用特定设置固定的接收平面,系统灵活性和适用性大大提高。再者,由于参考面不是严格平整,投影仪投射的条纹质量以及光照不是严格均匀等不可控因素的影响,实际的连续相位图必定不是理想的空间平面,本发明实施例通过把背景相位图按行分块为若干子区域再进行拟合得以提高拟合精度,使拟合的背景相位图更趋近真实分布,减小重构误差。最后,考虑到三色通道之间的串扰影响,只在R和B通道储存正弦条纹信息,大大减小颜色串扰影响。与此同时,在利用四步相移技术的前提下,灰度条纹图需要投射四幅图像,而使用RB彩色图像只需投射两幅,即可解算连续相位图。The embodiment of the present invention only needs to collect more than or equal to two images of the object to be measured, and can perform three-dimensional surface reconstruction without separately collecting background images, thus simplifying the operation process and reducing the collection time, and greatly improving the system work efficiency. In addition, since the embodiment of the present invention does not need to collect the background image separately, there is no problem that the position of the background receiving surface moves before and after shooting, which leads to an error in the reconstruction result. There is no need to set a fixed receiving plane, and the flexibility and applicability of the system are greatly improved. . Furthermore, since the reference surface is not strictly flat, the quality of the stripes projected by the projector and the illumination are not strictly uniform and other uncontrollable factors, the actual continuous phase map must not be an ideal spatial plane. The line is divided into several sub-regions and then fitted to improve the fitting accuracy, make the fitted background phase map closer to the real distribution, and reduce the reconstruction error. Finally, considering the effect of crosstalk between the three-color channels, only the sinusoidal fringe information is stored in the R and B channels, which greatly reduces the effect of color crosstalk. At the same time, under the premise of using the four-step phase-shifting technique, the gray-scale fringe image needs to project four images, while using the RB color image only needs to project two images to solve the continuous phase map.

以上所述之实施例子只为本发明之较佳实施例,并非以此限制本发明的实施范围,故凡依本发明之形状、原理所作的变化,均应涵盖在本发明的保护范围内。The above-mentioned embodiments are only preferred embodiments of the present invention, and are not intended to limit the scope of implementation of the present invention. Therefore, any changes made according to the shape and principle of the present invention should be included within the protection scope of the present invention.

Claims (4)

1.一种基于彩色条纹投影的三维面型一步重构方法,其特征在于,包括以下步骤:1. a three-dimensional surface reconstruction method based on color fringe projection, is characterized in that, comprises the following steps: S1:搭建结构光投影三维重建系统;S1: Build a structured light projection 3D reconstruction system; S2:分别测量RGB工业相机光心与接收平面间的距离L,RGB工业相机光心与投影仪光心之间的距离D;S2: Measure the distance L between the optical center of the RGB industrial camera and the receiving plane, and the distance D between the optical center of the RGB industrial camera and the projector; S3:投射结构光采集被测物图像I_obj1和I_obj2;S3: Projecting structured light to collect the measured object images I_obj1 and I_obj2; S4:对采集到的图像进行处理,完成三维面型重构;S4: Process the collected images to complete the three-dimensional surface reconstruction; 所述步骤S4对采集到的图像进行处理的具体步骤如下:The specific steps of processing the collected image in the step S4 are as follows: S4-1:利用四步相移法得到被测物包裹相位图,并解包裹得到被测物连续相位图unwrap_obj;S4-1: Use the four-step phase shift method to obtain the wrapped phase map of the measured object, and unwrap it to obtain the continuous phase map unwrap_obj of the measured object; S4-2:在原始被测物图像I_obj1或I_obj2中,提取被测物ROI区域并分割出其最小外接矩形区域,并将此区域数据剔除,使得被测物连续相位图unwrap_obj中的被测物最小外接矩形区域内的数据全部为空,留下剩余背景相位信息,此时得到背景残缺相位图unwrap_subori;S4-2: In the original measured object image I_obj1 or I_obj2, extract the measured object ROI area and segment its minimum circumscribed rectangular area, and remove the data in this area, so that the measured object in the continuous phase map of the measured object is unwrap_obj. The data in the minimum circumscribed rectangular area is all empty, leaving the remaining background phase information, and the background incomplete phase map unwrap_subori is obtained at this time; S4-3:从中间将背景残缺相位图unwrap_subori分割为两部分,再对左右两部分分别按每N行分割为若干子区域;S4-3: Divide the background incomplete phase map unwrap_subori into two parts from the middle, and then divide the left and right parts into several sub-regions per N lines respectively; S4-4:对所有子区域分别进行最小二乘法二元二次项拟合;S4-4: Perform the least squares binary quadratic term fitting on all sub-regions respectively; S4-5:把所有子区域拟合的结果拼接为完整的背景相位图;S4-5: splicing the fitting results of all sub-regions into a complete background phase map; S4-6:利用相位差高度映射公式计算被测物每一点的深度,得到其三维点云数据,完成三维面型重构。S4-6: Use the phase difference height mapping formula to calculate the depth of each point of the measured object, obtain its three-dimensional point cloud data, and complete the three-dimensional surface reconstruction. 2.根据权利要求1所述的一种基于彩色条纹投影的三维面型一步重构方法,其特征在于,所述步骤S1搭建的结构光投影三维重建系统包括投影仪、RGB工业相机、计算机、光学平板以及接收平面;系统搭建时,将投影仪和相机分别固定在光学平板上,且二者光心轴线成一定角度,二者光心连线与接收平面保持平行。2. a kind of three-dimensional surface reconstruction method based on color fringe projection according to claim 1, is characterized in that, the structured light projection three-dimensional reconstruction system that described step S1 builds comprises projector, RGB industrial camera, computer, Optical flat plate and receiving plane; when the system is built, the projector and the camera are respectively fixed on the optical flat plate, and the optical center axes of the two are at a certain angle, and the line connecting the two optical centers is kept parallel to the receiving plane. 3.根据权利要求1所述的一种基于彩色条纹投影的三维面型一步重构方法,其特征在于,所述步骤S3投射结构光采集被测物图像I_obj1和I_obj2的具体过程如下:3. a kind of three-dimensional surface reconstruction method based on color fringe projection according to claim 1, is characterized in that, the concrete process of described step S3 projecting structured light collection measured object image I_obj1 and I_obj2 is as follows: 由计算机生成四幅具有相同相位差的正弦条纹图案,利用彩色图像拥有RGB三通道的优势,把该四幅正弦条纹图分为两组输入到两幅彩色图像的R和B通道;得到两幅彩色条纹结构光图案后,采用投影仪依次投射该两幅彩色条纹结构光图案到被测物表面,并采用RGB工业相机依次采集带条纹结构光的图像I_obj1和I_obj2。Four sinusoidal fringe patterns with the same phase difference are generated by the computer, and the four sinusoidal fringe patterns are divided into two groups and input to the R and B channels of the two color images by taking advantage of the advantage of the color image with three RGB channels; two color fringes are obtained. After the structured light pattern is formed, a projector is used to project the two colored striped structured light patterns on the surface of the object to be measured in turn, and an RGB industrial camera is used to sequentially collect images I_obj1 and I_obj2 with striped structured light. 4.根据权利要求1所述的一种基于彩色条纹投影的三维面型一步重构方法,其特征在于,所述步骤S4-6中相位差高度映射,即为被测物相位减去背景相位,结合事先标定好的系统参数L,D和f,通过以下公式:4. a kind of three-dimensional surface reconstruction method based on color fringe projection according to claim 1, is characterized in that, in the described step S4-6, the phase difference height mapping is the measured object phase minus the background phase , combined with the pre-calibrated system parameters L, D and f, through the following formula:
Figure FDA0002467293530000021
Figure FDA0002467293530000021
求得被测物深度信息;式中,L为已知RGB工业相机光心与接收平面间的距离;D为RGB工业相机光心与投影仪间的距离;f为生成条纹的频率,
Figure FDA0002467293530000022
为被测物相位与拟合背景相位之差。
Obtain the depth information of the measured object; in the formula, L is the distance between the optical center of the known RGB industrial camera and the receiving plane; D is the distance between the optical center of the RGB industrial camera and the projector; f is the frequency of generating fringes,
Figure FDA0002467293530000022
is the difference between the measured object phase and the fitted background phase.
CN201811150693.7A 2018-09-29 2018-09-29 A one-step reconstruction method of 3D surface shape based on color fringe projection Active CN109556535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811150693.7A CN109556535B (en) 2018-09-29 2018-09-29 A one-step reconstruction method of 3D surface shape based on color fringe projection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811150693.7A CN109556535B (en) 2018-09-29 2018-09-29 A one-step reconstruction method of 3D surface shape based on color fringe projection

Publications (2)

Publication Number Publication Date
CN109556535A CN109556535A (en) 2019-04-02
CN109556535B true CN109556535B (en) 2020-07-03

Family

ID=65864848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811150693.7A Active CN109556535B (en) 2018-09-29 2018-09-29 A one-step reconstruction method of 3D surface shape based on color fringe projection

Country Status (1)

Country Link
CN (1) CN109556535B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110037808A (en) * 2019-05-14 2019-07-23 苏州大学 Liver surface real time information sampling method and system in art based on structure light scan
CN112991383B (en) * 2019-12-18 2022-11-08 山东理工大学 A Stereo Vision Matching Method Based on Three Color Light Spot Patterns
CN113280756A (en) * 2020-02-19 2021-08-20 华东交通大学 Image quality improvement method of monochromatic black and white stripe structured light based on polarization state
CN111325831B (en) * 2020-03-04 2022-07-01 中国空气动力研究与发展中心超高速空气动力研究所 A Color Structured Light Strip Detection Method Based on Hierarchical Clustering and Confidence Propagation
CN112697071B (en) * 2020-11-17 2022-05-13 广东工业大学 Three-dimensional measurement method for color structured light projection based on DenseNet shadow compensation
CN114018176A (en) * 2021-10-27 2022-02-08 华中科技大学 A projection image processing module, three-dimensional reconstruction method and system thereof
CN114264664A (en) * 2021-12-22 2022-04-01 上海理工大学 Defect detection system based on bright and dark field and structured light detection

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1900651A (en) * 2006-07-27 2007-01-24 西安交通大学 Three dimension object contour phase measuring method based on double frequency color strip projection
CN101813461A (en) * 2010-04-07 2010-08-25 河北工业大学 Absolute phase measurement method based on composite color fringe projection
KR20100123520A (en) * 2009-05-15 2010-11-24 선문대학교 산학협력단 Measuring method by using color filter
CN102322822A (en) * 2011-08-08 2012-01-18 西安交通大学 Three-dimensional measurement method for triple-frequency color fringe projection
JP2012202771A (en) * 2011-03-24 2012-10-22 Fujitsu Ltd Three-dimensional surface shape calculation method of measuring target and three-dimensional surface shape measuring apparatus
CN105258653A (en) * 2015-10-27 2016-01-20 电子科技大学 Automatic detection method for detecting whether coloring of remote control keyboard is qualified
CN105387819A (en) * 2015-12-27 2016-03-09 河北工业大学 Reflecting object three-dimensional shape measuring method and device based on fringe reflection method
CN105627942A (en) * 2015-12-25 2016-06-01 华南理工大学 Imaging apparatus and method for detecting object surface micro deformation through machine vision
CN106017357A (en) * 2016-08-04 2016-10-12 南昌航空大学 Defocused projection three-dimensional measuring method based on colorful triangular wave fringes
CN106289109A (en) * 2016-10-26 2017-01-04 长安大学 A kind of three-dimensional reconstruction system based on structure light and method
CN107970026A (en) * 2017-11-17 2018-05-01 西安交通大学 Vola three-dimensional scanner and method based on four step grating phase shift method of single camera

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1900651A (en) * 2006-07-27 2007-01-24 西安交通大学 Three dimension object contour phase measuring method based on double frequency color strip projection
KR20100123520A (en) * 2009-05-15 2010-11-24 선문대학교 산학협력단 Measuring method by using color filter
CN101813461A (en) * 2010-04-07 2010-08-25 河北工业大学 Absolute phase measurement method based on composite color fringe projection
JP2012202771A (en) * 2011-03-24 2012-10-22 Fujitsu Ltd Three-dimensional surface shape calculation method of measuring target and three-dimensional surface shape measuring apparatus
CN102322822A (en) * 2011-08-08 2012-01-18 西安交通大学 Three-dimensional measurement method for triple-frequency color fringe projection
CN105258653A (en) * 2015-10-27 2016-01-20 电子科技大学 Automatic detection method for detecting whether coloring of remote control keyboard is qualified
CN105627942A (en) * 2015-12-25 2016-06-01 华南理工大学 Imaging apparatus and method for detecting object surface micro deformation through machine vision
CN105387819A (en) * 2015-12-27 2016-03-09 河北工业大学 Reflecting object three-dimensional shape measuring method and device based on fringe reflection method
CN106017357A (en) * 2016-08-04 2016-10-12 南昌航空大学 Defocused projection three-dimensional measuring method based on colorful triangular wave fringes
CN106289109A (en) * 2016-10-26 2017-01-04 长安大学 A kind of three-dimensional reconstruction system based on structure light and method
CN107970026A (en) * 2017-11-17 2018-05-01 西安交通大学 Vola three-dimensional scanner and method based on four step grating phase shift method of single camera

Also Published As

Publication number Publication date
CN109556535A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN109556535B (en) A one-step reconstruction method of 3D surface shape based on color fringe projection
CN110288642B (en) Three-dimensional object rapid reconstruction method based on camera array
CN106802138B (en) A kind of 3 D scanning system and its scan method
CN109816703B (en) A Point Cloud Registration Method Based on Camera Calibration and ICP Algorithm
US10152800B2 (en) Stereoscopic vision three dimensional measurement method and system for calculating laser speckle as texture
CN101813461B (en) Absolute phase measurement method based on composite color fringe projection
CN103075960B (en) Multi-visual-angle great-depth micro stereo visual-features fusion-measuring method
CN103697815B (en) Mixing structural light three-dimensional information getting method based on phase code
CN107123156A (en) A kind of active light source projection three-dimensional reconstructing method being combined with binocular stereo vision
CN104596439A (en) Speckle matching and three-dimensional measuring method based on phase information aiding
CN112945141B (en) Structured light rapid imaging method and system based on micro-lens array
WO2012096747A1 (en) Forming range maps using periodic illumination patterns
CN108613637A (en) A kind of structured-light system solution phase method and system based on reference picture
CN111028295A (en) A 3D imaging method based on encoded structured light and binocular
CN107990846B (en) Active-passive combined depth information acquisition method based on single-frame structured light
CN103292699A (en) Three-dimensional scanning system and three-dimensional scanning method
CN112595263A (en) Binocular vision three-dimensional point cloud reconstruction measuring method for sinusoidal grating and speckle mixed pattern projection
CN105303572B (en) Based on the main depth information acquisition method passively combined
CN111563952A (en) Stereo matching method and system based on phase information and spatial texture features
JP2013024608A (en) Apparatus for acquiring three-dimensional shape, processing method and program
CN117073580B (en) A microscopic dynamic three-dimensional measurement system and calibration method based on optical path optimization
CN113551617B (en) Binocular double-frequency complementary three-dimensional surface type measuring method based on fringe projection
CN109751969A (en) A kind of three-dimensional non-contact scanning method using positive and negative Gray's code line shifted raster
CN103761766A (en) Three-dimensional object model texture mapping algorithm based on tone mapping and image smoothing
CN116242277A (en) Automatic measurement method for size of power supply cabinet structural member based on full-field three-dimensional 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
GR01 Patent grant
GR01 Patent grant