CN109341530A - Object point positioning method and system in a kind of binocular stereo vision - Google Patents
Object point positioning method and system in a kind of binocular stereo vision Download PDFInfo
- Publication number
- CN109341530A CN109341530A CN201811248448.XA CN201811248448A CN109341530A CN 109341530 A CN109341530 A CN 109341530A CN 201811248448 A CN201811248448 A CN 201811248448A CN 109341530 A CN109341530 A CN 109341530A
- Authority
- CN
- China
- Prior art keywords
- camera
- coordinate system
- coordinate
- point
- dimensional
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 13
- 230000003287 optical effect Effects 0.000 claims abstract description 19
- 239000013598 vector Substances 0.000 claims abstract description 15
- 238000004364 calculation method Methods 0.000 claims description 10
- 239000011159 matrix material Substances 0.000 claims description 7
- 230000017105 transposition Effects 0.000 claims description 5
- 238000002474 experimental method Methods 0.000 description 7
- 238000004088 simulation Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000010276 construction Methods 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
- 238000012795 verification Methods 0.000 description 1
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
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Image Processing (AREA)
Abstract
The invention discloses object point positioning method in a kind of binocular stereo vision, specifically: enabling left and right side camera first shoots same target, carries out Feature Points Matching to the left and right image that shooting obtains;Calculated separately under world coordinates again left and right side camera photocentre to match point unit direction vector;And then according to the optical center coordinate of two cameras, the direction vector of optical center to characteristic point solves the three-dimensional coordinate of object point.The present invention also provides the systems for realizing the above method.The invention avoids a large amount of squares, the operations such as evolution and modulus have speed fast, calculate stable feature, there is higher application value in three-dimensional reconstruction field.
Description
Technical Field
The invention relates to the technical field of machine vision, in particular to a three-dimensional point positioning method and system in binocular stereo vision.
Background
In the triangulation step of binocular stereo vision, after feature matching and pose estimation are usually performed on pictures obtained by shooting the same scene at different positions by two cameras, the intersection point of extension lines of the two cameras is obtained by homonymous rays of the two cameras, so that the object point coordinates of the point in a world coordinate system are obtained, and the three-dimensional dense point cloud construction and other work are completed by utilizing the information.
The spatial position of the object point is generally calculated by adopting a method of a common perpendicular line midpoint method, which relates to operations such as cross product and module calculation, and has high calculation complexity and much time consumption.
Disclosure of Invention
Aiming at the defects or improvement requirements of the prior art, the invention provides a three-dimensional point positioning method in binocular stereo vision, which ensures the accuracy and simplifies the calculation complexity.
A three-dimensional point positioning method in binocular stereo vision specifically comprises the following steps:
(1) starting a left camera and a right camera to shoot the same target, and performing feature point matching on the shot left image and the shot right image to obtain a feature point coordinate p under a left camera coordinate systemLCoordinate p of characteristic point with same name under coordinate system of camera on right sideR;
(2) Respectively calculating unit direction vectors N from the optical centers of the left camera and the right camera to the matching points under world coordinates1And N2:
Wherein Z isL、ZRRepresenting coefficients unitizing the direction vectors of the left and right cameras, RLW、RRWRespectively representing the rotation matrix of the left and right camera coordinate systems with respect to the world coordinate system, K1、K2Representing the internal parameters of the left camera and the right camera respectively, and the superscript T represents transposition;
(3) calculating the three-dimensional coordinate P of the target object point:
wherein,P10,P20respectively represent the optical center O of the left cameraLAnd right camera optical center ORThree-dimensional coordinates in the world coordinate system (refer to fig. 1), P1、P2Are respectively ray OLpLAnd ORpRA foot hanging from the male vertical line.
A three-dimensional point positioning system in binocular stereo vision comprises:
the double cameras comprise a left camera and a right camera and are used for shooting the same target;
a homonymous feature point matching module for matching the feature points of the left and right images to obtain the feature point coordinate p in the left camera coordinate systemLCoordinate p of characteristic point with same name under coordinate system of camera on right sideR;
A unit direction vector calculation module for calculating unit direction vectors N from the left and right camera optical centers to the matching points respectively under world coordinates1And N2:
Wherein Z isL、ZRRepresenting coefficients unitizing the direction vectors of the left and right cameras, RLW、RRWRespectively representing the rotation matrix of the left and right camera coordinate systems with respect to the world coordinate system, K1、K2Representing the internal parameters of the left camera and the right camera respectively, and the superscript T represents transposition;
a positioning module, configured to calculate a three-dimensional coordinate P of the target object point:
wherein,P10,P20respectively represent the optical center O of the left cameraLAnd right camera optical center ORThree-dimensional coordinates in the world coordinate system (refer to fig. 1), P1、P2Are respectively ray OLpLAnd ORpRA foot hanging from the male vertical line.
In general, compared with the original object point positioning method, the positioning method greatly reduces the times of multiplication, addition, square and evolution calculation, and the calculation formula of the invention achieves the same calculation precision as the original calculation formula under the condition of the same camera parameters through verification, but the calculation time is reduced by at least 24.24%.
Drawings
FIG. 1 is a schematic illustration of the positioning principle of the present invention;
FIG. 2 is a schematic view of an out-of-plane straight line projection.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The method comprises the following steps:
(1) starting a left camera and a right camera to shoot the same target, extracting key points and calculating descriptors of the left image and the right image obtained by shooting by using SIFT or ORB operators, and obtaining a feature point coordinate p under a left camera coordinate systemLCoordinate p of characteristic point with same name under coordinate system of camera on right sideR;
(2) Respectively calculating unit direction vectors N from the optical centers of the left camera and the right camera to the matching points under world coordinates1And N2:
Wherein Z isL、ZRRepresenting coefficients unitizing the direction vectors of the left and right cameras, RLW、RRWRespectively representing the rotation matrix of the left and right camera coordinate systems with respect to the world coordinate system, K1、K2Representing the internal parameters of the left camera and the right camera respectively, and the superscript T represents transposition;
(3) calculating the three-dimensional coordinate P of the target object point:
wherein,P10,P20respectively represent the optical center O of the left cameraLAnd right camera optical center ORThree-dimensional coordinates in the world coordinate system (refer to fig. 1), P1、P2Are respectively ray OLpLAnd ORpRThe foot hanging from the common vertical line (see fig. 2).
Simulation experiment:
1. adopting MATLAB to carry out simulation experiment, and selecting a left camera coordinate system O in the experimentL-XLYLZLAs world coordinate system, OL=(0,0,0)T,RLW=I3Is a third order identity matrix, RRWIs expressed as follows:
2. in the first type of experiment, let fx=fy=1000,u0=v0300, 3 degrees, 2 degrees, 3 degrees, and the real coordinate of the object point in the world coordinate system is (0,0,0) at the center of the sphereTOn a spherical surface with a radius of 400, xw∈[-100,100],yw∈[-100,100],The 81 object points are uniformly taken, and the coordinate of the right camera in the world coordinate system is set as OR=(10,10,0)T。
3. In the second experiment, the rotation matrix R was setRWRotating 90 degrees along the positive direction of the y axis and the x axis, and taking the real coordinate of the object point in the world coordinate system as the circle center (1000,0,0)TOn a circle with radius 300, xw=1000,And (4) taking 81 uniformly distributed object points, wherein the rest parameters are the same as those of the first type of experiment, and after the parameters are set, designing the experiment steps.
4. Parameters are first substituted into the camera projection model:
pL=K1RLW(P'-P10)
pR=K2RRW(P'-P20)
wherein, P' represents the real coordinates of the object point obtained in the step 3.
Obtaining true homogeneous coordinates p of projected image pointsL=(uL,vL,1)TAnd pR=(uR,vR,1)TThen select the right pixel point pROr adding white Gaussian noise with standard deviation of 1 and 2 to the right camera pose (shown in tables 2 and 3), and obtaining a ray OLpLAnd ORpRTo obtain a unit direction vector N1And N2Taking the coordinates (i.e. origin) of the optical center of the left camera as point P10Taking the optical center O of the right cameraRAs point P20The coordinate of the model can be used for respectively calculating the midpoints P of the plumb lines of different models through the formula of the invention.
TABLE 1 Algorithm complexity comparison
TABLE 2 comparison of first type experiments
TABLE 3 comparison of the second type of experiment
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (2)
1. A three-dimensional point positioning method in binocular stereo vision is characterized by comprising the following steps:
(1) starting a left camera and a right camera to shoot the same target, and performing feature point matching on the shot left image and the shot right image to obtain a feature point coordinate p under a left camera coordinate systemLCoordinate p of characteristic point with same name under coordinate system of camera on right sideR;
(2) Respectively calculating unit direction vectors N from the optical centers of the left camera and the right camera to the matching points under world coordinates1And N2:
Wherein Z isL、ZRRepresenting coefficients unitizing the direction vectors of the left and right cameras, RLW、RRWRespectively representing the rotation matrix of the left and right camera coordinate systems with respect to the world coordinate system, K1、K2Representing the internal parameters of the left camera and the right camera respectively, and the superscript T represents transposition;
(3) calculating the three-dimensional coordinate P of the target object point:
wherein, b is N1 TN2,P10,P20Respectively represent the optical center O of the left cameraLAnd right camera optical center ORThree-dimensional coordinates in the world coordinate system (refer to fig. 1), P1、P2Are respectively ray OLpLAnd ORpRA foot hanging from the male vertical line.
2. A three-dimensional point positioning system in binocular stereo vision is characterized by comprising:
the double cameras comprise a left camera and a right camera and are used for shooting the same target;
a homonymous feature point matching module for matching the feature points of the left and right images to obtainFeature point coordinates p in the left camera coordinate systemLCoordinate p of characteristic point with same name under coordinate system of camera on right sideR;
A unit direction vector calculation module for calculating unit direction vectors N from the left and right camera optical centers to the matching points respectively under world coordinates1And N2:
Wherein Z isL、ZRRepresenting coefficients unitizing the direction vectors of the left and right cameras, RLW、RRWRespectively representing the rotation matrix of the left and right camera coordinate systems with respect to the world coordinate system, K1、K2Representing the internal parameters of the left camera and the right camera respectively, and the superscript T represents transposition;
a positioning module, configured to calculate a three-dimensional coordinate P of the target object point:
wherein, b is N1 TN2,P10,P20Respectively represent the optical center O of the left cameraLAnd right camera optical center ORThree-dimensional coordinates in the world coordinate system (refer to fig. 1), P1、P2Are respectively ray OLpLAnd ORpRA foot hanging from the male vertical line.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811248448.XA CN109341530B (en) | 2018-10-25 | 2018-10-25 | Object point positioning method and system in binocular stereo vision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811248448.XA CN109341530B (en) | 2018-10-25 | 2018-10-25 | Object point positioning method and system in binocular stereo vision |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109341530A true CN109341530A (en) | 2019-02-15 |
CN109341530B CN109341530B (en) | 2020-01-21 |
Family
ID=65311722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811248448.XA Expired - Fee Related CN109341530B (en) | 2018-10-25 | 2018-10-25 | Object point positioning method and system in binocular stereo vision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109341530B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111543934A (en) * | 2020-04-29 | 2020-08-18 | 深圳创维-Rgb电子有限公司 | Vision detection method and device, electronic product and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1946195A (en) * | 2006-10-26 | 2007-04-11 | 上海交通大学 | Scene depth restoring and three dimension re-setting method for stereo visual system |
CN101149836A (en) * | 2007-11-05 | 2008-03-26 | 中山大学 | Three-dimensional reconfiguration double pick-up camera calibration method |
CN103115613A (en) * | 2013-02-04 | 2013-05-22 | 安徽大学 | Three-dimensional space positioning method |
CN103258327A (en) * | 2013-04-23 | 2013-08-21 | 华中科技大学 | Single-pint calibration method based on two-degree-freedom video camera |
CN104680528A (en) * | 2015-02-11 | 2015-06-03 | 广州霞光技研有限公司 | Space positioning method of explosive-handling robot based on binocular stereo vision |
CN105187812A (en) * | 2015-09-02 | 2015-12-23 | 中国兵器工业计算机应用技术研究所 | Binocular vision stereo coupling algorithm |
CN105444696A (en) * | 2015-12-30 | 2016-03-30 | 天津大学 | Binocular coupling method based on perspective projection linear measurement model, and application of binocular coupling method |
-
2018
- 2018-10-25 CN CN201811248448.XA patent/CN109341530B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1946195A (en) * | 2006-10-26 | 2007-04-11 | 上海交通大学 | Scene depth restoring and three dimension re-setting method for stereo visual system |
CN101149836A (en) * | 2007-11-05 | 2008-03-26 | 中山大学 | Three-dimensional reconfiguration double pick-up camera calibration method |
CN103115613A (en) * | 2013-02-04 | 2013-05-22 | 安徽大学 | Three-dimensional space positioning method |
CN103258327A (en) * | 2013-04-23 | 2013-08-21 | 华中科技大学 | Single-pint calibration method based on two-degree-freedom video camera |
CN104680528A (en) * | 2015-02-11 | 2015-06-03 | 广州霞光技研有限公司 | Space positioning method of explosive-handling robot based on binocular stereo vision |
CN105187812A (en) * | 2015-09-02 | 2015-12-23 | 中国兵器工业计算机应用技术研究所 | Binocular vision stereo coupling algorithm |
CN105444696A (en) * | 2015-12-30 | 2016-03-30 | 天津大学 | Binocular coupling method based on perspective projection linear measurement model, and application of binocular coupling method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111543934A (en) * | 2020-04-29 | 2020-08-18 | 深圳创维-Rgb电子有限公司 | Vision detection method and device, electronic product and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109341530B (en) | 2020-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106600686B (en) | Three-dimensional point cloud reconstruction method based on multiple uncalibrated images | |
WO2021077720A1 (en) | Method, apparatus, and system for acquiring three-dimensional model of object, and electronic device | |
JP4392507B2 (en) | 3D surface generation method | |
CN110853075B (en) | Visual tracking positioning method based on dense point cloud and synthetic view | |
US8447099B2 (en) | Forming 3D models using two images | |
CN104424640B (en) | The method and apparatus for carrying out blurring treatment to image | |
CN108288292A (en) | A kind of three-dimensional rebuilding method, device and equipment | |
US20120177284A1 (en) | Forming 3d models using multiple images | |
CN107588721A (en) | The measuring method and system of a kind of more sizes of part based on binocular vision | |
CN111127524A (en) | Method, system and device for tracking trajectory and reconstructing three-dimensional image | |
WO2023116430A1 (en) | Video and city information model three-dimensional scene fusion method and system, and storage medium | |
CN112150518B (en) | Attention mechanism-based image stereo matching method and binocular device | |
CN110120098A (en) | Scene size estimation and augmented reality control method, device and electronic equipment | |
JP5178538B2 (en) | Method for determining depth map from image, apparatus for determining depth map | |
CN111369632A (en) | Method and device for acquiring internal parameters in camera calibration | |
CN109341530B (en) | Object point positioning method and system in binocular stereo vision | |
CN107610216B (en) | Particle swarm optimization-based multi-view three-dimensional point cloud generation method and applied camera | |
JP2009186287A (en) | Plane parameter estimating device, plane parameter estimating method, and plane parameter estimating program | |
CN107240149A (en) | Object dimensional model building method based on image procossing | |
Yamazaki et al. | Coplanar shadowgrams for acquiring visual hulls of intricate objects | |
Xu et al. | Research on target tracking algorithm based on parallel binocular camera | |
KR102107465B1 (en) | System and method for generating epipolar images by using direction cosine | |
CN114608558A (en) | SLAM method, system, device and storage medium based on feature matching network | |
CN111210476B (en) | Method and device for simultaneously positioning and mapping | |
Takimoto et al. | Shape reconstruction from multiple RGB-D point cloud registration |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200121 Termination date: 20201025 |
|
CF01 | Termination of patent right due to non-payment of annual fee |