CN112767497A - High-robustness calibration device based on circular calibration plate and positioning method - Google Patents
High-robustness calibration device based on circular calibration plate and positioning method Download PDFInfo
- Publication number
- CN112767497A CN112767497A CN202110099590.8A CN202110099590A CN112767497A CN 112767497 A CN112767497 A CN 112767497A CN 202110099590 A CN202110099590 A CN 202110099590A CN 112767497 A CN112767497 A CN 112767497A
- Authority
- CN
- China
- Prior art keywords
- calibration
- image
- calibration plate
- point
- xyz
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/66—Analysis of geometric attributes of image moments or centre of gravity
-
- 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
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Data Mining & Analysis (AREA)
- Geometry (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Analysis (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
The invention relates to a high-robustness calibration device and a positioning method based on a circular calibration plate, wherein the circular calibration plate is placed in the public view of all cameras to be calibrated, and each camera to be calibrated xyz isiRespectively align the calibration plates XYZjImageijExtracting the contour by using the algorithm of Canny and the like to obtain an initial contour group, and then carrying out primary filtering to obtain the final contour groupValue graph ImageijComputing grid featuresEstablishing an undirected graph, carrying out cluster analysis, carrying out edge detection and contour extraction filtering again, calculating normalized world coordinates after sequencing, and not needing to pre-configure the size, the interval, the number and the like of dots or rings; the algorithm does not need to try to adaptively adjust the image threshold parameter and the like, so that the calibration speed is high; the robustness is stronger for shielding, dirty calibration plates, similar calibration plates in calibration scenes and the like.
Description
Technical Field
The invention belongs to the technical field of optical image measurement and machine vision application, and particularly relates to a high-robustness calibration device and a positioning method based on a circular calibration plate.
Background
Camera calibration is the first step of many machine vision applications, and since the system application accuracy basically depends on the accuracy of the calibration result, the camera calibration plays a significant role in the machine vision applications.
The types of calibration plates common in the prior art can be roughly divided into three categories: a checkerboard calibration board, a dot/ring calibration board and calibration boards of various custom shapes. Wherein, the specially-made or custom-shaped calibration plates, such as ChAruco calibration plate and Kalibr calibration plate, have complex design and processing, which cause cost increase and poor applicability; although the checkerboard angular point calibration plate is easy to position and has high detection precision, the checkerboard angular point calibration plate is widely applied, but is easily influenced by noise and fuzziness, and the key point is that the detection precision is reduced because of the sharp black-white change at the checkerboard angular points of a system (such as a structured light measurement system) needing to calibrate the equipment similar to an inverse pinhole imaging camera of a projector; aiming at the defects of the angular point calibration plate, a dot calibration plate or a circular calibration plate is generally adopted in the industry.
For the detection of the dot or circular calibration plate, the existing methods generally include the following methods. The method is characterized in that the method is adopted by an OpenCV open source library, the method carries out circulating binarization operation on the whole image and extracts a contour, then the contour area, the number of dots, the roundness and the like are filtered according to the configuration of a user, and finally the dots which are closest to each other and meet the configuration number of the user are found out by a clustering analysis method to serve as detection results.
Other methods, such as the "projector calibration method" of high-health et al (application No. CN201710293985.5), use a homemade calibration board of dots, which is divided into three types according to the radius for determining the number and orientation of dots, and although this method can reduce the difficulty of user configuration to some extent on the calibration board, it still cannot solve the problem of detection failure under the conditions of shielding, dirt, and interference of similar objects on the calibration board, and the difficulty of distinguishing and detecting three types of dots increases when the angle of the calibration board tangential to the camera imaging plane is large, which may also cause detection failure.
Also, for example, in the patent entitled "camera calibration board, calibration method and camera" of cheng et al (application No. CN201811526921.6), the boundary size, dot pitch and size of the calibration board are constrained to improve the robustness of the calibration board detection, but this also increases the design and manufacturing cost of the calibration board, and also requires the user to configure parameters in advance to reduce the effects of dirt and similar interferents.
Disclosure of Invention
In order to solve the above problems in the prior art, the present invention aims to provide a high robustness calibration apparatus and a positioning method based on a circular calibration plate, which can calibrate multiple devices simultaneously, have the advantages of high detection speed, good detection effect, low cost and convenient operation, and can prevent the interference of shielding, dirt and the like.
The technical scheme adopted by the invention is as follows:
a high robustness calibration device based on a circular calibration plate comprises a background plate and at least one camera to be calibrated, wherein the circular calibration plate, a similar interferent, a dirty spot stain and a shielding object are arranged between the background plate and the camera to be calibrated, and the circular calibration plate, the similar interferent, the dirty spot stain and the shielding object are fixedly supported on the background plate through transparent support rods or are suspended above the background plate through steel wires; the circular calibration plate, the similar interferent, the dirty spot stain and the shelter are positioned in the public view range of all the cameras to be calibrated.
The circular calibration plate is provided with dots or rings with any size, any number and any regular arrangement.
A positioning method of the high-robustness calibration device based on the circular calibration plate comprises the following steps:
s1, marking the camera to be calibrated as xyzi(I ═ 1, 2, 3., I ≧ 1), the common field of view of all cameras to be calibrated is marked as #iFOVi;
S2, placing the circular calibration plate in the public view of all cameras to be calibrated, and marking the position and posture of the calibration plate at the moment as XYZjThe circle centers on the calibration plate are at the pose XYZjHas the coordinates ofWhereinRepresenting calibration plate pose XYZjRelative to camera set { xyziConversion matrix of PkRepresenting world coordinates of each circle center on the calibration plate;
s3, each camera to be calibrated xyziRespectively align the calibration plates XYZjImage for taking one pictureijAssume that each image resolution is (w)i,hi) Then, the following pretreatment is carried out: binarization is carried out on the self-adaptive threshold value to obtain a black-white binary ImageijThen extracting the contour by using an algorithm such as Canny and the like to obtain an initial contour group { contour { constant }ijl}, l=1,2,3...,Lij;
S4, performing preliminary filtering on the initial contour group;
using each contour contourrijlCalculating the Area of the outline AreaijlShape factor circulationijlAnd Hu rotation and scaling invariant moments HuMomentsijl: if it is notAnd isAnd isAnd keeping the contour, otherwise deleting and filling the pixel point p in the contour in the binary image into white:
Imageij(p∈contourijl)=255
S6, pairLocal maximum point setEij represents the number of maximum points calculated in the current grid feature, Eij≥3;
S7, obtaining the extreme point in the last stepAs vertices, an undirected graph is builtWhereinRepresenting a connecting line or edge between two vertices,the construction rules of (1) are as follows: randomly selecting two vertexes as reference points, calculating the pixel distance between the two vertexes, and taking the distance as a reference distance; if extreme point setIf the distance from any extreme point to any point of the two reference points is not greater than the reference distance, connecting the two reference points to form a non-directional edge; to obtain E ij1 side, i.e. Gij=Eij-1;
S8, mixing GijEdgeClustering analysis is divided into two categories according to directions, and each category respectively calculates mean values as reference vectors and expresses the mean values asAnd
s9, edge detection and contour extraction are carried out again on the binary image in S4, and the center of each contour is determinedRepeat S7 as the vertex, create an undirected graphAnd using a referenceAndvector length and direction of (1) to undirected graphTop point of (2)Andfiltering;
s10, establishing center point image coordinates of circle or ringWith corresponding physical coordinates PkOne-to-one mapping between, i.e. to, the vertices of an undirected graphSorting is carried out;
s11, calculating other points relative to OijWorld coordinates of (a):
firstly, undirected graphIn calculating each pointTo OijOf points in the reference direction uijAnd vijMinimum manhattan distance of
Wherein.And (c).Respectively represent corresponding points in the figureThe horizontal and vertical coordinates of (1);
then calculateTo OijImage pixel distance of a pointAnd projects it to the reference direction uijAnd vijTo obtainAndif it is not Then the point is retained, otherwise the point is deleted, at which time eij≤k;
Point-aligning setPush buttonAndsorting from small to large and calculating the world coordinates of corresponding points
Wherein sign (·) represents a symbolic function, W and H represent the center distance of adjacent dots or circular ring dots on the calibration board in the horizontal direction and the vertical direction respectively;
s12, obtaining the image coordinate of the center point of the circle or the circular ringAnd corresponding world coordinates
And S13, further optimizing.
The method for calculating the grid features in step S5 performs autocorrelation transformation on the image according to the following formula:
wherein p.x and p.y respectively represent the horizontal and vertical coordinates, C, of the image of the pixel point pijRepresenting camera xyzciPhotographed XYZjAnd (5) performing autocorrelation transformation on the calibration plate image of the pose.
In said step S6, item Eij=9。
In the step S10, 5 great circle points are arranged on the calibration plate; first, the vertex group is matchedPerforming cluster analysis according to area design characteristics to find directional vertexes(dij is 1, 2, 3, D; 5 is taken as the number of directional vertexes, namely D is 5), and then the reference point is found according to the design characteristic of the included angleAnd a reference directionAnd
The optimization method in step S13 is as follows:
will point setAs an initial value, then at each point Andfurther optimizing the calculation process of the point center in the formed region of interestAlpha and beta respectively represent scaling coefficients of the lengths of the two reference directions, and the calculation processIndicating initial value using center pointReference direction uij,vijAnd an original imageijThe process of calculating the center point is optimized, and ellipse fitting and projective transformation correction processes may be exemplified.
In step S13, α ═ β ═ 0.4.
The optimal point center calculation process in step S13 is an ellipse fitting and projective transformation correction process.
Setting a calibration board in the step S2 and calculating a binary Image in the steps S3-S4ijThe process of (2) is as follows: at pose XYZjBefore the calibration plate is placed, firstly, the camera xyz to be calibrated passes throughiGenerating a background image of the shooting sceneh=1,2,3...,imageihRepresenting a background image of a set or a series of non-calibration plates shot by each camera to be calibrated,representing the process of image computing background; then in the pose XYZjPlacing the calibration plate and using each camera to be calibrated xyziImageijAnd obtaining a calibration plate area by using a background removal technology to obtain a binary image
The above-mentionedCalculating a background image by adopting an optical flow method; background removal processOptical flow methods are also used.
The invention has the beneficial effects that:
a high robustness calibration device and a positioning method based on a circular calibration plate are provided, wherein the circular point or circular ring calibration plate is placed in the common visual field of all cameras to be calibrated, and each camera to be calibrated xyz is to be calibratediRespectively align the calibration plates XYZjImageijExtracting the contour by using an algorithm such as Canny and the like to obtain an initial contour group, and then carrying out initial filtering to obtain a value ImageijComputing grid featuresEstablishing an undirected graph, carrying out cluster analysis, carrying out edge detection and contour extraction filtering again, calculating normalized world coordinates after sequencing, and not needing to pre-configure the size, the interval, the number and the like of dots or rings; the algorithm does not need to try to adjust image threshold parameters and the like in a self-adaptive manner, and the calibration speed is high; robustness is stronger for shielding, dirty calibration plates, similar calibration plates in calibration scenes and the like;
1. the sizes, the intervals and the number of circular points or circular rings of the calibration plate are not required to be configured in advance, on one hand, the calibration plate with a specific model is not required to be specified, the applicability of the calibration algorithm is improved, on the other hand, the professional requirements of related workers can be reduced, and the full-automatic positioning can be realized;
2. the interference of other similar objects in a scene shot by a camera can be automatically eliminated, the method has good resistance to the situations of dirt, shielding and the like of a calibration plate, the detection process is quick and quick, the calibration work difficulty can be reduced, and the calibration work efficiency is further improved;
3. the calibration plate is not limited to a dot or ring calibration plate with a specific model, the dots or rings on the calibration plate can be distributed in a rectangular array or any other arrangement form of a non-rectangular array, and the calibration plate can be positioned even under the extremely severe condition that the image of the calibration plate is fuzzy;
drawings
FIGS. 1-6 are schematic diagrams illustrating defects in a calibration plate inspection method according to the prior art;
FIG. 7 is a schematic diagram of a detection scene of a circular calibration plate of the high robustness calibration device based on the circular calibration plate according to the present invention;
FIG. 8 is a schematic diagram of the orientation scheme of the calibration plate of the high robustness calibration device based on the circular calibration plate according to the present invention;
fig. 9 is a schematic diagram of a calibration plate dot positioning scheme of the high-robustness calibration device based on the circular calibration plate.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
As shown in fig. 1 to 6, the calibration plate detection method in the prior art has the following corresponding defects:
(1) dirty spots and stains on the surface;
(2) shielding;
(3) super camera view range;
(4) similar interferences;
(5) the dip angle is large;
(6) and blurred.
The invention aims to provide a high-robustness calibration device and a positioning method based on a circular calibration plate, aiming at the defects of the prior art.
The first embodiment of the present invention provides a high robustness calibration device based on a circular calibration board, as shown in fig. 7, a background board 8 and at least one camera to be calibrated are first set, and fig. 7 shows three cameras to be calibrated, namely a first camera 1 to be calibrated, a second camera 2 to be calibrated, and a third camera to be calibrated; a circular calibration plate 4, a similar interferent 5, a dirty spot stain 6 and a shelter 7 are arranged between the background plate and all cameras to be calibrated, and the circular calibration plate 4, the similar interferent 5, the dirty spot stain 6 and the shelter 7 are respectively and fixedly supported on the background plate through transparent support rods or are suspended above the background plate through steel wires; and the circular calibration plate, similar disturbance 5, dirty spot stain 6 and obstruction 7 are all located simultaneously within the common field of view of all cameras to be calibrated.
The circular calibration plate is provided with dots or rings with any size, any number and any regular arrangement.
The hardware system structure related to the invention is shown in figure 7: one or more cameras xyz to be calibratedi(I ═ 1, 2, 3., I ≧ 1); a circular ring or dot calibration plate; and other obstructions, similar interferents, and dirty spots that are passively present in the detection scene. The following embodiments and examples are illustrated by way of example only, but the invention is not limited thereto.
The embodiment provides a positioning method of a high-robustness calibration device based on a circular calibration plate, which comprises the following steps:
(1) placing a circular ring or a circular dot calibration board on each camera xyz to be calibratediPublic view #iFOViIn the field, assume that the position and posture of the calibration plate at the moment are XYZjThe circle centers on the calibration plate are at the pose XYZjHas the coordinates ofWhereinRepresenting calibration plate pose XYZjRelative to camera set { xyziConversion matrix of PkAnd the world coordinates of each circle center on the calibration plate are expressed. However, as shown in FIGS. 1-6, due to the problems of the occlusion and the scaling plate exceeding the visual field, the dots in a part of the camera visual field may not be visible in another part of the camera visual field, i.e., k ≦ mxn.
(2) Each camera to be calibrated XYZ is respectively aligned to the calibration platejImage for taking one pictureijAssume that each image resolution is (w)i,hi) Then, the following pretreatment is carried out: binarization is carried out by self-adaptive threshold value to obtain black-white binary ImageijThen extracting the contour by using the Canny algorithm and the like to obtain an initial wheelContour group { contourijl},l=1,2,3...,LijGenerally, the number of the extracted outlines is far larger than the number of the actual dots, namely L, due to the interference of noise, illumination, similar or non-similar impurities in the background and the likeij> m × n, these contours need to be rationalized and preliminary filtered for subsequent steps to successfully detect the calibration plate. One method of detection is to use each contour contourrijlCalculating the Area of the outline AreaijlShape factor circulationijlAnd Hu rotation and zoom invariant moments HuMomentsijl(ii) a If it is notAnd is And isAnd keeping the contour, otherwise deleting and filling the pixel point p in the contour in the binary image into white:
Imageij(p∈contourijl)=255
in the above judgment conditionAndall represent threshold values, as an examplePreference selectionPreference selectionPreferably 0.6,Preferably 0.9,Preferably 0.13,Preferably 0.18.
(3) Utilizing the binary Image obtained in the last stepijComputing grid featuresAs an example, one method of computing the mesh characteristics is to perform an autocorrelation transform on the image as follows
Wherein p.x and p.y respectively represent the horizontal and vertical coordinates, C, of the image of the pixel point pijRepresenting camera xyzciPhotographed XYZjAnd (5) performing autocorrelation transformation on the calibration plate image of the pose.
(4) To pairLocal maximum point is calculated(eij=1,2,3,...,Eij),EijRepresenting the number of maximum points calculated in the current grid feature, theoretically EijInfinite, but these extreme points are distributed in the same array as the dots or the ring points on the calibration plate, so a small number of extreme points can be selected, and E should be selected to ensure the subsequent stepsij≧ 3, E is preferred as an exampleij=9。
(5) The extreme point obtained in the last stepAs vertices, an undirected graph is builtWhereinRepresenting a connecting line or edge between two vertices,the following rules may be used: and randomly selecting two vertexes as a reference, calculating the pixel distance between the two vertexes as a reference distance, and connecting the two reference points to form a non-directional edge if the distance from the extreme point set to any one of the two reference points to another extreme point is not greater than the reference distance. Thus for EijA feature point, can obtain E ij1 side, i.e. Gij=Eij-1。
(6) G obtained in the last stepijEdgeClustering analysis is divided into two categories according to direction, each category calculates mean value as reference vector and expresses the mean value as reference vectorAndthese two edges contain the pitch and orientation of the calibration plate grid.
(7) Performing edge detection and contour extraction again on the binary image obtained in the step (2), and centering each contourCreating an undirected graph as a vertex using the same method as in step (5)And using a referenceAndvector length and direction of (1) to undirected graphTop point of (2)Andand filtering is carried out, so that not only can interference points on the surface of the calibration plate due to dirt and the like be eliminated, but also objects similar to the calibration plate which possibly appear in a scene shot by a camera can be eliminated.
(8) When the calibration plate is used for calibrating the camera, the image coordinates of the central point of the circle or the ring are required to be establishedWith corresponding physical coordinates PkOne-to-one mapping between, i.e. requiring vertex to undirected graphSequencing; in addition to this, for a multi-camera system, i.e. I > 1, such a one-to-one mapping also needs to be established in order to calibrate the relationship between the cameras, for which purpose the circle or circle point on the calibration plate needs to be oriented and positioned. By way of example, the present embodiment is preferably illustrated with a calibration plate oriented with five great circles, as shown in fig. 8, but not limited thereto. First, the vertex group is mappedClustering analysis is performed on design features (which may be areas, as an example) to find directional vertices therein( d ij1, 2, 3, ·, D; the number of orientation vertices can be preferably selected to be 5, i.e., D is 5, as an example, and then the reference point can be found according to the design feature (such design feature can be the included angle, as an example)And a reference directionAnd
(9) using reference point OijReference direction uijAnd vijAfter determining the orientation of the calibration plate, other points relative to O need to be calculated in the following mannerijWorld coordinates of (a): firstly, undirected graphIn calculating each point (eijNot equal to d) to OijOf points in the reference direction uijAnd vijMinimum manhattan distance of
Wherein.And (c).Respectively represent corresponding points in the figureThe horizontal and vertical coordinates of (1); however, the device is not suitable for use in a kitchenPost-calculationTo OijImage pixel distance of a pointAnd projects it to the reference direction uijAnd vijTo obtainAndif it is notThis point is retained (as an example, the condition is determined hereCan be taken 0,2) otherwise, the point is deleted, so that the error detection of partial round points or circular ring points caused by overlarge inclination angle of the calibration plate relative to the camera imaging plane can be eliminated, and at the moment eijK is not more than k; point setPush buttonAndsequencing from small to large, and calculating world coordinates of corresponding points
Wherein sign (·) represents a sign function, and W and H represent center distances of adjacent dots or circular ring dots in horizontal and vertical directions on the calibration board, respectively.
(10) The image coordinates of the center point of the circle or the ring are calculated by the stepsAnd corresponding world coordinatesDue to the fact thatThe coordinate values of (2) are calculated by contour extraction in the step (7), and in some vision systems, the precision may not be high enough, and the point set may be collectedAs an initial value, then at each pointAndfurther optimizing the calculation process of the point center in the formed region of interestTo further improve the calibration accuracy, where α and β respectively represent scaling coefficients for two reference direction lengths, and preferably, as an example, α ═ β ═ 0.4 is selected; calculation processIndicating initial value using center pointReference direction uij,vijAnd an original imageijOptimizing the Process of calculating the center Point, as an exampleMay be an ellipse fitting and projective transformation correction process.
The circular calibration plate positioning method based on image autocorrelation has the following advantages:
1. the method does not need to configure the size, the interval and the number of the dots or the rings of the calibration plate in advance, does not need to specify the calibration plate with a specific model on one hand, improves the applicability of the calibration algorithm, can reduce the professional requirements of related workers on the other hand, and can realize full-automatic positioning.
2. The method can automatically eliminate the interference of other similar objects in the scene shot by the camera, has good resistance to the situations of dirt and shielding of the calibration plate, and has quick detection process, thereby reducing the difficulty of calibration work and further improving the efficiency of the calibration work.
3. The method is not limited to a specific type of dot or ring calibration plate, the distribution of dots or rings on the calibration plate can also be a non-rectangular array, and the positioning of the calibration plate can be realized even under the extremely severe condition that the image of the calibration plate is blurred.
Example two: in the first embodiment, the calibration board is placed in the step (1) and the binary Image is calculated in the step (2)ijThe following alternatives can be used for the process of (1): at pose XYZjBefore placing the calibration plate, firstly, using each camera to be calibrated xyziGenerating a background image of the shooting scene 1, 2, 3, where imageihA background image representing one or a series of non-calibration plates shot by each camera to be calibrated,Representing the process of image computing context, here by way of exampleThe background image can be calculated by an optical flow method; then in the pose XYZjPlacing the calibration plate and using each camera to be calibrated xyziImageijAnd obtaining a binary image by obtaining the area of the calibration plate by using the background removal technologyAs an example here the background removal processOptical flow methods may be used.
The invention is not limited to the above alternative embodiments, and any other various products can be obtained by anyone in the light of the present invention, but any changes in shape or structure thereof, all of which fall within the scope of the claims of the present invention, fall within the protection scope of the present invention.
Claims (10)
1. The utility model provides a high robustness calibration device based on circular calibration board which characterized in that: the camera calibration device comprises a background plate and at least one camera to be calibrated, wherein a circular calibration plate, a similar interference object, a dirty spot stain and a shielding object are arranged between the background plate and the camera to be calibrated, and the circular calibration plate, the similar interference object, the dirty spot stain and the shielding object are fixedly supported on the background plate through transparent support rods or are suspended above the background plate through steel wires; the circular calibration plate, the similar interferent, the dirty spot stain and the shelter are positioned in the public view range of all the cameras to be calibrated.
2. The high robustness calibration device based on the circular calibration plate as claimed in claim 1, wherein: the circular calibration plate is provided with dots or rings with any size, any number and any regular arrangement.
3. A positioning method of the high-robustness calibration device based on the circular calibration plate as claimed in any one of claims 1-2, wherein: the method comprises the following steps:
s1, marking the camera to be calibrated as xyzi(i=1,2,3...,I,I≥1);
S2, marking the public view of all cameras to be calibrated as #iFOViSuppose that at this time, the pose XYZ of the calibration plate isjThe circle centers on the calibration plate are at the pose XYZjHas the coordinates ofWhereinRepresenting calibration plate pose XYZjRelative to camera set { xyziConversion matrix of PkRepresenting world coordinates of each circle center on the calibration plate;
s3, each camera to be calibrated xyziRespectively align the calibration plates XYZjImage for taking one pictureijAssume that each image resolution is (w)i,hi) Then, the following pretreatment is carried out: binarization is carried out by self-adaptive threshold value to obtain black-white binary ImageijThen extracting the contour by using an algorithm such as Canny and the like to obtain an initial contour group { contour { constant }ijl},l=1,2,3...,Lij;
S4, performing preliminary filtering on the initial contour group;
using each contour contourrijlCalculating the Area of the outline AreaijlShape factor circulationijlAnd Hu rotation and scaling invariant moments HuMomentsijl: if it is notAnd isAnd isAnd keeping the contour, otherwise deleting and filling the pixel point p in the contour in the binary image into white:
Imageij(p∈contourijl)=255
S6, pairLocal maximum point setEijRepresenting the number of calculated maxima points in the current grid feature, Eij≥3;
S7, obtaining the extreme point in the last stepAs vertices, an undirected graph is builtWhereinRepresenting a connecting line or edge between two vertices,the construction rules of (1) are as follows: randomly selecting two vertexes as reference points, calculating the pixel distance between the two vertexes, and taking the distance as a reference distance; if the distance from any extreme point in the extreme point set to any one of the two reference points is not more than the reference distance, connecting the two reference point patternsForming a non-directional edge; to obtain Eij1 side, i.e. Gij=Eij-1;
S8, mixing GijEdgeClustering analysis is divided into two categories according to direction, each category calculates mean value as reference vector and expresses the mean value as reference vectorAnd
s9, edge detection and contour extraction are carried out again on the binary image in S4, and the center of each contour is determinedRepeating S7 as the vertex to create an undirected graphAnd using a referenceAndvector length and direction of (1) to undirected graphTop point of (2)Andfiltering;
s10, establishing center point image coordinates of circle or ringWith corresponding physical coordinates PkOne-to-one mapping between, i.e. to, the vertices of an undirected graphSorting is carried out;
s11, calculating other points relative to OijWorld coordinates of (a):
firstly, undirected graphIn calculating each pointTo OijOf points in the reference direction uijAnd vijMinimum manhattan distance of
WhereinAndrespectively represent corresponding points in the figureThe horizontal and vertical coordinates of (1);
then calculateTo OijImage pixel distance of a pointAnd project itTo the reference direction uijAnd vijTo obtainAndif it is not Then the point is retained, otherwise the point is deleted, at which time eij≤k;
Point-aligning setPush buttonAndsorting from small to large, and calculating world coordinates of corresponding points
Wherein sign (·) represents a symbolic function, W and H represent the center distance of adjacent dots or circular ring dots on the calibration board in the horizontal direction and the vertical direction respectively;
s12, obtaining the image coordinate of the center point of the circle or the circular ringAnd corresponding world coordinates
And S13, further optimizing.
5. The method for positioning the calibration device with high robustness based on the circular calibration plate as claimed in claim 3, wherein: the method for calculating the grid features in step S5 performs autocorrelation transformation on the image according to the following formula:
wherein p.x and p.y respectively represent the horizontal and vertical coordinates, C, of the image of the pixel point pijRepresenting camera xyzciPhotographed XYZjAnd (5) performing autocorrelation transformation on the calibration plate image of the pose.
6. Root of herbaceous plantThe method for positioning the highly robust calibration device based on the circular calibration plate as claimed in claim 3, wherein: in said step S6, item Eij=9。
7. The method for positioning the calibration device with high robustness based on the circular calibration plate as claimed in claim 3, wherein: in the step S10, 5 dots are provided on the calibration board; first, the vertex group is matchedPerforming clustering analysis according to area design characteristics to find directional vertexesTaking 5 as the number of the orientation vertexes, namely D is 5), and finding out the datum point according to the design characteristic of the included angleAnd a reference directionAnd
9. The method for positioning the calibration device with high robustness based on the circular calibration plate as claimed in claim 3, wherein: the optimization method in step S13 is as follows:
will point setAs an initial value, then at each point Andfurther optimizing the calculation process of the point center in the formed region of interestAlpha and beta respectively represent scaling coefficients of the lengths of the two reference directions, and the calculation processIndicating initial value using center pointReference direction uij,vijAnd an original imageijThe process of calculating the center point is optimized,is the ellipse fitting and projective transformation correction process (claim 11 is removed), α ═ β ═ 0.4.
10. The method for positioning the calibration device with high robustness based on the circular calibration plate as claimed in claim 3, wherein: setting a calibration board in the step S2 and calculating a binary Image in the steps S3-S4ijThe process of (2) is as follows: at pose XYZjBefore the calibration plate is placed, firstly, the camera xyz to be calibrated passes throughiGenerating a pair of shooting scenesBackground pictureh=1,2,3...,imageihRepresenting a background image of a or a series of non-calibration plates taken by each camera to be calibrated,representing the process of image computing background; then in the pose XYZjPlacing the calibration plate and using each camera to be calibrated xyziImageijAnd obtaining a calibration plate area by using a background removal technology to obtain a binary image Calculating a background image by adopting an optical flow method; background removal processOptical flow methods are also used.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110099590.8A CN112767497A (en) | 2021-01-25 | 2021-01-25 | High-robustness calibration device based on circular calibration plate and positioning method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110099590.8A CN112767497A (en) | 2021-01-25 | 2021-01-25 | High-robustness calibration device based on circular calibration plate and positioning method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112767497A true CN112767497A (en) | 2021-05-07 |
Family
ID=75707358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110099590.8A Pending CN112767497A (en) | 2021-01-25 | 2021-01-25 | High-robustness calibration device based on circular calibration plate and positioning method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112767497A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114708164A (en) * | 2022-04-08 | 2022-07-05 | 四川焱飞科技有限公司 | Method for correcting image large and small head distortion caused by object inclination in machine vision measurement |
CN115222825A (en) * | 2022-09-15 | 2022-10-21 | 湖南视比特机器人有限公司 | Calibration method, computer storage medium and calibration system |
CN116563388A (en) * | 2023-04-28 | 2023-08-08 | 北京优酷科技有限公司 | Calibration data acquisition method and device, electronic equipment and storage medium |
-
2021
- 2021-01-25 CN CN202110099590.8A patent/CN112767497A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114708164A (en) * | 2022-04-08 | 2022-07-05 | 四川焱飞科技有限公司 | Method for correcting image large and small head distortion caused by object inclination in machine vision measurement |
CN115222825A (en) * | 2022-09-15 | 2022-10-21 | 湖南视比特机器人有限公司 | Calibration method, computer storage medium and calibration system |
CN116563388A (en) * | 2023-04-28 | 2023-08-08 | 北京优酷科技有限公司 | Calibration data acquisition method and device, electronic equipment and storage medium |
CN116563388B (en) * | 2023-04-28 | 2024-05-07 | 神力视界(深圳)文化科技有限公司 | Calibration data acquisition method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111243032B (en) | Full-automatic detection method for checkerboard corner points | |
CN112767497A (en) | High-robustness calibration device based on circular calibration plate and positioning method | |
CN109859226B (en) | Detection method of checkerboard corner sub-pixels for graph segmentation | |
CN109035276B (en) | Image edge extraction method and device and automatic driving system | |
CN111260731B (en) | Self-adaptive detection method for checkerboard sub-pixel level corner points | |
CN106683137B (en) | Artificial mark based monocular and multiobjective identification and positioning method | |
CN107941808B (en) | 3D printing forming quality detection system and method based on machine vision | |
CN108562250B (en) | Keyboard keycap flatness rapid measurement method and device based on structured light imaging | |
CN112132907B (en) | Camera calibration method and device, electronic equipment and storage medium | |
CN107767456A (en) | A kind of object dimensional method for reconstructing based on RGB D cameras | |
CN114494045B (en) | Large spur gear geometric parameter measurement system and method based on machine vision | |
CN113012234B (en) | High-precision camera calibration method based on plane transformation | |
CN114998571B (en) | Image processing and color detection method based on fixed-size markers | |
CN106952262B (en) | Ship plate machining precision analysis method based on stereoscopic vision | |
CN113313116A (en) | Vision-based accurate detection and positioning method for underwater artificial target | |
CN115082538A (en) | System and method for three-dimensional reconstruction of surface of multi-view vision balance ring part based on line structure light projection | |
CN109671084B (en) | Method for measuring shape of workpiece | |
CN114332758A (en) | Method for panoramic reconstruction based on multiple visual angles under high-shielding multi-target environment | |
JP5254545B2 (en) | Image processing apparatus and image processing method | |
CN111667429B (en) | Target positioning correction method for inspection robot | |
CN115239801B (en) | Object positioning method and device | |
CN115184362B (en) | Rapid defect detection method based on structured light projection | |
CN108596981B (en) | Aerial view angle re-projection method and device of image and portable terminal | |
CN116596987A (en) | Workpiece three-dimensional size high-precision measurement method based on binocular vision | |
CN214670725U (en) | High robustness calibration device based on circular calibration plate |
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 |