CN110866951B - Method for correcting optical axis inclination of monocular camera - Google Patents

Method for correcting optical axis inclination of monocular camera Download PDF

Info

Publication number
CN110866951B
CN110866951B CN201910951374.4A CN201910951374A CN110866951B CN 110866951 B CN110866951 B CN 110866951B CN 201910951374 A CN201910951374 A CN 201910951374A CN 110866951 B CN110866951 B CN 110866951B
Authority
CN
China
Prior art keywords
coordinate system
point
camera
vector
body coordinate
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
Application number
CN201910951374.4A
Other languages
Chinese (zh)
Other versions
CN110866951A (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.)
South China Agricultural University
Original Assignee
South China Agricultural University
Filing date
Publication date
Application filed by South China Agricultural University filed Critical South China Agricultural University
Priority to CN201910951374.4A priority Critical patent/CN110866951B/en
Publication of CN110866951A publication Critical patent/CN110866951A/en
Application granted granted Critical
Publication of CN110866951B publication Critical patent/CN110866951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for correcting the inclination of an optical axis of a monocular camera, which comprises the following steps: s1, establishing a camera coordinate system and a body coordinate system; s2, a plane vector formula: obtaining a solving formula of the point P in a body coordinate system S3, P C is the imaging point of the phase plane represented by the physical point P in the camera coordinate system, and according to the imaging principle, the point P is on the line O CpC Then there are: Wherein P B represents the position of the P point in the body coordinate system, and is a3 x 1 vector; A 3 x1 vector which is the relative position between the origins of the camera coordinate system and the body coordinate system; p C is the coordinates of the point on the image plane of the P point on the camera coordinate system, 3×1 vector; the invention only needs to establish two coordinate systems, has simple calculation and small data volume; the points which are difficult to directly observe are predicted by measuring the points which are simple and easy to obtain, the method is simple and easy to realize, and the actual operation scenes are many; the coordinate prediction is performed by adopting a matrix transformation method, so that the method is more visual and has high reliability compared with a software data box calculation method.

Description

