CN109458990B - A method for measuring the pose of instruments and equipment and error compensation based on marker-free anchor point detection - Google Patents
A method for measuring the pose of instruments and equipment and error compensation based on marker-free anchor point detection Download PDFInfo
- Publication number
- CN109458990B CN109458990B CN201811325557.7A CN201811325557A CN109458990B CN 109458990 B CN109458990 B CN 109458990B CN 201811325557 A CN201811325557 A CN 201811325557A CN 109458990 B CN109458990 B CN 109458990B
- Authority
- CN
- China
- Prior art keywords
- anchor point
- image
- anchor
- instrument
- coordinates
- 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
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000001514 detection method Methods 0.000 title claims abstract description 13
- 239000011159 matrix material Substances 0.000 claims abstract description 8
- 238000005259 measurement Methods 0.000 claims description 15
- 238000003062 neural network model Methods 0.000 claims description 3
- 238000013507 mapping Methods 0.000 claims 1
- 230000000007 visual effect Effects 0.000 description 2
- 101150006573 PAN1 gene Proteins 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C11/00—Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C11/00—Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
- G01C11/04—Interpretation of pictures
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C25/00—Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Multimedia (AREA)
- Manufacturing & Machinery (AREA)
- Image Analysis (AREA)
Abstract
本发明提供一种基于免标记锚点检测的仪器设备位姿测量及误差补偿方法,包括使用已训练好的DeepLabCut深度神经网络模型检测出仪器设备在图像上的锚点,输出各个锚点在图像中的X坐标、Y坐标及置信度;初始化阶段,使用标定板标定相机参数、测量仪器锚点的物理距离,所有锚点、其世界坐标、锚点之间的距离共同构成锚点网络拓扑;在新的图像上检测出锚点集,根据锚点网络拓扑、世界坐标、相机内参计算出此时的旋转矩阵、偏移向量,计算出锚点的相机坐标。则仪器的整体位姿便为旋转矩阵、偏移向量,其中各个锚点的相机坐标则是各个锚点在空间中的位置。
The present invention provides a method for measuring and compensating the pose of instruments and equipment based on marker-free anchor point detection. X coordinate, Y coordinate and confidence in the initialization stage, use the calibration board to calibrate the camera parameters, measure the physical distance of the anchor point of the instrument, all anchor points, their world coordinates, and the distance between the anchor points together constitute the anchor point network topology; The anchor point set is detected on the new image, and the rotation matrix and offset vector at this time are calculated according to the anchor point network topology, world coordinates, and camera internal parameters, and the camera coordinates of the anchor point are calculated. Then the overall pose of the instrument is the rotation matrix and the offset vector, and the camera coordinates of each anchor point are the position of each anchor point in space.
Description
技术领域technical field
本发明涉及机器视觉领域,尤其涉及基于人工智能的视觉检测测量领域中基于免标记锚点检测的仪器设备位姿测量及误差补偿方法。The invention relates to the field of machine vision, and in particular to a method for measuring the pose of instruments and equipment based on marker-free anchor point detection and an error compensation method in the field of artificial intelligence-based visual detection and measurement.
背景技术Background technique
量化操作行为是实现智能评判人工操作的瓶颈之一,视觉图像是在不同环境中观察、记录人工操作的简单方法,然而提取动作特征量化操作行为进行进一步分析的工作量极大。在测量控制中,通常采用添加标记的方法来辅助计算机跟踪,但是标记是侵入性的,且标记数量、位置必须预先确定。本发明提出一种基于免标记锚点检测的仪器设备位姿测量及误差补偿方法,实现了根据特点锚点结构实现任意仪器设备的位姿、位置测量。Quantifying operation behavior is one of the bottlenecks in realizing intelligent judgment of manual operation. Visual images are a simple method to observe and record manual operations in different environments. In measurement control, the method of adding markers is usually used to assist computer tracking, but markers are invasive, and the number and location of markers must be predetermined. The present invention proposes a method for measuring and compensating the position and attitude of instruments and equipment based on the detection of marker-free anchor points.
发明内容SUMMARY OF THE INVENTION
为解决上述存在的问题与缺陷,本发明实现不添加任何标记地准确跟踪人工操作、可在图像上任意定义特征锚点,实现了根据特点锚点结构实现任意仪器设备的位姿、位置测量。In order to solve the above problems and defects, the present invention realizes accurate tracking of manual operations without adding any marks, and can define feature anchor points arbitrarily on the image, and realizes the pose and position measurement of any instrument and equipment according to the feature anchor point structure.
本发明的目的通过以下的技术方案来实现:The object of the present invention is achieved through the following technical solutions:
一种基于免标记锚点检测的仪器设备位姿测量及误差补偿方法,所述方法包括:A method for measuring and compensating the pose of an instrument and equipment based on marker-free anchor point detection, the method comprising:
步骤A使用已训练好的DeepLabCut深度神经网络模型P-DLC(PretrainedDeepLabCut Network)检测出仪器设备在图像上的免标记锚点,不同锚点按某一顺序排列,并输出各个锚点在图像中的X坐标、Y坐标及置信度;Step A uses the trained DeepLabCut deep neural network model P-DLC (PretrainedDeepLabCut Network) to detect the label-free anchor points of the instrument and equipment on the image, the different anchor points are arranged in a certain order, and output each anchor point in the image. X coordinate, Y coordinate and confidence;
步骤B使用标定板标定相机参数,置放仪器设备使标定板与锚点平面重合,将每个在图像中的X坐标、Y坐标映射为世界坐标,测出所有锚点对的物理距离,由所有锚点、世界坐标及锚点之间的距离共同构成锚点网络拓扑;Step B: Use the calibration board to calibrate the camera parameters, place the equipment to make the calibration board coincide with the anchor point plane, map each X coordinate and Y coordinate in the image to the world coordinate, and measure the physical distance of all anchor point pairs, by All anchor points, world coordinates and distances between anchor points together constitute the anchor network topology;
步骤C在新的图像上检测出锚点集,根据锚点网络拓扑、世界坐标、相机内参计算出此时的旋转矩阵与偏移向量,然后计算出相机坐标,实现仪器设备位姿测量;Step C detects the anchor point set on the new image, calculates the rotation matrix and offset vector at this time according to the anchor point network topology, world coordinates, and internal parameters of the camera, and then calculates the camera coordinates to realize the pose measurement of the instrument and equipment;
步骤D选中图像中任意3个锚点,在新的第i张图像中,测得选中3个锚点的图像坐标,并由某一准确图像中测得的相机坐标,计算得到仪器设备在深度方向上的准确测量值,并由该测量值取代步骤C中仪器设备位姿测量在深度方向上的测量值,实现仪器位姿补偿。Step D: Select any 3 anchor points in the image, and in the new i-th image, measure the image coordinates of the selected 3 anchor points, and calculate the depth of the instrument and equipment from the camera coordinates measured in an accurate image. The accurate measurement value in the direction is replaced by the measurement value in the depth direction of the instrument and equipment pose measurement in step C, so as to realize the instrument pose compensation.
本发明有益效果是:The beneficial effects of the present invention are:
实现不添加任何标记地准确跟踪人工操作、可在图像上任意定义特征锚点,实现了根据特点锚点结构实现任意仪器设备的位姿、位置测量。It realizes accurate tracking of manual operations without adding any marks, and can define feature anchor points arbitrarily on the image, and realizes the pose and position measurement of any instrument and equipment according to the feature anchor point structure.
附图说明Description of drawings
图1是本发明所述的基于免标记锚点检测的仪器设备位姿测量及误差补偿方法流程框图。FIG. 1 is a flow chart of the method for measuring the pose of an instrument and equipment based on marker-free anchor point detection and an error compensation method according to the present invention.
具体实施方式Detailed ways
下面结合实施例及附图对本发明作进一步详细的描述。The present invention will be described in further detail below with reference to the embodiments and the accompanying drawings.
本发明是一种基于免标记锚点检测的仪器设备位姿测量及误差补偿方法,如图1所示,该方法包括如下步骤:The present invention is a method for measuring and compensating the position and attitude of instruments and equipment based on marker-free anchor point detection. As shown in FIG. 1 , the method includes the following steps:
步骤10检测仪器设备免标记锚点;使用已训练好的DeepLabCut深度神经网络模型(Pretrained DeepLabCut Network,P-DLC)检测出仪器设备在图像上的锚点,不同锚点按某一顺序排列,并输出各个锚点在图像中的X坐标、Y坐标及置信度。Step 10 Detect the label-free anchor points of the equipment; use the trained DeepLabCut deep neural network model (Pretrained DeepLabCut Network, P-DLC) to detect the anchor points of the equipment on the image, the different anchor points are arranged in a certain order, and Output the X coordinate, Y coordinate and confidence of each anchor point in the image.
设总共N个锚点,设总共N个锚点,记为pan_1,pan_2,pan_3…pan_N;第n个锚点为pan_n(n∈[1,N])这时候,并输出各个锚点在图像中的X坐标Y坐标及置信度ρan_n。Let a total of N anchor points, let a total of N anchor points, denoted as pan_1 , pan_2 , pan_3 ... pan_N ; the nth anchor point is pan_n (n∈[1,N]) At this time, and output The X coordinate of each anchor point in the image Y coordinate and confidence ρ an_n .
步骤20初始化阶段,使用标定板标定相机参数、测量仪器锚点的物理距离;使用张氏标定法标定相机内参数;之后将仪器置放于与相机中轴线呈垂直,并且完全处于相机视场中,使标定板与锚点平面重合,将每个在图像中的X坐标、Y坐标映射为世界坐标,并测出所有锚点对的物理距离,由所有锚点、其世界坐标、锚点之间的距离共同构成锚点网络拓扑;
设使用张氏标定法标定相机内参数为其中为相机焦距,为图像上在X轴、Y轴上的像素分辨率,单位为像素每毫米(ppm),为投影中心X坐标与Y坐标;Let Zhang's calibration method be used to calibrate the internal parameters of the camera as in is the focal length of the camera, is the pixel resolution on the X-axis and Y-axis on the image, in pixels per millimeter (ppm), is the X coordinate and Y coordinate of the projection center;
则在仪器置放于与相机中轴线呈垂直,并且完全处于相机视场中,使标定板与锚点平面重合测量仪器各特征锚点的世界坐标,如第n个锚点为pan_n(n∈[1,N])图像坐标则世界坐标为 Then, when the instrument is placed perpendicular to the central axis of the camera and is completely in the field of view of the camera, make the calibration plate coincide with the anchor point plane to measure the world coordinates of each feature anchor point of the instrument, for example, the nth anchor point is pan_n (n ∈[1,N]) image coordinates Then the world coordinates are
并计算所有锚点对之间的距离,如第n1、n2个锚点之间的距离dn1n2为And calculate the distance between all pairs of anchor points, such as the distance d n1n2 between the n 1 and n 2 anchor points is
所有锚点、锚点的世界坐标、锚点之间的距离共同构成锚点网络拓扑。All anchor points, the world coordinates of the anchor points, and the distance between the anchor points together constitute the anchor point network topology.
步骤30仪器位姿测量阶段;在新的图像上检测出锚点集,根据锚点网络拓扑、世界坐标相机内参K计算出此时的旋转矩阵R、偏移向量t,之后,计算出相机坐标 Step 30: Instrument pose measurement stage; the anchor point set is detected on the new image, according to the anchor point network topology, world coordinates The camera internal parameter K calculates the rotation matrix R and offset vector t at this time, and then calculates the camera coordinates
则仪器的整体位姿便为旋转矩阵R、偏移向量t,其中各个锚点的相机坐标则是各个锚点在空间中的位置。Then the overall pose of the instrument is the rotation matrix R and the offset vector t, and the camera coordinates of each anchor point are the position of each anchor point in space.
步骤40仪器位姿补偿阶段;任意选中图像中的3个锚点(第n1、n2、n3个),在新的第i张图像中,测得这3个锚点的图像坐标为已知前面某一准确图像中测得的相机坐标则可以对于点n1、n2有:Step 40: Instrument pose compensation stage; 3 anchor points (n 1 , n 2 , n 3 ) in the image are arbitrarily selected, and in the new i-th image, the measured image coordinates of these 3 anchor points are The camera coordinates measured in an accurate previous image are known Then for points n 1 , n 2 we have:
其中k为缩放系数,设其为where k is the scaling factor, let it be
,则3个点可以构建出方程组,, then the three points can construct a system of equations,
由于有3个未知量与3个方程,方程可解。计算得的值用于取代步骤C中在深度方向上的测量值则实现了补偿。Since there are 3 unknowns With 3 equations, the equation is solvable. The calculated value is used to replace the measured value in the depth direction in step C compensation is achieved.
虽然本发明所揭露的实施方式如上。但所述的内容只是为了便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属技术领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式上及细节上作任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the disclosed embodiments of the present invention are as above. However, the content described is only an embodiment adopted to facilitate understanding of the present invention, and is not intended to limit the present invention. Any person skilled in the art to which the present invention belongs, without departing from the spirit and scope disclosed by the present invention, can make any modifications and changes in the form and details of the implementation, but the scope of patent protection of the present invention, The scope as defined by the appended claims shall still prevail.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811325557.7A CN109458990B (en) | 2018-11-08 | 2018-11-08 | A method for measuring the pose of instruments and equipment and error compensation based on marker-free anchor point detection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811325557.7A CN109458990B (en) | 2018-11-08 | 2018-11-08 | A method for measuring the pose of instruments and equipment and error compensation based on marker-free anchor point detection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109458990A CN109458990A (en) | 2019-03-12 |
CN109458990B true CN109458990B (en) | 2020-12-22 |
Family
ID=65609767
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811325557.7A Active CN109458990B (en) | 2018-11-08 | 2018-11-08 | A method for measuring the pose of instruments and equipment and error compensation based on marker-free anchor point detection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109458990B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109887017B (en) * | 2019-03-25 | 2021-09-03 | 北京奇艺世纪科技有限公司 | Similarity calculation method and device |
CN112611361A (en) * | 2020-12-08 | 2021-04-06 | 华南理工大学 | Method for measuring installation error of camera of airborne surveying and mapping pod of unmanned aerial vehicle |
CN112597895B (en) * | 2020-12-22 | 2024-04-26 | 阿波罗智联(北京)科技有限公司 | Confidence determining method based on offset detection, road side equipment and cloud control platform |
CN114332464B (en) * | 2021-12-31 | 2025-02-11 | 中国电力科学研究院有限公司 | Security risk behavior detection method, system, equipment and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101839692A (en) * | 2010-05-27 | 2010-09-22 | 西安交通大学 | Method for measuring three-dimensional position and stance of object with single camera |
CN103616016A (en) * | 2013-11-29 | 2014-03-05 | 大连理工大学 | Visual position-pose measurement method based on point-line combination characteristics |
CN104677340A (en) * | 2013-11-30 | 2015-06-03 | 中国科学院沈阳自动化研究所 | Point character based monocular vision pose measurement method |
CN106679634A (en) * | 2016-06-20 | 2017-05-17 | 山东航天电子技术研究所 | Spatial non-cooperative target pose measurement method based on stereoscopic vision |
CN107917700A (en) * | 2017-12-06 | 2018-04-17 | 天津大学 | The 3 d pose angle measuring method of target by a small margin based on deep learning |
WO2018130605A1 (en) * | 2017-01-16 | 2018-07-19 | Connaught Electronics Ltd. | Method for calibrating a camera for a motor vehicle considering a calibration error, camera as well as motor vehicle |
-
2018
- 2018-11-08 CN CN201811325557.7A patent/CN109458990B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101839692A (en) * | 2010-05-27 | 2010-09-22 | 西安交通大学 | Method for measuring three-dimensional position and stance of object with single camera |
CN103616016A (en) * | 2013-11-29 | 2014-03-05 | 大连理工大学 | Visual position-pose measurement method based on point-line combination characteristics |
CN104677340A (en) * | 2013-11-30 | 2015-06-03 | 中国科学院沈阳自动化研究所 | Point character based monocular vision pose measurement method |
CN106679634A (en) * | 2016-06-20 | 2017-05-17 | 山东航天电子技术研究所 | Spatial non-cooperative target pose measurement method based on stereoscopic vision |
WO2018130605A1 (en) * | 2017-01-16 | 2018-07-19 | Connaught Electronics Ltd. | Method for calibrating a camera for a motor vehicle considering a calibration error, camera as well as motor vehicle |
CN107917700A (en) * | 2017-12-06 | 2018-04-17 | 天津大学 | The 3 d pose angle measuring method of target by a small margin based on deep learning |
Non-Patent Citations (1)
Title |
---|
基于机器视觉的工业机器人位姿误差的标定与补偿方法研究;黄晨华;《华南理工大学博士论文》;20141014;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109458990A (en) | 2019-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109458990B (en) | A method for measuring the pose of instruments and equipment and error compensation based on marker-free anchor point detection | |
CN109961483A (en) | The scaling method of automobile and monocular cam, system | |
CN109887041B (en) | Method for controlling position and posture of shooting center of digital camera by mechanical arm | |
CN110223355B (en) | Feature mark point matching method based on dual epipolar constraint | |
CN103134425B (en) | Information processor and information processing method | |
CN110285827A (en) | A distance-constrained photogrammetric high-precision target location method | |
CN101231750A (en) | A Calibration Method for Binocular Stereo Measuring System | |
CN108648242B (en) | Two-camera calibration method and device without public view field based on assistance of laser range finder | |
CN111189403B (en) | Tunnel deformation monitoring method and device and computer readable storage medium | |
CN112991453A (en) | Calibration parameter calibration method and device for binocular camera and electronic equipment | |
CN105486289A (en) | Laser photography measuring system and camera calibration method | |
CN111442845A (en) | Infrared temperature measurement method and device based on distance compensation and computer storage medium | |
CN113822920B (en) | Method for acquiring depth information by structured light camera, electronic equipment and storage medium | |
CN106447733A (en) | Method, system and device for determining the range of motion of the cervical spine and the position of the axis of motion | |
CN105698766B (en) | A regional network adjustment method for satellite imagery RFM model considering accuracy information of orientation parameters | |
CN118424150B (en) | Measurement method, scanning device, and storage medium | |
CN118258570A (en) | Mapping relation determining method, deflection measuring method and device and electronic equipment | |
CN111047552B (en) | Three-dimensional deflection measuring method and related product | |
CN117664916A (en) | Refractive index measurement method based on dual images | |
CN111207683A (en) | A kind of tunnel deformation monitoring method, device and computer readable storage medium | |
CN110686779A (en) | Automatic measuring method and device for temperature field in non-contact biological fermentation process | |
CN105809685A (en) | Single-concentric circle image-based camera calibration method | |
CN115359124A (en) | High-precision binocular vision measurement method and device for complex environmental conditions | |
CN111145268B (en) | Video registration method and device | |
CN114089382A (en) | Elevation anomaly identification method and system and elevation measurement system |
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 |