CN110610524A - Camera calibration point coordinate calculation method - Google Patents

Camera calibration point coordinate calculation method Download PDF

Info

Publication number
CN110610524A
CN110610524A CN201910817106.3A CN201910817106A CN110610524A CN 110610524 A CN110610524 A CN 110610524A CN 201910817106 A CN201910817106 A CN 201910817106A CN 110610524 A CN110610524 A CN 110610524A
Authority
CN
China
Prior art keywords
coordinates
calibration
image
coordinate
point
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
CN201910817106.3A
Other languages
Chinese (zh)
Other versions
CN110610524B (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.)
Guangdong OPT Machine Vision Co Ltd
Original Assignee
Guangdong OPT Machine Vision Co Ltd
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 Guangdong OPT Machine Vision Co Ltd filed Critical Guangdong OPT Machine Vision Co Ltd
Priority to CN201910817106.3A priority Critical patent/CN110610524B/en
Publication of CN110610524A publication Critical patent/CN110610524A/en
Application granted granted Critical
Publication of CN110610524B publication Critical patent/CN110610524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Abstract

The invention belongs to the technical field of machine vision, and particularly relates to a camera calibration point coordinate calculation method, which comprises the following steps: s1, for the calibration plate image, obtaining m calibration point image coordinates (x1, y1), (x2, y2). (xm, ym) through a calibration point detection algorithm; s2, randomly selecting one index point image coordinate, and selecting another two index point image coordinates which are closest to the point according to the image coordinate distance to form three initial image coordinates which are marked as (qx1, qy1), (qx2, qy2), (qx3, qy3), (qx4, qy 4). Based on the existing coordinates of the images of the calibration points, the row and column coordinates of the calibration points can still be accurately sequenced when the coordinates of the images of the calibration points are incomplete.

Description