Method for correcting optical axis inclination of monocular camera
Technical Field
The invention relates to the technical field of machine vision digital image processing, in particular to a method for correcting the inclination of an optical axis of a monocular camera.
Background
The vision measurement technology is widely applied to the field of non-contact measurement, compared with the stereoscopic vision measurement, the monocular vision measurement is simple to use, low in cost and capable of meeting most measurement requirements, so that the application is wider. In practical measurement applications, the vertical degree of the optical axis of the camera and the object is a key for ensuring the measurement precision, accuracy and stability, and because the deviation between the optical axis and the normal line of the object surface to be measured always exists and causes a larger measurement error, the three-dimensional coordinate precision of the point on the subsequent extraction plane is reduced, the error correction of research oblique optical axis measurement is necessary, and because of the lack of relative information between the optical axis of the lens and the object plane to be measured, the application of monocular vision measurement in stereo measurement is limited.
Currently, many scholars at home and abroad research on oblique optical axis error correction technology, chen Daqing and the like propose to use a reference measurement technology to overcome the influence caused by the change of an oblique optical axis imaging position; gong hao et al studied a method of adjusting the perpendicularity of the optical axis and the stage based on digital image processing; murata et al have studied optical axis adjustment systems that employ genetic algorithms for multi-objective adaptation; jung Rae Ryoo et al propose an automatically adjusted objective lens position scheme within an optical disc drive; tang Zhengzong et al studied oblique optical axis digital image correlation methods based on photogrammetry correction and applied two-dimensional DIC techniques to three-dimensional measurements, verifying the feasibility of three-dimensional information measurement using a single camera line. However, these methods all need to correct the deviation angle formed by the optical axis of the subsequent camera and the measured plane by using the most original basis in the case that the optical axis of the camera is absolutely perpendicular to the measured plane, and in two-dimensional measurement, it is very difficult to meet the situation. It is therefore desirable to provide a simple and easy to operate camera optical axis tilt correction method to ensure the feasibility and robustness of visual measurements.
Disclosure of Invention
The invention aims to overcome the defects and shortcomings of the prior art and provides a method for correcting the inclination of the optical axis of a monocular camera.
The aim of the invention is achieved by the following technical scheme:
A method for correcting an optical axis tilt of a monocular camera, comprising the steps of:
S1, establishing a camera coordinate system and a body coordinate system;
S2, a plane vector formula: obtaining the solving formula/>, of the point P in the body coordinate system
S3, P C is the imaging point of the phase plane represented by the physical point P in the camera coordinate system, and according to the imaging principle, the point P is on the line O CpC
Then there are:
Wherein P B represents the position of the P point in the body coordinate system, and is a3 x 1 vector; A 3 x 1 vector which is the relative position between the origins of the camera coordinate system and the body coordinate system; p C is the coordinates of the point on the image plane of the P point on the camera coordinate system, 3×1 vector; the point P is located on the plane z=h (fixedly connected with the body coordinate system), and h represents the degree of deviation from the reference plane XO BYw;
The Z coordinate corresponding to S4, P B in the body coordinate system should be h, where:
And because of Then there is/>Is the ratio of two vector modes;
The formula for obtaining P B in S3 is expanded into a matrix form:
s5, analyzing the influence of each factor on the calculation accuracy of the three-dimensional position of the vision measurement midpoint, and then carrying out simulation analysis on three Euler angles and depth differences and four independent variables; performing partial derivatives on the relation, beta, gamma and h to obtain a relational expression;
s6, measuring a visually visible reference point in the body coordinate system, and measuring the distance between the origin of the body coordinate system and the origin of the camera coordinate system; substituting the data into S5, and solving the influence of each angle and depth of field on the point calculation in the body coordinate system;
S7, substituting the influence factors into the equation of P B in S4, namely predicting the three-dimensional coordinates of the points which are difficult to directly measure in the body coordinate system.
Compared with the prior art, the invention has the following beneficial effects:
(1) The invention only needs to establish two coordinate systems, has simple calculation and small data volume;
(2) The method predicts the points which are difficult to directly observe by measuring the points which are easy to obtain, is simple and easy to realize, and has a plurality of actual operation scenes;
(3) The method adopts a matrix transformation method to make coordinate prediction, is more visual than a software data box calculation method, and has high reliability.
Drawings
FIG. 1 is a schematic diagram of the camera coordinate system, the body coordinate system and the world coordinate system of the present invention;
fig. 2 is a schematic view of the single camera optical axis tilt correction of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but embodiments of the present invention are not limited thereto.
The invention carries out theoretical analysis on measurement errors caused by optical axis inclination in vision measurement, and provides a method for correcting the optical axis inclination of a monocular camera.
As shown in fig. 1 to 2, a method for correcting the inclination of the optical axis of a monocular camera includes the steps of:
S1, establishing a camera coordinate system and a body coordinate system;
S2, a plane vector formula: obtaining the solving formula/>, of the point P in the body coordinate system
S3, P C is the imaging point of the phase plane represented by the physical point P in the camera coordinate system, and according to the imaging principle, the point P is on the line O cpC (M is a variable indicating that a single pixel cannot determine P C)
Then there are:
Wherein P B represents the position of the P point in the body coordinate system, and is a3 x 1 vector; A 3 x 1 vector which is the relative position between the origins of the camera coordinate system and the body coordinate system; p C is the coordinates of the point on the image plane of the P point on the camera coordinate system, 3×1 vector; the point P is located on the plane z=h (fixedly connected with the body coordinate system), and h represents the degree of deviation from the reference plane XO BYw;
The Z coordinate corresponding to S4, P B in the body coordinate system should be h, where:
And because of Then there is/>Is the ratio of two vector modes;
The formula for obtaining P B in S3 is expanded into a matrix form:
s5, analyzing the influence of each factor on the calculation accuracy of the three-dimensional position of the vision measurement midpoint, and then carrying out simulation analysis on three Euler angles and depth differences and four independent variables; performing partial derivatives on the relation, beta, gamma and h to obtain a relational expression;
s6, measuring a visually visible reference point in the body coordinate system, and measuring the distance between the origin of the body coordinate system and the origin of the camera coordinate system; substituting the data into S5, and solving the influence of each angle and depth of field on the point calculation in the body coordinate system;
S7, substituting the influence factors into the equation of P B in S4, namely predicting the three-dimensional coordinates of the points which are difficult to directly measure in the body coordinate system.
Specifically, taking a three-axis table and a high-speed camera scene as an example, in order to realize effective coordinate conversion between the camera and points on a test plane, and further improve the accuracy of the camera in positioning each identification point on the test plane, the invention adopts the following technical scheme under the support of the prior art:
First, a Cartesian coordinate system is established on the camera and the test plane, as shown in FIG. 1, a camera coordinate system and a volume coordinate system, respectively. At this time, it is known from the vector formula:
writing in a matrix form requires that both sides are in the same coordinate system, namely:
wherein P C is the imaging point of the phase plane represented by the physical point P in the camera coordinate system, and according to the imaging principle, the point P is on the line O CpC (M is a variable indicating that a single pixel cannot determine P C). The matrix formula is:
PC=mpC (3)
(3) Substitution (2), there are:
Where P B denotes the position of the P point in the body coordinate system, 3×1 vector. A 3×1 vector, which is the relative position between the origins of the camera coordinate system and the body coordinate system. P C is the coordinates of the point on the image plane of the P point on the camera coordinate system, 3 x 1 vector. The point P is located on the plane z=h (attached to the body coordinate system), h representing the degree of deviation from the reference plane XO BYw.
In the formula (4), P B is the coordinate of a P point under a body coordinate system; is a translation matrix relative to the camera coordinate system under the body coordinate system to the body coordinate system; /(I) The rotation matrix pc from the camera coordinate system to the body coordinate system is the coordinates of p points in the camera coordinate system; wherein/>Is the ratio of two vector modes.
The Z coordinate of P B corresponding to the body coordinate system should be h, and is obtained by (1):
Wherein the method comprises the steps of
The substitution of formula (5) into formula (4) is:
R ij (i, j=1, …, 3) in the formula (6) is affected by only three euler angles, h is the depth difference, and four independent variables (α, β, γ, h).
To analyze the effect of factors on the accuracy of the calculation of the three-dimensional position of the midpoint of the visual measurement, simulation analysis was then performed on the three euler angles and depth differences (α, β, γ, h) mentioned above, four independent variables.
Will bepC、/>The formula (6) includes:
wherein each parameter is as follows:
r11=cosαcosβ
r12=sinαcosβ
r13=-sinβ
r21=-sinαcosγ+cosαsinβsinγ
r22=cosαcosγ+sinαsinβsinγ
r23=cosβsinγ
r31=sinαsinγ+cosαsinβcosγ
r32=-cosαsinγ+sinαsinβsinγ
r33=cosβcosγ
next, P B is biased with respect to α, β, γ, and h to obtain a relational expression.
In the case of performing the bias on α, since β, γ, and h are all known amounts, there are:
similarly, when deriving β, α, γ, and h are set to known amounts, and there are:
similarly, when deriving γ, α, β, and h are set to known amounts, and there are:
Finally, deriving the depth of view h, and setting alpha, beta and gamma as known quantities at the moment, wherein the method comprises the following steps:
and thirdly, measuring the distances among the obvious identification points in a plurality of individual coordinate systems and the distances between the origin of the camera coordinate system and the origin of the established individual coordinate system by using a measuring tool which achieves the precision required by the experiment.
The measured data are substituted into the formulas (8), (9), (10) and (11) to obtain the influence of alpha, beta and h on the point P under the body coordinate system. The influence quantity is substituted into an unknown point calculation formula, and can be used for calculating point coordinates which are difficult to directly measure in a body coordinate system.
The invention only needs to establish two coordinate systems, has simple calculation and small data volume; the points which are difficult to directly observe are predicted by measuring the points which are simple and easy to obtain, the method is simple and easy to realize, and the actual operation scenes are many; the coordinate prediction is performed by adopting a matrix transformation method, so that the method is more visual and has high reliability compared with a software data box calculation method.
The foregoing is illustrative of the present invention and is not to be construed as limiting thereof, but rather as various changes, modifications, substitutions, combinations, and simplifications which may be made therein without departing from the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (1)

