CN113048899A - Thickness measuring method and system based on line structured light - Google Patents
Thickness measuring method and system based on line structured light Download PDFInfo
- Publication number
- CN113048899A CN113048899A CN202110611414.8A CN202110611414A CN113048899A CN 113048899 A CN113048899 A CN 113048899A CN 202110611414 A CN202110611414 A CN 202110611414A CN 113048899 A CN113048899 A CN 113048899A
- Authority
- CN
- China
- Prior art keywords
- line segment
- light
- line
- laser
- light bar
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000011218 segmentation Effects 0.000 claims abstract description 60
- 238000000691 measurement method Methods 0.000 claims abstract description 49
- 238000005259 measurement Methods 0.000 claims abstract description 36
- 239000011159 matrix material Substances 0.000 claims description 32
- 230000008569 process Effects 0.000 claims description 22
- 230000001678 irradiating effect Effects 0.000 claims description 17
- 238000012549 training Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 13
- 239000000284 extract Substances 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 12
- 230000000694 effects Effects 0.000 description 6
- 238000000605 extraction Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000002708 enhancing effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004660 morphological change Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 241000226585 Antennaria plantaginifolia Species 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/02—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
- G01B11/06—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness for measuring thickness ; e.g. of sheet material
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
- G06F18/2415—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on parametric or probabilistic models, e.g. based on likelihood ratio or false acceptance rate versus a false rejection rate
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/07—Target detection
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Probability & Statistics with Applications (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
本发明提供一种基于线结构光的厚度测量方法和系统,该方法获取线结构光照射的目标物体的目标图像;将目标图像输入至语义分割模型,得到语义分割模型输出的目标图像中的第一光条线段、第二光条线段和第三光条线段的概率图,第二光条线段位于第一光条线段与第三光条线段之间,第二光条线段位于目标图像中的目标物体表面;基于第一光条线段、第二光条线段和第三光条线段的概率图以及目标图像,确定目标物体的厚度,该方法能增加激光线在复杂背景图像中的显著性,通过对投射在复杂目标物体上的激光线的关键线段或点的提取,减少了与测量无关的激光线形态变化对最终结果的影响,使测量得到的目标物体的厚度更加准确,能够应用在纹理更加复杂的场景中。
The invention provides a thickness measurement method and system based on line structured light. The method obtains a target image of a target object irradiated by the line structured light; inputs the target image into a semantic segmentation model, and obtains the first image in the target image output by the semantic segmentation model. A probability map of a light bar line segment, a second light bar line segment and a third light bar line segment, the second light bar line segment is located between the first light bar line segment and the third light bar line segment, and the second light bar line segment is located in the target image. The surface of the target object; based on the probability map of the first light line segment, the second light line segment and the third light line segment and the target image, determine the thickness of the target object, this method can increase the saliency of the laser line in the complex background image, By extracting the key line segments or points of the laser line projected on the complex target object, the influence of the shape change of the laser line irrelevant to the measurement on the final result is reduced, so that the thickness of the measured target object is more accurate and can be applied to texture in more complex scenarios.
Description
技术领域technical field
本发明涉及机器视觉领域,尤其涉及一种基于线结构光的厚度测量方法和系统。The invention relates to the field of machine vision, in particular to a method and system for thickness measurement based on line structured light.
背景技术Background technique
在许多工业测量任务中,例如轨道轮廓测量、焊缝定位、地形表面重建、机器人导航以及目标物体的厚度测量等测量任务中,线结构光已经成了一种经典且受欢迎的方法。Line structured light has become a classic and popular method in many industrial measurement tasks, such as track profile measurement, weld location, terrain surface reconstruction, robot navigation, and thickness measurement of target objects.
对于基于线结构光的厚度测量方法,其测量的效果取决于线结构光的性能,线结构光的性能在很大程度上取决于成熟的相机标定方法和固定的2D像素到3D目标点转换。For the thickness measurement method based on line structured light, the measurement effect depends on the performance of the line structured light, which largely depends on the mature camera calibration method and the fixed 2D pixel to 3D target point conversion.
由于现有技术中基于线结构光的厚度测量方法与目标物体的视觉特征无关,这将导致测量得到的目标物体的厚度不准确,因此阻碍了在纹理更加复杂的场景中目标物体的三维视觉测量应用。Since the thickness measurement method based on line structured light in the prior art has nothing to do with the visual characteristics of the target object, this will lead to inaccurate thickness measurement of the target object, thus hindering the 3D visual measurement of the target object in scenes with more complex textures application.
发明内容SUMMARY OF THE INVENTION
本发明提供一种基于线结构光的厚度测量方法和系统,用以解决现有技术中线结构光的厚度测量方法与目标物体的视觉特征无关的缺陷,实现在纹理更加复杂的场景中目标物体的三维视觉测量应用。The invention provides a thickness measurement method and system based on line structured light, which is used to solve the defect that the thickness measurement method of line structured light in the prior art has nothing to do with the visual characteristics of the target object, and realizes the detection of target objects in scenes with more complex textures. 3D vision measurement applications.
本发明提供一种基于线结构光的厚度测量方法,包括:The present invention provides a thickness measurement method based on line structured light, comprising:
获取线结构光照射的目标物体的目标图像;Obtain the target image of the target object illuminated by the line structured light;
将所述目标图像输入至语义分割模型,得到所述语义分割模型输出的所述目标图像中的第一光条线段、第二光条线段和第三光条线段的概率图,所述第二光条线段位于所述第一光条线段与所述第三光条线段之间,且所述第二光条线段位于所述目标图像中的目标物体表面;The target image is input into the semantic segmentation model, and the probability map of the first light line segment, the second light line segment and the third light line segment in the target image output by the semantic segmentation model is obtained, and the second light line segment is obtained. The light bar line segment is located between the first light bar line segment and the third light bar line segment, and the second light bar line segment is located on the surface of the target object in the target image;
基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,确定所述目标物体的厚度;determining the thickness of the target object based on the probability map of the first light bar line segment, the second light bar line segment and the third light bar line segment and the target image;
其中,所述语义分割模型基于携带有第一光条线段标签、第二光条线段标签和第三光条线段标签的图像样本训练得到。Wherein, the semantic segmentation model is obtained by training based on the image samples carrying the first light bar line segment label, the second light bar line segment label and the third light bar line segment label.
根据本发明提供一种的基于线结构光的厚度测量方法,所述基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,确定所述目标物体的厚度,具体包括:According to the present invention, a method for measuring thickness based on line structured light is provided, which is based on the probability map of the first light bar line segment, the second light bar line segment and the third light bar line segment and the target image , determine the thickness of the target object, specifically including:
基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,分别提取所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心;Based on the probability map of the first light line segment, the second light line segment and the third light line segment and the target image, extract the first light line segment and the second light line segment respectively and the center of the laser line of the third light line segment;
基于所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第二光条线段与所述第一光条线段的第一距离以及所述第二光条线段与所述第三光条线段的第二距离;Based on the three-dimensional space representation of the laser line centers of the first light line segment, the second light line segment, and the third light line segment in the camera coordinate system, determine the relationship between the second light line segment and the third light line segment. a first distance of a light bar line segment and a second distance between the second light bar line segment and the third light bar line segment;
基于所述第一距离和所述第二距离确定所述目标物体的厚度。The thickness of the target object is determined based on the first distance and the second distance.
根据本发明提供的一种基于线结构光的厚度测量方法,所述基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,分别提取所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心,具体包括:According to a method for thickness measurement based on line structured light provided by the present invention, the method is based on the probability map of the first light bar line segment, the second light bar line segment and the third light bar line segment and the target image , respectively extracting the laser line centers of the first light bar line segment, the second light bar line segment and the third light bar line segment, specifically including:
对于所述第一光条线段、所述第二光条线段和所述第三光条线段中的任一光条线段,将所述任一光条线段的概率图中的任一元素与所述目标图像中对应位置的元素进行相乘或相加,得到新的目标图像;For any light line segment among the first light line segment, the second light line segment and the third light line segment, compare any element in the probability map of the any light line segment with the target image The elements at the corresponding positions are multiplied or added to obtain a new target image;
基于所述新的目标图像,提取所述任一光条线段的激光线中心。Based on the new target image, the laser line center of any of the light line segments is extracted.
根据本发明提供的一种基于线结构光的厚度测量方法,所述目标图像基于相机获取;According to a thickness measurement method based on line structured light provided by the present invention, the target image is acquired based on a camera;
相应的,所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,通过如下方式确定:Correspondingly, the three-dimensional space representation of the laser line centers of the first light bar line segment, the second light bar line segment, and the third light bar line segment in the camera coordinate system is determined in the following manner:
获取所述相机的内参矩阵,并确定所述相机的标定过程中所述线结构光照射标定物产生的激光平面;Acquire the internal parameter matrix of the camera, and determine the laser plane generated by the line structured light irradiating the calibration object during the calibration process of the camera;
基于所述内参矩阵以及所述激光平面,分别确定所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示。Based on the internal reference matrix and the laser plane, the three-dimensional space representations of the laser line centers of the first light line segment, the second light line segment, and the third light line segment in the camera coordinate system are respectively determined.
根据本发明提供的一种基于线结构光的厚度测量方法,所述确定所述相机的标定过程中所述线结构光照射标定物产生的激光平面,具体包括:According to a thickness measurement method based on line structured light provided by the present invention, the determining of the laser plane generated by the line structured light irradiating the calibration object during the calibration process of the camera specifically includes:
确定所述相机的标定过程中所述线结构光照射标定物产生的激光线投影,并提取所述激光线投影的激光线中心;determining the laser line projection generated by the line structured light irradiating the calibration object during the calibration process of the camera, and extracting the laser line center of the laser line projection;
基于所述激光线投影的激光线中心在相机坐标系下的三维空间表示,拟合得到所述激光平面。Based on the three-dimensional representation of the laser line center projected by the laser line in the camera coordinate system, the laser plane is obtained by fitting.
根据本发明提供的一种基于线结构光的厚度测量方法,所述基于所述内参矩阵以及所述激光平面,分别确定所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,具体包括:According to a thickness measurement method based on line structured light provided by the present invention, the first light line segment, the second light line segment and the first light line segment are determined based on the internal reference matrix and the laser plane, respectively. The three-dimensional space representation of the laser line center of the three-light line segment in the camera coordinate system, including:
对于所述第一光条线段、所述第二光条线段和所述第三光条线段中的任一光条线段,基于所述内参矩阵,确定所述任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示;For any light line segment among the first light line segment, the second light line segment, and the third light line segment, based on the internal reference matrix, it is determined that the laser line center of the any light line segment is normalized The three-dimensional space representation in the camera coordinate system;
基于所述激光平面以及所述任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示,确定缩放因子;determining a scaling factor based on the laser plane and the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system;
基于所述缩放因子以及所述任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示,确定所述任一光条线段的激光线中心在相机坐标系下的三维空间表示。Based on the scaling factor and the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system, the three-dimensional space representation of the laser line center of any light line segment in the camera coordinate system is determined.
根据本发明提供的一种基于线结构光的厚度测量方法,所述基于所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第二光条线段与所述第一光条线段的第一距离以及所述第二光条线段与所述第三光条线段的第二距离,具体包括:According to a thickness measurement method based on line structured light provided by the present invention, the center of the laser line based on the first light line segment, the second light line segment and the third light line segment is in a camera coordinate system The three-dimensional space representation below, determining the first distance between the second light bar line segment and the first light bar line segment and the second distance between the second light bar line segment and the third light bar line segment, specifically including:
基于所述第二光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第二光条线段靠近于所述第一光条线段的第一端点以及所述第二光条线段靠近于所述第三光条线段的第二端点;Based on the three-dimensional representation of the laser line center of the second light line segment in the camera coordinate system, it is determined that the second light line segment is close to the first end point of the first light line segment and the second light line The line segment is close to the second end point of the third light bar line segment;
基于所述第一光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第一光条线段所在的第一直线,并基于所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第三光条线段所在的第二直线;Based on the three-dimensional representation of the laser line center of the first light line segment in the camera coordinate system, a first straight line where the first light line segment is located is determined, and based on the laser line center of the third light line segment In the three-dimensional space representation in the camera coordinate system, determine the second straight line where the third light line segment is located;
确定所述第一端点与所述第一直线的距离为所述第一距离,并确定所述第二端点与所述第二直线的距离为所述第二距离。The distance between the first endpoint and the first straight line is determined as the first distance, and the distance between the second endpoint and the second straight line is determined as the second distance.
本发明还提供一种基于线结构光的厚度测量系统,包括:The present invention also provides a thickness measurement system based on line structured light, comprising:
目标图像获取模块,用于获取线结构光照射的目标物体的目标图像;The target image acquisition module is used to acquire the target image of the target object illuminated by the line structured light;
语义分割模块,用于将所述目标图像输入至语义分割模型,得到所述语义分割模型输出的所述目标图像中的第一光条线段、第二光条线段和第三光条线段的概率图,所述第二光条线段位于所述第一光条线段与所述第三光条线段之间,且所述第二光条线段位于所述目标图像中的目标物体表面;The semantic segmentation module is used to input the target image into the semantic segmentation model, and obtain the probability of the first light line segment, the second light line segment and the third light line segment in the target image output by the semantic segmentation model In the figure, the second light line segment is located between the first light line segment and the third light line segment, and the second light line segment is located on the surface of the target object in the target image;
厚度确定模块,用于基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,确定所述目标物体的厚度;a thickness determination module, configured to determine the thickness of the target object based on the probability map of the first light bar line segment, the second light bar line segment and the third light bar line segment and the target image;
其中,所述语义分割模型基于携带有第一光条线段标签、第二光条线段标签和第三光条线段标签的图像样本训练得到。Wherein, the semantic segmentation model is obtained by training based on the image samples carrying the first light bar line segment label, the second light bar line segment label and the third light bar line segment label.
本发明还提供一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述任一种所述基于线结构光的厚度测量方法的步骤。The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored on the memory and running on the processor, the processor implements any one of the above when executing the computer program The steps of the thickness measurement method based on line structured light.
本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述基于线结构光的厚度测量方法的步骤。The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of any of the above-mentioned methods for thickness measurement based on line structured light.
本发明提供的基于线结构光的厚度测量方法和系统,通过本发明实施例中的基于线结构光的厚度测量方法,通过使用语义分割模型对目标物体的目标图像进行分割,得到第一光条线段、第二光条线段和第三光条线段的概率图,再根据这三类光条线段的概率图以及目标图像确定目标物体的厚度。该方法引入了语义特征,能够增加激光线在复杂背景图像中的显著性,通过对投射在复杂目标物体上的激光线的关键线段或点的提取,减少了与测量无关的激光线形态变化对最终结果的影响,使测量得到的目标物体的厚度更加准确,而且能够使基于线结构光的厚度测量方法应用在纹理更加复杂的场景中。In the method and system for thickness measurement based on line structured light provided by the present invention, through the thickness measurement method based on line structured light in the embodiment of the present invention, the target image of the target object is segmented by using a semantic segmentation model to obtain a first light bar The probability map of the line segment, the second light line segment and the third light line segment, and then determine the thickness of the target object according to the probability map of the three types of light line segments and the target image. This method introduces semantic features, which can increase the saliency of laser lines in complex background images. By extracting key segments or points of laser lines projected on complex target objects, it reduces the influence of laser line morphological changes that are not related to measurement. The influence of the final result makes the measured thickness of the target object more accurate, and enables the thickness measurement method based on line structured light to be applied to scenes with more complex textures.
附图说明Description of drawings
为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are of the present invention. For some embodiments of the present invention, for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本发明实施例提供的基于线结构光的厚度测量方法的流程示意图;1 is a schematic flowchart of a thickness measurement method based on line structured light provided by an embodiment of the present invention;
图2是本发明实施例提供的基于线结构光的厚度测量方法的测量场景示意图;2 is a schematic diagram of a measurement scene of a thickness measurement method based on line structured light provided by an embodiment of the present invention;
图3是本发明实施例中的激光平面的拟合结果示意图;3 is a schematic diagram of a fitting result of a laser plane in an embodiment of the present invention;
图4是本发明实施例提供的基于线结构光的厚度测量方法的测量误差示意图;4 is a schematic diagram of a measurement error of a thickness measurement method based on line structured light provided by an embodiment of the present invention;
图5是图4中A点的线段拟合示意图;Fig. 5 is the line segment fitting schematic diagram of point A in Fig. 4;
图6是图4中B点的线段拟合示意图;Fig. 6 is the line segment fitting schematic diagram of point B in Fig. 4;
图7是本发明实施例提供的基于线结构光的厚度测量方法的具体流程示意图;FIG. 7 is a schematic flow chart of a thickness measurement method based on line structured light provided by an embodiment of the present invention;
图8是本发明实施例提供的基于线结构光的厚度测量系统的结构示意图;8 is a schematic structural diagram of a thickness measurement system based on line structured light provided by an embodiment of the present invention;
图9是本发明提供的电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention. , not all examples. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
由于目前基于线结构光测量目标物体厚度的方法与目标物体的视觉特征无关,这将导致测量得到的目标物体的厚度不准确,因此阻碍了在纹理更加复杂的场景中目标物体的三维视觉测量应用。Since the current method of measuring the thickness of the target object based on line structured light has nothing to do with the visual characteristics of the target object, this will lead to inaccurate thickness of the measured target object, thus hindering the application of 3D vision measurement of the target object in scenes with more complex textures .
因此,本发明提供一种基于线结构光的厚度测量方法。图1是本发明实施例提供的基于线结构光的厚度测量方法的流程示意图,如图1所示,该方法包括:Therefore, the present invention provides a thickness measurement method based on line structured light. FIG. 1 is a schematic flowchart of a thickness measurement method based on line structured light provided by an embodiment of the present invention. As shown in FIG. 1 , the method includes:
S1,获取线结构光照射的目标物体的目标图像;S1, acquiring a target image of the target object irradiated by the line structured light;
S2,将所述目标图像输入至语义分割模型,得到所述语义分割模型输出的所述目标图像中的第一光条线段、第二光条线段和第三光条线段的概率图,所述第二光条线段位于所述第一光条线段与所述第三光条线段之间,且所述第二光条线段位于所述目标图像中的目标物体表面;S2, the target image is input into the semantic segmentation model, and the probability map of the first light line segment, the second light line segment and the third light line segment in the target image output by the semantic segmentation model is obtained. The second light bar line segment is located between the first light bar line segment and the third light bar line segment, and the second light bar line segment is located on the surface of the target object in the target image;
S3,基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,确定所述目标物体的厚度;S3, determining the thickness of the target object based on the probability map of the first light bar line segment, the second light bar line segment and the third light bar line segment and the target image;
其中,所述语义分割模型基于携带有第一光条线段标签、第二光条线段标签和第三光条线段标签的图像样本训练得到。Wherein, the semantic segmentation model is obtained by training based on the image samples carrying the first light bar line segment label, the second light bar line segment label and the third light bar line segment label.
具体地,本发明实施例中提供的基于线结构光的厚度测量方法,其执行主体为厚度测量装置,该装置包括图像采集设备、激光线发射器、能够放置目标物体的平面和图像处理设备。其中,图像处理设备可以是服务器,该服务器可以是本地服务器,也可以是云端服务器,本地服务器具体可以是计算机、平板电脑以及智能手机等,本发明实施例中对此不作具体限定。Specifically, in the thickness measurement method based on line structured light provided in the embodiment of the present invention, the execution body is a thickness measurement device, and the device includes an image acquisition device, a laser line transmitter, a plane capable of placing a target object, and an image processing device. The image processing device may be a server, the server may be a local server, or a cloud server, and the local server may specifically be a computer, a tablet computer, a smart phone, or the like, which is not specifically limited in this embodiment of the present invention.
首先执行步骤S1。本发明实施例中可以采用激光线发射器投射线结构光到目标物体表面,线结构光照射目标物体时均匀投影到目标物体表面,此时可以通过上述厚度测量装置中的图像采集设备获取目标物体表面的激光条纹图像,所述激光条纹图像可以是彩色图像,为了后续的操作,可以将彩色图像转化成灰度图像,得到目标物体表面的激光条纹图像的灰度图像,就是目标图像。其中,目标物体可以是任意厚度的物体,尤其可以是纹理更加复杂的物体。Step S1 is performed first. In the embodiment of the present invention, a laser line emitter can be used to project the line structured light onto the surface of the target object, and the line structured light is evenly projected onto the surface of the target object when irradiating the target object. The laser fringe image on the surface, the laser fringe image can be a color image, and for subsequent operations, the color image can be converted into a grayscale image to obtain a grayscale image of the laser fringe image on the surface of the target object, which is the target image. The target object may be an object of any thickness, especially an object with a more complex texture.
然后执行步骤S2。在获取到目标图像后,就可以将目标图像输入至语义分割模型,经过语义分割模型的分割,可以得到语义分割模型输出的目标图像中的第一光条线段、第二光条线段和第三光条线段的概率图。其中,第二光条线段位于第一光条线段与第三光条线段之间,且第二光条线段位于目标图像中的目标物体表面。语义分割模型基于携带有第一光条线段标签、第二光条线段标签和第三光条线段标签的图像样本训练得到。Then step S2 is performed. After the target image is acquired, the target image can be input into the semantic segmentation model. After segmentation by the semantic segmentation model, the first light line segment, the second light line segment and the third light line segment in the target image output by the semantic segmentation model can be obtained. Probability plot of light line segments. The second light bar line segment is located between the first light bar line segment and the third light bar line segment, and the second light bar line segment is located on the surface of the target object in the target image. The semantic segmentation model is trained based on the image samples carrying the first light bar line segment label, the second light bar line segment label and the third light bar line segment label.
第一光条线段、第二光条线段和第三光条线段是指,当线结构光以合适的高度和亮度照射在目标物体表面时,线结构光光束在目标物体表面会形成光条线段,即线结构光光束会被目标物体分成三段,分别为目标物体两侧的光条线段以及目标物体表面的光条线段。本发明实施例中,可以将目标物体一侧的光条线段确定为第一光条线段,将目标物体表面的光条线段确定为第二光条线段,将目标物体另一侧的光条线段确定为第三光条线段。根据三段光条线段在目标图像中的位置关系,第一光条线段可以是目标图像中处于较上位置的上线段,第三光条线段可以是目标图像中处于较下位置的下线段,第二光条线段则为处于第一光条线段以及第三光条线段之间的中线段。The first light bar line segment, the second light bar line segment and the third light bar line segment mean that when the line structured light is irradiated on the surface of the target object with a suitable height and brightness, the line structured light beam will form a light bar line segment on the surface of the target object , that is, the line structured light beam will be divided into three segments by the target object, which are the light bar line segments on both sides of the target object and the light bar line segments on the surface of the target object. In this embodiment of the present invention, the light line segment on one side of the target object may be determined as the first light line segment, the light line segment on the surface of the target object may be determined as the second light line segment, and the light line segment on the other side of the target object may be determined as the second light line segment. Determined as the third light line segment. According to the positional relationship of the three light line segments in the target image, the first light line segment may be the upper line segment in the target image, and the third light line segment may be the lower line segment in the target image. The second light bar line segment is a middle line segment between the first light bar line segment and the third light bar line segment.
语义分割模型的输入是目标图像I(目标图像I的宽度是w,高度是h),输出是四通道的概率图,每个通道对应的类别依次是背景、第一光条线段、第二光条线段和第三光条线段。其中,在任一通道的概率图中像素的概率是在当前像素位置上模型预测为通道对应的类别的可能性。本发明实施例中的概率图类型可以根据实际需要进行选择,本发明实施例对此不作具体限定。The input of the semantic segmentation model is the target image I (the width of the target image I is w and the height is h), and the output is a four-channel probability map. The categories corresponding to each channel are the background, the first light line segment, and the second light. line segment and a third light bar line segment. Among them, the probability of a pixel in the probability map of any channel is the probability that the model predicts the class corresponding to the channel at the current pixel position. The probability map type in the embodiment of the present invention may be selected according to actual needs, which is not specifically limited in the embodiment of the present invention.
语义分割模型中的语义是指面向特定目标的线段或关键点的语义特征,例如,语义可以是指面向第二光条线段的语义特征等。本发明实施例中的语义分割模型可以是现有的语义分割模型。例如,语义分割模型可以使用全卷积网络、U型网络、变形网络或者是采用以50层残差网络作为特征提取网络的Deeplab v3等,本发明实施例对此不作具体限定。The semantics in the semantic segmentation model refers to the semantic features of line segments or key points oriented to a specific target, for example, the semantics can refer to the semantic features of the second light line segment and so on. The semantic segmentation model in the embodiment of the present invention may be an existing semantic segmentation model. For example, the semantic segmentation model may use a fully convolutional network, a U-shaped network, a deformed network, or Deeplab v3 using a 50-layer residual network as a feature extraction network, etc., which is not specifically limited in this embodiment of the present invention.
语义分割模型通过对目标图像的分割,可以预测目标图像中每个像素的类别,即将目标图像中的每个像素归为背景、第一光条线段、第二光条线段和第三光条线段中的某一类。在语义分割完成后,可以获取第一光条线段、第二光条线段和第三光条线段中任一像素点在目标图像中的位置。The semantic segmentation model can predict the category of each pixel in the target image by segmenting the target image, that is, classifying each pixel in the target image as the background, the first light line segment, the second light line segment and the third light line segment one of the categories. After the semantic segmentation is completed, the position of any pixel in the first light line segment, the second light line segment and the third light line segment in the target image can be obtained.
在使用语义分割模型对目标图像进行分割前,还需要先对语义分割模型进行训练。语义分割模型基于携带有第一光条线段标签、第二光条线段标签和第三光条线段标签的图像样本训练得到。Before using the semantic segmentation model to segment the target image, the semantic segmentation model needs to be trained first. The semantic segmentation model is trained based on the image samples carrying the first light bar line segment label, the second light bar line segment label and the third light bar line segment label.
在进行语义分割模型的训练时,可以对获取到的每张图像样本进行手动标注,将第一光条线段、第二光条线段和第三光条线段的真实边界框bt、bm和bb标注出来,得到携带有第一光条线段标签、第二光条线段标签和第三光条线段标签的图像样本,并使用这些图像样本对语义分割模型进行训练。When training the semantic segmentation model, each obtained image sample can be manually marked, and the real bounding boxes b t , b m and the first light line segment, the second light line segment and the third light line segment can be marked. b b is marked out to obtain image samples carrying the first light line segment label, the second light line segment label and the third light line segment label, and use these image samples to train the semantic segmentation model.
在对语义分割模型进行训练时,还可以使用灰度中心法提取每一个边界框内的激光线中心。其中,灰度中心法可以按照下列公式提取每一个边界框的激光线中心:When training the semantic segmentation model, the center of the laser lines within each bounding box can also be extracted using the gray center method. Among them, the gray center method can extract the laser line center of each bounding box according to the following formula:
(1) (1)
指线段的类别,即第一光条线段、第二光条线段和第三光条线段;是指 某一类光条线段的第y列的激光中心;x指第x行;指第x行第y列处的元素的像素值;指按元素乘法,即对目标图像中的每一个元素点操作。 Refers to the category of the line segment, namely the first light bar line segment, the second light bar line segment and the third light bar line segment; refers to the laser center of the yth column of a certain type of light line segment; x refers to the xth row; Refers to the pixel value of the element at row x and column y; Refers to element-wise multiplication, that is, operating on each element point in the target image.
在使用灰度中心法提取每一个边界框内的激光线中心之前,还可以对不同类别的概率图进行阈值化,得到二值图;即语义分割模型输出第一光条线段、第二光条线段和第三光条线段这三个类别的概率图,对于每个概率图,当图中像素的概率大于指定的阈值时,将在二值图中相同位置的像素设为1,否则设为0。其中,阈值的范围是0到1之间,可以根据实际需要进行设置,例如设置为0.5,本发明实施例对此不作具体限定。Before using the gray center method to extract the center of the laser line in each bounding box, the probability maps of different categories can also be thresholded to obtain a binary map; that is, the semantic segmentation model outputs the first light line segment and the second light line. The probability map of the three categories of line segment and line segment of the third light line. For each probability map, when the probability of the pixel in the map is greater than the specified threshold, the pixel at the same position in the binary map is set to 1, otherwise it is set to 0. The range of the threshold is between 0 and 1, which may be set according to actual needs, for example, set to 0.5, which is not specifically limited in this embodiment of the present invention.
在阈值化处理后,就可以得到三个不同类别的二值图,即得到第一光条线段、第二光条线段和第三光条线段这三个类别的二值图。再对这些二值图中像素为1的元素使用灰度中心法。After thresholding, three different types of binary images can be obtained, that is, three types of binary images of the first light line segment, the second light line segment and the third light line segment are obtained. Then use the gray center method for the elements whose pixel is 1 in these binary images.
在上述过程中,为了得到真实语义掩码,使用全1来初始化通道一的掩码,将包含光条线段的像素在通道一的掩码中设置为0;使用全0来初始化通道二到四的掩码,将每一类光条线段的激光线中心的像素在对应类别的掩码中设置为1。其中,通道一是背景图通道,通道二至四分别对应了第一光条线段、第二光条线段和第三光条线段的通道。In the above process, in order to obtain the real semantic mask, use all 1 to initialize the mask of
为了达到更好的模型训练效果,还可以使用Focal损失函数对语义分割模型的训练过程进行监督。其中,Focal损失函数主要是为了解决目标检测中正负样本比例严重失衡的问题,在语义分割模型训练中使用Focal损失函数可以降低大量简单负样本在训练中所占的权重,达到更好的训练效果。In order to achieve a better model training effect, the Focal loss function can also be used to supervise the training process of the semantic segmentation model. Among them, the Focal loss function is mainly to solve the problem of serious imbalance in the proportion of positive and negative samples in target detection. The use of the Focal loss function in the semantic segmentation model training can reduce the weight of a large number of simple negative samples in training, and achieve better training. Effect.
最后执行步骤S3。在获取到第一光条线段、第二光条线段和第三光条线段的概率图后,就可以根据这三类光条线段和目标图像,确定目标物体的厚度。由于经过语义分割可以获取第一光条线段、第二光条线段和第三光条线段在目标图像中的位置关系,因此可以根据目标图像所在的像素坐标系与真实世界坐标系的映射关系,将第一光条线段、第二光条线段和第三光条线段在目标图像中的位置关系映射到真实世界坐标系中,再根据这三类光条线段在真实世界坐标系中的位置关系,即可确定目标物体的厚度。Finally, step S3 is performed. After acquiring the probability maps of the first light line segment, the second light line segment and the third light line segment, the thickness of the target object can be determined according to the three types of light line segments and the target image. Since the positional relationship of the first light line segment, the second light line segment and the third light line segment in the target image can be obtained through semantic segmentation, the mapping relationship between the pixel coordinate system where the target image is located and the real world coordinate system can be obtained. Map the position relationship of the first light line segment, the second light line segment and the third light line segment in the target image to the real world coordinate system, and then according to the position relationship of these three types of light line segments in the real world coordinate system , the thickness of the target object can be determined.
本发明实施例中的基于线结构光的厚度测量方法,通过使用语义分割模型对目标物体的目标图像进行分割,得到第一光条线段、第二光条线段和第三光条线段的概率图,再根据这三类光条线段的概率图以及目标图像确定目标物体的厚度。该方法引入了语义特征,能够增加激光线在复杂背景图像中的显著性,通过对投射在复杂目标物体上的激光线的关键线段或点的提取,减少了与测量无关的激光线形态变化对最终结果的影响,使测量得到的目标物体的厚度更加准确,而且能够使基于线结构光的厚度测量方法应用在纹理更加复杂的场景中。In the thickness measurement method based on line structured light in the embodiment of the present invention, the target image of the target object is segmented by using the semantic segmentation model to obtain the probability map of the first light line segment, the second light line segment and the third light line segment , and then determine the thickness of the target object according to the probability map of the three types of light line segments and the target image. This method introduces semantic features, which can increase the saliency of laser lines in complex background images. By extracting key segments or points of laser lines projected on complex target objects, it reduces the influence of laser line morphological changes that are not related to measurement. The influence of the final result makes the measured thickness of the target object more accurate, and enables the thickness measurement method based on line structured light to be applied to scenes with more complex textures.
在上述实施例的基础上,本发明实施例提供的基于线结构光的厚度测量方法,所述基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,确定所述目标物体的厚度,具体包括:On the basis of the above-mentioned embodiments, in the thickness measurement method based on line structured light provided by the embodiments of the present invention, the thickness measurement method based on the first light bar line segment, the second light bar line segment and the third light bar line segment The probability map and the target image to determine the thickness of the target object, specifically including:
基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,分别提取所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心;Based on the probability map of the first light line segment, the second light line segment and the third light line segment and the target image, extract the first light line segment and the second light line segment respectively and the center of the laser line of the third light line segment;
基于所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第二光条线段与所述第一光条线段的第一距离以及所述第二光条线段与所述第三光条线段的第二距离;Based on the three-dimensional space representation of the laser line centers of the first light line segment, the second light line segment, and the third light line segment in the camera coordinate system, determine the relationship between the second light line segment and the third light line segment. a first distance of a light bar line segment and a second distance between the second light bar line segment and the third light bar line segment;
基于所述第一距离和所述第二距离确定所述目标物体的厚度。The thickness of the target object is determined based on the first distance and the second distance.
具体地,本发明实施例中,在获取到第一光条线段、第二光条线段和第三光条线段的概率图后,可以再结合目标图像,分别提取第一光条线段、第二光条线段和第三光条线段的激光线中心,也就是说,在提取激光线中心时,要同时考虑目标图像和概率图。其中,提取激光线中心的方法可以是按图像中的列进行加权平均,也可以按照图像中的行操作,本发明实施例对此不作具体限定。Specifically, in this embodiment of the present invention, after the probability maps of the first light line segment, the second light line segment, and the third light line segment are obtained, the first light line segment, the second light line segment and the second light line segment can be extracted in combination with the target image, respectively. The laser line center of the light bar line segment and the third light bar line segment, that is, when extracting the laser line center, both the target image and the probability map should be considered. The method for extracting the laser line center may be weighted average according to the column in the image, or may be operated according to the row in the image, which is not specifically limited in this embodiment of the present invention.
在提取到任一光条线段的激光线中心后,由于是结合目标图像和概率图进行的提取,因此获取到的激光线中心是像素坐标系下的二维激光线中心,还需要将提取到的任一光条线段的激光线中心映射到三维空间,以获取第一光条线段、第二光条线段和第三光条线段的激光线中心在相机坐标系下的三维空间表示;再基于第一光条线段、第二光条线段和第三光条线段的激光线中心在相机坐标系下的三维空间表示确定第二光条线段与第一光条线段的第一距离以及所述第二光条线段与所述第三光条线段的第二距离。其中,第一距离和第二距离可以根据第一光条线段、第二光条线段和第三光条线段的激光线中心在相机坐标系下的三维空间中的位置关系确定。After the laser line center of any light line segment is extracted, the obtained laser line center is the two-dimensional laser line center in the pixel coordinate system because the extraction is carried out in combination with the target image and the probability map. The laser line center of the line segment is mapped to the three-dimensional space to obtain the three-dimensional space representation of the laser line center of the first light line segment, the second light line segment and the third light line segment in the camera coordinate system; then based on the first light bar The three-dimensional space representation of the laser line centers of the line segment, the second light line segment and the third light line segment in the camera coordinate system determines the first distance between the second light line segment and the first light line segment and the second light line segment a second distance from the third light bar segment. Wherein, the first distance and the second distance may be determined according to the positional relationship of the laser line centers of the first light line segment, the second light line segment and the third light line segment in the three-dimensional space under the camera coordinate system.
当获取第一距离和第二距离后,就可以根据第一距离和第二距离确定目标物体的厚度。目标物体的厚度可以是第一距离和第二距离的平均值。After the first distance and the second distance are acquired, the thickness of the target object can be determined according to the first distance and the second distance. The thickness of the target object may be an average value of the first distance and the second distance.
本发明实施例中的基于线结构光的厚度测量方法,通过提取任一光条线段的激光线中心,再根据任一光条线段的激光线中心在相机坐标系下的三维空间表示,确定第二光条线段与第一光条线段的第一距离并确定第二光条线段与第三光条线段的第二距离,将第一距离与第二距离的平均值作为目标物体的厚度,在提取激光线中心时引入了语义,使目标物体厚度的测量更加准确。In the thickness measurement method based on line structured light in the embodiment of the present invention, the laser line center of any light line segment is extracted, and then the second light line segment is determined according to the three-dimensional space representation of the laser line center of any light line segment in the camera coordinate system The first distance from the first light line segment and the second distance between the second light line segment and the third light line segment are determined, and the average value of the first distance and the second distance is taken as the thickness of the target object, and the center of the extracted laser line is Semantics are introduced to make the measurement of target object thickness more accurate.
在上述实施例的基础上,本发明实施例提供的基于线结构光的厚度测量方法,所述基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,分别提取所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心,具体包括:On the basis of the above-mentioned embodiments, in the thickness measurement method based on line structured light provided by the embodiments of the present invention, the thickness measurement method based on the first light bar line segment, the second light bar line segment and the third light bar line segment The probability map and the target image, respectively extract the laser line centers of the first light line segment, the second light line segment and the third light line segment, specifically including:
对于所述第一光条线段、所述第二光条线段和所述第三光条线段中的任一光条线段,将所述任一光条线段的概率图中的任一元素与所述目标图像中对应位置的元素进行相乘或相加,得到新的目标图像;For any light line segment among the first light line segment, the second light line segment and the third light line segment, compare any element in the probability map of the any light line segment with the target image The elements at the corresponding positions are multiplied or added to obtain a new target image;
基于所述新的目标图像,提取所述任一光条线段的激光线中心。Based on the new target image, the laser line center of any of the light line segments is extracted.
具体地,本发明实施例中,对于第一光条线段、第二光条线段和第三光条线段中的任一光条线段,可以将任一光条线段的概率图中的任一元素与所述目标图像中对应位置的元素相乘或相加,得到新的目标图像,再根据新的目标图像,提取任一光条线段的激光线中心。Specifically, in this embodiment of the present invention, for any light bar segment among the first light bar line segment, the second light bar line segment, and the third light bar line segment, any element in the probability map of any light bar line segment may be associated with the target The elements of the corresponding positions in the image are multiplied or added to obtain a new target image, and then the center of the laser line of any light line segment is extracted according to the new target image.
当将任一光条线段的概率图中的任一元素与所述目标图像中对应位置的元素相乘时,即使用与操作获取新的目标图像,增强了激光线中心的语义部分。When any element in the probability map of any light line segment is multiplied by the element at the corresponding position in the target image, that is, an AND operation is used to obtain a new target image, which enhances the semantic part of the center of the laser line.
例如,当第一光条线段的概率图和目标图像按元素相乘时,目标图像中有较大概率为第一光条线段类别的像素的值会相对更大,而目标图像中有较小概率为非第一光条线段类别(即有较大概率为第二光条线段、第三光条线段或背景类别)的像素的值会相对更小。For example, when the probability map of the first light line segment and the target image are multiplied element-wise, the value of the pixel with a higher probability of being the first light line segment category in the target image will be relatively larger, while the value of the pixel with a higher probability of being the first light line segment in the target image Pixels with a probability of being a category other than the first light line segment (ie, with a higher probability of being the second light line segment, the third light line segment, or the background category) will have relatively smaller values.
当与操作结束后,就可以根据新的目标图像提取任一光条线段的激光线中心。When the AND operation is finished, the laser line center of any light line segment can be extracted according to the new target image.
可以按照新的目标图像的列,获取任一光条线段在新的目标图像的每一列的中心,在与操作之后,可以按照下列公式提取任一光条线段的激光线中心。According to the column of the new target image, the center of any light line segment in each column of the new target image can be obtained, and after the AND operation, the laser line center of any light line segment can be extracted according to the following formula.
(2) (2)
其中,指某一类线段的概率图中第x行第y列处的概率值,公式中剩余部分 表征的含义与公式(1)中相同。 in, Refers to the probability value at row x, column y in the probability map of a certain type of line segment. The meaning of the rest of the formula is the same as that in formula (1).
当将任一光条线段的概率图中的任一元素与所述目标图像中对应位置的元素相加时,使用或操作获取新的目标图像,也增强了激光线中心的语义部分。When any element in the probability map of any light line segment is added to the element at the corresponding position in the target image, using the or operation to obtain a new target image also enhances the semantic part of the laser line center.
或操作权衡了目标图像中的细节信息和语义掩码中的结构信息。在或操作结束后,也可以根据新的目标图像提取任一光条线段的激光线中心。The OR operation trades off the detail information in the target image and the structural information in the semantic mask. After or after the operation, the laser line center of any light line segment can also be extracted according to the new target image.
同样可以按照新的目标图像的列,获取任一光条线段在新的目标图像每一列的中心,在或操作之后,可以按照下列公式提取任一光条线段的激光线中心。Similarly, according to the column of the new target image, obtain the center of any light line segment in each column of the new target image. After the OR operation, the laser line center of any light line segment can be extracted according to the following formula.
(3) (3)
其中,是权重参数,可以根据实际需要进行设置,本发明实施例对此不作具体 限定,其余参数表征含义与公式(2)相同。 in, is a weight parameter, which can be set according to actual needs, which is not specifically limited in this embodiment of the present invention, and the meanings of other parameters are the same as those of formula (2).
本发明实施例中,可以根据实际需要选择与操作或者或操作,本发明对此不作具体限定,只需要保证达到加强语义的效果。但或操作只有当目标图像与语义分割模型输出的图像分辨率相同时,才会有加强语义的效果,因此当目标图像与语义分割模型输出的图像分辨率不同时,需要使用与操作加强语义。In this embodiment of the present invention, the AND operation or the OR operation may be selected according to actual needs, which is not specifically limited in the present invention, and only needs to be guaranteed to achieve the effect of enhancing semantics. However, the OR operation will only have the effect of enhancing semantics when the resolution of the target image and the image output by the semantic segmentation model are the same. Therefore, when the resolution of the target image and the image output by the semantic segmentation model are different, the AND operation needs to be used to enhance the semantics.
本发明实施例中的基于线结构光的厚度测量方法,通过与操作或者或操作增强了激光线中心的语义部分,再根据加权平均的方法获取任一光条线段的激光线中心,使提取的激光线中心更准确,从而使厚度测量更加准确。In the thickness measurement method based on line structured light in the embodiment of the present invention, the semantic part of the laser line center is enhanced by the AND operation or OR operation, and then the laser line center of any light line segment is obtained according to the weighted average method, so that the extracted laser line The center is more accurate, resulting in a more accurate thickness measurement.
在上述实施例的基础上,本发明实施例提供的基于线结构光的厚度测量方法,所述目标图像基于相机获取;On the basis of the above embodiments, in the thickness measurement method based on line structured light provided by the embodiments of the present invention, the target image is acquired based on a camera;
相应的,所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,通过如下方式确定:Correspondingly, the three-dimensional space representation of the laser line centers of the first light bar line segment, the second light bar line segment, and the third light bar line segment in the camera coordinate system is determined in the following manner:
获取所述相机的内参矩阵,并确定所述相机的标定过程中所述线结构光照射标定物产生的激光平面;Acquire the internal parameter matrix of the camera, and determine the laser plane generated by the line structured light irradiating the calibration object during the calibration process of the camera;
基于所述内参矩阵以及所述激光平面,分别确定所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示。Based on the internal reference matrix and the laser plane, the three-dimensional space representations of the laser line centers of the first light line segment, the second light line segment, and the third light line segment in the camera coordinate system are respectively determined.
具体地,本发明实施例中,目标图像是通过相机获取的。如图2所示,当激光线发射器投射条形激光束到目标物体表面形成激光条纹图像时,可以使用相机拍摄激光条纹图像。相机拍摄到的激光条纹图像可以是彩色图像,将其进行灰度转化,转化后的灰度图像即是目标图像。其中,相机可以根据实际需要进行选择,例如可以是电荷耦合器件(Charge-coupled Device,CCD)相机,本发明实施例对此不作具体限定。Specifically, in this embodiment of the present invention, the target image is acquired by a camera. As shown in Figure 2, when the laser line transmitter projects a bar-shaped laser beam to the surface of the target object to form a laser fringe image, a camera can be used to capture the laser fringe image. The laser stripe image captured by the camera can be a color image, which is converted into grayscale, and the converted grayscale image is the target image. The camera may be selected according to actual needs, and may be, for example, a charge-coupled device (Charge-coupled Device, CCD) camera, which is not specifically limited in this embodiment of the present invention.
在确定第一光条线段、第二光条线段和第三光条线段的激光线中心在相机坐标系下的三维空间表示之前,需要获取所使用的相机的内参矩阵。相机的内参矩阵可以通过对相机进行标定获取,同时在标定的过程中,还需要确定线结构光照射标定物产生的激光平面。在确定了相机的内参矩阵和激光平面后,就可以确定出第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示。Before determining the three-dimensional space representation of the laser line centers of the first light line segment, the second light line segment and the third light line segment in the camera coordinate system, the internal parameter matrix of the camera used needs to be obtained. The internal parameter matrix of the camera can be obtained by calibrating the camera. At the same time, in the process of calibration, it is also necessary to determine the laser plane generated by the linear structured light irradiating the calibration object. After the internal parameter matrix and the laser plane of the camera are determined, the three-dimensional space representation of the laser line centers of the first light line segment, the second light line segment and the third light line segment in the camera coordinate system can be determined .
其中,对相机进行标定获取相机的内参矩阵的方法可以是单平面棋盘格标定法。该标定方法的步骤包括:打印一张棋盘格,把它贴在一个平面上,作为标定物,通过调整相机或标定物的方向,为标定物拍摄一些不同方向的照片,从照片中提取棋盘格角点,估算理想无畸变的情况下,五个内参和六个外参的数值,得到相机的内参矩阵和外参矩阵。The method for calibrating the camera to obtain the internal parameter matrix of the camera may be a single-plane checkerboard calibration method. The steps of the calibration method include: printing a checkerboard, sticking it on a plane as a calibration object, by adjusting the direction of the camera or the calibration object, taking some photos in different directions for the calibration object, and extracting the checkerboard from the photo Corner points, estimate the values of five internal parameters and six external parameters in the ideal case of no distortion, and obtain the camera's internal parameter matrix and external parameter matrix.
内参矩阵是一个3×3大小的矩阵,可以表示为:The internal parameter matrix is a 3×3 matrix that can be expressed as:
(4) (4)
其中,分别表示x轴和y轴的焦距以及光轴在x轴和y轴上的偏移。 in, represent the focal length of the x-axis and y-axis and the offset of the optical axis on the x-axis and y-axis, respectively.
本发明实施例中,由于相机拍摄的图像可能会有畸变,畸变是指对直线投影的一种偏移,是相机本身的固有特性,因此在对相机标定的过程中即可进行畸变校正。而且,由于相机的畸变只与相机获取的目标图像相关,若目标图像无畸变,则可以忽略相机的畸变系数。In the embodiment of the present invention, since the image captured by the camera may be distorted, the distortion refers to an offset of the straight line projection, which is an inherent characteristic of the camera itself, so the distortion correction can be performed during the camera calibration process. Moreover, since the distortion of the camera is only related to the target image acquired by the camera, if the target image has no distortion, the distortion coefficient of the camera can be ignored.
本发明实施例中,若相机获取的目标图像存在畸变,则可以对相机的径向畸变进行校正。径向畸变包括桶形畸变和枕形畸变。径向畸变来自于透镜形状,对于径向畸变,相机中心的畸变为0,随着向边缘移动,畸变越来越严重。其中,径向畸变的预设畸变系数可以通过上述相机标定过程计算,从而对位置信息进行校正。先求出相机的内参矩阵和外参矩阵,再应用最小二乘法,即可估算实际存在径向畸变下的畸变系数。In the embodiment of the present invention, if the target image obtained by the camera has distortion, the radial distortion of the camera can be corrected. Radial distortion includes barrel distortion and pincushion distortion. The radial distortion comes from the lens shape. For radial distortion, the distortion in the center of the camera is 0, and the distortion becomes more and more serious as it moves to the edge. Wherein, the preset distortion coefficient of radial distortion can be calculated through the above-mentioned camera calibration process, so as to correct the position information. The internal parameter matrix and external parameter matrix of the camera are obtained first, and then the least squares method is applied to estimate the distortion coefficient under the actual radial distortion.
在获取到相机的内参矩阵后,还需要确定相机的标定过程中的线结构光照射标定物产生的激光平面。如图2所示,在相机的标定过程中,将放置立方体,即放置目标物体的平面改为放置标定物,标定物可以是小尺寸棋盘格。在相机标定过程中,线结构光照射标定物产生的激光平面就是需要确定的激光平面。After acquiring the internal parameter matrix of the camera, it is also necessary to determine the laser plane generated by the linear structured light irradiating the calibration object in the calibration process of the camera. As shown in Figure 2, during the calibration process of the camera, the cube, that is, the plane on which the target object is placed, is changed to a calibration object, and the calibration object can be a small-sized checkerboard. In the camera calibration process, the laser plane generated by the linear structured light irradiating the calibration object is the laser plane that needs to be determined.
当确定了相机的内参矩阵和激光平面后,就可以根据相机的内参矩阵将第一光条线段、第二光条线段和第三光条线段的激光线中心从二维像素坐标系转换到三维空间坐标系中,再根据激光平面确定第一光条线段、第二光条线段和第三光条线段的激光线中心在相机坐标系下的三维空间表示。After the camera's internal parameter matrix and laser plane are determined, the laser line centers of the first, second, and third light line segments can be converted from the two-dimensional pixel coordinate system to the three-dimensional coordinate system according to the camera's internal parameter matrix. In the space coordinate system, the three-dimensional space representation of the laser line centers of the first light line segment, the second light line segment and the third light line segment in the camera coordinate system is determined according to the laser plane.
本发明实施例中的基于线结构光的厚度测量方法,通过对相机进行标定,获取相机的内参矩阵和标定过程中所述线结构光照射标定物产生的激光平面,使确定的第一光条线段、第二光条线段和第三光条线段的激光线中心在相机坐标系下的三维空间表示更准确,从而减小了测量的目标物体的厚度的误差。In the thickness measurement method based on line structured light in the embodiment of the present invention, by calibrating the camera, the internal parameter matrix of the camera and the laser plane generated by the line structured light irradiating the calibration object during the calibration process are obtained, so that the determined first light bar The three-dimensional space representation of the laser line centers of the line segment, the second light line segment and the third light line segment in the camera coordinate system is more accurate, thereby reducing the error of the measured thickness of the target object.
在上述实施例的基础上,本发明实施例提供的基于线结构光的厚度测量方法,所述确定所述相机的标定过程中所述线结构光照射标定物产生的激光平面,具体包括:On the basis of the above embodiments, in the thickness measurement method based on line structured light provided by the embodiment of the present invention, the determining of the laser plane generated by the line structured light irradiating the calibration object during the calibration process of the camera specifically includes:
确定所述相机的标定过程中所述线结构光照射标定物产生的激光线投影,并提取所述激光线投影的激光线中心;determining the laser line projection generated by the line structured light irradiating the calibration object during the calibration process of the camera, and extracting the laser line center of the laser line projection;
基于所述激光线投影的激光线中心在相机坐标系下的三维空间表示,拟合得到所述激光平面。Based on the three-dimensional representation of the laser line center projected by the laser line in the camera coordinate system, the laser plane is obtained by fitting.
具体地,本发明实施例中,可以先确定相机的标定过程中线结构光照射标定物产生的激光线投影,提取激光线投影的激光线中心,再将提取到的激光线中心映射到相机坐标系下,得到激光线中心在相机坐标系下的三维空间表示,即得到激光线中心在相机坐标系下的坐标,根据这些激光线中心在相机坐标系下的三维空间表示拟合得到所述激光平面。Specifically, in the embodiment of the present invention, the laser line projection generated by the linear structured light irradiating the calibration object during the calibration process of the camera can be determined first, the laser line center of the laser line projection can be extracted, and then the extracted laser line center can be mapped to the camera coordinate system. Then, the three-dimensional space representation of the laser line center under the camera coordinate system is obtained, that is, the coordinates of the laser line center under the camera coordinate system are obtained, and the laser plane is obtained by fitting the three-dimensional space representation of the laser line center under the camera coordinate system. .
其中,标定物与上述相同,可以是小尺寸棋盘格,即用线结构光照射标定物产生激光线投影,并获取激光线投影的图像。对激光线投影的图像进行激光线中心提取,获取激光线投影的激光线中心。提取激光线中心的方法可以是上述的灰度中心法。The calibration object is the same as the above, and can be a small-sized checkerboard, that is, the calibration object is irradiated with a line structured light to generate a laser line projection, and an image of the laser line projection is obtained. Extract the laser line center from the image projected by the laser line to obtain the laser line center projected by the laser line. The method for extracting the center of the laser line may be the above-mentioned gray-scale center method.
在获取激光线投影的激光线中心后,即获取了激光线投影的激光线中心在像素坐标系中的位置,可以根据相机的内参矩阵确定激光线投影的激光线中心在相机坐标系下的三维空间表示。After obtaining the laser line center projected by the laser line, the position of the laser line center projected by the laser line in the pixel coordinate system is obtained, and the three-dimensional image of the laser line center projected by the laser line in the camera coordinate system can be determined according to the camera's internal parameter matrix. Spatial representation.
图3是本发明实施例中的激光平面的拟合结果示意图。由于激光平面包含了不同的激光线投影的激光线中心,因此可以通过这些激光线投影的激光线中心在相机坐标系下的三维空间表示对激光平面进行拟合,从而确定激光平面。FIG. 3 is a schematic diagram of a fitting result of a laser plane in an embodiment of the present invention. Since the laser plane contains the laser line centers projected by different laser lines, the laser plane can be determined by fitting the three-dimensional space representation of the laser line centers projected by these laser lines in the camera coordinate system.
可以使用三元一次方程组定义激光平面,激光平面可以表示为:The laser plane can be defined using a system of linear ternary equations, and the laser plane can be expressed as:
(5) (5)
其中,、和为三元一次方程的参数,、和是激光线中心在 相机坐标系下的三维空间表示,即在相机坐标系下的坐标。 in, , and are the parameters of the ternary linear equation, , and is the three-dimensional representation of the laser line center in the camera coordinate system, that is, the coordinates in the camera coordinate system.
为了得到更准确的激光平面,可以使用RANSAC估计对激光平面进行拟合。RANSAC的拟合过程可以是,先通过某几个激光线投影的激光线中心的三维空间坐标确定上述的激光平面方程;再用获取到的激光平面方程测试剩余的激光线投影的激光线中心的三维空间坐标,如果某个激光线投影的激光线中心的三维空间坐标符合确定的激光平面的方程,则认为其是局内点,反之则是局外点;如果局内点足够多,则激光平面方程合理,再用局内点重新估计激光平面方程的参数;通过迭代的方式最终确定激光平面。In order to get a more accurate laser plane, the RANSAC estimation can be used to fit the laser plane. The fitting process of RANSAC can be as follows: first determine the above-mentioned laser plane equation by the three-dimensional space coordinates of the laser line centers projected by some laser lines; Three-dimensional space coordinates, if the three-dimensional space coordinates of the center of the laser line projected by a laser line conform to the equation of the determined laser plane, it is considered to be an in-office point, otherwise it is an out-of-office point; if there are enough in-office points, the laser plane equation If it is reasonable, the parameters of the laser plane equation are re-estimated by using the intra-office point; the laser plane is finally determined by an iterative method.
本发明实施例中的基于线结构光的厚度测量方法,通过提取激光线投影的激光线中心,并基于激光线投影的激光线中心在相机坐标系下的三维空间表示,拟合得到所述激光平面,使获取到的激光平面更加准确,便于后续目标物体的厚度测量。The thickness measurement method based on line structured light in the embodiment of the present invention extracts the laser line center projected by the laser line, and obtains the laser line by fitting based on the three-dimensional space representation of the laser line center projected by the laser line in the camera coordinate system. The plane makes the obtained laser plane more accurate, which is convenient for subsequent thickness measurement of the target object.
在上述实施例的基础上,本发明实施例提供的基于线结构光的厚度测量方法,所述基于所述内参矩阵以及所述激光平面,分别确定所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,具体包括:On the basis of the above embodiment, in the thickness measurement method based on line structured light provided by the embodiment of the present invention, the first light line segment, the second light line segment and the second light line segment are respectively determined based on the internal reference matrix and the laser plane. The three-dimensional space representation of the light bar line segment and the laser line center of the third light bar line segment in the camera coordinate system, specifically including:
对于所述第一光条线段、所述第二光条线段和所述第三光条线段中的任一光条线段,基于所述内参矩阵,确定所述任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示;For any light line segment among the first light line segment, the second light line segment, and the third light line segment, based on the internal reference matrix, it is determined that the laser line center of the any light line segment is normalized The three-dimensional space representation in the camera coordinate system;
基于所述激光平面以及所述任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示,确定缩放因子;determining a scaling factor based on the laser plane and the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system;
基于所述缩放因子以及所述任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示,确定所述任一光条线段的激光线中心在相机坐标系下的三维空间表示。Based on the scaling factor and the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system, the three-dimensional space representation of the laser line center of any light line segment in the camera coordinate system is determined.
具体地,本发明实施例中,基于相机的内参矩阵,可以将第一光条线段、第二光条线段和第三光条线段中的任一光条线段的激光线中心从像素坐标系映射到归一化相机坐标系中,即获取任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示。在获取任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示后,还可以结合上述拟合得到的激光平面,确定缩放因子。基于缩放因子以及任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示,可以确定任一光条线段的激光线中心在相机坐标系下的三维空间表示。Specifically, in the embodiment of the present invention, based on the internal parameter matrix of the camera, the laser line center of any one of the first light line segment, the second light line segment, and the third light line segment can be mapped from the pixel coordinate system to the normalized laser line. In the normalized camera coordinate system, that is, the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system is obtained. After obtaining the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system, the scaling factor can also be determined in combination with the laser plane obtained by the above fitting. Based on the scaling factor and the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system, the three-dimensional space representation of the laser line center of any light line segment in the camera coordinate system can be determined.
其中,可以通过以下公式基于内参矩阵确定所述任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示。Wherein, the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system can be determined based on the internal parameter matrix by the following formula.
(6) (6)
是无畸变目标图像中的任一光条线段的激光线中心的坐标点,即任一光 条线段的激光线中心在像素坐标系中的坐标,是任一光条线段的激光线中 心在像素坐标系中的坐标映射到归一化相机坐标系中的坐标,即任一光条线段的激光线中 心在归一化相机坐标系下的三维空间表示。 is the coordinate point of the laser line center of any light line segment in the undistorted target image, that is, the coordinates of the laser line center of any light line segment in the pixel coordinate system, is the coordinate of the laser line center of any light line segment in the pixel coordinate system mapped to the coordinates in the normalized camera coordinate system, that is, the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system.
在确定了任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示后,还可以结合上述激光平面方程,确定缩放因子。其中,根据缩放因子修改激光平面方程可以是:After the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system is determined, the scaling factor can also be determined in combination with the above-mentioned laser plane equation. where, modifying the laser plane equation according to the scaling factor can be:
(7) (7)
则缩放因子为:Then the scaling factor is:
(8) (8)
在确定缩放因子后,可以通过下列公式确定任一光条线段的激光线中心在相机坐标系下的三维空间表示。After the scaling factor is determined, the three-dimensional space representation of the laser line center of any light line segment in the camera coordinate system can be determined by the following formula.
(9) (9)
其中,即为任一光条线段的激光线中心在相机坐标系下的三 维空间表示。 in, That is, the three-dimensional space representation of the laser line center of any light line segment in the camera coordinate system.
本发明实施例中的基于线结构光的厚度测量方法,通过确定缩放因子,并由缩放因子以及任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示,确定任一光条线段的激光线中心在相机坐标系下的三维空间表示,消除了在归一化相机坐标系中的缩放问题,使不同的点之间的距离与其在真实的世界坐标系中的距离保持一致。The thickness measurement method based on line structured light in the embodiment of the present invention determines the scaling factor and is represented by the scaling factor and the three-dimensional space of the laser line center of any light line segment in the normalized camera coordinate system, to determine the thickness of any light line segment. The 3D space representation of the laser line center in the camera coordinate system eliminates the scaling problem in the normalized camera coordinate system, making the distances between different points consistent with their distances in the real world coordinate system.
在上述实施例的基础上,本发明实施例提供的基于线结构光的厚度测量方法,所述基于所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第二光条线段与所述第一光条线段的第一距离以及所述第二光条线段与所述第三光条线段的第二距离,具体包括:On the basis of the above-mentioned embodiments, in the thickness measurement method based on line structured light provided by the embodiments of the present invention, the thickness measurement method based on the first light bar line segment, the second light bar line segment and the third light bar line segment The three-dimensional space representation of the center of the laser line in the camera coordinate system, determining the first distance between the second light line segment and the first light line segment and the distance between the second light line segment and the third light line segment The second distance includes:
基于所述第二光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第二光条线段靠近于所述第一光条线段的第一端点以及所述第二光条线段靠近于所述第三光条线段的第二端点;Based on the three-dimensional representation of the laser line center of the second light line segment in the camera coordinate system, it is determined that the second light line segment is close to the first end point of the first light line segment and the second light line The line segment is close to the second end point of the third light bar line segment;
基于所述第一光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第一光条线段所在的第一直线,并基于所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第三光条线段所在的第二直线;Based on the three-dimensional representation of the laser line center of the first light line segment in the camera coordinate system, a first straight line where the first light line segment is located is determined, and based on the laser line center of the third light line segment In the three-dimensional space representation in the camera coordinate system, determine the second straight line where the third light line segment is located;
确定所述第一端点与所述第一直线的距离为所述第一距离,并确定所述第二端点与所述第二直线的距离为所述第二距离。The distance between the first endpoint and the first straight line is determined as the first distance, and the distance between the second endpoint and the second straight line is determined as the second distance.
具体地,本发明实施例中,可以根据第二光条线段的激光线中心在相机坐标系下的三维空间表示,确定第二光条线段的两个端点,并将靠近于第一光条线段的作为第一端点;将靠近于第三光条线段的作为第二端点。Specifically, in the embodiment of the present invention, the two end points of the second light line segment can be determined according to the three-dimensional space representation of the laser line center of the second light line segment in the camera coordinate system, and the two end points of the second light line segment are located close to the first light line segment. as the first endpoint; take the segment close to the third light line segment as the second endpoint.
同样地,也可以根据第一光条线段的激光线中心在相机坐标系下的三维空间表示,确定第一光条线段所在的第一直线;根据第三光条线段的激光线中心在相机坐标系下的三维空间表示,确定第三光条线段所在的第二直线。Similarly, the first straight line where the first light line segment is located can also be determined according to the three-dimensional representation of the laser line center of the first light line segment in the camera coordinate system; according to the laser line center of the third light line segment in the camera The three-dimensional space representation in the coordinate system determines the second straight line where the third light bar line segment is located.
最后计算第一端点与第一直线的距离就是第一距离,计算第二端点与第二直线的距离就是第二距离。Finally, calculating the distance between the first endpoint and the first straight line is the first distance, and calculating the distance between the second endpoint and the second straight line is the second distance.
其中,根据第二光条线段的激光线中心在相机坐标系下的三维空间表示,确定第二光条线段的两个端点以及根据第一光条线段的激光线中心在相机坐标系下的三维空间表示,确定第一光条线段所在的第一直线和根据第三光条线段的激光线中心在相机坐标系下的三维空间表示,确定第三光条线段所在的第二直线的方法均可以使用Huber进行拟合,通过拟合得到第一光条线段、第二光条线段和第三光条线段在相机坐标系下的参数,即第一光条线段、第二光条线段和第三光条线段在相机坐标系下的斜率和偏置。Wherein, according to the three-dimensional space representation of the laser line center of the second light line segment in the camera coordinate system, the two end points of the second light line segment and the three-dimensional representation of the laser line center of the first light line segment under the camera coordinate system are determined Spatial representation, the method of determining the first straight line where the first light line segment is located and the three-dimensional space representation of the laser line center of the third light line segment in the camera coordinate system to determine the second straight line where the third light line segment is located are both. Huber can be used for fitting, and the parameters of the first light line segment, the second light line segment and the third light line segment in the camera coordinate system are obtained by fitting, that is, the first light line segment, the second light line segment and the third light line segment. The slope and offset of the three-light line segment in the camera coordinate system.
在使用Huber拟合确定第一光条线段、第二光条线段和第三光条线段在相机坐标系下的参数后,就可以确定中线段的第一端点和第二端点,也可以确定第一直线和第二直线。再根据点到直线的距离公式,就可以计算第一距离和第二距离。After using Huber fitting to determine the parameters of the first light line segment, the second light line segment and the third light line segment in the camera coordinate system, the first endpoint and the second endpoint of the midline segment can be determined, or the The first straight line and the second straight line. Then according to the distance formula from the point to the line, the first distance and the second distance can be calculated.
例如,确定出的第一端点是,第一直线是经过第一光条线段的起始点和 第一光条线段的终止点的被拟合直线;同样的,第二端点是,第二直线是经过第三 光条线段的起始点和第三光条线段的终止点的被拟合直线。 For example, the first endpoint identified is , the first straight line is the starting point of the first light line segment and the end point of the first ray segment is the fitted line; similarly, the second endpoint is , the second straight line is the starting point of the line segment passing through the third light bar and the termination point of the third light bar segment the fitted straight line.
则第一距离可以通过下列公式确定:Then the first distance can be determined by the following formula:
(10) (10)
同理第二距离可以通过下列公式确定:Similarly, the second distance can be determined by the following formula:
(11) (11)
图4是本发明实施例提供的基于线结构光的厚度测量方法的测量误差示意图。如图5所示,图5是图4中A点的线段拟合示意图;图6是图4中B点的线段拟合示意图。FIG. 4 is a schematic diagram of a measurement error of a thickness measurement method based on line structured light provided by an embodiment of the present invention. As shown in FIG. 5 , FIG. 5 is a schematic diagram of line segment fitting at point A in FIG. 4 ; FIG. 6 is a schematic diagram of line segment fitting at point B in FIG. 4 .
本发明实施例中的基于线结构光的厚度测量方法,通过拟合确定第二光条线段的两个端点以及第一光条线段所在的第一直线和第三光条线段所在的第二直线,再根据点到直线的距离确定第一距离和第二距离,提高了目标物体的厚度测量的准确性。In the thickness measurement method based on line structured light in the embodiment of the present invention, the two end points of the second light bar line segment, the first straight line where the first light bar line segment is located, and the second light bar line segment where the third light bar line segment is located are determined by fitting. The first distance and the second distance are determined according to the distance from the point to the straight line, which improves the accuracy of the thickness measurement of the target object.
图7是本发明实施例提供的基于线结构光的厚度测量方法的具体流程示意图,如图7所示,该方法包括:FIG. 7 is a schematic flow chart of a thickness measurement method based on line structured light provided by an embodiment of the present invention. As shown in FIG. 7 , the method includes:
将目标图像输入语义分割模型,得到语义分割模型输出第一光条线段、第二光条线段和第三光条线段的概率图;Input the target image into the semantic segmentation model, and obtain the probability map that the semantic segmentation model outputs the first light line segment, the second light line segment and the third light line segment;
将目标图像与第一光条线段、第二光条线段和第三光条线段的概率图相乘或相加得到新的目标图像;Multiplying or adding the target image with the probability map of the first light line segment, the second light line segment and the third light line segment to obtain a new target image;
基于三个新的目标图像,分别提取任一光条线段的激光线中心,在提取时还可以对新的目标图像二值化;Based on three new target images, the laser line center of any light line segment is extracted respectively, and the new target image can be binarized during extraction;
对提取到的任一光条线段的激光线中心进行畸变校正,并确定任一光条线段的激光线中心的三维空间表示;Perform distortion correction on the laser line center of any extracted light line segment, and determine the three-dimensional space representation of the laser line center of any light line segment;
基于任一光条线段的激光线中心的三维空间表示进行拟合,确定第二光条线段的两个端点和第一光条线段所在的直线以及第三光条线段所在的直线;Fitting is performed based on the three-dimensional space representation of the laser line center of any light line segment, and the two end points of the second light line segment, the line where the first light line segment is located, and the straight line where the third light line segment is located are determined;
基于第二光条线段的两个端点和第一光条线段所在的直线以及第三光条线段所在的直线,根据点到直线的距离确定目标物体的厚度。The thickness of the target object is determined according to the distance from the point to the straight line based on the two end points of the second light bar segment, the straight line where the first light bar segment is located, and the straight line where the third light bar segment is located.
如图8所示,在上述实施例的基础上,本发明实施例中提供了一种基于线结构光的厚度测量系统,包括:As shown in FIG. 8 , on the basis of the above embodiment, an embodiment of the present invention provides a thickness measurement system based on line structured light, including:
目标图像获取模块801,用于获取线结构光照射的目标物体的目标图像;A target image acquisition module 801, configured to acquire a target image of a target object illuminated by the line structured light;
语义分割模块802,用于将所述目标图像输入至语义分割模型,得到所述语义分割模型输出的所述目标图像中的第一光条线段、第二光条线段和第三光条线段的概率图,所述第二光条线段位于所述第一光条线段与所述第三光条线段之间,且所述第二光条线段位于所述目标图像中的目标物体表面;The semantic segmentation module 802 is configured to input the target image into the semantic segmentation model, and obtain the first light line segment, the second light line segment and the third light line segment in the target image output by the semantic segmentation model. a probability map, the second light line segment is located between the first light line segment and the third light line segment, and the second light line segment is located on the surface of the target object in the target image;
厚度确定模块803,用于基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,确定所述目标物体的厚度;a thickness determination module 803, configured to determine the thickness of the target object based on the probability map of the first light bar line segment, the second light bar line segment and the third light bar line segment and the target image;
其中,所述语义分割模型基于携带有第一光条线段标签、第二光条线段标签和第三光条线段标签的图像样本训练得到。Wherein, the semantic segmentation model is obtained by training based on the image samples carrying the first light bar line segment label, the second light bar line segment label and the third light bar line segment label.
在上述实施例的基础上,本发明实施例提供的一种基于线结构光的厚度测量系统,所述厚度确定模块具体包括:On the basis of the above embodiment, the embodiment of the present invention provides a thickness measurement system based on line structured light, and the thickness determination module specifically includes:
激光线中心提取子模块,用于基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,分别提取所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心;A laser line center extraction sub-module, configured to extract the first light bar based on the probability map of the first light bar line segment, the second light bar line segment and the third light bar line segment and the target image, respectively the laser line center of the line segment, the second light bar line segment and the third light bar line segment;
距离确定子模块,用于基于所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第二光条线段与所述第一光条线段的第一距离以及所述第二光条线段与所述第三光条线段的第二距离;A distance determination submodule, configured to determine the second light line segment based on the three-dimensional space representation of the laser line centers of the first light line segment, the second light line segment and the third light line segment in the camera coordinate system a first distance between the light bar line segment and the first light bar line segment and a second distance between the second light bar line segment and the third light bar line segment;
厚度确定子模块,用于基于所述第一距离和所述第二距离确定所述目标物体的厚度。A thickness determination submodule, configured to determine the thickness of the target object based on the first distance and the second distance.
在上述实施例的基础上,本发明实施例提供的一种基于线结构光的厚度测量系统,所述激光线中心提取子模块具体包括:On the basis of the above embodiment, the embodiment of the present invention provides a thickness measurement system based on line structured light, wherein the laser line center extraction sub-module specifically includes:
新的目标图像获取子单元,用于对于所述第一光条线段、所述第二光条线段和所述第三光条线段中的任一光条线段,将所述任一光条线段的概率图中的任一元素与所述目标图像中对应位置的元素进行相乘或相加,得到新的目标图像;A new target image acquisition sub-unit is used for, for any one of the first light bar line segment, the second light bar line segment and the third light bar line segment, to map the probability map of the any light bar line segment. Any element of is multiplied or added with the element at the corresponding position in the target image to obtain a new target image;
激光线中心提取子单元,用于基于所述新的目标图像,提取所述任一光条线段的激光线中心。The laser line center extraction subunit is used for extracting the laser line center of any one of the light line segments based on the new target image.
在上述实施例的基础上,本发明实施例提供的一种基于线结构光的厚度测量系统,所述目标图像基于相机获取;On the basis of the above embodiment, the embodiment of the present invention provides a thickness measurement system based on line structured light, wherein the target image is acquired based on a camera;
相应的,所述距离确定子模块具体包括:Correspondingly, the distance determination submodule specifically includes:
激光平面确定子单元,用于获取所述相机的内参矩阵,并确定所述相机的标定过程中所述线结构光照射标定物产生的激光平面;a laser plane determination subunit, used for acquiring the internal parameter matrix of the camera, and determining the laser plane generated by the linear structured light irradiating the calibration object during the calibration process of the camera;
三维空间表示确定子单元,用于基于所述内参矩阵以及所述激光平面,分别确定所述第一光条线段、所述第二光条线段和所述第三光条线段的激光线中心在相机坐标系下的三维空间表示。The three-dimensional space representation determination subunit is used to determine the laser line center of the first light line segment, the second light line segment and the third light line segment respectively based on the internal parameter matrix and the laser plane. 3D space representation in the camera coordinate system.
在上述实施例的基础上,本发明实施例提供的一种基于线结构光的厚度测量系统,所述激光平面确定子单元具体用于:On the basis of the above embodiment, the embodiment of the present invention provides a thickness measurement system based on line structured light, wherein the laser plane determination subunit is specifically used for:
确定所述相机的标定过程中所述线结构光照射标定物产生的激光线投影,并提取所述激光线投影的激光线中心;determining the laser line projection generated by the line structured light irradiating the calibration object during the calibration process of the camera, and extracting the laser line center of the laser line projection;
基于所述激光线投影的激光线中心在相机坐标系下的三维空间表示,拟合得到所述激光平面。Based on the three-dimensional representation of the laser line center projected by the laser line in the camera coordinate system, the laser plane is obtained by fitting.
在上述实施例的基础上,本发明实施例提供的一种基于线结构光的厚度测量系统,所述三维空间表示确定子单元具体用于:On the basis of the above embodiment, the embodiment of the present invention provides a thickness measurement system based on line structured light, wherein the three-dimensional space representation determination subunit is specifically used for:
对于所述第一光条线段、所述第二光条线段和所述第三光条线段中的任一光条线段,基于所述内参矩阵,确定所述任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示;For any light line segment among the first light line segment, the second light line segment, and the third light line segment, based on the internal reference matrix, it is determined that the laser line center of the any light line segment is normalized The three-dimensional space representation in the camera coordinate system;
基于所述激光平面以及所述任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示,确定缩放因子;determining a scaling factor based on the laser plane and the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system;
基于所述缩放因子以及所述任一光条线段的激光线中心在归一化相机坐标系下的三维空间表示,确定所述任一光条线段的激光线中心在相机坐标系下的三维空间表示。Based on the scaling factor and the three-dimensional space representation of the laser line center of any light line segment in the normalized camera coordinate system, the three-dimensional space representation of the laser line center of any light line segment in the camera coordinate system is determined.
在上述实施例的基础上,本发明实施例提供的一种基于线结构光的厚度测量系统,所述距离确定子模块具体还包括:On the basis of the above embodiment, the embodiment of the present invention provides a thickness measurement system based on line structured light, and the distance determination sub-module specifically further includes:
端点确定子单元,用于基于所述第二光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第二光条线段靠近于所述第一光条线段的第一端点以及所述第二光条线段靠近于所述第三光条线段的第二端点;an endpoint determination subunit, configured to determine that the second light line segment is close to the first end of the first light line segment based on the three-dimensional space representation of the laser line center of the second light line segment in the camera coordinate system point and the second light bar line segment is close to the second end point of the third light bar line segment;
直线确定子单元,用于基于所述第一光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第一光条线段所在的第一直线,并基于所述第三光条线段的激光线中心在相机坐标系下的三维空间表示,确定所述第三光条线段所在的第二直线;a straight line determination subunit, configured to determine a first straight line where the first light line segment is located based on the three-dimensional representation of the laser line center of the first light line segment in the camera coordinate system, and based on the third light line segment The three-dimensional space representation of the laser line center of the light bar line segment in the camera coordinate system, to determine the second straight line where the third light bar line segment is located;
距离确定子单元,用于确定所述第一端点与所述第一直线的距离为所述第一距离,并确定所述第二端点与所述第二直线的距离为所述第二距离。A distance determination subunit, configured to determine the distance between the first endpoint and the first straight line as the first distance, and determine the distance between the second endpoint and the second straight line as the second distance distance.
具体地,本发明实施例中提供的基于线结构光的厚度测量系统中各模块的作用与上述方法类实施例中各步骤的操作流程是一一对应的,实现的效果也是一致的,具体参见上述实施例,本发明实施例中对此不再赘述。Specifically, the functions of each module in the linear structured light-based thickness measurement system provided in the embodiment of the present invention correspond one-to-one with the operation flow of each step in the above-mentioned method embodiments, and the achieved effects are also consistent. For details, refer to In the above-mentioned embodiment, details are not repeated in this embodiment of the present invention.
图9示例了一种电子设备的实体结构示意图,如图9所示,该电子设备可以包括:处理器(Processor)910、通信接口(Communication Interface)920、存储器(Memory)930和通信总线940,其中,处理器910,通信接口920,存储器930通过通信总线940完成相互间的通信。处理器910可以调用存储器930中的逻辑指令,以执行上述各实施例提供的基于线结构光的厚度测量方法,该方法包括:获取线结构光照射的目标物体的目标图像;将所述目标图像输入至语义分割模型,得到所述语义分割模型输出的所述目标图像中的第一光条线段、第二光条线段和第三光条线段的概率图,所述第二光条线段位于所述第一光条线段与所述第三光条线段之间,且所述第二光条线段位于所述目标图像中的目标物体表面;基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,确定所述目标物体的厚度;其中,所述语义分割模型基于携带有第一光条线段标签、第二光条线段标签和第三光条线段标签的图像样本训练得到。FIG. 9 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 9 , the electronic device may include: a processor (Processor) 910, a communication interface (Communication Interface) 920, a memory (Memory) 930, and a
此外,上述的存储器930中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory 930 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各实施例提供的基于线结构光的厚度测量方法,该方法包括:获取线结构光照射的目标物体的目标图像;将所述目标图像输入至语义分割模型,得到所述语义分割模型输出的所述目标图像中的第一光条线段、第二光条线段和第三光条线段的概率图,所述第二光条线段位于所述第一光条线段与所述第三光条线段之间,且所述第二光条线段位于所述目标图像中的目标物体表面;基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,确定所述目标物体的厚度;其中,所述语义分割模型基于携带有第一光条线段标签、第二光条线段标签和第三光条线段标签的图像样本训练得到。In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer During execution, the computer can execute the thickness measurement method based on the line structured light provided by the above embodiments, the method includes: acquiring a target image of the target object illuminated by the line structured light; inputting the target image into the semantic segmentation model to obtain the The probability map of the first light bar line segment, the second light bar line segment and the third light bar line segment in the target image output by the semantic segmentation model, the second light bar line segment is located between the first light bar line segment and all the light bar line segments. between the third light bar line segments, and the second light bar line segment is located on the surface of the target object in the target image; based on the first light bar line segment, the second light bar line segment and the third light bar line segment The probability map of the line segment and the target image to determine the thickness of the target object; wherein, the semantic segmentation model is based on the training image samples.
又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的基于线结构光的厚度测量方法,该方法包括:获取线结构光照射的目标物体的目标图像;将所述目标图像输入至语义分割模型,得到所述语义分割模型输出的所述目标图像中的第一光条线段、第二光条线段和第三光条线段的概率图,所述第二光条线段位于所述第一光条线段与所述第三光条线段之间,且所述第二光条线段位于所述目标图像中的目标物体表面;基于所述第一光条线段、所述第二光条线段和所述第三光条线段的概率图以及所述目标图像,确定所述目标物体的厚度;其中,所述语义分割模型基于携带有第一光条线段标签、第二光条线段标签和第三光条线段标签的图像样本训练得到。In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored, and the computer program is implemented when executed by a processor to perform the line structured light-based thickness measurement provided by the above embodiments The method includes: acquiring a target image of a target object irradiated by line structured light; inputting the target image into a semantic segmentation model to obtain a first light line segment, a first light line segment, a second light line segment in the target image output by the semantic segmentation model A probability map of a second light bar line segment and a third light bar line segment, the second light bar line segment is located between the first light bar line segment and the third light bar line segment, and the second light bar line segment is located at the the surface of the target object in the target image; based on the probability map of the first light line segment, the second light line segment and the third light line segment and the target image, determine the thickness of the target object; Wherein, the semantic segmentation model is obtained by training based on the image samples carrying the first light bar line segment label, the second light bar line segment label and the third light bar line segment label.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments or some parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110611414.8A CN113048899A (en) | 2021-06-02 | 2021-06-02 | Thickness measuring method and system based on line structured light |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110611414.8A CN113048899A (en) | 2021-06-02 | 2021-06-02 | Thickness measuring method and system based on line structured light |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113048899A true CN113048899A (en) | 2021-06-29 |
Family
ID=76518599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110611414.8A Pending CN113048899A (en) | 2021-06-02 | 2021-06-02 | Thickness measuring method and system based on line structured light |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113048899A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113828439A (en) * | 2021-09-09 | 2021-12-24 | 中国科学院自动化研究所 | Pattern spraying detection system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103673901A (en) * | 2013-11-22 | 2014-03-26 | 大连日佳电子有限公司 | Solder paste thickness testing method and solder paste thickness tester |
CN105783746A (en) * | 2016-05-23 | 2016-07-20 | 南京林业大学 | Wooden product thickness detection system and detection method thereof |
CN107578464A (en) * | 2017-06-30 | 2018-01-12 | 长沙湘计海盾科技有限公司 | A kind of conveyor belt workpieces measuring three-dimensional profile method based on line laser structured light |
CN109033107A (en) * | 2017-06-09 | 2018-12-18 | 腾讯科技(深圳)有限公司 | Image search method and device, computer equipment and storage medium |
CN110175595A (en) * | 2019-05-31 | 2019-08-27 | 北京金山云网络技术有限公司 | Human body attribute recognition approach, identification model training method and device |
CN112381948A (en) * | 2020-11-03 | 2021-02-19 | 上海交通大学烟台信息技术研究院 | Semantic-based laser stripe center line extraction and fitting method |
CN112419285A (en) * | 2020-11-27 | 2021-02-26 | 上海商汤智能科技有限公司 | Target detection method and device, electronic equipment and storage medium |
CN112509052A (en) * | 2020-12-22 | 2021-03-16 | 苏州超云生命智能产业研究院有限公司 | Method and device for detecting fovea maculata, computer equipment and storage medium |
-
2021
- 2021-06-02 CN CN202110611414.8A patent/CN113048899A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103673901A (en) * | 2013-11-22 | 2014-03-26 | 大连日佳电子有限公司 | Solder paste thickness testing method and solder paste thickness tester |
CN105783746A (en) * | 2016-05-23 | 2016-07-20 | 南京林业大学 | Wooden product thickness detection system and detection method thereof |
CN109033107A (en) * | 2017-06-09 | 2018-12-18 | 腾讯科技(深圳)有限公司 | Image search method and device, computer equipment and storage medium |
CN107578464A (en) * | 2017-06-30 | 2018-01-12 | 长沙湘计海盾科技有限公司 | A kind of conveyor belt workpieces measuring three-dimensional profile method based on line laser structured light |
CN110175595A (en) * | 2019-05-31 | 2019-08-27 | 北京金山云网络技术有限公司 | Human body attribute recognition approach, identification model training method and device |
CN112381948A (en) * | 2020-11-03 | 2021-02-19 | 上海交通大学烟台信息技术研究院 | Semantic-based laser stripe center line extraction and fitting method |
CN112419285A (en) * | 2020-11-27 | 2021-02-26 | 上海商汤智能科技有限公司 | Target detection method and device, electronic equipment and storage medium |
CN112509052A (en) * | 2020-12-22 | 2021-03-16 | 苏州超云生命智能产业研究院有限公司 | Method and device for detecting fovea maculata, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
郭雁蓉 等: "复杂环境中的线结构光中心提取方法", 《计算机工程与设计》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113828439A (en) * | 2021-09-09 | 2021-12-24 | 中国科学院自动化研究所 | Pattern spraying detection system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111563923B (en) | Method for obtaining dense depth map and related device | |
CN111429533B (en) | Camera lens distortion parameter estimation device and method | |
CN107223269B (en) | Three-dimensional scene positioning method and device | |
CN114332689B (en) | Citrus identification and positioning method, device, equipment and storage medium | |
CN111768452B (en) | Non-contact automatic mapping method based on deep learning | |
CN113689578B (en) | Human body data set generation method and device | |
CN109640066B (en) | Method and device for generating high-precision dense depth image | |
KR20230110618A (en) | Image correction method, device and system, electronic device | |
CN111950426A (en) | Target detection method, device and vehicle | |
CN116188558B (en) | Stereo photogrammetry method based on binocular vision | |
CN110119679B (en) | Object three-dimensional information estimation method and device, computer equipment and storage medium | |
CN111107337B (en) | Depth information complementing method and device, monitoring system and storage medium | |
US9147279B1 (en) | Systems and methods for merging textures | |
CN108765584A (en) | Laser point cloud data collection augmentation method, apparatus and readable storage medium storing program for executing | |
CN115456945A (en) | Chip pin defect detection method, detection device and equipment | |
CN114898321B (en) | Road drivable area detection method, device, equipment, medium and system | |
CN112132876A (en) | Initial pose estimation method in 2D-3D image registration | |
CN117152330A (en) | Point cloud 3D model mapping method and device based on deep learning | |
CN112184793A (en) | Depth data processing method and device and readable storage medium | |
CN115601430A (en) | Texture-free high-reflection object pose estimation method and system based on key point mapping | |
CN111630569B (en) | Binocular matching method, visual imaging device and device with storage function | |
CN113723432B (en) | Intelligent identification and positioning tracking method and system based on deep learning | |
CN112270693B (en) | Method and device for detecting motion artifact of time-of-flight depth camera | |
CN113048899A (en) | Thickness measuring method and system based on line structured light | |
JP7334516B2 (en) | Three-dimensional shape model generation device, three-dimensional shape model generation method, and program |
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: 20210629 |