Camera calibration point coordinate calculation method
Technical Field
The invention belongs to the technical field of machine vision, and particularly relates to a method for calculating coordinates of a camera calibration point.
Background
In machine vision, camera parameters are often required to be calibrated, currently, the mainstream camera calibration utilizes checkerboard calibration boards or dot calibration boards, calibration points on the calibration boards are arranged in a dot matrix and have row and column position information, a plurality of calibration board images are shot by a camera, calibration points in the calibration board images are detected through an algorithm, because the obtained calibration point image coordinates are arranged in a disordered mode and have no row and column position information and corresponding row and column coordinates, corresponding row and column coordinates need to be calculated through a specific method from the calibration point image coordinates, and finally, the camera parameters are calibrated by utilizing the image coordinates and the row and column coordinates of the calibration points in a fitting mode. Therefore, the sorting of the calibration points in the calibration board image is one of the key techniques for calibration of camera parameters.
In the prior art, envelope calculation is performed by using image coordinate points of calibration points, points located at edge positions in the points are found, the number of rows and columns of the points are calculated, and finally row and column coordinates of each calibration point are obtained. The prior art has the defects that the image coordinate points of the calibration points are required to be arranged in a complete rectangular lattice, the obtained calibration points are often incomplete due to environmental influence and failed detection of the image coordinate of the calibration points, the image coordinate of the calibration point at a certain position is possibly lost to cause failure of row and column coordinates, and the success rate of the conventional sequencing method is low.
Disclosure of Invention
Aiming at the defects of the prior art, the method for calculating the coordinates of the camera calibration points is provided under the conditions that the detection of the calibration points is incomplete and partial calibration points are missing.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for calculating coordinates of a camera calibration point comprises the following steps:
s1, for the calibration plate image, obtaining m calibration point image coordinates (x1, y1), (x2, y2). (xm, ym) through a calibration point detection algorithm;
s2, randomly selecting one index point image coordinate, and selecting another two index point image coordinates which are closest to the point according to the image coordinate distance to form three initial image coordinates which are marked as (qx1, qy1), (qx2, qy2), (qx3, qy3), (qx4, qy 4);
s3, setting three row and column coordinates (px1, py1) ═ 0,0), (px2, py2) ═ 0,1, (px3, py3) ═ 1,0, (px4, py4) ═ 1, 1;
s4, assuming transformation parameters h1, h2, h3, h4, h5, h6, h7, h8, assuming (qx1, qy1), (qx2, qy2), (qx3, qy3), (qx4, qy4) and (px1, py1), (px2, py2), (px3, py3), (px4, py4) satisfy the following equations:
solving equations to obtain values of h1, h2, h3, h4, h5, h6, h7 and h 8;
s5, traversing all the coordinates (x) of the index point image1,y1),(x2,y2)...(xm,ym) The transformation coordinates (dx) are calculated according to the following formula1,dy1),(dx2,dy2)...(dxm,dym):
S6, for transformation coordinate (dx)1,dy1),(dx2,dy2)...(dxm,dym) Taking an integer by rounding to obtain an integer coordinate (Dx)1,Dy1),(Dx2,Dy2)...(Dxm,Dym). And calculating rounding offset s according to1,s2,...sm
S7, setting an offset threshold t, and screening corresponding rounding offsets S1,s2,...smInteger coordinate less than t (Dx)1,Dy1),(Dx2,Dy2)...(Dxm,Dym) Is denoted as (Px)1,Py1),(Px2,Py2)...(Pxn,Pyn) The number is n;
s8, setting a number threshold value nt, judging whether the current n is larger than or equal to nt, if not, repeating the steps 2 to 7 until the n is larger than or equal to nt;
s9, integer coordinate (Px) obtained by screening1,Py1),(Px2,Py2)...(Pxn,Pyn) Counting the minimum Px on X and Y coordinates respectivelymin,Pymin. Calculating according to the following formula to obtain the sorted row and column coordinates (Qx)1,Qy1),(Qx2,Qy2)...(Qxn,Qyn):
(Qxi,Qyi)=(Pxi,Pyi)-(Pxmin,Pymin)i=1,2,3...n;
S10, and (Qx)1,Qy1),(Qx2,Qy2)...(Qxn,Qyn) Output as row and column coordinates.
Compared with the prior art, the method has the advantages that: randomly selecting one point of the coordinates of the index point images to be sorted, finding out multiple points adjacent to the point as a point set, assuming the row and column coordinates corresponding to the point set, and calculating a transformation parameter between the two points; and then transforming all the image coordinates of the calibration points, counting the points meeting the offset threshold condition and the transformation coordinates thereof, repeating the process until the number of the calibration points meeting the offset threshold condition is more than the number threshold, and outputting the transformation coordinates thereof as a sequencing result. The beneficial effects are that: the image coordinates of the existing calibration points are used as the basis for sequencing, so that the condition that the image coordinates of the calibration points are incomplete and are not arranged in a rectangular lattice can be overcome.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a method in an embodiment of the invention;
Detailed Description
As used in the specification and in the claims, certain terms are used to refer to particular components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. The specification and the claims do not use the difference of names as the way of distinguishing the components, but use the difference of functions of the components as the criterion of distinguishing, such as a pointer, which can be replaced by an iterator. In the following description and in the claims, the terms "include" and "comprise" are used in an open-ended fashion, and thus should be interpreted to mean "include, but not limited to. "substantially" means within an acceptable error range, within which a person skilled in the art can solve the technical problem to substantially achieve the technical result. Further, it is not necessary for certain coefficients or thresholds in the specification and claims to be specific values, but rather values are generally appropriate and some increase or decrease may be possible.
As shown in fig. 1, a method for calculating coordinates of a camera calibration point includes the following steps:
step 1, for a calibration plate image, obtaining m calibration point image coordinates (x1, y1), (x2, y2) through a calibration point detection algorithm, (xm, ym);
step 2, randomly selecting one index point image coordinate, and selecting another two index point image coordinates which are closest to the point according to the image coordinate distance to form three initial image coordinates which are marked as (qx1, qy1), (qx2, qy2), (qx3, qy3), (qx4, qy 4);
step 3, setting three row-column coordinates (px1, py1) ═ 0,0), (px2, py2) ═ 0,1, (px3, py3) ═ 1,0, (px4, py4) ═ 1, 1;
step 4, assuming transformation parameters h1, h2, h3, h4, h5, h6, h7, h8, according to the principle of homography matrix transformation, assuming (qx1, qy1), (qx2, qy2), (qx3, qy3), (qx4, qy4) and (px1, py1), (px2, py2), (px3, py3), (px4, py4) satisfy the following equations:
solving equations to obtain values of h1, h2, h3, h4, h5, h6, h7 and h 8;
step 5, traversing all the coordinates (x) of the calibration point image1,y1),(x2,y2)...(xm,ym) The transformation coordinates (dx) are calculated according to the following formula1,dy1),(dx2,dy2)...(dxm,dym)。
Step 6, for the transformation coordinate (dx)1,dy1),(dx2,dy2)...(dxm,dym) Taking an integer by rounding to obtain an integer coordinate (Dx)1,Dy1),(Dx2,Dy2)...(Dxm,Dym). And calculating rounding offset s according to1,s2,...sm
Step 7, setting an offset threshold t, and screening corresponding rounding offsets s1,s2,...smInteger coordinate less than t (Dx)1,Dy1),(Dx2,Dy2)...(Dxm,Dym) Is denoted as (Px)1,Py1),(Px2,Py2)...(Pxn,Pyn) The number is n;
step 8, setting a number threshold value nt, judging whether the current n is greater than or equal to nt, if not, repeating the steps 2 to 7 until the n is greater than or equal to nt;
and 9, counting minimum values Pxmin and Pymin on the X coordinate and the Y coordinate respectively for the integer coordinates (Px1 and Py1), (Px2 and Py2). (Pxn and Pyn) obtained by screening. The sorted row and column coordinates (Qx1, Qy1), (Qx2, Qy2). (Qxn, Qyn) were calculated as follows:
(Qxi,Qyi)=(Pxi,Pyi)-(Pxmin,Pymin)i=1,2,3...n;
step 10, output as row and column coordinates (Qx1, Qy1), (Qx2, Qy 2.) (Qxn, Qyn). Randomly selecting one point of the coordinates of the index point images to be sorted, finding out multiple points adjacent to the point as a point set, assuming the row and column coordinates corresponding to the point set, and calculating a transformation parameter between the two points; and then transforming all the image coordinates of the calibration points, counting the points meeting the offset threshold condition and the transformation coordinates thereof, repeating the process until the number of the calibration points meeting the offset threshold condition is more than the number threshold, and outputting the transformation coordinates thereof as a sequencing result. The image coordinates of the existing calibration points are used as the basis for sequencing, so that the condition that the image coordinates of the calibration points are incomplete and are not arranged in a rectangular lattice can be overcome.
While the foregoing specification illustrates and describes several embodiments of the invention, it is to be understood, as noted above, that the invention is not limited to the forms disclosed herein, but is not intended to be exhaustive of other embodiments, and is capable of use in various other combinations, modifications, and environments and is capable of changes within the scope of the inventive concept as described herein, commensurate with the above teachings, or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (1)

