[go: up one dir, main page]

CN114926538A - External parameter calibration method and device for monocular laser speckle projection system - Google Patents

External parameter calibration method and device for monocular laser speckle projection system Download PDF

Info

Publication number
CN114926538A
CN114926538A CN202210417235.5A CN202210417235A CN114926538A CN 114926538 A CN114926538 A CN 114926538A CN 202210417235 A CN202210417235 A CN 202210417235A CN 114926538 A CN114926538 A CN 114926538A
Authority
CN
China
Prior art keywords
camera
speckle
laser speckle
image
projector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210417235.5A
Other languages
Chinese (zh)
Other versions
CN114926538B (en
Inventor
张跃强
蒋卓灿
王骞鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen University
Original Assignee
Shenzhen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen University filed Critical Shenzhen University
Priority to CN202210417235.5A priority Critical patent/CN114926538B/en
Publication of CN114926538A publication Critical patent/CN114926538A/en
Application granted granted Critical
Publication of CN114926538B publication Critical patent/CN114926538B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • G06T7/85Stereo camera calibration
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/42Diffraction optics, i.e. systems including a diffractive element being designed for providing a diffractive effect
    • G02B27/4205Diffraction optics, i.e. systems including a diffractive element being designed for providing a diffractive effect having a diffractive optical element [DOE] contributing to image formation, e.g. whereby modulation transfer function MTF or optical aberrations are relevant
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/48Laser speckle optics

Landscapes

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

Abstract

The application discloses an external parameter calibration method and device of a monocular laser speckle projection system. The external parameter calibration method of the monocular laser speckle projection system calculates a space plane equation by using a calibration plate and calculates the three-dimensional coordinates of the dotted speckle image points according to the space plane equation; then estimating the optical center and the optical axis position of the laser speckle projector according to the three-dimensional coordinates of the speckle image points with the same name; and finally, calculating the position and posture relation between the camera and the laser speckle projector according to a preset laser speckle projector coordinate system, and generating a plane homography matrix between the camera image and the virtual image of the laser speckle projector by utilizing the position and posture relation so as to realize the calibration of the external parameters of the monocular laser speckle projection system. The external parameter calibration method of the monocular laser speckle projection system can obviously improve the measurement efficiency of external parameter calibration and can obviously improve the measurement precision.

Description

单目激光散斑投影系统的外参数标定方法和装置External parameter calibration method and device for monocular laser speckle projection system

技术领域technical field

本申请涉及计算机视觉领域,尤其涉及一种单目激光散斑投影系统的外参数标定方法和装置。The present application relates to the field of computer vision, and in particular, to a method and device for calibrating external parameters of a monocular laser speckle projection system.

背景技术Background technique

高精度的深度测量是计算机视觉领域中重要的研究课题之一。传统的深度测量方法主要包括Time-of-Flight(简称ToF)和双目立体视觉方法。ToF通过测量调制光的飞行时间或者相位变换来获得目标的深度信息,具有受环境光影响较小、测量速度快、能实现远距离测量等优势。然而,ToF的测量精度只能达到厘米量级,这无法满足一些高精度测量任务的需求。High-precision depth measurement is one of the important research topics in the field of computer vision. Traditional depth measurement methods mainly include Time-of-Flight (ToF for short) and binocular stereo vision methods. ToF obtains the depth information of the target by measuring the time-of-flight or phase transformation of modulated light, and has the advantages of less influence by ambient light, fast measurement speed, and long-distance measurement. However, the measurement accuracy of ToF can only reach the centimeter level, which cannot meet the needs of some high-precision measurement tasks.

双目立体视觉方法通过匹配两个处于不同位置处相机拍摄得到的图像对来获取目标区域的视差图,从而得到待测目标的深度信息。该方法通常使用块匹配或半全局匹配算法来搜索图像对的相似区域,能够实现亚像素级别的匹配精度。由于双目立体视觉方法根据视觉特征来进行图像匹配,所以对于环境光变化明显或缺乏纹理特征的场景会出现匹配困难,导致匹配误差较大甚至匹配失败。此外,图像特征提取与匹配过程导致的庞大计算量限制了其在实时测量领域的应用。The binocular stereo vision method obtains the disparity map of the target area by matching two image pairs captured by cameras at different positions, thereby obtaining the depth information of the target to be measured. This method usually uses block matching or semi-global matching algorithms to search for similar regions of image pairs, which can achieve sub-pixel level matching accuracy. Since the binocular stereo vision method performs image matching based on visual features, it will be difficult to match scenes with obvious changes in ambient light or lack of texture features, resulting in large matching errors or even matching failures. In addition, the huge computational load caused by the image feature extraction and matching process limits its application in real-time measurement.

为了克服上述ToF和双目立体视觉方法的缺陷,研究者们发明了基于激光散斑图像的投影系统。激光散斑投射器中的激光器射出红外激光,经过衍射光栅(毛玻璃),形成具有高度随机性的散斑图像。该系统采用红外相机拍摄待测目标表面的散斑图像,很大程度上降低了环境光对测量的影响。同时,基于散斑图像的随机性,激光散斑投影系统的测量时间能够缩短至单次曝光时间,从而实现实时动态测量。In order to overcome the shortcomings of the above-mentioned ToF and binocular stereo vision methods, researchers invented a projection system based on laser speckle images. The laser in the laser speckle projector emits infrared laser light, which passes through a diffraction grating (ground glass) to form a highly random speckle image. The system uses an infrared camera to capture speckle images on the surface of the target to be measured, which greatly reduces the influence of ambient light on the measurement. At the same time, based on the randomness of the speckle image, the measurement time of the laser speckle projection system can be shortened to a single exposure time, thereby realizing real-time dynamic measurement.

根据散斑投影系统中的相机数量,其可以分为两类:双目散斑系统和单目散斑系统。双目激光散斑投影系统等效于带有散斑图像的双目立体视觉系统。具有高度随机性的散斑图像赋予了无纹理区域丰富的特征信息,这显著提高了双目立体视觉系统的图像匹配精度和测量精度。然而,双目散斑系统的制造成本较高,且系统标定步骤较为复杂。单目激光散斑投影系统仅包含一个红外相机和一个激光散斑投射器,其系统更加紧凑,成本较低。According to the number of cameras in the speckle projection system, it can be divided into two categories: binocular speckle system and monocular speckle system. The binocular laser speckle projection system is equivalent to the binocular stereo vision system with speckle images. The speckle image with high randomness endows the textureless area with rich feature information, which significantly improves the image matching accuracy and measurement accuracy of the binocular stereo vision system. However, the manufacturing cost of the binocular speckle system is relatively high, and the system calibration steps are relatively complicated. The monocular laser speckle projection system only consists of one infrared camera and one laser speckle projector, and its system is more compact and less expensive.

由于激光散斑投射器不存在标准散斑图像,而且随着投射器与待测目标之间距离的增加,散斑图像会发生不同程度的变形,在出厂前或者返厂维修后,单目激光散斑投影系统需要借助高精度的测距仪器,在不同的标准距离处提前拍摄对应的散斑图像,这使得单目激光散斑投影系统的外参数标定变得复杂繁琐。Since the laser speckle projector does not have a standard speckle image, and as the distance between the projector and the target to be measured increases, the speckle image will be deformed to varying degrees. Before leaving the factory or after returning to the factory for repair, the monocular laser The speckle projection system needs to use a high-precision ranging instrument to shoot the corresponding speckle images in advance at different standard distances, which makes the external parameter calibration of the monocular laser speckle projection system complicated and cumbersome.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请实施例提供了一种单目激光散斑投影系统的外参数标定方法和装置,用以解决现有技术中单目激光散斑投影系统的外参数标定过于复杂繁琐的问题。In view of this, the embodiments of the present application provide a method and device for calibrating external parameters of a monocular laser speckle projection system, so as to solve the problem that the external parameter calibration of the monocular laser speckle projection system in the prior art is too complicated and cumbersome .

第一方面,本申请实施例提供了一种单目激光散斑投影系统的外参数标定方法,所述方法包括:In a first aspect, an embodiment of the present application provides a method for calibrating external parameters of a monocular laser speckle projection system, the method comprising:

在单目激光散斑投影系统下采集相机标定图像,所述单目激光散斑投影系统包括相机和激光散斑投射器;A camera calibration image is collected under a monocular laser speckle projection system, the monocular laser speckle projection system includes a camera and a laser speckle projector;

根据所述相机标定图像标定相机参数;Calibrate camera parameters according to the camera calibration image;

制有标定板,在所述单目激光散斑投影系统下采集散斑图像,其中,所述标定板设有至少三个标志特征;A calibration plate is prepared, and speckle images are collected under the monocular laser speckle projection system, wherein the calibration plate is provided with at least three marking features;

根据所述相机参数提取所述散斑图像的所述标志特征,并计算所述标定板的空间平面方程;Extract the sign feature of the speckle image according to the camera parameters, and calculate the space plane equation of the calibration plate;

根据所述散斑图像获取同名散斑像点;obtaining speckle image points with the same name according to the speckle image;

根据所述标定板的空间平面方程,计算所述同名散斑像点的三维坐标;Calculate the three-dimensional coordinates of the speckle image point with the same name according to the space plane equation of the calibration plate;

根据所述同名散斑像点的三维坐标估算所述激光散斑投射器的光心和光轴位置;Estimating the position of the optical center and the optical axis of the laser speckle projector according to the three-dimensional coordinates of the speckle image point with the same name;

根据预设的激光散斑投射器坐标系,计算所述相机和所述激光散斑投射器之间的位姿关系;calculating the pose relationship between the camera and the laser speckle projector according to the preset laser speckle projector coordinate system;

根据所述位姿关系计算相机图像和激光散斑投射器虚拟图像之间的平面单应矩阵,生成所述激光散斑投射器虚拟图像。The plane homography matrix between the camera image and the laser speckle projector virtual image is calculated according to the pose relationship, and the laser speckle projector virtual image is generated.

如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述标志特征为对角标志,所述计算所述标定板的空间平面方程,包括:The above aspect and any possible implementation manner further provide an implementation manner, wherein the sign feature is a diagonal sign, and the calculation of the space plane equation of the calibration plate includes:

在所述标定板上建立对应的世界坐标系,以左上方的所述对角标志为坐标系原点,x轴竖直向下经过左下方的所述对角标志,y轴水平向右经过右上方的所述对角标志,z轴垂直所述标定板向外,其中,所述对角标志在所述世界坐标系中的坐标表示为(Xw,Yw,1),所述对角标志的像素坐标(u,v)与所述世界坐标系的三维坐标(Xw,Yw,1)的关系表示为:A corresponding world coordinate system is established on the calibration board, with the diagonal mark on the upper left as the origin of the coordinate system, the x-axis passes vertically downward through the diagonal mark on the lower left, and the y-axis passes horizontally to the right through the upper right The diagonal mark of the square, the z-axis is perpendicular to the calibration plate outward, wherein the coordinates of the diagonal mark in the world coordinate system are expressed as (X w , Y w , 1), the diagonal The relationship between the pixel coordinates (u, v) of the logo and the three-dimensional coordinates (X w , Y w , 1) of the world coordinate system is expressed as:

Figure BDA0003606516670000021
Figure BDA0003606516670000021

其中,Kc为所述相机的内参数矩阵,s为比例系数,R为旋转矩阵,T为平移向量;能够得到所述标定板表面的所述对角标志在相机坐标系中的坐标(Xc,Yc,Zc):Wherein, K c is the internal parameter matrix of the camera, s is the scale coefficient, R is the rotation matrix, and T is the translation vector; the coordinates of the diagonal mark on the surface of the calibration plate in the camera coordinate system (X c ,Y c ,Z c ):

Figure BDA0003606516670000022
Figure BDA0003606516670000022

采用最小二乘法拟合得到所述标定板在所述相机坐标系中的空间平面方程。The space plane equation of the calibration plate in the camera coordinate system is obtained by least squares fitting.

如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述计算所述同名散斑像点的三维坐标,包括:The above aspect and any possible implementation manner further provide an implementation manner, wherein the calculating the three-dimensional coordinates of the speckle image point with the same name includes:

根据散斑像点坐标(u,v)和所述相机参数,计算出所述散斑像点在相机坐标系中的等效三维坐标(Xc,Yc,Zc)为:According to the speckle image point coordinates (u, v) and the camera parameters, the equivalent three-dimensional coordinates (X c , Y c , Z c ) of the speckle image point in the camera coordinate system are calculated as:

Figure BDA0003606516670000031
Figure BDA0003606516670000031

其中(Cx,Cy)是所述相机的主点坐标,dx和dy分别是像元在x轴和y轴方向上的物理尺寸,f是相机焦距;where (C x , C y ) are the coordinates of the principal point of the camera, d x and dy are the physical dimensions of the pixel in the x-axis and y-axis directions, respectively, and f is the camera focal length;

通过所述散斑像点与所述相机坐标系原点的空间直线方程可以表示为:The space straight line equation through the speckle image point and the origin of the camera coordinate system can be expressed as:

Figure BDA0003606516670000032
Figure BDA0003606516670000032

根据所述空间直线方程与所述标定板的空间平面方程,计算所述同名散斑像点的三维坐标,得到所述同名散斑像点对应的三维坐标集。According to the space straight line equation and the space plane equation of the calibration plate, the three-dimensional coordinates of the speckle image points with the same name are calculated to obtain a three-dimensional coordinate set corresponding to the speckle image points with the same name.

如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述计算所述相机和所述激光散斑投射器之间的位姿关系,包括:According to the above aspect and any possible implementation manner, an implementation manner is further provided. The calculating the pose relationship between the camera and the laser speckle projector includes:

其中,激光散斑投射器光轴在相机坐标系中的归一化方向向量为Vc=[vx,vy,vz]T,在所述激光散斑投射器坐标系中表示为Vp=[0,0,1]T,两者的关系能够表示为:Wherein, the normalized direction vector of the optical axis of the laser speckle projector in the camera coordinate system is V c =[v x , vy ,v z ] T , which is represented as V in the laser speckle projector coordinate system p = [0,0,1] T , the relationship between the two can be expressed as:

Figure BDA0003606516670000033
Figure BDA0003606516670000033

计算出Ax和Ay

Figure BDA0003606516670000034
Calculate A x and A y :
Figure BDA0003606516670000034

选取一个预设的Az值,计算得到旋转矩阵R,其中,Ax、Ay、Az为所述旋转矩阵R的欧拉角;A preset A z value is selected, and a rotation matrix R is obtained by calculation, wherein A x , A y , and A z are the Euler angles of the rotation matrix R;

激光散斑投射器的光心在所述相机坐标系中的坐标为(xp,yp,zp),在所述激光散斑投射器坐标系中的坐标为(0,0,0),两者的关系能够表示为:The coordinates of the optical center of the laser speckle projector in the camera coordinate system are (x p , y p , z p ), and the coordinates in the laser speckle projector coordinate system are (0,0,0) , the relationship between the two can be expressed as:

Figure BDA0003606516670000035
Figure BDA0003606516670000035

得到平移向量T:Get the translation vector T:

Figure BDA0003606516670000036
Figure BDA0003606516670000036

如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述位姿关系计算相机图像和激光散斑投射器虚拟图像之间的平面单应矩阵,包括:The above aspects and any possible implementation manners further provide an implementation manner in which the plane homography matrix between the camera image and the virtual image of the laser speckle projector is calculated according to the pose relationship, including:

设有散斑像点在相机坐标系中的坐标为(x1,y1,z1),在所述激光散斑投射器坐标系中为(x2,y2,z2),两者的关系可以表示为:It is assumed that the coordinates of the speckle image point in the camera coordinate system are (x 1 , y 1 , z 1 ), and in the laser speckle projector coordinate system is (x 2 , y 2 , z 2 ), and both The relationship can be expressed as:

Figure BDA0003606516670000041
Figure BDA0003606516670000041

根据所述散斑像点位于所述标定板表面,得到所述散斑像点在所述相机坐标系中的坐标满足以下方程:According to the speckle image point on the surface of the calibration plate, the coordinates of the speckle image point in the camera coordinate system satisfy the following equation:

Figure BDA0003606516670000042
Figure BDA0003606516670000042

其中,n为标定板的归一化法向量,d为所述相机坐标系原点到所述标定板的距离;Wherein, n is the normalized normal vector of the calibration plate, and d is the distance from the origin of the camera coordinate system to the calibration plate;

结合上述两式,得到:Combining the above two formulas, we get:

Figure BDA0003606516670000043
Figure BDA0003606516670000043

则所述相机图像和所述投射器虚拟图像之间的所述平面单应矩阵表示为:Then the plane homography matrix between the camera image and the projector virtual image is expressed as:

Figure BDA0003606516670000044
Figure BDA0003606516670000044

其中,Kc和Kp为所述相机和所述激光散斑投射器的内参数矩阵,且Kp=KcWherein, K c and K p are the internal parameter matrices of the camera and the laser speckle projector, and K p =K c .

如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述生成所述激光散斑投射器虚拟图像,包括:According to the above aspect and any possible implementation manner, an implementation manner is further provided. The generating the virtual image of the laser speckle projector includes:

根据所述相机图像和所述激光散斑投射器虚拟图像之间的所述平面单应矩阵,将所述相机图像映射到虚拟投射器平面得到所述激光散斑投射器虚拟图像。According to the plane homography matrix between the camera image and the laser speckle projector virtual image, the camera image is mapped to the virtual projector plane to obtain the laser speckle projector virtual image.

如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,在所述生成所述激光散斑投射器虚拟图像之后,将所述激光散斑投射器作为第二相机来使用,同所述单目激光散斑投影系统中的所述相机组成双目相机系统。According to the above aspect and any possible implementation manner, an implementation manner is further provided, after the virtual image of the laser speckle projector is generated, the laser speckle projector is used as a second camera, A binocular camera system is formed with the camera in the monocular laser speckle projection system.

第二方面,本申请实施例提供了一种单目激光散斑投影系统的外参数标定装置,所述装置包括:In a second aspect, an embodiment of the present application provides a device for calibrating external parameters of a monocular laser speckle projection system, the device comprising:

相机标定图像采集模块,用于在单目激光散斑投影系统下采集相机标定图像,所述单目激光散斑投影系统包括相机和激光散斑投射器;a camera calibration image acquisition module, used for acquiring a camera calibration image under a monocular laser speckle projection system, the monocular laser speckle projection system comprising a camera and a laser speckle projector;

相机参数标定模块,用于根据所述相机标定图像标定相机参数;a camera parameter calibration module for calibrating camera parameters according to the camera calibration image;

散斑图像采集模块,用于制有标定板,在所述单目激光散斑投影系统下采集散斑图像,其中,所述标定板设有至少三个标志特征;a speckle image acquisition module, used for making a calibration plate, and collecting speckle images under the monocular laser speckle projection system, wherein the calibration plate is provided with at least three marking features;

空间平面方程计算模块,用于根据所述相机参数提取所述散斑图像的所述标志特征,并计算所述标定板的空间平面方程;a space plane equation calculation module, configured to extract the sign feature of the speckle image according to the camera parameters, and calculate the space plane equation of the calibration plate;

同名散斑像点获取模块,用于根据所述散斑图像获取同名散斑像点;a speckle image point acquisition module with the same name, used for acquiring the speckle image point with the same name according to the speckle image;

同名散斑像点计算模块,用于根据所述标定板的空间平面方程,计算所述同名散斑像点的三维坐标;A speckle image point calculation module with the same name, for calculating the three-dimensional coordinates of the speckle image point with the same name according to the space plane equation of the calibration plate;

光心光轴估算模块,用于根据所述同名散斑像点的三维坐标估算所述激光散斑投射器的光心和光轴位置;an optical center and optical axis estimation module, configured to estimate the optical center and optical axis positions of the laser speckle projector according to the three-dimensional coordinates of the speckle image point with the same name;

位姿关系计算模块,用于根据预设的激光散斑投射器坐标系,计算所述相机和所述激光散斑投射器之间的位姿关系;a pose relationship calculation module, configured to calculate the pose relationship between the camera and the laser speckle projector according to a preset coordinate system of the laser speckle projector;

虚拟散斑图像生成模块,用于根据所述位姿关系计算相机图像和激光散斑投射器虚拟图像之间的平面单应矩阵,生成所述激光散斑投射器虚拟图像。The virtual speckle image generation module is configured to calculate the plane homography matrix between the camera image and the virtual image of the laser speckle projector according to the pose relationship, and generate the virtual image of the laser speckle projector.

第三方面,本申请提供一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时执行如第一方面所述单目激光散斑投影系统的外参数标定方法的步骤。In a third aspect, the present application provides a computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, the processor executing the computer-readable instructions When performing the steps of the method for calibrating the external parameters of the monocular laser speckle projection system according to the first aspect.

第四方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如第一方面任一项所述单目激光散斑投影系统的外参数标定方法的步骤。In a fourth aspect, the present application provides a computer-readable storage medium, where computer-readable instructions are stored in the computer-readable storage medium, and when the computer-readable instructions are executed by a processor, any one of the first aspect is implemented The steps of the extrinsic parameter calibration method of monocular laser speckle projection system.

在本申请实施例中,本申请利用标定板计算空间平面方程,并根据该空间平面方程计算同名散斑像点的三维坐标;然后根据同名散斑像点的三维坐标估算激光散斑投射器的光心和光轴位置;最后根据预设的激光散斑投射器坐标系,计算相机和激光散斑投射器之间的位姿关系,可利用该位姿关系生成相机图像和激光散斑投射器虚拟图像之间的平面单应矩阵,从而实现单目激光散斑投影系统的外参数标定。本申请不需要利用精确的测距装置在不同的标准距离处拍摄对应的散斑图像,可显著提高外参数标定的测量效率,且可显著提高测量精度。In the embodiment of the present application, the present application uses the calibration plate to calculate the space plane equation, and calculates the three-dimensional coordinates of the speckle image point with the same name according to the space plane equation; The position of the optical center and optical axis; finally, according to the preset laser speckle projector coordinate system, the pose relationship between the camera and the laser speckle projector is calculated, and the camera image and the laser speckle projector virtual camera can be generated by using the pose relationship. The plane homography matrix between the images can realize the calibration of the external parameters of the monocular laser speckle projection system. The present application does not need to use an accurate ranging device to shoot corresponding speckle images at different standard distances, which can significantly improve the measurement efficiency of external parameter calibration and the measurement accuracy.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. 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 flowchart of a method for calibrating external parameters of a monocular laser speckle projection system in an embodiment of the present application;

图2是本申请实施例中一种标定板的示意图;2 is a schematic diagram of a calibration plate in the embodiment of the present application;

图3是本申请实施例中一种激光散斑投射器的光轴和光心的示意图。FIG. 3 is a schematic diagram of an optical axis and an optical center of a laser speckle projector in an embodiment of the present application.

具体实施方式Detailed ways

为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。In order to better understand the technical solutions of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be clear that the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the embodiments of this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.

应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的相同的字段,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used in this document is only one of the same fields to describe the associated objects, indicating that three relationships can exist, for example, A and/or B, which can mean: A alone exists, and A exists at the same time and B, there are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.

应当理解,尽管在本申请实施例中可能采用术语第一、第二、第三等来描述预设范围等,但这些预设范围不应限于这些术语。这些术语仅用来将预设范围彼此区分开。例如,在不脱离本申请实施例范围的情况下,第一预设范围也可以被称为第二预设范围,类似地,第二预设范围也可以被称为第一预设范围。It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe the preset range and the like, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from one another. For example, without departing from the scope of the embodiments of the present application, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.

取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the word "if" as used herein can be interpreted as "at" or "when" or "in response to determining" or "in response to detecting." Similarly, the phrases "if determined" or "if detected (the stated condition or event)" can be interpreted as "when determined" or "in response to determining" or "when detected (the stated condition or event)," depending on the context )" or "in response to detection (a stated condition or event)".

