CN110866951A - Correction method for inclination of optical axis of monocular camera - Google Patents
Correction method for inclination of optical axis of monocular camera Download PDFInfo
- Publication number
- CN110866951A CN110866951A CN201910951374.4A CN201910951374A CN110866951A CN 110866951 A CN110866951 A CN 110866951A CN 201910951374 A CN201910951374 A CN 201910951374A CN 110866951 A CN110866951 A CN 110866951A
- Authority
- CN
- China
- Prior art keywords
- coordinate system
- point
- body coordinate
- camera
- formula
- 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
- 230000003287 optical effect Effects 0.000 title claims abstract description 24
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000012937 correction Methods 0.000 title description 10
- 239000013598 vector Substances 0.000 claims abstract description 24
- 238000003384 imaging method Methods 0.000 claims abstract description 11
- 238000004364 calculation method Methods 0.000 claims abstract description 10
- 239000011159 matrix material Substances 0.000 claims abstract description 10
- 230000000007 visual effect Effects 0.000 claims abstract description 7
- 238000005259 measurement Methods 0.000 claims description 23
- 238000004458 analytical method Methods 0.000 claims description 5
- 230000014509 gene expression Effects 0.000 claims description 4
- 238000004088 simulation Methods 0.000 claims description 4
- 241000764238 Isis Species 0.000 claims description 3
- 239000013256 coordination polymer Substances 0.000 claims 1
- 238000011426 transformation method Methods 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 238000009795 derivation Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
- H04N23/54—Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
- H04N23/55—Optical parts specially adapted for electronic image sensors; Mounting thereof
Abstract
The invention discloses a method for correcting the optical axis inclination of a monocular camera, which comprises the following steps: s1, establishing a camera coordinate system and a body coordinate system; s2, expressed by the plane vector formula:obtaining a solving formula of the point P under a body coordinate system S3,pCIs an imaging point of a phase plane represented by a physical point P in a camera coordinate system, and the point P is at O according to the imaging principleCpCOn a straight line, thenThen there are:in the formula PBRepresenting the position of the P point in a body coordinate system, namely a 3 multiplied by 1 vector;a 3 × 1 vector, which is the relative position between the camera coordinate system and the origin of the body coordinate system; p is a radical ofCThe coordinates of the point of the P point on the image plane on the camera coordinate system are 3 multiplied by 1 vectors; the invention only needs to establish two coordinate systems, and has simple calculation and small data volume; points which are difficult to be visually measured 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 scene is more; the coordinate prediction is carried out by adopting a matrix transformation method, and the method is more visual and has high reliability compared with a software data box calculation method.
Description
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, and compared with stereoscopic vision measurement, 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 application, the vertical degree of the optical axis of the camera and an object is a key for ensuring the precision, accuracy and stability of measurement, and because the deviation between the optical axis and the normal of a measured object surface always exists and causes larger measurement error, the precision of three-dimensional coordinates of points on a subsequent extraction plane is reduced, so that the error correction of oblique optical axis measurement is necessary to be researched, and the application of monocular vision measurement in stereo measurement is limited due to the lack of relative information between the optical axis of a lens and a target plane to be measured.
At present, many scholars at home and abroad research the oblique light axis error correction technology, and Chendaqing and the like propose to use a reference measurement technology to overcome the influence caused by the change of the imaging position of the oblique light axis; a method for adjusting the verticality of an optical axis and an objective table based on digital image processing is researched by Gonghao and the like; murata and the like research an optical axis adjusting system for multi-target self-adaptation by using a genetic algorithm; jung Rae Ryoo et al propose an automatically adjusted object lens position scheme within an optical disc drive; thanksgiving and the like researched a correlation method of oblique optical axis digital images based on photogrammetry correction, and applied the two-dimensional DIC technology to three-dimensional measurement, thereby verifying the feasibility of three-dimensional information measurement by adopting a single camera line. However, these methods require correction of the deviation angle formed by the subsequent camera optical axis and the measured plane, which is most originally based on the case where the camera optical axis is absolutely perpendicular to the measured plane, and it is very difficult to satisfy this in two-dimensional measurement. It is therefore desirable to provide a camera optical axis tilt correction method that is simple and easy to operate to ensure the feasibility and robustness of visual measurements.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a monocular camera optical axis inclination correction method, aiming at the condition that the optical axis of a camera is not parallel to a test plane, the monocular camera optical axis inclination error is corrected in vision measurement.
The purpose of the invention is realized by the following technical scheme:
a method for correcting the optical axis inclination of a monocular camera comprises the following steps:
s1, establishing a camera coordinate system and a body coordinate system;
s2, expressed by the plane vector formula:obtaining a solving formula of the point P under a body coordinate system
S3,pCIs an imaging point of a phase plane represented by a physical point P in a camera coordinate system, and the point P is at O according to the imaging principleCpCOn a straight line, then
in the formula PBRepresenting the position of the P point in a body coordinate system, namely a 3 multiplied by 1 vector;a 3 × 1 vector, which is the relative position between the camera coordinate system and the origin of the body coordinate system; p is a radical ofCThe coordinates of the point of the P point on the image plane on the camera coordinate system are 3 multiplied by 1 vectors; the point P is located on the plane (fixed with the body coordinate system) where Z is h, and h represents the deviation from the reference plane XOBYwDegree;
S4,PBthe corresponding Z coordinate in the body coordinate system of (a) should be h, where:
obtaining P in S3BThe formula (2) is developed into a matrix form:
s5, analyzing the influence of each factor on the calculation precision of the three-dimensional position of the midpoint in the vision measurement, and then performing simulation analysis on three Euler angles, depth differences and four independent variables, and performing partial derivatives on the parameters β, gamma and h to obtain a relational expression;
s6, measuring a visual 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 solution in the body coordinate system;
s7, substituting the influence factor into P in S4BIn the equation (2), the three-dimensional coordinates of the points that are difficult to directly measure in the body coordinate system can be predicted.
Compared with the prior art, the invention has the following beneficial effects:
(1) the invention only needs to establish two coordinate systems, and has simple calculation and small data volume;
(2) the method predicts the points difficult to be measured visually by measuring the points which are simple and easy to obtain, is simple and easy to realize, and has more actual operation scenes;
(3) the invention adopts a matrix transformation method to predict the coordinates, and is more intuitive and highly reliable than a software data box calculation method.
Drawings
FIG. 1 is a schematic diagram of the camera coordinate system, the body coordinate system and the world coordinate system setup according to the present invention;
FIG. 2 is a schematic diagram of the optical axis tilt correction of a single camera according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited thereto.
The invention carries out theoretical analysis on the measurement error caused by the optical axis inclination in the vision measurement, and provides a monocular camera optical axis inclination correction method.
As shown in fig. 1 to 2, a method for correcting the optical axis tilt of a monocular camera includes the following steps:
s1, establishing a camera coordinate system and a body coordinate system;
s2, expressed by the plane vector formula:obtaining a solving formula of the point P under a body coordinate system
S3,pCIs an imaging point of a phase plane represented by a physical point P in a camera coordinate system, and the point P is at O according to the imaging principlecpCOn a straight line, then(m is a variable indicating that a single pixel cannot determine PC)
in the formula PBRepresenting the position of the P point in a body coordinate system, namely a 3 multiplied by 1 vector;a 3 × 1 vector, which is the relative position between the camera coordinate system and the origin of the body coordinate system; p is a radical ofCThe coordinates of the point of the P point on the image plane on the camera coordinate system are 3 multiplied by 1 vectors; the point P is located on the plane (fixed with the body coordinate system) where Z is h, and h represents the deviation from the reference plane XOBYwDegree;
S4,PBthe corresponding Z coordinate in the body coordinate system of (a) should be h, where:
obtaining P in S3BThe formula (2) is developed into a matrix form:
s5, analyzing the influence of each factor on the calculation precision of the three-dimensional position of the midpoint in the vision measurement, and then performing simulation analysis on three Euler angles, depth differences and four independent variables, and performing partial derivatives on the parameters β, gamma and h to obtain a relational expression;
s6, measuring a visual 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 solution in the body coordinate system;
s7, substituting the influence factor into P in S4BIn the equation (2), the three-dimensional coordinates of the points that are difficult to directly measure in the body coordinate system can be predicted.
Specifically, taking a scene of a three-axis turntable and a high-speed camera as an example, in order to realize effective coordinate conversion between the camera and a point on a test plane and further improve the accuracy of the camera in positioning each identification point on the test plane, under the support of the prior art, the invention adopts the following technical scheme:
first, cartesian coordinate systems, as shown in fig. 1, a camera coordinate system and a body coordinate system, respectively, are established on the camera and the test plane. At this time, the vector formula shows:
writing in matrix form requires both sides to be under the same coordinate system, that is:
wherein p isCIs an imaging point of a phase plane represented by a physical point P in a camera coordinate system, and the point P is at O according to the imaging principleCpCOn a straight line, then(m is a variable indicating that a single pixel cannot determine PC). The matrix formula is:
PC=mpC(3)
(3) substituting (2) then:
in the formula PBRepresenting the position of the point P in the body coordinate system, a 3 x 1 vector.A 3 x 1 vector is the relative position between the origin of the camera coordinate system with respect to the body coordinate system. p is a radical ofCThe coordinates of the point of the P point on the image plane on the camera coordinate system, a 3 × 1 vector. The point P is located on the plane (fixed with the body coordinate system) where Z is h, and h represents the deviation from the reference plane XOBYwDegree of the disease.
P in formula (4)BIs the coordinate of the point P under the body coordinate system;is a translation matrix from the camera coordinate system to the body coordinate system relative to the body coordinate system;a rotation matrix pc from a camera coordinate system to a body coordinate system is the coordinate of a point p under the camera coordinate system; whereinIs the ratio of the two vector modes.
And P isBThe corresponding Z coordinate in the body coordinate system should be h, and then (1) can obtain:
Formula (5) is substituted for formula (4) by:
r in formula (6)ij(i, j ═ 1, …, 3) is affected only by three euler angles, h is the depth difference, and four independent variables (α, γ, h).
To analyze the effect of each factor on the accuracy of the calculation of the three-dimensional position of the point in the visual measurement, the three euler angles and depth differences (α, γ, h) mentioned above, four independent variables, were then subjected to simulation analysis.
the parameters in the formula are 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γ
secondly, to PBThe relational expressions are obtained by performing the partial derivatives for α, β, γ, and h.
When α is subjected to partial derivation, β, γ, and h are known quantities, and therefore:
similarly, when β is subjected to partial derivation, α, γ, and h are known amounts, and there are:
similarly, when the partial derivatives are calculated for γ, α, β, and h are known amounts, and there are:
finally, the depth of field h is derived, and α, β and gamma are set as known quantities at the moment, including:
and thirdly, measuring the distances between the obvious identification points under a plurality of body coordinate systems and the distance between the original point of the camera coordinate system and the original point of the set body coordinate system by using a measuring tool reaching the precision required by the experiment.
The influence of α, β, h on the point P in the body coordinate system is obtained by substituting the measured data into the equations (8), (9), (10) and (11). the influence quantity is substituted into the unknown point obtaining equation, and the method can be used for obtaining the point coordinates which are difficult to directly measure in the body coordinate system.
The invention only needs to establish two coordinate systems, and has simple calculation and small data volume; points which are difficult to be visually measured 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 scene is more; the coordinate prediction is carried out by adopting a matrix transformation method, and the method is more visual and has high reliability compared with a software data box calculation method.
The present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents and are included in the scope of the present invention.
Claims (1)
1. A method for correcting the optical axis inclination of a monocular camera, comprising the steps of:
s1, establishing a camera coordinate system and a body coordinate system;
s2, expressed by the plane vector formula:obtaining a solving formula of the point P under a body coordinate system
S3,pCIs an imaging point of a phase plane represented by a physical point P in a camera coordinate system, and the point P is at O according to the imaging principleCPCOn a straight line, then
in the formula PBRepresenting the position of the P point in a body coordinate system, namely a 3 multiplied by 1 vector;a 3 × 1 vector, which is the relative position between the camera coordinate system and the origin of the body coordinate system; p is a radical ofCThe coordinates of the point of the P point on the image plane on the camera coordinate system are 3 multiplied by 1 vectors; the point P is located on the plane (fixed with the body coordinate system) where Z is h, and h represents the deviation from the reference plane XOBYwDegree;
S4,PBthe corresponding Z coordinate in the body coordinate system of (a) should be h, where:
obtaining P in S3BThe formula (2) is developed into a matrix form:
s5, analyzing the influence of each factor on the calculation precision of the three-dimensional position of the midpoint in the vision measurement, and then performing simulation analysis on three Euler angles, depth differences and four independent variables, and performing partial derivatives on the parameters β, gamma and h to obtain a relational expression;
s6, measuring a visual 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 solution in the body coordinate system;
s7, substituting the influence factor into P in S4BIn the equation (2), the three-dimensional coordinates of the points that are difficult to directly measure in the body coordinate system can be predicted.
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 true CN110866951A (en) | 2020-03-06 |
CN110866951B CN110866951B (en) | 2024-05-10 |
Family
ID=
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111369447B (en) * | 2020-03-09 | 2023-06-16 | 湖南警察学院 | Method for correcting image point in monocular stereoscopic vision image |
Citations (8)
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 |
US20180281881A1 (en) * | 2017-03-29 | 2018-10-04 | Honda Motor Co., Ltd. | Robot and control device of the robot |
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 (8)
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 |
US20180281881A1 (en) * | 2017-03-29 | 2018-10-04 | Honda Motor Co., Ltd. | Robot and control device of the robot |
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)
Title |
---|
YUANYUAN ZHANG;XIAOJUAN WU;LEI QI;JUN YANG: "A New Gait Analyzing Method Under Monocular Camera", pages 577 - 580 * |
王卫文,杨威,罗剑等: "一种新的相机外参数标定方法", vol. 35, no. 6, pages 1127 - 1130 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111369447B (en) * | 2020-03-09 | 2023-06-16 | 湖南警察学院 | Method for correcting image point in monocular stereoscopic vision image |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109297436B (en) | Binocular line laser stereo measurement reference calibration method | |
CN102472609B (en) | Position and orientation calibration method and apparatus | |
US20140009582A1 (en) | Three-dimensional measurement apparatus and robot system | |
CN111210468A (en) | Image depth information acquisition method and device | |
JP2013186816A (en) | Moving image processor, moving image processing method and program for moving image processing | |
CN108198219B (en) | Error compensation method for camera calibration parameters for photogrammetry | |
Xia et al. | An accurate and robust method for the measurement of circular holes based on binocular vision | |
CN104715469A (en) | Data processing method and electronic device | |
CN113763479B (en) | Calibration method of refraction and reflection panoramic camera and IMU sensor | |
Su et al. | Auto-calibration and real-time external parameter correction for stereo digital image correlation | |
WO2011118476A1 (en) | Three dimensional distance measuring device and method | |
CN112733428A (en) | Scanning attitude and coverage path planning method for optical measurement | |
CN111220120A (en) | Moving platform binocular ranging self-calibration method and device | |
Wang et al. | An improved measurement model of binocular vision using geometrical approximation | |
Mi et al. | A vision-based displacement measurement system for foundation pit | |
CN110211175B (en) | Method for calibrating space pose of collimated laser beam | |
CN113822920B (en) | Method for acquiring depth information by structured light camera, electronic equipment and storage medium | |
CN114049401A (en) | Binocular camera calibration method, device, equipment and medium | |
Cai et al. | A novel measurement system based on binocular fisheye vision and its application in dynamic environment | |
CN112116665A (en) | Structured light sensor calibration method | |
JP2010256276A (en) | Three-dimensional shape measuring apparatus and measuring method | |
CN110866951A (en) | Correction method for inclination of optical axis of monocular camera | |
CN110866951B (en) | Method for correcting optical axis inclination of monocular camera | |
CN113324538B (en) | Cooperative target remote high-precision six-degree-of-freedom pose measurement method | |
Yan et al. | A decoupled calibration method for camera intrinsic parameters and distortion coefficients |
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 |