1. A method for calculating coordinates of a camera calibration point is characterized by comprising the following steps:
s1, for the calibration plate image, obtaining m calibration point image coordinates (x1, y1), (x2, y2). (xm, ym) through a calibration point detection algorithm;
s2, randomly selecting one index point image coordinate, and selecting another two index point image coordinates which are closest to the point according to the image coordinate distance to form three initial image coordinates which are marked as (qx1, qy1), (qx2, qy2), (qx3, qy3), (qx4, qy 4);
s3, setting three row and column coordinates (px1, py1) ═ 0,0), (px2, py2) ═ 0,1, (px3, py3) ═ 1,0, (px4, py4) ═ 1, 1;
s4, assuming transformation parameters h1, h2, h3, h4, h5, h6, h7, h8, assuming (qx1, qy1), (qx2, qy2), (qx3, qy3), (qx4, qy4) and (px1, py1), (px2, py2), (px3, py3), (px4, py4) satisfy the following equations:
solving equations to obtain values of h1, h2, h3, h4, h5, h6, h7 and h 8;
s5, traversing all the coordinates (x) of the index point image1,y1),(x2,y2)...(xm,ym) The transformation coordinates (dx) are calculated according to the following formula1,dy1),(dx2,dy2)...(dxm,dym):
S6, for transformation coordinate (dx)1,dy1),(dx2,dy2)...(dxm,dym) Taking an integer by rounding to obtain an integer coordinate (Dx)1,Dy1),(Dx2,Dy2)...(Dxm,Dym). And calculating rounding offset s according to1,s2,...sm
S7, setting an offset threshold t, and screening corresponding rounding offsets S1,s2,...smInteger coordinate less than t (Dx)1,Dy1),(Dx2,Dy2)...(Dxm,Dym) Is denoted as (Px)1,Py1),(Px2,Py2)...(Pxn,Pyn) The number is n;
s8, setting a number threshold ntJudging whether the current n is more than or equal to nt, if not, repeating the steps 2 to 7 until n is more than or equal to nt
S9, integer coordinate (Px) obtained by screening1,Py1),(Px2,Py2)...(Pxn,Pyn) Counting the minimum Px on X and Y coordinates respectivelymin,Pymin. Calculating according to the following formula to obtain the sorted row and column coordinates (Qx)1,Qy1),(Qx2,Qy2)...(Qxn,Qyn):
(Qxi,Qyi)=(Pxi,Pyi)-(Pxmin,Pymin) i=1,2,3...n;
S10, and (Qx)1,Qy1),(Qx2,Qy2)...(Qxn,Qyn) Output as row and column coordinates.
CN201910817106.3A 2019-08-30 2019-08-30 Camera calibration point coordinate calculation method Active CN110610524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910817106.3A CN110610524B (en) 2019-08-30 2019-08-30 Camera calibration point coordinate calculation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910817106.3A CN110610524B (en) 2019-08-30 2019-08-30 Camera calibration point coordinate calculation method