图1是本申请实施例中一种单目激光散斑投影系统的外参数标定方法的流程图。如图1所示,该单目激光散斑投影系统的外参数标定方法具体包括如下步骤:FIG. 1 is a flowchart of a method for calibrating external parameters of a monocular laser speckle projection system in an embodiment of the present application. As shown in Figure 1, the external parameter calibration method of the monocular laser speckle projection system specifically includes the following steps:

S10:在单目激光散斑投影系统下采集相机标定图像,单目激光散斑投影系统包括相机和激光散斑投射器。S10: The camera calibration image is collected under the monocular laser speckle projection system. The monocular laser speckle projection system includes a camera and a laser speckle projector.

在一实施例中,将红外相机与激光散斑投射器以合适角度固定于三角架上,组成单目激光散斑投影系统。之后,选取大小合适的棋盘格标定板放置于相机视场范围内,打开相机调节焦距对棋盘格标定板图像进行拍摄。在此期间,需要不断调整棋盘格标定板的位置和姿态。In one embodiment, the infrared camera and the laser speckle projector are fixed on a tripod at an appropriate angle to form a monocular laser speckle projection system. Afterwards, select a checkerboard calibration board of suitable size and place it within the field of view of the camera, turn on the camera and adjust the focus to shoot the image of the checkerboard calibration board. During this period, the position and posture of the checkerboard calibration board need to be continuously adjusted.