1. A method for correcting an inclination of an optical axis of a monocular camera, comprising the steps of:
S1, establishing a camera coordinate system and a body coordinate system;
S2, a plane vector formula: obtaining a solving formula of the point P in a body coordinate system
S3, P c is the imaging point of the phase plane represented by the physical point P in the camera coordinate system, and according to the imaging principle, the point P is on the line O CpC
Then there are:
Where P B denotes the position of the P point in the volumetric coordinate system, 3X 1 vector: A 3 x 1 vector which is the relative position between the origins of the camera coordinate system and the body coordinate system; p C is the coordinates of the point on the image plane of the P point on the camera coordinate system, 3×1 vector; the point P is located on the plane z=h, h representing the degree of deviation from the reference plane X 1OBY1;
The Z coordinate corresponding to S4, P B in the body coordinate system should be h, where:
And because of Then there is/>Is the ratio of two vector modes;
The formula for obtaining P B in S3 is expanded into a matrix form:
S5, analyzing the influence of each factor on the calculation accuracy of the three-dimensional position of the vision measurement midpoint, and then carrying out simulation analysis on three Euler angles alpha, beta, gamma and depth differences h and four independent variables; performing partial derivatives on alpha, beta and gamma to obtain a relational expression;
S6, measuring a visually visible reference point in the body coordinate system, and measuring the distance between the origin of the body coordinate system and the origin of the camera coordinate system; substituting the data into S5 to obtain the influence of three Euler angles alpha, beta, gamma and depth difference h on the midpoint of the body coordinate system
S7, substituting three Euler angles alpha, beta, gamma and depth difference h into a solving formula of P B in S4, and predicting three-dimensional coordinates of points which are difficult to directly measure in a body coordinate system;
CN201910951374.4A 2019-10-08 Method for correcting optical axis inclination of monocular camera Active CN110866951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910951374.4A CN110866951B (en) 2019-10-08 Method for correcting optical axis inclination of monocular camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910951374.4A CN110866951B (en) 2019-10-08 Method for correcting optical axis inclination of monocular camera