Publications (2)

Publication Number Publication Date
CN110610524A true CN110610524A (en) 2019-12-24
CN110610524B CN110610524B (en) 2022-06-17

Family

ID=68890551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910817106.3A Active CN110610524B (en) 2019-08-30 2019-08-30 Camera calibration point coordinate calculation method

Country Status (1)

Country Link
CN (1) CN110610524B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113822950A (en) * 2021-11-22 2021-12-21 天远三维(天津)科技有限公司 Calibration point distribution determination method, device, equipment and storage medium of calibration plate
CN115222825A (en) * 2022-09-15 2022-10-21 湖南视比特机器人有限公司 Calibration method, computer storage medium and calibration system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160275683A1 (en) * 2013-11-29 2016-09-22 Clarion Co., Ltd.. Camera Calibration Device
CN106340044A (en) * 2015-07-09 2017-01-18 上海振华重工电气有限公司 Camera external parameter automatic calibration method and calibration device
CN106530358A (en) * 2016-12-15 2017-03-22 北京航空航天大学 Method for calibrating PTZ camera by using only two scene images
CN107993266A (en) * 2017-12-05 2018-05-04 西北工业大学 Light-field camera intrinsic parameter caliberating device and method
CN108205395A (en) * 2018-01-16 2018-06-26 安徽慧视金瞳科技有限公司 A kind of calibration point centre coordinate precise positioning method
CN108734745A (en) * 2018-05-18 2018-11-02 湖南拓视觉信息技术有限公司 Scaling method, device and projection device
CN109238235A (en) * 2018-06-29 2019-01-18 华南农业大学 Monocular sequence image realizes rigid body pose parameter continuity measurement method
CN110111394A (en) * 2019-05-16 2019-08-09 湖南三一快而居住宅工业有限公司 Based on manipulator feature to the method and device of video camera automatic Calibration

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160275683A1 (en) * 2013-11-29 2016-09-22 Clarion Co., Ltd.. Camera Calibration Device
CN106340044A (en) * 2015-07-09 2017-01-18 上海振华重工电气有限公司 Camera external parameter automatic calibration method and calibration device
CN106530358A (en) * 2016-12-15 2017-03-22 北京航空航天大学 Method for calibrating PTZ camera by using only two scene images
CN107993266A (en) * 2017-12-05 2018-05-04 西北工业大学 Light-field camera intrinsic parameter caliberating device and method
CN108205395A (en) * 2018-01-16 2018-06-26 安徽慧视金瞳科技有限公司 A kind of calibration point centre coordinate precise positioning method
CN108734745A (en) * 2018-05-18 2018-11-02 湖南拓视觉信息技术有限公司 Scaling method, device and projection device
CN109238235A (en) * 2018-06-29 2019-01-18 华南农业大学 Monocular sequence image realizes rigid body pose parameter continuity measurement method
CN110111394A (en) * 2019-05-16 2019-08-09 湖南三一快而居住宅工业有限公司 Based on manipulator feature to the method and device of video camera automatic Calibration

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"MINGLIANG FU.ET AL": ""A calibration method for structured light systems based on a virtual camera"", 《IEEE》 *
洪磊等: ""基于单应性矩阵的线结构光参量标定法"", 《光子学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113822950A (en) * 2021-11-22 2021-12-21 天远三维(天津)科技有限公司 Calibration point distribution determination method, device, equipment and storage medium of calibration plate
CN113822950B (en) * 2021-11-22 2022-02-25 天远三维(天津)科技有限公司 Calibration point distribution determination method, device, equipment and storage medium of calibration plate
CN115222825A (en) * 2022-09-15 2022-10-21 湖南视比特机器人有限公司 Calibration method, computer storage medium and calibration system