S20:根据相机标定图像标定相机参数。S20: Calibrate camera parameters according to the camera calibration image.

在一实施例中,根据相机拍摄得到的棋盘格标定板图像集,采用张正友标定法计算相机的内参数,包括焦距和主点坐标,以及径向畸变和切向畸变。In one embodiment, according to the checkerboard calibration plate image set captured by the camera, the Zhang Zhengyou calibration method is used to calculate the internal parameters of the camera, including focal length and principal point coordinates, as well as radial distortion and tangential distortion.

S30:制有标定板,在单目激光散斑投影系统下采集散斑图像,其中,标定板设有至少三个标志特征。S30: A calibration plate is prepared, and a speckle image is collected under a monocular laser speckle projection system, wherein the calibration plate is provided with at least three marking features.

其中,该标定板上包括至少三个标志特征,采用标志或特定特征的方式设在标定板平面上。本申请不对标志特征进行限定。Wherein, the calibration plate includes at least three mark features, which are set on the plane of the calibration plate by means of marks or specific features. This application does not limit the signature features.

具体地,可以采用对角标志的方式在标定板上设有可用于计算标定板空间平面方程的标志特征。可以理解地,标定板上的标志特征可设置在三个及以上,且设置得越多(助于计算及验算),越有助于提高单目激光散斑投影系统外参标定的准确率,以提高单目激光散斑投影系统的测量精度。Specifically, the calibration plate may be provided with marker features that can be used to calculate the space plane equation of the calibration plate in the form of diagonal markers. It can be understood that three or more sign features on the calibration board can be set, and the more the set features (to help with calculation and verification), the more helpful it is to improve the accuracy of external parameter calibration of the monocular laser speckle projection system. In order to improve the measurement accuracy of the monocular laser speckle projection system.

在一实施例中,打印一张四角各有一对角标志,其余位置空白的对角标志标定纸,将对角标志标定纸紧贴于平板上,得到带有对角标志的标定板。将标定板放置于单目激光散斑系统的视场范围内,开启激光散斑投射器,向标定板表面投射散斑图像,并用相机记录下对应的散斑图像。在此期间,需要不断调整标定板的位置和姿态。In one embodiment, a diagonal mark calibration paper with a pair of corner marks on each of the four corners and blank positions is printed on a sheet, and the diagonal mark calibration paper is closely attached to the flat plate to obtain a calibration plate with diagonal marks. Place the calibration plate in the field of view of the monocular laser speckle system, turn on the laser speckle projector, project the speckle image to the surface of the calibration plate, and record the corresponding speckle image with the camera. During this period, it is necessary to continuously adjust the position and attitude of the calibration plate.

