CN115420196B - A universal three-dimensional object measurement method and device - Google Patents
A universal three-dimensional object measurement method and device Download PDFInfo
- Publication number
- CN115420196B CN115420196B CN202211046239.3A CN202211046239A CN115420196B CN 115420196 B CN115420196 B CN 115420196B CN 202211046239 A CN202211046239 A CN 202211046239A CN 115420196 B CN115420196 B CN 115420196B
- Authority
- CN
- China
- Prior art keywords
- reference sphere
- dimensional
- center
- measured
- rotation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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/002—Measuring arrangements characterised by the use of optical techniques for measuring two or more coordinates
-
- 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/24—Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30244—Camera pose
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
本发明涉及三维测量领域,尤其涉及一种通用型物体三维测量方法及装置,所述一种通用型物体三维测量方法包括:利用所述待测物体基于初始位置得到待测物体基础图像;利用所述待测物体基础图像得到待测物体三维测量数据,通过采集待测物体多角度图像数据进行处理,通用性强,能针对透明、漫反射、高反射或不同材质物品表面实现三维重建,同时提升了测量识别的效率,降低了成本,基于简单有效的标定思路有效提升测量系统的重建精度。
The invention relates to the field of three-dimensional measurement, and in particular to a universal object three-dimensional measurement method and device. The universal object three-dimensional measurement method includes: using the object to be measured to obtain a basic image of the object to be measured based on an initial position; The three-dimensional measurement data of the object to be measured is obtained by describing the basic image of the object to be measured. It is processed by collecting multi-angle image data of the object to be measured. It has strong versatility and can achieve three-dimensional reconstruction for transparent, diffuse reflection, high reflection or surfaces of different materials, while improving It improves the efficiency of measurement identification, reduces costs, and effectively improves the reconstruction accuracy of the measurement system based on a simple and effective calibration idea.
Description
技术领域Technical field
本发明涉及三维测量领域,具体涉及一种通用型物体三维测量方法及装置。The invention relates to the field of three-dimensional measurement, and in particular to a universal three-dimensional object measurement method and device.
背景技术Background technique
物品仓储是厂商经营成本的重要组成部分,以物品陈列为例,目前大型超市在进行物品入库或者陈列前,一般都会由操作人员测量每类物品的长宽高等几何尺寸并录入到系统中,由系统优化计算商品位置。过去操作人员往往采用卡尺进行人工测量,虽然每类物品只需要测一件,但由于超市每天采购的新物品种类非常多,因此工作量相当大,从而造成人力成本的提高。除了超市之外,具有仓储管理需求的其他厂商,都急需能为其提供三维尺寸的低成本、通用型快速测量方法及设备。Warehousing of items is an important part of a manufacturer's operating costs. Take item display as an example. At present, before items are stored or displayed in large supermarkets, operators generally measure the length, width, height and other geometric dimensions of each type of item and enter them into the system. The product location is calculated optimally by the system. In the past, operators often used calipers for manual measurement. Although only one item of each type needed to be measured, because supermarkets purchased so many new items every day, the workload was quite large, resulting in increased labor costs. In addition to supermarkets, other manufacturers with warehouse management needs are in urgent need of low-cost, universal and rapid measurement methods and equipment that can provide three-dimensional dimensions.
发明内容Contents of the invention
针对现有技术的不足,本发明提供了一种通用型物体三维测量方法及装置,通过小孔成像与确定标准转轴的方法,对待测物体成像进行处理得到测量数据。In view of the shortcomings of the existing technology, the present invention provides a universal three-dimensional object measurement method and device, which processes the image of the object to be measured to obtain measurement data through a method of small hole imaging and determining a standard rotation axis.
为实现上述目的,本发明提供了一种通用型物体三维测量方法,包括:In order to achieve the above objectives, the present invention provides a universal three-dimensional object measurement method, including:
S1、利用待测物体基于初始位置得到待测物体基础图像;S1. Use the object to be tested to obtain the basic image of the object to be tested based on its initial position;
S2、利用所述待测物体基础图像得到待测物体三维测量数据。S2. Use the basic image of the object to be measured to obtain three-dimensional measurement data of the object to be measured.
S2-1、利用所述待测物体基础图像基于小孔模型逆向追迹得到基础可视锥体;S2-1. Use the basic image of the object to be measured to obtain the basic visual cone through reverse tracing based on the small hole model;
S2-2、利用所述基础可视锥体基于标准转轴旋转5°后得到旋转可视锥体;S2-2. Use the basic visual cone to rotate 5° based on the standard rotating axis to obtain a rotating visual cone;
S2-3、利用所述待测物体基于固定转轴旋转5°后得到当前视角的物体图像;S2-3. Use the object to be measured to rotate 5° based on the fixed axis to obtain the object image of the current viewing angle;
S2-4、利用所述当前视角的物体图像基于小孔模型逆向追迹得到当前视角的可视锥体;S2-4. Use the object image of the current perspective to obtain the visual cone of the current perspective through reverse tracing based on the small hole model;
S2-5、利用所述当前视角的可视锥体和旋转可视锥体进行相交处理得到当前视角的锥体相交区域,利用所述当前视角的锥体相交区域作为相邻下一次旋转的基础可视锥体;S2-5. Use the visual cone of the current perspective and the rotating visual cone to perform intersection processing to obtain the cone intersection area of the current perspective, and use the cone intersection area of the current perspective as the basis for the next adjacent rotation. visual cone;
S2-6、重复步骤S2-3至S2-5共70次后,得到待测物体相交锥体点云;S2-6. After repeating steps S2-3 to S2-5 for a total of 70 times, the intersection cone point cloud of the object to be measured is obtained;
S2-7、利用所述待测物体相交锥体点云基于α-shape算法得到待测物体三维轮廓;S2-7. Use the intersecting cone point cloud of the object to be measured to obtain the three-dimensional contour of the object to be measured based on the α-shape algorithm;
S2-8、利用所述待测物体三维轮廓的图像基于最小包围盒算法得到待测物体三维测量数据。S2-8. Use the image of the three-dimensional contour of the object to be measured to obtain the three-dimensional measurement data of the object to be measured based on the minimum bounding box algorithm.
优选的,利用所述基础可视锥体基于标准转轴旋转5°后得到旋转可视锥体包括:Preferably, the rotating visual cone obtained by rotating the basic visual cone by 5° based on the standard axis of rotation includes:
利用基准球体进行标定处理得到标准转轴;Use the reference sphere for calibration to obtain the standard axis;
利用基础可视锥体基于标准转轴旋转5°后得到旋转可视锥体;Use the basic visual cone to rotate 5° based on the standard axis to obtain a rotating visual cone;
其中,所述基准球体的直径范围为5mm-20mm。Wherein, the diameter range of the reference sphere is 5mm-20mm.
进一步的,所述利用基准球体进行标定处理得到标准转轴包括:Further, the calibration process using a reference sphere to obtain a standard rotating axis includes:
利用所述基准球体基于初始位置每旋转5°进行背光拍照处理得到基准球体旋转图像集合;Utilize the reference sphere to perform backlight photography processing every 5° of rotation based on the initial position to obtain a set of reference sphere rotation images;
利用所述基准球体旋转图像集合基于Sobel算子得到基准球体二维轮廓像素坐标;Use the reference sphere rotation image set to obtain the two-dimensional outline pixel coordinates of the reference sphere based on the Sobel operator;
利用所述基准球体二维轮廓像素坐标基于最小二乘法进行拟合处理得到基准球体球心二维像素坐标;Utilize the two-dimensional outline pixel coordinates of the reference sphere to perform fitting processing based on the least squares method to obtain the two-dimensional pixel coordinates of the center of the reference sphere;
利用所述基准球体球心二维像素坐标得到基准球体像素直径;Using the two-dimensional pixel coordinates of the center of the reference sphere to obtain the pixel diameter of the reference sphere;
利用所述基准球体像素直径与基准球体实际直径计算尺度因子;Calculate the scale factor using the pixel diameter of the reference sphere and the actual diameter of the reference sphere;
利用所述尺度因子计算得到基准球体球心三维坐标;Calculate the three-dimensional coordinates of the center of the reference sphere using the scale factor;
利用初始位置基准球体球心三维坐标和旋转角度得到基准球体球心旋转三维坐标;Use the three-dimensional coordinates of the center of the reference sphere at the initial position and the rotation angle to obtain the three-dimensional coordinates of the rotation of the center of the reference sphere;
利用所述基准球体球心旋转三维坐标和基准球体球心三维坐标基于非线性迭代优化法计算得到标准转轴。The standard rotation axis is calculated based on the nonlinear iterative optimization method using the three-dimensional rotation coordinates of the reference sphere center and the three-dimensional coordinates of the reference sphere center.
进一步的,利用所述基准球体像素直径与基准球体实际直径计算尺度因子的计算式如下:Further, the calculation formula for calculating the scale factor using the pixel diameter of the reference sphere and the actual diameter of the reference sphere is as follows:
其中,s为尺度因子,D为基准球体实际直径,d为基准球体像素直径。Among them, s is the scale factor, D is the actual diameter of the reference sphere, and d is the pixel diameter of the reference sphere.
进一步的,利用所述尺度因子计算得到基准球体球心三维坐标的计算式如下:Further, using the scale factor to calculate the three-dimensional coordinates of the center of the reference sphere, the calculation formula is as follows:
其中,(xi,yi,zi)为相机坐标系下基准球体球心三维坐标,s为尺度因子,A为相机内参,(ui,vi)为基准球体球心二维像素坐标。Among them, (x i , y i , z i ) are the three-dimensional coordinates of the center of the reference sphere in the camera coordinate system, s is the scale factor, A is the internal parameter of the camera, and (u i , vi ) are the two-dimensional pixel coordinates of the center of the reference sphere. .
进一步的,利用初始位置基准球体球心三维坐标和旋转角度得到基准球体球心旋转三维坐标包括:Further, using the three-dimensional coordinates of the center of the reference sphere at the initial position and the rotation angle to obtain the three-dimensional coordinates of the rotation of the center of the reference sphere include:
利用基准球体获取形式单位向量;Use the datum sphere to obtain the formal unit vector;
利用所述形式单位向量得到形式单位向量叉积矩阵;Using the formal unit vectors, obtain a formal unit vector cross product matrix;
利用所述形式单位向量叉积矩阵基于旋转次数计算基准球体旋转球心三维坐标。The formal unit vector cross product matrix is used to calculate the three-dimensional coordinates of the rotation center of the reference sphere based on the number of rotations.
进一步的,利用所述形式单位向量叉积矩阵基于旋转次数计算基准球体旋转球心三维坐标的计算式如下:Furthermore, the formula for calculating the three-dimensional coordinates of the center of rotation of the reference sphere based on the number of rotations using the formal unit vector cross product matrix is as follows:
其中,(xk,yk,zk)为基准球体旋转球心像素三维坐标,L为单位矩阵,θk为旋转k次5°后的角度,M为形式单位向量的叉积矩阵,(x1,y1,z1)为初始位置下的基准球体球心三维坐标。Among them, (x k , y k , z k ) are the three-dimensional coordinates of the center pixel of the reference sphere rotation, L is the unit matrix, θ k is the angle after k times of 5° rotation, M is the cross product matrix of the formal unit vector, ( x 1 , y 1 , z 1 ) are the three-dimensional coordinates of the center of the reference sphere at the initial position.
进一步的,利用所述基准球体球心旋转三维坐标和基准球体球心三维坐标基于非线性迭代优化法计算得到标准转轴的计算式如下:Further, the calculation formula of the standard rotation axis is calculated based on the nonlinear iterative optimization method using the three-dimensional coordinates of the rotation of the center of the reference sphere and the three-dimensional coordinates of the center of the reference sphere as follows:
其中,p为标准转轴,(xi,yi,zi)为相机坐标系下基准球体球心三维坐标,(xk,yk,zk)为基准球体旋转球心像素三维坐标。Among them, p is the standard axis of rotation, (x i , y i , z i ) are the three-dimensional coordinates of the center of the base sphere in the camera coordinate system, and (x k , y k , z k ) are the three-dimensional coordinates of the center pixel of the base sphere's rotation sphere.
基于同一发明构思,本发明还提供了一种通用型物品三维测量装置,包括:Based on the same inventive concept, the present invention also provides a universal three-dimensional object measurement device, including:
旋转转台,用于放置待测物体或基准球体;Rotating turntable, used to place the object to be measured or the reference sphere;
相机,用于获取背光板上基准球体的图像;A camera to acquire an image of the reference sphere on the backlight plate;
背光板,用于接收所述待测物体或基准球体的成像;A backlight panel, used to receive the image of the object to be measured or the reference sphere;
所述旋转转台设置于靠近背光板一侧,所述基准球体设置于旋转转台的中央。The rotating turntable is disposed on the side close to the backlight plate, and the reference sphere is disposed in the center of the rotating turntable.
与最接近的现有技术相比,本发明具有的有益效果:Compared with the closest existing technology, the present invention has the following beneficial effects:
通过采集待测物体多角度图像数据进行处理,通用性强,能针对透明、漫反射、高反射或不同材质物品表面实现三维重建,同时提升了测量识别的效率,降低了成本,基于简单有效的标定思路有效提升测量系统的重建精度。By collecting multi-angle image data of the object to be measured for processing, it has strong versatility and can achieve three-dimensional reconstruction for transparent, diffuse reflection, high reflection or surfaces of different materials. It also improves the efficiency of measurement and identification and reduces costs. Based on simple and effective The calibration idea effectively improves the reconstruction accuracy of the measurement system.
附图说明Description of the drawings
图1是本发明提供的一种通用型物体三维测量方法流程图;Figure 1 is a flow chart of a universal three-dimensional object measurement method provided by the present invention;
图2是本发明提供的一种通用型物品三维测量装置示意图;Figure 2 is a schematic diagram of a universal three-dimensional object measurement device provided by the present invention;
附图标记:Reference signs:
1、旋转转台;2、相机;3、背光板;4、待测物体;5、基准球体;6、相机支撑板;7、底板;8、肋板;9、侧板。1. Rotating turntable; 2. Camera; 3. Backlight plate; 4. Object to be measured; 5. Reference sphere; 6. Camera support plate; 7. Bottom plate; 8. Rib plate; 9. Side plate.
具体实施方式Detailed ways
下面结合附图对本发明的具体实施方式作进一步的详细说明。The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
实施例1:Example 1:
本发明提供了一种通用型物体三维测量方法,如图1所示,包括:The present invention provides a universal three-dimensional object measurement method, as shown in Figure 1, including:
S1、利用待测物体基于初始位置得到待测物体基础图像;S1. Use the object to be tested to obtain the basic image of the object to be tested based on its initial position;
S2、利用所述待测物体基础图像得到待测物体三维测量数据。S2. Use the basic image of the object to be measured to obtain three-dimensional measurement data of the object to be measured.
步骤S2具体包括:Step S2 specifically includes:
S2-1、利用所述待测物体基础图像基于小孔模型逆向追迹得到基础可视锥体;S2-1. Use the basic image of the object to be measured to obtain the basic visual cone through reverse tracing based on the small hole model;
S2-2、利用所述基础可视锥体基于标准转轴旋转5°后得到旋转可视锥体;S2-2. Use the basic visual cone to rotate 5° based on the standard rotating axis to obtain a rotating visual cone;
S2-3、利用所述待测物体基于固定转轴旋转5°后得到当前视角的物体图像;S2-3. Use the object to be measured to rotate 5° based on the fixed axis to obtain the object image of the current viewing angle;
S2-4、利用所述当前视角的物体图像基于小孔模型逆向追迹得到当前视角的可视锥体;S2-4. Use the object image of the current perspective to obtain the visual cone of the current perspective through reverse tracing based on the small hole model;
S2-5、利用所述当前视角的可视锥体和旋转可视锥体进行相交处理得到当前视角的锥体相交区域,利用所述当前视角的锥体相交区域作为相邻下一次旋转的基础可视锥体;S2-5. Use the visual cone of the current perspective and the rotating visual cone to perform intersection processing to obtain the cone intersection area of the current perspective, and use the cone intersection area of the current perspective as the basis for the next adjacent rotation. visual cone;
S2-6、重复步骤S2-3至S2-5共70次后,得到待测物体相交锥体点云;S2-6. After repeating steps S2-3 to S2-5 for a total of 70 times, the intersection cone point cloud of the object to be measured is obtained;
S2-7、利用所述待测物体相交锥体点云基于α-shape算法得到待测物体三维轮廓;S2-7. Use the intersecting cone point cloud of the object to be measured to obtain the three-dimensional contour of the object to be measured based on the α-shape algorithm;
S2-8、利用所述待测物体三维轮廓的图像基于最小包围盒算法得到待测物体三维测量数据。S2-8. Use the image of the three-dimensional contour of the object to be measured to obtain the three-dimensional measurement data of the object to be measured based on the minimum bounding box algorithm.
步骤S2-2具体包括:Step S2-2 specifically includes:
S2-2-1、利用基准球体进行标定处理得到标准转轴;S2-2-1. Use the reference sphere for calibration to obtain the standard rotating axis;
S2-2-2、利用基础可视锥体基于标准转轴旋转5°后得到旋转可视锥体;S2-2-2. Use the basic visual cone to rotate 5° based on the standard axis to obtain a rotating visual cone;
其中,所述基准球体的直径范围为5mm-20mm。Wherein, the diameter range of the reference sphere is 5mm-20mm.
步骤S2-2-1具体包括:Step S2-2-1 specifically includes:
S2-2-1-1、利用所述基准球体基于初始位置每旋转5°进行背光拍照处理得到基准球体旋转图像集合;S2-2-1-1. Use the reference sphere to perform backlight photography processing every 5° of rotation based on the initial position to obtain a set of reference sphere rotation images;
S2-2-1-2、利用所述基准球体旋转图像集合基于Sobel算子得到基准球体二维轮廓像素坐标;S2-2-1-2. Use the reference sphere rotation image set to obtain the two-dimensional outline pixel coordinates of the reference sphere based on the Sobel operator;
S2-2-1-3、利用所述基准球体二维轮廓像素坐标基于最小二乘法进行拟合处理得到基准球体球心二维像素坐标;S2-2-1-3. Use the two-dimensional outline pixel coordinates of the reference sphere to perform fitting processing based on the least squares method to obtain the two-dimensional pixel coordinates of the center of the reference sphere;
S2-2-1-4、利用所述基准球体球心二维像素坐标得到基准球体像素直径;S2-2-1-4. Use the two-dimensional pixel coordinates of the center of the reference sphere to obtain the pixel diameter of the reference sphere;
S2-2-1-5、利用所述基准球体像素直径与基准球体实际直径计算尺度因子;S2-2-1-5. Calculate the scale factor using the pixel diameter of the reference sphere and the actual diameter of the reference sphere;
S2-2-1-6、利用所述尺度因子计算得到基准球体球心三维坐标;S2-2-1-6. Use the scale factor to calculate the three-dimensional coordinates of the center of the reference sphere;
S2-2-1-7、利用初始位置基准球体球心三维坐标和旋转角度得到基准球体球心旋转三维坐标;S2-2-1-7. Use the three-dimensional coordinates of the center of the reference sphere at the initial position and the rotation angle to obtain the three-dimensional coordinates of the rotation of the center of the reference sphere;
S2-2-1-8、利用所述基准球体球心旋转三维坐标和基准球体球心三维坐标基于非线性迭代优化法计算得到标准转轴。S2-2-1-8. Calculate the standard rotation axis based on the nonlinear iterative optimization method using the three-dimensional rotation coordinates of the reference sphere center and the three-dimensional coordinates of the reference sphere center.
步骤S2-2-1-5的计算式如下:The calculation formula of step S2-2-1-5 is as follows:
其中,s为尺度因子,D为基准球体实际直径,d为基准球体像素直径。Among them, s is the scale factor, D is the actual diameter of the reference sphere, and d is the pixel diameter of the reference sphere.
本实施例中,一种通用型物体测量方法,所述基准球体的图像轮廓在空间中一定过球心,且过同一球心不同截面轮廓直径一定相等,这是共球心的必然结果,因此利用基准球体实际直径与基准球体像素直径可以直接计算尺度因子。In this embodiment, a universal object measurement method, the image outline of the reference sphere must pass through the center of the sphere in space, and the diameters of different cross-sectional profiles passing through the same sphere center must be equal. This is an inevitable result of sharing the center of the sphere, so The scale factor can be calculated directly using the actual diameter of the reference sphere and the pixel diameter of the reference sphere.
步骤S2-2-1-6的计算式如下:The calculation formula of step S2-2-1-6 is as follows:
其中,(xi,yi,zi)为相机坐标系下基准球体球心三维坐标,s为尺度因子,A为相机内参,(ui,vi)为基准球体球心二维像素坐标。Among them, (x i , y i , z i ) are the three-dimensional coordinates of the center of the reference sphere in the camera coordinate system, s is the scale factor, A is the internal parameter of the camera, and (u i , vi ) are the two-dimensional pixel coordinates of the center of the reference sphere. .
本实施例中,一种通用型物体三维测量方法,所述基准球体像素球心三维坐标系对应的内参通过基于MATLAB相机标定工具箱对相机进行内参标定。In this embodiment, a universal three-dimensional object measurement method is provided. The internal parameters corresponding to the three-dimensional coordinate system of the pixel center of the reference sphere are used to calibrate the camera based on the MATLAB camera calibration toolbox.
步骤S2-2-1-7具体包括:Step S2-2-1-7 specifically includes:
S2-2-1-7-1、利用基准球体获取形式单位向量;S2-2-1-7-1. Use the reference sphere to obtain the formal unit vector;
S2-2-1-7-2、利用所述形式单位向量得到形式单位向量叉积矩阵;S2-2-1-7-2. Use the formal unit vector to obtain the formal unit vector cross product matrix;
S2-2-1-7-3、利用所述形式单位向量叉积矩阵基于旋转次数计算基准球体旋转球心三维坐标。S2-2-1-7-3. Use the formal unit vector cross product matrix to calculate the three-dimensional coordinates of the rotation center of the reference sphere based on the number of rotations.
本实施例中,一种通用型物体三维测量方法,所述形式单位向量为取标定转轴上的两个假设点,便于后续标定转轴计算。In this embodiment, a universal three-dimensional object measurement method is provided. The formal unit vector is two hypothetical points on the calibration axis, which facilitates the subsequent calculation of the calibration axis.
步骤S2-2-1-7-3的计算式如下:The calculation formula of step S2-2-1-7-3 is as follows:
其中,(xk,yk,zk)为基准球体旋转球心像素三维坐标,L为单位矩阵,θk为旋转k次5°后的角度,M为形式单位向量的叉积矩阵,(x1,y1,z1)为初始位置下的基准球体球心三维坐标。Among them, (x k , y k , z k ) are the three-dimensional coordinates of the center pixel of the reference sphere rotation, L is the unit matrix, θ k is the angle after k times of 5° rotation, M is the cross product matrix of the formal unit vector, ( x 1 , y 1 , z 1 ) are the three-dimensional coordinates of the center of the reference sphere at the initial position.
步骤S2-2-1-8的计算式如下:The calculation formula of step S2-2-1-8 is as follows:
其中,p为标准转轴,(xi,yi,zi)为相机坐标系下基准球体球心三维坐标,(xk,yk,zk)为基准球体旋转球心像素三维坐标。Among them, p is the standard axis of rotation, (x i , y i , z i ) are the three-dimensional coordinates of the center of the base sphere in the camera coordinate system, and (x k , y k , z k ) are the three-dimensional coordinates of the center pixel of the base sphere's rotation sphere.
实施例2:Example 2:
本发明提供了一种通用型物品三维测量装置,如图2所示,包括:The invention provides a universal three-dimensional object measurement device, as shown in Figure 2, including:
旋转转台1,用于放置待测物体4或基准球体5;Rotating turntable 1, used to place the object to be measured 4 or the reference sphere 5;
相机2,用于获取背光板3上基准球体5的图像;Camera 2, used to obtain the image of the reference sphere 5 on the backlight panel 3;
背光板3,用于接收所述待测物体4或基准球体5的成像;Backlight panel 3, used to receive the image of the object to be measured 4 or the reference sphere 5;
所述旋转转台1设置于靠近背光板3一侧,所述基准球体5设置于旋转转台1的中央,底板7包括左侧底板与右侧底板,肋板8包括左侧肋板与右侧肋板,侧板9包括左侧侧板与右侧侧板,所述左侧底板与左侧侧板通过左侧肋板连接固定,所述背光板3设置于左侧肋板上,所述右侧底板与右侧侧板通过右侧侧板连接固定,所述相机2通过相机支撑板6固定设置于右侧侧板上。The rotating turntable 1 is arranged on the side close to the backlight plate 3, the reference sphere 5 is arranged in the center of the rotating turntable 1, the bottom plate 7 includes a left bottom plate and a right bottom plate, and the rib 8 includes a left rib and a right rib. The side panel 9 includes a left side panel and a right side panel. The left bottom panel and the left side panel are connected and fixed by the left rib. The backlight panel 3 is arranged on the left rib. The side bottom plate and the right side plate are connected and fixed through the right side plate, and the camera 2 is fixedly arranged on the right side plate through the camera support plate 6 .
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对其限制,尽管参照上述实施例对本发明进行了详细的说明,所属领域的普通技术人员应当理解:依然可以对本发明的具体实施方式进行修改或者等同替换,而未脱离本发明精神和范围的任何修改或者等同替换,其均应涵盖在本发明的权利要求保护范围之内。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that the present invention can still be modified. Modifications or equivalent substitutions may be made to the specific embodiments, and any modifications or equivalent substitutions that do not depart from the spirit and scope of the invention shall be covered by the scope of the claims of the invention.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211046239.3A CN115420196B (en) | 2022-08-30 | 2022-08-30 | A universal three-dimensional object measurement method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211046239.3A CN115420196B (en) | 2022-08-30 | 2022-08-30 | A universal three-dimensional object measurement method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115420196A CN115420196A (en) | 2022-12-02 |
| CN115420196B true CN115420196B (en) | 2023-11-14 |
Family
ID=84200032
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211046239.3A Active CN115420196B (en) | 2022-08-30 | 2022-08-30 | A universal three-dimensional object measurement method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115420196B (en) |
Citations (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001101410A (en) * | 1999-09-28 | 2001-04-13 | Suzuki Motor Corp | Transformation matrix data generating method, correction jig and three-dimensional measuring system |
| JP2001148021A (en) * | 1999-11-22 | 2001-05-29 | Nippon Telegr & Teleph Corp <Ntt> | Image processing method, three-dimensional model data generation method, and their devices |
| CN101359035A (en) * | 2007-07-30 | 2009-02-04 | 比亚迪股份有限公司 | Method and device for measuring battery internal resistance |
| CN101403606A (en) * | 2008-10-20 | 2009-04-08 | 中国海洋大学 | Large visual field dual-shaft measuring apparatus based on line-structured light |
| JP2011242139A (en) * | 2010-05-14 | 2011-12-01 | Pulstec Industrial Co Ltd | Device and method for measuring three dimensional shape |
| CN202854303U (en) * | 2012-03-14 | 2013-04-03 | 山东电力集团公司德州供电公司 | Cell internal resistance measure apparatus |
| CN104331924A (en) * | 2014-11-26 | 2015-02-04 | 西安冉科信息技术有限公司 | Three-dimensional reconstruction method based on single camera SFS algorithm |
| WO2016040582A1 (en) * | 2014-09-11 | 2016-03-17 | University Of Delaware | Real-time object capturing and 3d display systems and methods |
| CN107608876A (en) * | 2017-08-04 | 2018-01-19 | 上海交通大学 | Turntable control system for 3D scanning and visual recognition evaluation |
| CN108151668A (en) * | 2017-12-15 | 2018-06-12 | 西安交通大学 | A kind of full DATA REASONING joining method of blade profile and device |
| CN108981604A (en) * | 2018-07-11 | 2018-12-11 | 天津工业大学 | A kind of precision component three-dimensional overall picture measurement method based on line laser |
| CN109509258A (en) * | 2018-11-02 | 2019-03-22 | 沈阳化工大学 | A kind of product based on 3-D scanning inversely deconstructs method |
| JP2020139848A (en) * | 2019-02-28 | 2020-09-03 | 株式会社Ihi | Calibration apparatus for three-dimensional measuring machine |
| CN111693782A (en) * | 2020-06-24 | 2020-09-22 | 珠海伊托科技有限公司 | Storage battery internal resistance test and large current tolerance test device with loop resistor |
| AU2020103301A4 (en) * | 2020-11-06 | 2021-01-14 | Sichuan University | Structural light 360-degree three-dimensional surface shape measurement method based on feature phase constraints |
| CN113205603A (en) * | 2021-05-07 | 2021-08-03 | 无锡信捷电气股份有限公司 | Three-dimensional point cloud splicing reconstruction method based on rotating platform |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7065242B2 (en) * | 2000-03-28 | 2006-06-20 | Viewpoint Corporation | System and method of three-dimensional image capture and modeling |
| JP4085671B2 (en) * | 2002-03-29 | 2008-05-14 | コニカミノルタホールディングス株式会社 | Data processing method, data processing program, and recording medium |
-
2022
- 2022-08-30 CN CN202211046239.3A patent/CN115420196B/en active Active
Patent Citations (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001101410A (en) * | 1999-09-28 | 2001-04-13 | Suzuki Motor Corp | Transformation matrix data generating method, correction jig and three-dimensional measuring system |
| JP2001148021A (en) * | 1999-11-22 | 2001-05-29 | Nippon Telegr & Teleph Corp <Ntt> | Image processing method, three-dimensional model data generation method, and their devices |
| CN101359035A (en) * | 2007-07-30 | 2009-02-04 | 比亚迪股份有限公司 | Method and device for measuring battery internal resistance |
| CN101403606A (en) * | 2008-10-20 | 2009-04-08 | 中国海洋大学 | Large visual field dual-shaft measuring apparatus based on line-structured light |
| JP2011242139A (en) * | 2010-05-14 | 2011-12-01 | Pulstec Industrial Co Ltd | Device and method for measuring three dimensional shape |
| CN202854303U (en) * | 2012-03-14 | 2013-04-03 | 山东电力集团公司德州供电公司 | Cell internal resistance measure apparatus |
| WO2016040582A1 (en) * | 2014-09-11 | 2016-03-17 | University Of Delaware | Real-time object capturing and 3d display systems and methods |
| CN104331924A (en) * | 2014-11-26 | 2015-02-04 | 西安冉科信息技术有限公司 | Three-dimensional reconstruction method based on single camera SFS algorithm |
| CN107608876A (en) * | 2017-08-04 | 2018-01-19 | 上海交通大学 | Turntable control system for 3D scanning and visual recognition evaluation |
| CN108151668A (en) * | 2017-12-15 | 2018-06-12 | 西安交通大学 | A kind of full DATA REASONING joining method of blade profile and device |
| CN108981604A (en) * | 2018-07-11 | 2018-12-11 | 天津工业大学 | A kind of precision component three-dimensional overall picture measurement method based on line laser |
| CN109509258A (en) * | 2018-11-02 | 2019-03-22 | 沈阳化工大学 | A kind of product based on 3-D scanning inversely deconstructs method |
| JP2020139848A (en) * | 2019-02-28 | 2020-09-03 | 株式会社Ihi | Calibration apparatus for three-dimensional measuring machine |
| CN111693782A (en) * | 2020-06-24 | 2020-09-22 | 珠海伊托科技有限公司 | Storage battery internal resistance test and large current tolerance test device with loop resistor |
| AU2020103301A4 (en) * | 2020-11-06 | 2021-01-14 | Sichuan University | Structural light 360-degree three-dimensional surface shape measurement method based on feature phase constraints |
| CN113205603A (en) * | 2021-05-07 | 2021-08-03 | 无锡信捷电气股份有限公司 | Three-dimensional point cloud splicing reconstruction method based on rotating platform |
Non-Patent Citations (1)
| Title |
|---|
| 多视角背影轮廓3D测量方法的研究;何丽;《中国优秀硕士学位论文全文数据库(电子期刊)工程科技I辑》;B022-200页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115420196A (en) | 2022-12-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Sun et al. | A robust method to extract a laser stripe centre based on grey level moment | |
| Wang et al. | A two-step calibration method of a large FOV binocular stereovision sensor for onsite measurement | |
| Xia et al. | An accurate and robust method for the measurement of circular holes based on binocular vision | |
| Barone et al. | 3D acquisition and stereo-camera calibration by active devices: A unique structured light encoding framework | |
| CN102609550B (en) | Product three-dimensional model ajusts system and method automatically | |
| CN102288131A (en) | Adaptive stripe measurement device of 360-degree contour error of object and method thereof | |
| CN108074237A (en) | Approach for detecting image sharpness, device, storage medium and electronic equipment | |
| CN111630342B (en) | Gap detection method and system for visual welding system | |
| CN109029250A (en) | A kind of method, apparatus and equipment based on three-dimensional camera detection package dimensions | |
| CN111915666A (en) | Volume measurement method and device based on mobile terminal | |
| CN119006470B (en) | Workpiece detection method, device, visual inspection equipment and storage medium | |
| TW201504991A (en) | System and method of points cloud section measure | |
| US20090289953A1 (en) | System and method for adjusting view of a measuring report of an object | |
| US20130162642A1 (en) | Computing device and method for establishing three dimensional coordinate system using graphics | |
| CN107388995A (en) | A kind of hand-held plane and straight line degree detection means and plane and straight line degree detection method | |
| CN110398215A (en) | Image processing apparatus and method, system, article manufacturing method, storage medium | |
| CN109163674B (en) | Sensor measurement viewpoint planning method in a kind of measurement of area-structure light automatized three-dimensional | |
| Lee et al. | Development of laser-vision system for three-dimensional circle detection and radius measurement | |
| CN103034743A (en) | Curve distance calculating system and method | |
| Xu et al. | A robot-assisted back-imaging measurement system for transparent glass | |
| CN115876083A (en) | A mobile projection type three-dimensional measurement method and device | |
| CN115420196B (en) | A universal three-dimensional object measurement method and device | |
| CN102841951B (en) | Three-dimensional safety surface sets up system and method | |
| CN102680012B (en) | System and method for automatic output of measuring information | |
| US7379599B1 (en) | Model based object recognition method using a texture engine |
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 |