Also Published As

Publication number Publication date
CN110610524B (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN109598762B (en) High-precision binocular camera calibration method
CN110610524B (en) Camera calibration point coordinate calculation method
US8269836B2 (en) Image capture, alignment, and registration
CN111083457B (en) Method and device for correcting projection images of multiple light machines and projection instrument of multiple light machines
CN107702695B (en) Method for testing relative position of camera module lens and image sensor
CN101650828B (en) Method for reducing random error of round object location in camera calibration
CN110099267A (en) Trapezoidal correcting system, method and projector
CN108257187B (en) Camera-projector system calibration method
CN107230442A (en) LED display lamp independent positioning method and device
CN110260822B (en) High-precision calibration method for multi-view structured light system
CN107071373A (en) Optical projection system, projecting apparatus and image adjusting method
US8121340B2 (en) Method for decoding an encoded point matrix image and an electronic device implementing the same
CN106204480A (en) Pattern distortion antidote based on conic section and in real time apparatus for correcting
US9454808B2 (en) Pattern processing apparatus, pattern processing method, and pattern processing program
CN106488204A (en) Possess depth photographic attachment and the self-aligning method of self-aligning
CN110751692B (en) Camera imaging error calibration method and correction method
CN106485648B (en) Image acquisition device with correction function and correction method of image acquisition device
CN107358221B (en) Video recognition technology-based chessboard positioning method for automatically recording chess manual of go
CN109146865A (en) A kind of visual-alignment detection figure source generates system
CN109215133A (en) A kind of analog image base construction method for the screening of visual-alignment algorithm
CN110473261B (en) Robust light field camera calibration method
CN112991211A (en) Dark corner correction method for industrial camera
KR20180037347A (en) Board inspection apparatus and method of compensating board distortion using the same
CN112184835A (en) Method and system for restoring deformation of piano keyboard image
CN110796708A (en) Projector calibration method based on Gold matrix projection

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