S40:根据相机参数提取散斑图像的标志特征,并计算标定板的空间平面方程。S40 : Extract the signature features of the speckle image according to the camera parameters, and calculate the space plane equation of the calibration plate.

在一实施例中,标定板中的标志特征具体可以是对角标志,即设置在标定板对角位置的标志。In one embodiment, the marking feature in the calibration plate may specifically be a diagonal mark, that is, a mark arranged at a diagonal position of the calibration plate.

在一实施例中,可根据S20中求解得到的相机畸变系数(包括径向畸变和切向畸变),矫正散斑图像的畸变。采用Harris角点检测算法识别散斑图像中的对角标志,并提取对角标志,从而根据对角标志计算标定板的空间平面方程。In one embodiment, the distortion of the speckle image can be corrected according to the camera distortion coefficient (including radial distortion and tangential distortion) obtained by solving in S20. The Harris corner detection algorithm is used to identify the diagonal signs in the speckle image, and extract the diagonal signs, so as to calculate the space plane equation of the calibration plate according to the diagonal signs.

进一步地,可在标定板上建立对应的世界坐标系,以左上方的对角标志为坐标系原点,x轴竖直向下经过左下方的对角标志,y轴水平向右经过右上方的对角标志,z轴垂直标定板向外。图2是本申请实施例中一种标定板的示意图,从图2可以看到,该标定板上四个角上各有一对角标志,根据该对角标志建立的世界坐标系如图2中各坐标轴所示。Further, a corresponding world coordinate system can be established on the calibration board, with the upper left diagonal mark as the origin of the coordinate system, the x-axis vertically downwards passes through the lower left diagonal mark, and the y-axis passes horizontally to the right through the upper right corner. Diagonal sign, the z-axis is perpendicular to the calibration plate outwards. Fig. 2 is a schematic diagram of a calibration plate in the embodiment of the present application. As can be seen from Fig. 2, a pair of corner marks are provided on each of the four corners of the calibration plate, and the world coordinate system established according to the diagonal marks is shown in Fig. 2 shown on each axis.

可以理解地,由于对角标志之间的物理距离已知,所以对角标志在世界坐标系中的坐标已知,则对角标志在世界坐标系中的坐标表示为(Xw,Yw,1),对角标志的像素坐标(u,v)与世界坐标系的三维坐标(Xw,Yw,1)的关系表示为:Understandably, since the physical distance between the diagonal markers is known, the coordinates of the diagonal markers in the world coordinate system are known, and the coordinates of the diagonal markers in the world coordinate system are expressed as (X w , Y w , 1), the relationship between the pixel coordinates (u, v) of the diagonal sign and the three-dimensional coordinates (X w , Y w , 1) of the world coordinate system is expressed as:

Figure BDA0003606516670000071
Figure BDA0003606516670000071

其中,Kc为相机的内参数矩阵,s为比例系数,R为旋转矩阵,T为平移向量,R和T描述了相机坐标系和世界坐标系之间的位姿关系;且由4组对角标志坐标对足够解算出R和T,则亦可得到标定板表面的对角标志在相机坐标系中的坐标(Xc,Yc,Zc):Among them, K c is the internal parameter matrix of the camera, s is the scale coefficient, R is the rotation matrix, T is the translation vector, and R and T describe the pose relationship between the camera coordinate system and the world coordinate system; The corner mark coordinate pair is enough to solve R and T, then the coordinates of the diagonal mark on the surface of the calibration plate in the camera coordinate system (X c , Y c , Z c ) can also be obtained:

Figure BDA0003606516670000072
Figure BDA0003606516670000072

最后,采用最小二乘法拟合得到标定板在相机坐标系中的空间平面方程。Finally, the least squares method is used to obtain the space plane equation of the calibration plate in the camera coordinate system.

S50:根据散斑图像获取同名散斑像点。S50: Acquire speckle image points with the same name according to the speckle image.

在一实施例中,可将第一幅散斑图像作为散斑匹配的参考图像,采用数字图像相关法,通过求解包含一阶和二阶位移梯度参数的位移形状函数来确定散斑像点的最佳匹配位置,从而获得散斑图像的同名散斑像点集。In one embodiment, the first speckle image can be used as a reference image for speckle matching, and the digital image correlation method can be used to determine the size of the speckle image point by solving the displacement shape function including the first-order and second-order displacement gradient parameters. The best matching position to obtain the speckle image point set of the same name for the speckle image.

S60:根据标定板的空间平面方程,计算同名散斑像点的三维坐标。S60: Calculate the three-dimensional coordinates of the speckle image point with the same name according to the space plane equation of the calibration plate.

可以理解地,在无失真相机成像模型中,进入相机的光线必然通过相机的光心,即相机坐标系的原点,在获取标定板的空间平面方程,可根据该空间平面方程计算同名散斑像点的三维坐标。可以理解地,该同名散斑像点为标定板平面上的三维坐标,该三维坐标是激光散斑投射器发出的散斑射线同标定板平面的交点。Understandably, in the distortion-free camera imaging model, the light entering the camera must pass through the optical center of the camera, that is, the origin of the camera coordinate system. After obtaining the space plane equation of the calibration plate, the speckle image of the same name can be calculated according to the space plane equation. 3D coordinates of the point. It can be understood that the speckle image point with the same name is a three-dimensional coordinate on the plane of the calibration plate, and the three-dimensional coordinate is the intersection of the speckle ray emitted by the laser speckle projector and the plane of the calibration plate.

具体地,根据散斑像点坐标(u,v)和相机参数,计算出散斑像点在相机坐标系中的等效三维坐标(Xc,Yc,Zc)为:Specifically, according to the speckle image point coordinates (u, v) and camera parameters, the equivalent three-dimensional coordinates (X c , Y c , Z c ) of the speckle image point in the camera coordinate system are calculated as:

Figure BDA0003606516670000073
Figure BDA0003606516670000073

其中(Cx,Cy)是相机的主点坐标,dx和dy分别是像元在x轴和y轴方向上的物理尺寸,f是相机焦距;通过散斑像点与相机坐标系原点的空间直线方程可以表示为:Where (C x ,C y ) is the principal point coordinate of the camera, d x and dy are the physical dimensions of the pixel in the x-axis and y-axis directions, respectively, and f is the camera focal length; through the speckle image point and the camera coordinate system The space line equation at the origin can be expressed as:

Figure BDA0003606516670000074
Figure BDA0003606516670000074

根据空间直线方程与标定板的空间平面方程,计算同名散斑像点的三维坐标,得到同名散斑像点对应的三维坐标集。According to the space straight line equation and the space plane equation of the calibration plate, the three-dimensional coordinates of the speckle image points with the same name are calculated, and the three-dimensional coordinate set corresponding to the speckle image points with the same name is obtained.

S70:根据同名散斑像点的三维坐标估算激光散斑投射器的光心和光轴位置。S70: Estimate the position of the optical center and the optical axis of the laser speckle projector according to the three-dimensional coordinates of the speckle image point of the same name.

在一实施例中,在激光散斑投射器的制造过程中,激光散斑投射器光轴被设计严格垂直于衍射光栅,并经过其中心位置。因此,在不同位置和姿态的标定板上的散斑图像中心点均处在激光散斑投射器的光轴或附近区域。根据步骤S60得到的散斑图像中心点对应的三维坐标集,通过直线拟合即可确定激光散斑投射器的光轴位置。此外,由同名散斑点拟合而成的直线对应着激光散斑投射器出射的光线,其中,通过激光器的光源点即激光散斑投射器的光心。可以理解地,在相机标定误差、图像匹配误差、拟合误差等因素影响下,拟合直线集不会相交于一点,而是会出现不同程度的偏移。因此,计算距离拟合直线集最近的空间点,将其作为最优的投射器光心。In one embodiment, during the manufacture of the laser speckle projector, the optical axis of the laser speckle projector is designed to be strictly perpendicular to the diffraction grating and pass through its center position. Therefore, the center points of the speckle images on the calibration plate with different positions and attitudes are all located at the optical axis or the vicinity of the laser speckle projector. According to the three-dimensional coordinate set corresponding to the center point of the speckle image obtained in step S60, the position of the optical axis of the laser speckle projector can be determined by straight line fitting. In addition, the straight line fitted by the speckle with the same name corresponds to the light emitted by the laser speckle projector, wherein the light source point passing through the laser is the optical center of the laser speckle projector. It is understandable that under the influence of factors such as camera calibration error, image matching error, fitting error, etc., the fitted line set will not intersect at one point, but will have different degrees of offset. Therefore, the closest spatial point to the fitted line set is calculated as the optimal projector optical center.

图3是本申请实施例中一种激光散斑投射器的光轴和光心的示意图。从图3中可以看到标定板上同名散斑点、光轴及(激光散斑)投射器之间的物理空间关系。FIG. 3 is a schematic diagram of an optical axis and an optical center of a laser speckle projector in an embodiment of the present application. From Figure 3, the physical space relationship between the speckle with the same name, the optical axis and the (laser speckle) projector on the calibration board can be seen.