Publications (2)

Publication Number Publication Date
CN110866951A CN110866951A (en) 2020-03-06
CN110866951B true CN110866951B (en) 2024-05-10

Family

ID=

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016170610A (en) * 2015-03-12 2016-09-23 セコム株式会社 Three-dimensional model processing device and camera calibration system
CN106248014A (en) * 2016-08-23 2016-12-21 中国人民解放军信息工程大学 A kind of three-dimensional coordinate measurement method and device based on single-phase
CN107967712A (en) * 2017-11-21 2018-04-27 海南电网有限责任公司电力科学研究院 Mountain fire is accurately positioned and algorithm of the mountain fire edge far from overhead transmission line vertical range
CN109003235A (en) * 2018-06-27 2018-12-14 曜科智能科技(上海)有限公司 Bearing calibration, computer readable storage medium and the electric terminal of light field image
CN109031359A (en) * 2018-06-11 2018-12-18 武汉大学 GNSS receiving antenna absolute phase center correction method based on microwave darkroom
CN110174088A (en) * 2019-04-30 2019-08-27 上海海事大学 A kind of target ranging method based on monocular vision
CN110189375A (en) * 2019-06-26 2019-08-30 中国科学院光电技术研究所 A kind of images steganalysis method based on monocular vision measurement

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016170610A (en) * 2015-03-12 2016-09-23 セコム株式会社 Three-dimensional model processing device and camera calibration system
CN106248014A (en) * 2016-08-23 2016-12-21 中国人民解放军信息工程大学 A kind of three-dimensional coordinate measurement method and device based on single-phase
CN107967712A (en) * 2017-11-21 2018-04-27 海南电网有限责任公司电力科学研究院 Mountain fire is accurately positioned and algorithm of the mountain fire edge far from overhead transmission line vertical range
CN109031359A (en) * 2018-06-11 2018-12-18 武汉大学 GNSS receiving antenna absolute phase center correction method based on microwave darkroom
CN109003235A (en) * 2018-06-27 2018-12-14 曜科智能科技(上海)有限公司 Bearing calibration, computer readable storage medium and the electric terminal of light field image
CN110174088A (en) * 2019-04-30 2019-08-27 上海海事大学 A kind of target ranging method based on monocular vision
CN110189375A (en) * 2019-06-26 2019-08-30 中国科学院光电技术研究所 A kind of images steganalysis method based on monocular vision measurement

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Yuanyuan Zhang ; Xiaojuan Wu ; Lei Qi ; Jun Yang.A New Gait Analyzing Method Under Monocular Camera.2007 1st International Conference on Bioinformatics and Biomedical Engineering.2007,577-580. *
王卫文,杨威,罗剑等.一种新的相机外参数标定方法.半导体光电.2014,第35卷(第6期),1127-1130. *

Similar Documents

Publication Publication Date Title
CN110296691B (en) IMU calibration-fused binocular stereo vision measurement method and system
CN112654886B (en) External parameter calibration method, device, equipment and storage medium
CN102376089B (en) Target correction method and system
CN108198219B (en) Error compensation method for camera calibration parameters for photogrammetry
CN109297436B (en) Binocular line laser stereo measurement reference calibration method
US20170122733A1 (en) Method of solving initial azimuth for survey instruments, cameras, and other devices with position and tilt information
CN106767933A (en) The measuring system of depth camera error, measuring method, evaluation method and compensation method
CN101539397B (en) Method for measuring three-dimensional attitude of object on precision-optical basis
CN106767443B (en) A kind of fully automatic secondary element image detector and measurement method
CN107014399A (en) A kind of spaceborne optical camera laser range finder combined system joint calibration method
CN107330927B (en) Airborne visible light image positioning method
EP3524931A1 (en) Method for verifying accuracy of rtk tilt compensation measurement
WO2021098808A1 (en) Method and system for determining laser tracker station, electronic device, and medium
CN109887041A (en) A kind of method of mechanical arm control digital camera photo centre position and posture
CN111562563A (en) Laser radar rotary table calibration method and device and computer readable storage medium
CN109883406A (en) Calculation method and system based on the total station outline pose less put
CN113947638A (en) Image orthorectification method for fisheye camera
CN113822920B (en) Method for acquiring depth information by structured light camera, electronic equipment and storage medium
Li et al. Camera-mirror binocular vision-based method for evaluating the performance of industrial robots
Yilmaz et al. Digital photogrammetry in obtaining of 3D model data of irregular small objects
CN114049401A (en) Binocular camera calibration method, device, equipment and medium
CN110866951B (en) Method for correcting optical axis inclination of monocular camera
CN112116665A (en) Structured light sensor calibration method
Fraser State of the art in industrial photogrammetry
CN115761009A (en) Camera external reference calibration method without common view based on nonlinear optimization

Legal Events

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