CN110866951A - Correction method for inclination of optical axis of monocular camera - Google Patents

Correction method for inclination of optical axis of monocular camera Download PDF

Info

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
Application number
CN201910951374.4A
Other languages
Chinese (zh)
Other versions
CN110866951B (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
Priority date (The priority date 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 date listed.)
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
Priority claimed from CN201910951374.4A external-priority 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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/55Optical 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:
Figure DDA0002225879700000011
obtaining a solving formula of the point P under a body coordinate system
Figure DDA0002225879700000012
Figure DDA0002225879700000013
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
Figure DDA0002225879700000014
Then there are:
Figure DDA0002225879700000015
in the formula PBRepresenting the position of the P point in a body coordinate system, namely a 3 multiplied by 1 vector;
Figure DDA0002225879700000016
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

Correction method for inclination of optical axis 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, 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:
Figure BDA0002225879680000021
obtaining a solving formula of the point P under a body coordinate system
Figure BDA0002225879680000022
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
Figure BDA0002225879680000023
Then there are:
Figure BDA0002225879680000024
in the formula PBRepresenting the position of the P point in a body coordinate system, namely a 3 multiplied by 1 vector;
Figure BDA0002225879680000025
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:
Figure BDA0002225879680000031
and because of
Figure BDA0002225879680000032
Then there is
Figure BDA0002225879680000033
Is the ratio of two vector modes;
obtaining P in S3BThe formula (2) is developed into a matrix form:
Figure BDA0002225879680000034
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:
Figure BDA0002225879680000041
obtaining a solving formula of the point P under a body coordinate system
Figure BDA0002225879680000042
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
Figure BDA0002225879680000043
(m is a variable indicating that a single pixel cannot determine PC)
Then there are:
Figure BDA0002225879680000044
in the formula PBRepresenting the position of the P point in a body coordinate system, namely a 3 multiplied by 1 vector;
Figure BDA0002225879680000045
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:
Figure BDA0002225879680000051
and because of
Figure BDA0002225879680000052
Then there is
Figure BDA0002225879680000053
Is the ratio of two vector modes;
obtaining P in S3BThe formula (2) is developed into a matrix form:
Figure BDA0002225879680000054
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:
Figure BDA0002225879680000061
writing in matrix form requires both sides to be under the same coordinate system, that is:
Figure BDA0002225879680000062
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
Figure BDA0002225879680000063
(m is a variable indicating that a single pixel cannot determine PC). The matrix formula is:
PC=mpC(3)
(3) substituting (2) then:
Figure BDA0002225879680000064
in the formula PBRepresenting the position of the point P in the body coordinate system, a 3 x 1 vector.
Figure BDA0002225879680000065
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;
Figure BDA0002225879680000066
is a translation matrix from the camera coordinate system to the body coordinate system relative to the body coordinate system;
Figure BDA0002225879680000067
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; wherein
Figure BDA0002225879680000068
Is 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:
Figure BDA0002225879680000069
wherein
Figure BDA0002225879680000071
Formula (5) is substituted for formula (4) by:
Figure BDA0002225879680000072
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.
Will be provided with
Figure BDA0002225879680000073
pC
Figure BDA0002225879680000074
The formula (6) is substituted by:
Figure BDA0002225879680000075
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:
Figure BDA0002225879680000081
similarly, when β is subjected to partial derivation, α, γ, and h are known amounts, and there are:
Figure BDA0002225879680000082
similarly, when the partial derivatives are calculated for γ, α, β, and h are known amounts, and there are:
Figure BDA0002225879680000083
finally, the depth of field h is derived, and α, β and gamma are set as known quantities at the moment, including:
Figure BDA0002225879680000084
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:
Figure FDA0002225879670000011
obtaining a solving formula of the point P under a body coordinate system
Figure FDA0002225879670000012
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
Figure FDA0002225879670000013
Then there are:
Figure FDA0002225879670000014
in the formula PBRepresenting the position of the P point in a body coordinate system, namely a 3 multiplied by 1 vector;
Figure FDA0002225879670000015
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:
Figure FDA0002225879670000016
and because of
Figure FDA0002225879670000017
Then there is
Figure FDA0002225879670000018
Is the ratio of two vector modes;
obtaining P in S3BThe formula (2) is developed into a matrix form:
Figure FDA0002225879670000019
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.
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 true CN110866951A (en) 2020-03-06
CN110866951B CN110866951B (en) 2024-05-10

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
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)

* 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
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)

* 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
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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