S80:根据预设的激光散斑投射器坐标系,计算相机和激光散斑投射器之间的位姿关系。S80: Calculate the pose relationship between the camera and the laser speckle projector according to the preset laser speckle projector coordinate system.

在一实施例中,可根据得到的激光散斑投射器的光心和光轴位置建立激光散斑投射器坐标系,并在该激光散斑投射器坐标系计算相机和激光散斑投射器之间的位姿关系。In one embodiment, a laser speckle projector coordinate system can be established according to the obtained optical center and optical axis positions of the laser speckle projector, and the laser speckle projector coordinate system is calculated between the camera and the laser speckle projector. pose relationship.

具体地,激光散斑投射器坐标系以激光散斑投射器光心为原点,z轴与激光散斑投射器光轴重合,以面向目标方向为正方向。激光散斑投射器光轴在相机坐标系中的归一化方向向量为Vc=[vx,vy,vz]T,在激光散斑投射器坐标系中表示为Vp=[0,0,1]T,两者的关系能够表示为:Specifically, the laser speckle projector coordinate system takes the optical center of the laser speckle projector as the origin, the z-axis coincides with the optical axis of the laser speckle projector, and the direction facing the target is the positive direction. The normalized direction vector of the optical axis of the laser speckle projector in the camera coordinate system is V c =[v x , vy ,v z ] T , which is expressed as V p =[0 in the laser speckle projector coordinate system ,0,1] T , the relationship between the two can be expressed as:

Figure BDA0003606516670000081
Figure BDA0003606516670000081

其中Ax、Ay、Az为旋转矩阵的欧拉角,需要说明的是,欧拉角的旋转顺序可以采用x-y-z的旋转顺序,采用其他旋转顺序的欧拉角也是可以的。Among them, A x , A y , and A z are the Euler angles of the rotation matrix. It should be noted that the rotation order of the Euler angles can adopt the rotation order of xyz, and the Euler angles of other rotation orders are also possible.

上式可以化简为:The above formula can be simplified to:

Figure BDA0003606516670000082
Figure BDA0003606516670000082

可计算出Ax和Ay

Figure BDA0003606516670000083
A x and A y can be calculated:
Figure BDA0003606516670000083

Az决定了激光散斑投射器坐标系x和y轴的方向,以及散斑图像的散斑坐标。由于激光散斑投射器的光心和光轴位置已被确定,所以激光散斑投射器中散斑图像的绝对物理位置是固定的,与欧拉角无关。在保证绝大部分或整个散斑图像能够处在激光散斑投射器虚拟图像的情况下,选取一个合适的Az值,并计算得到旋转矩阵R。A z determines the orientation of the x and y axes of the laser speckle projector coordinate system, and the speckle coordinates of the speckle image. Since the position of the optical center and optical axis of the laser speckle projector has been determined, the absolute physical position of the speckle image in the laser speckle projector is fixed, independent of Euler angles. In the case of ensuring that most or the entire speckle image can be in the virtual image of the laser speckle projector, select an appropriate A z value, and calculate the rotation matrix R.

激光散斑投射器的光心在相机坐标系中的坐标为(xp,yp,zp),在激光散斑投射器坐标系中的坐标为(0,0,0),两者的关系能够表示为:The coordinates of the optical center of the laser speckle projector in the camera coordinate system are (x p , y p , z p ), and the coordinates in the laser speckle projector coordinate system are (0, 0, 0). The relationship can be expressed as:

Figure BDA0003606516670000091
Figure BDA0003606516670000091

则可得到平移向量:Then the translation vector can be obtained:

Figure BDA0003606516670000092
Figure BDA0003606516670000092

S90:根据位姿关系计算相机图像和激光散斑投射器虚拟图像之间的平面单应矩阵,生成激光散斑投射器虚拟图像。S90: Calculate a plane homography matrix between the camera image and the virtual image of the laser speckle projector according to the pose relationship, and generate a virtual image of the laser speckle projector.

具体地,设有散斑像点在相机坐标系中的坐标为(x1,y1,z1),在激光散斑投射器坐标系中为(x2,y2,z2),两者的关系可以表示为:Specifically, it is assumed that the coordinates of the speckle image point in the camera coordinate system are (x 1 , y 1 , z 1 ), and in the laser speckle projector coordinate system are (x 2 , y 2 , z 2 ), and the two The relationship can be expressed as:

Figure BDA0003606516670000093
Figure BDA0003606516670000093

其中R和T分别是S80计算得到的旋转矩阵和平移向量,它们描述了相机坐标系和激光散斑投射器坐标系之间的位姿关系。由于散斑像点位于标定板表面,因此散斑像点在相机坐标系中的坐标满足以下方程:where R and T are the rotation matrix and translation vector calculated by S80, respectively, which describe the pose relationship between the camera coordinate system and the laser speckle projector coordinate system. Since the speckle image points are located on the surface of the calibration plate, the coordinates of the speckle image points in the camera coordinate system satisfy the following equation:

Figure BDA0003606516670000094
Figure BDA0003606516670000094

其中,n为标定板的归一化法向量,d为相机坐标系原点到标定板的距离;Among them, n is the normalized normal vector of the calibration plate, and d is the distance from the origin of the camera coordinate system to the calibration plate;

结合上述两式,得到:Combining the above two formulas, we get:

Figure BDA0003606516670000095
Figure BDA0003606516670000095

则相机图像和投射器虚拟图像之间的平面单应矩阵表示为:Then the plane homography matrix between the camera image and the projector virtual image is expressed as:

Figure BDA0003606516670000096
Figure BDA0003606516670000096

其中,Kc和Kp为相机和激光散斑投射器的内参数矩阵,且Kp=Kc。由于散斑图像是激光通过衍射光栅生成的,不经过透镜组,因此不考虑投射器的畸变。where K c and K p are the intrinsic parameter matrices of the camera and the laser speckle projector, and K p =K c . Since the speckle image is generated by the laser passing through the diffraction grating without passing through the lens group, the distortion of the projector is not considered.

在具体实现时,在待测目标布置标定板,激光散斑投射器投影散斑图像至标定板表面,相机拍摄对应的散斑图像。通过计算标定板的空间平面方程,从而可得到平面单应矩阵H。可以理解地,有了平面单应矩阵H,可以将相机拍摄的图像转换到激光散斑投射器,使得本申请的单目激光散斑投影系统具有等同于双目相机系统的双目立体视觉能力,可便捷、高效地完成外参数的标定。In specific implementation, a calibration plate is arranged on the target to be measured, a laser speckle projector projects a speckle image onto the surface of the calibration plate, and a camera shoots a corresponding speckle image. By calculating the space plane equation of the calibration plate, the plane homography matrix H can be obtained. Understandably, with the plane homography matrix H, the image captured by the camera can be converted to the laser speckle projector, so that the monocular laser speckle projection system of the present application has the same binocular stereo vision capability as the binocular camera system. , the calibration of external parameters can be completed conveniently and efficiently.

进一步地,在步骤S90中,即生成激光散斑投射器虚拟图像的步骤中,具体还包括:根据相机图像和激光散斑投射器虚拟图像之间的平面单应矩阵,将相机图像映射到虚拟投射器平面得到激光散斑投射器虚拟图像。Further, in step S90, that is, the step of generating the virtual image of the laser speckle projector, it further includes: mapping the camera image to the virtual image according to the plane homography matrix between the camera image and the virtual image of the laser speckle projector. The projector plane gets the virtual image of the laser speckle projector.

在一实施例中,平面单应矩阵描述了同一平面的点在不同图像之间的映射关系,该平面可以是标定板所在平面或者待测目标对应图像所在的平面。可以理解地,如在采用双目相机进行拍摄时,该两相机将得到平面上不同拍摄角度的图像,而平面单应矩阵描述了该不同拍摄角度图像间的映射关系。结合到本申请的方案,本申请借助于空间平面建立起相机和激光散斑投射器的联系,通过平面单应矩阵恢复激光散斑投射器对应的虚拟散斑图像。进一步地,在恢复出虚拟散斑图像后,本申请中的单目激光散斑投影系统等同于双目相机系统,可以采用双目立体视觉的方式对相机和激光散斑投射器(可恢复得到虚拟散斑图像,等同于相机的作用)进行立体矫正,在线标定等操作。In an embodiment, the plane homography matrix describes the mapping relationship between points on the same plane and different images, and the plane may be the plane where the calibration plate is located or the plane where the image corresponding to the target to be measured is located. Understandably, for example, when a binocular camera is used for shooting, the two cameras will obtain images at different shooting angles on the plane, and the plane homography matrix describes the mapping relationship between the images at different shooting angles. Combining with the solution of the present application, the present application establishes the connection between the camera and the laser speckle projector by means of a space plane, and restores the virtual speckle image corresponding to the laser speckle projector through the plane homography matrix. Further, after recovering the virtual speckle image, the monocular laser speckle projection system in this application is equivalent to the binocular camera system, and the camera and the laser speckle projector (which can be recovered to obtain Virtual speckle image, equivalent to the role of the camera) for stereo correction, online calibration and other operations.

可以理解地,传统的单目激光散斑投影系统需要利用精确的测距装置在不同的标准距离处拍摄对应的散斑图像,从而进一步完成外参标定,而本申请中的单目激光散斑投影系统,可通过带有标志特征的标定板计算出相机和激光散斑投射器关于图像转换关系的平面单应矩阵,使得激光散斑投射器可恢复出虚拟散斑图像,让本申请中的单目激光散斑投影系统具有等同于双目立体视觉的能力,可借助双视图约束的方式提高图像匹配速度,从而提高测量精度,并降低标定的复杂性;进一步地,如果设备长时间使用导致测量精度下降,用户可重新对该单目激光散斑系统进行外参数的快速标定,无需返厂重新进行标定。It is understandable that the traditional monocular laser speckle projection system needs to use an accurate ranging device to capture corresponding speckle images at different standard distances, so as to further complete the external parameter calibration, while the monocular laser speckle in this application The projection system can calculate the plane homography matrix of the image conversion relationship between the camera and the laser speckle projector through the calibration plate with the sign feature, so that the laser speckle projector can restore the virtual speckle image, so that the The monocular laser speckle projection system has the ability equivalent to binocular stereo vision, and can improve the image matching speed by means of dual view constraints, thereby improving the measurement accuracy and reducing the complexity of calibration; further, if the equipment is used for a long time, If the measurement accuracy decreases, the user can re-calibrate the external parameters of the monocular laser speckle system quickly without returning to the factory for re-calibration.

在本申请实施例中,与传统的单目激光散斑投影系统相比,本申请通过标定板实现单目激光散斑投影系统的外参数标定,不需要利用精确的测距装置在不同的标准距离处拍摄对应的散斑图像。这显著提高了测量效率,并降低了测量成本。本申请中的单目激光散斑投影系统等效于带有散斑图像的双目相机系统,提高了测量精度。此外本申请还能够标定出激光散斑投射器的光心和光轴位置,使得用户能够在线修正单目激光散斑投影系统在使用过程中出现的光轴偏移。In the embodiment of the present application, compared with the traditional monocular laser speckle projection system, the present application realizes the calibration of the external parameters of the monocular laser speckle projection system through the calibration plate, and does not need to use an accurate distance measuring device in different standards. The corresponding speckle image is taken at the distance. This significantly improves measurement efficiency and reduces measurement costs. The monocular laser speckle projection system in this application is equivalent to a binocular camera system with speckle images, which improves the measurement accuracy. In addition, the present application can also calibrate the position of the optical center and optical axis of the laser speckle projector, so that the user can online correct the optical axis deviation of the monocular laser speckle projection system during use.

需要说明的是,除了本申请中采用的利用单个平面标定板实现单目激光散斑投影系统的外参数标定外,也可以是采用由多个平面组成的立体标定件实现单目激光散斑投影系统的外参数标定。具体地,参照本申请,对于包括多个平面的立体标定件,可通过平面上的标志特征计算得到每个平面的空间平面方程,然后通过变动平面的位置,找出同名散斑像点,进一步再计算得到同名散斑像点的三维坐标,从而估算得到激光散斑投射器的光心和光轴位置,确定相机和激光散斑投射器不同平面的单应矩阵,最后根据这些单应矩阵可生成激光散斑投射器虚拟图像。该采用由多个平面组成的立体标定件进行外参数标定的单目激光散斑投影系统具有等同于双目相机系统的双目立体视觉能力,可便捷、高效地完成外参数的标定。应理解地,对于其他采用多平面实现的标定方式,也应包含在本申请的保护范围之内。It should be noted that, in addition to using a single plane calibration plate to realize the external parameter calibration of the monocular laser speckle projection system adopted in this application, the monocular laser speckle projection can also be realized by using a stereo calibration component composed of multiple planes. External parameter calibration of the system. Specifically, with reference to the present application, for a three-dimensional calibration piece including a plurality of planes, the spatial plane equation of each plane can be obtained by calculating the landmark features on the plane, and then by changing the position of the plane, the speckle image point of the same name can be found, and further Then calculate the three-dimensional coordinates of the speckle image point with the same name, so as to estimate the position of the optical center and optical axis of the laser speckle projector, determine the homography matrices of the different planes of the camera and the laser speckle projector, and finally generate the homography matrix according to these homography matrices. Laser speckle projector virtual image. The monocular laser speckle projection system using a stereo calibration piece composed of multiple planes for external parameter calibration has the binocular stereo vision capability equivalent to the binocular camera system, and can conveniently and efficiently complete the external parameter calibration. It should be understood that other calibration methods implemented by using multiple planes should also be included within the protection scope of the present application.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

本申请实施例提供一种单目激光散斑投影系统的外参数标定装置。该装置包括:The embodiment of the present application provides an external parameter calibration device of a monocular laser speckle projection system. The device includes:

相机标定图像采集模块,用于在单目激光散斑投影系统下采集相机标定图像,单目激光散斑投影系统包括相机和激光散斑投射器;The camera calibration image acquisition module is used to acquire the camera calibration image under the monocular laser speckle projection system, and the monocular laser speckle projection system includes a camera and a laser speckle projector;

相机参数标定模块,用于根据相机标定图像标定相机参数;The camera parameter calibration module is used to calibrate the camera parameters according to the camera calibration image;

散斑图像采集模块,用于制有标定板,在单目激光散斑投影系统下采集散斑图像,其中,标定板设有至少三个标志特征;The speckle image acquisition module is used to make a calibration plate and collect speckle images under the monocular laser speckle projection system, wherein the calibration plate is provided with at least three marking features;

空间平面方程计算模块,用于根据相机参数提取散斑图像的标志特征,并计算标定板的空间平面方程;The space plane equation calculation module is used to extract the signature features of the speckle image according to the camera parameters, and calculate the space plane equation of the calibration plate;

同名散斑像点获取模块,用于根据散斑图像获取同名散斑像点;The speckle image point acquisition module of the same name is used to obtain the speckle image point of the same name according to the speckle image;

同名散斑像点计算模块,用于根据标定板的空间平面方程,计算同名散斑像点的三维坐标;The speckle image point calculation module with the same name is used to calculate the three-dimensional coordinates of the speckle image point with the same name according to the space plane equation of the calibration plate;

光心光轴估算模块,用于根据同名散斑像点的三维坐标估算激光散斑投射器的光心和光轴位置;The optical center and optical axis estimation module is used to estimate the optical center and optical axis position of the laser speckle projector according to the three-dimensional coordinates of the speckle image point of the same name;

位姿关系计算模块,用于根据预设的激光散斑投射器坐标系,计算相机和激光散斑投射器之间的位姿关系;The pose relationship calculation module is used to calculate the pose relationship between the camera and the laser speckle projector according to the preset laser speckle projector coordinate system;

虚拟散斑图像生成模块,用于根据位姿关系计算相机图像和激光散斑投射器虚拟图像之间的平面单应矩阵,生成激光散斑投射器虚拟图像。The virtual speckle image generation module is used to calculate the plane homography matrix between the camera image and the virtual image of the laser speckle projector according to the pose relationship, and generate the virtual image of the laser speckle projector.

在本申请实施例中,与传统的单目激光散斑投影系统相比,本申请通过标定板实现单目激光散斑投影系统的外参数标定,不需要利用精确的测距装置在不同的标准距离处拍摄对应的散斑图像。这显著提高了测量效率,并降低了测量成本。本申请中的单目激光散斑投影系统等效于带有散斑图像的双目相机系统,提高了测量精度。此外本申请还能够标定出激光散斑投射器的光心和光轴位置,使得用户能够在线修正单目激光散斑投影系统在使用过程中出现的光轴偏移。In the embodiment of the present application, compared with the traditional monocular laser speckle projection system, the present application realizes the calibration of the external parameters of the monocular laser speckle projection system through the calibration plate, and does not need to use an accurate distance measuring device in different standards. The corresponding speckle image is taken at the distance. This significantly improves measurement efficiency and reduces measurement costs. The monocular laser speckle projection system in this application is equivalent to a binocular camera system with speckle images, which improves the measurement accuracy. In addition, the present application can also calibrate the position of the optical center and optical axis of the laser speckle projector, so that the user can online correct the optical axis deviation of the monocular laser speckle projection system during use.

本申请提供一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时执行如实施例所述单目激光散斑投影系统的外参数标定方法的步骤。The present application provides a computer device including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, the processor executing the computer-readable instructions when executing the For example, the steps of the external parameter calibration method of the monocular laser speckle projection system are described.

本申请提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如实施例所述单目激光散斑投影系统的外参数标定方法的步骤。The present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, implements the monocular laser speckle projection system according to the embodiment. The steps of the extrinsic parameter calibration method.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above.

以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in the application. within the scope of protection.

Claims (10)

1.一种单目激光散斑投影系统的外参数标定方法,其特征在于,包括:1. an external parameter calibration method of a monocular laser speckle projection system, is characterized in that, comprises: 在单目激光散斑投影系统下采集相机标定图像,所述单目激光散斑投影系统包括相机和激光散斑投射器;A camera calibration image is collected under a monocular laser speckle projection system, the monocular laser speckle projection system includes a camera and a laser speckle projector; 根据所述相机标定图像标定相机参数;Calibrate camera parameters according to the camera calibration image; 制有标定板,在所述单目激光散斑投影系统下采集散斑图像,其中,所述标定板设有至少三个标志特征;A calibration plate is prepared, and speckle images are collected under the monocular laser speckle projection system, wherein the calibration plate is provided with at least three marking features; 根据所述相机参数提取所述散斑图像的所述标志特征,并计算所述标定板的空间平面方程;Extract the sign feature of the speckle image according to the camera parameters, and calculate the space plane equation of the calibration plate; 根据所述散斑图像获取同名散斑像点;obtaining speckle image points with the same name according to the speckle image; 根据所述标定板的空间平面方程,计算所述同名散斑像点的三维坐标;Calculate the three-dimensional coordinates of the speckle image point with the same name according to the space plane equation of the calibration plate; 根据所述同名散斑像点的三维坐标估算所述激光散斑投射器的光心和光轴位置;Estimating the position of the optical center and the optical axis of the laser speckle projector according to the three-dimensional coordinates of the speckle image point with the same name; 根据预设的激光散斑投射器坐标系,计算所述相机和所述激光散斑投射器之间的位姿关系;calculating the pose relationship between the camera and the laser speckle projector according to the preset laser speckle projector coordinate system; 根据所述位姿关系计算相机图像和激光散斑投射器虚拟图像之间的平面单应矩阵,生成所述激光散斑投射器虚拟图像。The plane homography matrix between the camera image and the laser speckle projector virtual image is calculated according to the pose relationship, and the laser speckle projector virtual image is generated. 2.根据权利要求1所述的方法,其特征在于,所述标志特征为对角标志,所述计算所述标定板的空间平面方程,包括:2. The method according to claim 1, wherein the sign feature is a diagonal sign, and the calculation of the space plane equation of the calibration plate comprises: 在所述标定板上建立对应的世界坐标系,以左上方的所述对角标志为坐标系原点,x轴竖直向下经过左下方的所述对角标志,y轴水平向右经过右上方的所述对角标志,z轴垂直所述标定板向外,其中,所述对角标志在所述世界坐标系中的坐标表示为(Xw,Yw,1),所述对角标志的像素坐标(u,v)与所述世界坐标系的三维坐标(Xw,Yw,1)的关系表示为:A corresponding world coordinate system is established on the calibration board, with the diagonal mark on the upper left as the origin of the coordinate system, the x-axis passes vertically downward through the diagonal mark on the lower left, and the y-axis passes horizontally to the right through the upper right The diagonal mark of the square, the z-axis is perpendicular to the calibration plate outward, wherein the coordinates of the diagonal mark in the world coordinate system are expressed as (X w , Y w , 1), the diagonal The relationship between the pixel coordinates (u, v) of the logo and the three-dimensional coordinates (X w , Y w , 1) of the world coordinate system is expressed as:
Figure FDA0003606516660000011
Figure FDA0003606516660000011
其中,Kc为所述相机的内参数矩阵,s为比例系数,R为旋转矩阵,T为平移向量;能够得到所述标定板表面的所述对角标志在相机坐标系中的坐标(Xc,Yc,Zc):Wherein, K c is the internal parameter matrix of the camera, s is the scale coefficient, R is the rotation matrix, and T is the translation vector; the coordinates of the diagonal mark on the surface of the calibration plate in the camera coordinate system (X c ,Y c ,Z c ):
Figure FDA0003606516660000012
Figure FDA0003606516660000012
采用最小二乘法拟合得到所述标定板在所述相机坐标系中的空间平面方程。The space plane equation of the calibration plate in the camera coordinate system is obtained by least squares fitting.
3.根据权利要求1所述的方法,其特征在于,所述计算所述同名散斑像点的三维坐标,包括:3. The method according to claim 1, wherein the calculating the three-dimensional coordinates of the speckle image point with the same name comprises: 根据散斑像点坐标(u,v)和所述相机参数,计算出所述散斑像点在相机坐标系中的等效三维坐标(Xc,Yc,Zc)为:According to the speckle image point coordinates (u, v) and the camera parameters, the equivalent three-dimensional coordinates (X c , Y c , Z c ) of the speckle image point in the camera coordinate system are calculated as:
Figure FDA0003606516660000013
Figure FDA0003606516660000013
其中(Cx,Cy)是所述相机的主点坐标,dx和dy分别是像元在x轴和y轴方向上的物理尺寸,f是相机焦距;where (C x , C y ) are the coordinates of the principal point of the camera, d x and dy are the physical dimensions of the pixel in the x-axis and y-axis directions, respectively, and f is the camera focal length; 通过所述散斑像点与所述相机坐标系原点的空间直线方程可以表示为:The space straight line equation through the speckle image point and the origin of the camera coordinate system can be expressed as:
Figure FDA0003606516660000021
Figure FDA0003606516660000021
根据所述空间直线方程与所述标定板的空间平面方程,计算所述同名散斑像点的三维坐标,得到所述同名散斑像点对应的三维坐标集。According to the space straight line equation and the space plane equation of the calibration plate, the three-dimensional coordinates of the speckle image points with the same name are calculated to obtain a three-dimensional coordinate set corresponding to the speckle image points with the same name.
4.根据权利要求1所述的方法,其特征在于,所述计算所述相机和所述激光散斑投射器之间的位姿关系,包括:4. The method according to claim 1, wherein the calculating the pose relationship between the camera and the laser speckle projector comprises: 激光散斑投射器光轴在相机坐标系中的归一化方向向量为Vc=[vx,vy,vz]T,在所述激光散斑投射器坐标系中表示为Vp=[0,0,1]T,两者的关系能够表示为:The normalized direction vector of the optical axis of the laser speckle projector in the camera coordinate system is V c =[v x , vy ,v z ] T , which is expressed as V p = [0,0,1] T , the relationship between the two can be expressed as:
Figure FDA0003606516660000022
Figure FDA0003606516660000022
计算出Ax和AyCalculate A x and A y :
Figure FDA0003606516660000023
Figure FDA0003606516660000023
选取一个预设的Az值,计算得到旋转矩阵R,其中,Ax、Ay、Az为所述旋转矩阵R的欧拉角;A preset A z value is selected, and a rotation matrix R is obtained by calculation, wherein A x , A y , and A z are the Euler angles of the rotation matrix R; 激光散斑投射器的光心在所述相机坐标系中的坐标为(xp,yp,zp),在所述激光散斑投射器坐标系中的坐标为(0,0,0),两者的关系能够表示为:The coordinates of the optical center of the laser speckle projector in the camera coordinate system are (x p , y p , z p ), and the coordinates in the laser speckle projector coordinate system are (0,0,0) , the relationship between the two can be expressed as:
Figure FDA0003606516660000024
Figure FDA0003606516660000024
得到平移向量T:Get the translation vector T:
Figure FDA0003606516660000025
Figure FDA0003606516660000025
5.根据权利要求1所述的方法,其特征在于,所述根据所述位姿关系计算相机图像和激光散斑投射器虚拟图像之间的平面单应矩阵,包括:5. The method according to claim 1, wherein the calculating a plane homography matrix between the camera image and the laser speckle projector virtual image according to the pose relationship comprises: 设有散斑像点在相机坐标系中的坐标为(x1,y1,z1),在所述激光散斑投射器坐标系中为(x2,y2,z2),两者的关系可以表示为:It is assumed that the coordinates of the speckle image point in the camera coordinate system are (x 1 , y 1 , z 1 ), and in the laser speckle projector coordinate system is (x 2 , y 2 , z 2 ), and both The relationship can be expressed as:
Figure FDA0003606516660000026
Figure FDA0003606516660000026
根据所述散斑像点位于所述标定板表面,得到所述散斑像点在所述相机坐标系中的坐标满足以下方程:According to the speckle image point on the surface of the calibration plate, the coordinates of the speckle image point in the camera coordinate system satisfy the following equation:
Figure FDA0003606516660000027
Figure FDA0003606516660000027
其中,n为标定板的归一化法向量,d为所述相机坐标系原点到所述标定板的距离;Wherein, n is the normalized normal vector of the calibration plate, and d is the distance from the origin of the camera coordinate system to the calibration plate; 结合上述两式,得到:Combining the above two formulas, we get:
Figure FDA0003606516660000031
Figure FDA0003606516660000031
则所述相机图像和所述投射器虚拟图像之间的所述平面单应矩阵表示为:Then the plane homography matrix between the camera image and the projector virtual image is expressed as:
Figure FDA0003606516660000032
Figure FDA0003606516660000032
其中,Kc和Kp为所述相机和所述激光散斑投射器的内参数矩阵,且Kp=KcWherein, K c and K p are the internal parameter matrices of the camera and the laser speckle projector, and K p =K c .
6.根据权利要求1所述的方法,其特征在于,所述生成所述激光散斑投射器虚拟图像,包括:6. The method according to claim 1, wherein the generating the virtual image of the laser speckle projector comprises: 根据所述相机图像和所述激光散斑投射器虚拟图像之间的所述平面单应矩阵,将所述相机图像映射到虚拟投射器平面得到所述激光散斑投射器虚拟图像。According to the plane homography matrix between the camera image and the laser speckle projector virtual image, the camera image is mapped to the virtual projector plane to obtain the laser speckle projector virtual image. 7.根据权利要求1-6任一项所述的方法,其特征在于,在所述生成所述激光散斑投射器虚拟图像之后,将所述激光散斑投射器作为第二相机来使用,同所述单目激光散斑投影系统中的所述相机组成双目相机系统。7. The method according to any one of claims 1-6, wherein after the generating the virtual image of the laser speckle projector, the laser speckle projector is used as a second camera, A binocular camera system is formed with the camera in the monocular laser speckle projection system. 8.一种单目激光散斑投影系统的外参数标定装置,其特征在于,包括:8. An external parameter calibration device of a monocular laser speckle projection system, characterized in that, comprising: 相机标定图像采集模块,用于在单目激光散斑投影系统下采集相机标定图像,所述单目激光散斑投影系统包括相机和激光散斑投射器;a camera calibration image acquisition module, used for acquiring a camera calibration image under a monocular laser speckle projection system, the monocular laser speckle projection system comprising a camera and a laser speckle projector; 相机参数标定模块,用于根据所述相机标定图像标定相机参数;a camera parameter calibration module for calibrating camera parameters according to the camera calibration image; 散斑图像采集模块,用于制有标定板,在所述单目激光散斑投影系统下采集散斑图像,其中,所述标定板设有至少三个标志特征;a speckle image acquisition module, used for making a calibration plate, and collecting speckle images under the monocular laser speckle projection system, wherein the calibration plate is provided with at least three marking features; 空间平面方程计算模块,用于根据所述相机参数提取所述散斑图像的所述标志特征,并计算所述标定板的空间平面方程;a space plane equation calculation module, configured to extract the sign feature of the speckle image according to the camera parameters, and calculate the space plane equation of the calibration plate; 同名散斑像点获取模块,用于根据所述散斑图像获取同名散斑像点;a speckle image point acquisition module with the same name, used for acquiring the speckle image point with the same name according to the speckle image; 同名散斑像点计算模块,用于根据所述标定板的空间平面方程,计算所述同名散斑像点的三维坐标;A speckle image point calculation module with the same name, for calculating the three-dimensional coordinates of the speckle image point with the same name according to the space plane equation of the calibration plate; 光心光轴估算模块,用于根据所述同名散斑像点的三维坐标估算所述激光散斑投射器的光心和光轴位置;an optical center and optical axis estimation module, configured to estimate the optical center and optical axis positions of the laser speckle projector according to the three-dimensional coordinates of the speckle image point with the same name; 位姿关系计算模块,用于根据预设的激光散斑投射器坐标系,计算所述相机和所述激光散斑投射器之间的位姿关系;a pose relationship calculation module, configured to calculate the pose relationship between the camera and the laser speckle projector according to a preset coordinate system of the laser speckle projector; 虚拟散斑图像生成模块,用于根据所述位姿关系计算相机图像和激光散斑投射器虚拟图像之间的平面单应矩阵,生成所述激光散斑投射器虚拟图像。The virtual speckle image generation module is configured to calculate the plane homography matrix between the camera image and the virtual image of the laser speckle projector according to the pose relationship, and generate the virtual image of the laser speckle projector. 9.一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时执行如权利要求1-7任一项所述单目激光散斑投影系统的外参数标定方法的步骤。9. A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein when the processor executes the computer-readable instructions The steps of executing the method for calibrating the external parameters of the monocular laser speckle projection system according to any one of claims 1-7. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如权利要求1至7任一项所述单目激光散斑投影系统的外参数标定方法的步骤。10. A computer-readable storage medium storing computer-readable instructions, characterized in that, when the computer-readable instructions are executed by a processor, any one of claims 1 to 7 is implemented. The steps of the external parameter calibration method of the monocular laser speckle projection system are described.
CN202210417235.5A 2022-04-20 2022-04-20 External parameter calibration method and device for monocular laser speckle projection system Active CN114926538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210417235.5A CN114926538B (en) 2022-04-20 2022-04-20 External parameter calibration method and device for monocular laser speckle projection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210417235.5A CN114926538B (en) 2022-04-20 2022-04-20 External parameter calibration method and device for monocular laser speckle projection system

Publications (2)

Publication Number Publication Date
CN114926538A true CN114926538A (en) 2022-08-19
CN114926538B CN114926538B (en) 2025-04-08

Family

ID=82807382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210417235.5A Active CN114926538B (en) 2022-04-20 2022-04-20 External parameter calibration method and device for monocular laser speckle projection system

Country Status (1)

Country Link
CN (1) CN114926538B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116468782A (en) * 2023-03-29 2023-07-21 北京诺亦腾科技有限公司 Method, device, equipment and storage medium for virtual development of implanted device
WO2024098405A1 (en) * 2022-11-11 2024-05-16 网易(杭州)网络有限公司 Camera calibration method, three-dimensional reconstruction method, and image correction method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111243002A (en) * 2020-01-15 2020-06-05 中国人民解放军国防科技大学 Monocular laser speckle projection system calibration and depth estimation method applied to high-precision three-dimensional measurement
CN111487043A (en) * 2020-05-07 2020-08-04 北京的卢深视科技有限公司 Method for determining calibration parameters of speckle projector of monocular speckle structured light system
CN111896032A (en) * 2020-09-29 2020-11-06 北京清微智能科技有限公司 Calibration system and method for monocular speckle projector position
WO2021208933A1 (en) * 2020-04-16 2021-10-21 北京清微智能科技有限公司 Image rectification method and apparatus for camera
CN113793387A (en) * 2021-08-06 2021-12-14 中国科学院深圳先进技术研究院 Calibration method, device and terminal of monocular speckle structured light system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111243002A (en) * 2020-01-15 2020-06-05 中国人民解放军国防科技大学 Monocular laser speckle projection system calibration and depth estimation method applied to high-precision three-dimensional measurement
WO2021208933A1 (en) * 2020-04-16 2021-10-21 北京清微智能科技有限公司 Image rectification method and apparatus for camera
CN111487043A (en) * 2020-05-07 2020-08-04 北京的卢深视科技有限公司 Method for determining calibration parameters of speckle projector of monocular speckle structured light system
CN111896032A (en) * 2020-09-29 2020-11-06 北京清微智能科技有限公司 Calibration system and method for monocular speckle projector position
CN113793387A (en) * 2021-08-06 2021-12-14 中国科学院深圳先进技术研究院 Calibration method, device and terminal of monocular speckle structured light system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杭超;燕群;: "基于投影散斑的结构表面形貌测量", 科学技术与工程, no. 19, 10 July 2018 (2018-07-10) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024098405A1 (en) * 2022-11-11 2024-05-16 网易(杭州)网络有限公司 Camera calibration method, three-dimensional reconstruction method, and image correction method
CN116468782A (en) * 2023-03-29 2023-07-21 北京诺亦腾科技有限公司 Method, device, equipment and storage medium for virtual development of implanted device
CN116468782B (en) * 2023-03-29 2023-11-28 北京诺亦腾科技有限公司 Method, device, equipment and storage medium for virtual development of implanted device

Also Published As

Publication number Publication date
CN114926538B (en) 2025-04-08

Similar Documents

Publication Publication Date Title
WO2023201578A1 (en) Extrinsic parameter calibration method and device for monocular laser speckle projection system
CN111243002A (en) Monocular laser speckle projection system calibration and depth estimation method applied to high-precision three-dimensional measurement
KR101666959B1 (en) Image processing apparatus having a function for automatically correcting image acquired from the camera and method therefor
CN106548489B (en) A kind of method for registering, the three-dimensional image acquisition apparatus of depth image and color image
CN105931222B (en) The method for realizing high-precision camera calibration with low precision two dimensional surface target
CN110349221A (en) A kind of three-dimensional laser radar merges scaling method with binocular visible light sensor
CN115564842B (en) Parameter calibration method, device and equipment for binocular fisheye camera and storage medium
CN111220126A (en) Space object pose measurement method based on point features and monocular camera
CN108594245A (en) A kind of object movement monitoring system and method
CN111210468A (en) Image depth information acquisition method and device
CN107680139B (en) Universality calibration method of telecentric binocular stereo vision measurement system
CN104034305B (en) A kind of monocular vision is the method for location in real time
CN110874854B (en) Camera binocular photogrammetry method based on small baseline condition
CN109272555B (en) A method of obtaining and calibrating external parameters of RGB-D camera
CN111968182B (en) A calibration method for nonlinear model parameters of binocular camera
CN106157322B (en) A method of camera installation position calibration based on plane mirror
CN113034612A (en) Calibration device and method and depth camera
CN112229323A (en) Six degrees of freedom measurement method of checkerboard cooperation target based on monocular vision of mobile phone and its application
CN110779491A (en) Method, device and equipment for measuring distance of target on horizontal plane and storage medium
KR101597163B1 (en) Method and camera apparatus for calibration of stereo camera
CN114445503B (en) A long-distance and large-field-of-view binocular camera calibration method and three-dimensional measurement method
CN113822920B (en) Method for acquiring depth information by structured light camera, electronic equipment and storage medium
CN114299156A (en) Method for calibrating and unifying coordinates of multiple cameras in non-overlapping area
CN114926538A (en) External parameter calibration method and device for monocular laser speckle projection system
CN112750165B (en) Parameter calibration method, intelligent driving method and device, equipment and storage medium thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant