CN104036516A - Camera calibration checkerboard image corner detection method based on symmetry analysis - Google Patents

Camera calibration checkerboard image corner detection method based on symmetry analysis Download PDF

Info

Publication number
CN104036516A
CN104036516A CN201410308526.6A CN201410308526A CN104036516A CN 104036516 A CN104036516 A CN 104036516A CN 201410308526 A CN201410308526 A CN 201410308526A CN 104036516 A CN104036516 A CN 104036516A
Authority
CN
China
Prior art keywords
point
angle
unique
points
candidate feature
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
CN201410308526.6A
Other languages
Chinese (zh)
Other versions
CN104036516B (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.)
Shandong University of Science and Technology
Original Assignee
Shandong University of Science and Technology
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 Shandong University of Science and Technology filed Critical Shandong University of Science and Technology
Priority to CN201410308526.6A priority Critical patent/CN104036516B/en
Publication of CN104036516A publication Critical patent/CN104036516A/en
Application granted granted Critical
Publication of CN104036516B publication Critical patent/CN104036516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a camera calibration checkerboard image corner detection method based on symmetry analysis. The method comprises the steps that firstly, an input road image is preprocessed; then, candidate feature points are extracted from a checkerboard image according to the characteristic that checkerboard corners have the structural symmetry, and image feature points are detected through candidate feature point clusters and ChESS operators; finally, according to the characteristic that the corners of the checkerboard image exist in the image feature points and have the structural symmetry, detection of all the corners of the checkerboard image is achieved by calculating the initial corner first and then calculating the positions of the other corners. According to the method, the symmetry of the checkerboard image is comprehensively considered, and automatic detection of the corners of the checkerboard image is achieved. The method has great significance for automatic camera calibration. Due to the fact that background feature points and the corners of the checkerboard image can be effectively distinguished, the method has high robustness.

Description

Camera calibration checkerboard image angular-point detection method based on symmetrical analysis
Technical field
The present invention relates to image and process and field of machine vision, especially image is processed and a kind of camera calibration checkerboard image angular-point detection method based on symmetrical analysis of field of machine vision.
Background technology
In image measurement and field of machine vision, camera calibration refers to the process of asking for camera interior and exterior parameter according to camera model, is from two dimensional image, to obtain the basic step of three-dimensional information, is widely used in the fields such as three-dimensional reconstruction, vision-based detection and monitoring.In existing camera marking method, the plane template scaling method based on black and white checkerboard image is widely used because calibrating template is made simply, scaling method is ripe.Because camera calibration precision depends on the positioning precision of calibrating template angle point to a great extent, the corner location that therefore how to detect calibrating template is the important subject of field of machine vision.
In camera calibration experiment, because checkerboard image often has more complicated background, for reducing the impact of background image on checkerboard image Corner Detection, the man-machine interaction method that mostly adopts mouse to click at present carries out Corner Detection.First the method need to adopt mouse to click in certain sequence 4 points of checkerboard image periphery, in order to make the term of reference of corner location, and then detects the angle point within the scope of click by Corner Detection Algorithm.This method wastes time and energy, and is difficult to realize the robotization of camera calibration process.Other researchs pay close attention to how to improve conventional angular point detecting method to solve checkerboard image Corner Detection problem, and to extract Study on Problems less to having the angle point of complex background checkerboard image.
At present, some checkerboard image angle point extraction methods have been proposed.As adopt hough conversion to detect checkerboard image angle point by extracting image linear feature, to realize the automatic extraction of checkerboard image unique point.Generally speaking, compare with camera marking method, the method that automatically detects and extract for checkerboard image angle point specially proposing is at present still less, and this has hindered the raising of camera calibration process automation degree to a certain extent.
Summary of the invention
Object of the present invention is exactly in order to address the above problem, a kind of new camera calibration checkerboard image angular-point detection method based on symmetrical analysis is provided, the method considers the symmetry that checkerboard image has, and has realized the automatic detection of checkerboard image angle point, is applicable to camera calibration.
To achieve these goals, the present invention adopts following technical scheme:
A camera calibration checkerboard image angular-point detection method based on symmetrical analysis, comprising: carry out checkerboard image and read; The image reading is carried out to rim detection; Edge image carries out binaryzation; On the edge image of binaryzation, carry out candidate feature point and detect, obtain candidate feature point; The candidate feature point detecting is carried out to cluster; All candidate feature points in each candidate feature point cluster are carried out to symmetry calculating, obtain unique point set; In unique point set, carry out initial Corner Detection; Take initial angle point as initial search point, estimate other corner location, in the error range of position, the unique point at estimated corner location place is set to angle point; To the angle point searching is capable, judge; Export final angle point.
Concrete steps are as follows:
Step (1): start, read checkerboard image;
Step (2): adopt canny operator to carry out rim detection to image, obtain edge image;
Step (3): edge image carries out binaryzation, obtains the edge image of binaryzation;
Step (4): carry out candidate feature point and detect on the edge image of binaryzation, by the moving window traversal binaryzation edge image that size is w * w is set, if there are 4 intersection points at the edge in the edge of moving window and binaryzation edge image, the central point of moving window are set to candidate feature point, thereby obtain the set of candidate feature point;
Step (5): adopt the method for picture point mark that the candidate feature point detecting is carried out to cluster, obtain the cluster of candidate feature point;
Step (6): adopt ChESS operator to calculate the symmetrical response of all candidate feature points in each candidate feature point cluster;
Step (7): judge according to the symmetrical response of candidate feature point whether this point is unique point, if it is this point is put into unique point set, if not casting out this point;
Step (8): whether the extraction that judges all candidate feature point clusters institute character pair point completes, if completed, enters step (9); If do not completed, return to step (6);
Step (9): in unique point set, carry out initial Corner Detection;
Step (10): take initial angle point as initial search point, estimate other corner location, in the error range of position, the unique point at corner location place is set to angle point; The angle point searching is arranged by row, and claimed that this row angle point is that angle point is capable; The number of contained angle point in checkerboard image a line angle point is set, capable if the angle point number containing in a line angle point searching and identical this row angle point of angle point number of setting are set to normal angle point, if angle point number difference is set to improper angle point capable;
Step (11): whether contain two adjacent normal angle points during the angle point that searched of judgement is capable capable; If it is capable two adjacent normal angle points to be detected, adopt normal angle point capable of the capable alignment of data that carries out of the angle point having searched, make that angle point is capable meets symmetry requirement, enter step (12); If search finishes not find two adjacent normal angle points capable, current checkerboard image is processed as abnormal conditions, enter step (13);
Step (12): output image angle point,
Step (13) finishes.
The candidate feature point that the method that adopts picture point to mark in described step (5) obtains detection carries out cluster, and the method that obtains the set of candidate feature point cluster is:
First candidate feature point is marked, compose the identical label of neighboring candidate unique point, will there is the connected domain of the candidate feature point of same numeral as candidate feature point; Minimum connected domain distance is set, and the different connected domains that distance are less than to this setpoint distance are merged into a connected domain, and regard the connected domain after each merging a cluster of candidate feature point as, thereby realize the cluster of candidate feature point.
In described step (6), adopt the method for candidate feature point symmetry response in ChESS operator calculated candidate feature points clustering to be:
If candidate feature point set P fdbe divided into N candidate feature point cluster { s 1, s 2..., s n, cluster s iin contain m candidate feature point { d 1, d 2..., d m, calculate s iin the symmetry analog value of each candidate feature point, by s imiddle symmetrical response is the highest and be greater than 0 candidate feature point and put into unique point set as unique point.
The formula of the symmetrical response of described calculated candidate unique point is
R ( f i ) = max j = 1 m ( R ( d j ) ) - - - ( 1 )
Wherein, R (d j) expression candidate feature point d jsymmetrical response; R(d j) computing formula be:
R(d j)=SR-DR-MR (2)
Wherein, SR, DR and MR represent respectively overall response value, differential response value and the average response of candidate feature point.Suppose with d jfor sampling center, it is r that sample radius is set, and sampled point number is n, chooses sampling point set I={I in checkerboard image 1, I 2..., I n, the computing formula of SR, DR and MR is respectively:
SR = Σ k = 1 n / 4 | ( I k + I k + n / 2 ) - ( I k + 1 / 4 + I k + 3 n / 4 ) | - - - ( 3 )
DR = Σ k = 1 n / 2 | I k - I k + n / 2 | - - - ( 4 )
MR = | 1 n Σ k = 1 n I k - 1 m Σ k = 1 m I k ′ | - - - ( 5 )
Wherein, while calculating MR, represent d jadjacent image point in checkerboard image, gets d j8 Neighborhood Graph picture point conducts
The method of carrying out initial Corner Detection in described step (9) is:
Feature points set P fin with unique point p 0centered by comprise p 0in interior any 9 adjacent feature points, distance center unique point p 04 nearest unique point p 1~p 4for closing on unique point, central feature point p 0the unique point p of diagonal 5~p 8for diagonal angle unique point;
If above-mentioned unique point set P f9 unique points of middle arbitrary neighborhood meet closes on unique point symmetry, diagonal angle unique point symmetry and closes on the requirement of unique point angular range, these 9 adjacent unique points is defined as to initial angle point.
Described close on unique point symmetry require be:
Suppose unique point p 0~p 8coordinate be respectively (x i, y i), 0≤i≤8, if in the error range of position, close on unique point p 1~p 4coordinate and p 0between coordinate, meet following relation:
x 0 = x j + x j + 2 2 y 0 = y j + y j + 2 2 - - - ( 6 )
Claim to close on unique point p 1~p 4about central feature point p 0symmetry, meets and closes on the requirement of unique point symmetry; Wherein, (x 0, y 0) centered by unique point p 0coordinate, (x j, y j) represent to close on the coordinate of unique point, j=1,2.
Described diagonal angle unique point symmetry requires:
Suppose that diagonal angle unique point is p k, 5≤k≤8, the unique point of closing on that it is adjacent is respectively p iand p j, 1≤i, j≤4, if in the error range of position p kcoordinate and p iand p jand p 0between coordinate, meet:
x c = x i + x j 2 y c = y i + y j 2 x k = 2 x c - x 0 y k = 2 y c - y 0 - - - ( 9 )
Claim diagonal angle unique point p 5~p 8meet symmetry requirement; (x i, y i), (x j, y j), (x 0, y 0), (x k, y k) represent respectively p i, p j, p 0and p kcoordinate, (x c, y c) for closing on unique point p iand p jthe coordinate of central point.
Described close on unique point angular range require be:
Close on unique point p 1~p 4with p 0between angle can be expressed as:
θ p i p 0 p i + 1 = arccos ( d 1 2 + d 2 2 - d 3 2 2 d 1 d 2 ) - - - ( 10 )
Wherein, d 1, d 2and d 3represent respectively p iwith p 0, p i+1with p 0, p iwith p i+1between distance,
d 1 = ( x i - x 0 ) 2 + ( y i - y 0 ) 2 , d 2 = ( x i + 1 - x 0 ) 2 + ( y i + 1 - y 0 ) 2 , d 3 = ( x i + 1 - x i ) 2 + ( y i + 1 - y i ) 2 , (x i, y i), (x i+1, y i+1), (x 0, y 0) represent respectively p i, p i+1and p 0coordinate, when i=4, get p i+1=p 1;
If meet:
θ p i p 0 p i + 1 ≥ θ min - - - ( 11 )
Claim to close on unique point and central feature point meets angle requirement; Wherein, θ minfor the minimum angle value arranging, get θ min>=15 °.
The concrete grammar of described step (10) is:
By other corner location of known angle point estimation, comprise following three kinds of situations:
1) if above angle points continuously of 2 and 2 in known a line are estimated other angle point in this row: suppose p 1and p 2represent respectively two adjacent corner points of angle point in capable, calculate respectively p 1about p 2symmetric points p 3and p 2about p 1symmetric points p 4position, within the scope of position estimation error, extract P fmiddle p 3and p 4the unique point of position is as this row angle point; Adopt successively the method, realize this angle point capable in the detection of all angle points.
2) capable if the angle point having detected comprises two adjacent normal angle points in capable, according to normal angle point capable estimate other angle point capable in the position of angle point: suppose p 11, p 12and p 13for the angle point in normal angle point capable 1, p 21, p 22and p 23angle point in normal angle point capable 2, calculates respectively p 11about p 21symmetric points p 31, p 21about p 11symmetric points p 01, p 12about p 22symmetric points p 32, p 22about p 12symmetric points p 02, p 13about p 23symmetric points p 33, p 23about p 13symmetric points p 03; P 01, p 02, p 03for the position of angle point in adjacent corner points row 0, p 31, p 32, p 33position for angle point in adjacent corner points row 3; In the error range of position, by unique point set P fthe unique point of middle corresponding position is set to angle point.
3) if the angle point having detected does not have two adjacent normal angle points capable in capable, according to existing angle point capable estimate other angle points capable in the position of angle point: suppose p 1, p 2and p 3for in the capable H of angle point 0three adjacent angle points in centre position, H 1for H 0adjacent corner points row, p 4for in H 1the angle point in centre position, calculates respectively p 1, p 2and p 3about p 4symmetric points p 5, p 6and p 7, p 5~p 7for the new capable H of angle point 2in corner location, in the error range of position, by P fat p 5~p 7the unique point of position is set to angle point.
Beneficial effect of the present invention: the present invention proposes a kind of checkerboard image angle point automatic testing method based on symmetrical analysis.The method has symmetric feature according to checkerboard image, by checkerboard image candidate feature point is carried out to cluster, adopts ChESS operator to calculate the corresponding unique point of each cluster, realizes the extraction of checkerboard image unique point; Adopt and first to detect initial angle point and then take initial angle point and detect the method for other angle point as starting point, realize the Corner Detection of checkerboard image.The checkerboard image angle point that the method that the present invention proposes detects has good precision, for solving checkerboard image angle point, automatically detects new thinking is provided, and to realizing video camera automatic Calibration, has positive effect.
Accompanying drawing explanation
Fig. 1 is the camera calibration checkerboard image angular-point detection method scheme process flow diagram that the present invention is based on symmetrical analysis;
Fig. 2 is the initial angle point schematic diagram of the present invention;
Fig. 3 is checkerboard image sampled point schematic diagram;
Fig. 4 (a) is 2 and 2 above angle points continuously in the known a line of the present invention, estimates the schematic diagram of this other angle point of row;
Fig. 4 (b) is for the present invention is according to 2 capable schematic diagram of estimating that other angle point is capable of adjacent improper angle point;
Fig. 4 (c) is for the present invention is according to known 2 capable schematic diagram of estimating that other angle point is capable of adjacent normal angle point.
Embodiment
Below in conjunction with accompanying drawing and embodiment, the invention will be further described.
Realizing the required basic hardware condition of system architecture of the present invention is: a dominant frequency is 2.4GHZ, inside saves as the computing machine of 1G, and required software condition is: programmed environment is Visual C++6.0.
As shown in Figure 1, the camera calibration checkerboard image angular-point detection method based on symmetrical analysis, concrete steps are as follows:
Step (1): start, read checkerboard image;
Step (2): adopt canny operator to carry out rim detection to image, obtain edge image;
Step (3): edge image carries out binaryzation, obtains the edge image of binaryzation;
Step (4): carry out candidate feature point and detect on the edge image of binaryzation, by the moving window traversal binaryzation edge image that size is w * w is set, if there are 4 intersection points at the edge in the edge of moving window and binaryzation edge image, the central point of this moving window is set to candidate feature point, obtain the set of candidate feature point.
Step (5): adopt the method for picture point mark to carry out cluster to candidate feature point, obtain candidate feature point cluster;
First candidate feature point is marked, compose the identical label of neighboring candidate unique point, will there is the connected domain of the candidate feature point of same numeral as candidate feature point; Minimum connected domain distance is set, and the different connected domains that distance are less than to this setpoint distance are merged into a connected domain, and regard the connected domain after each merging a cluster of candidate feature point as, thereby realize the cluster of candidate feature point.Concrete steps are:
(step 5-1): adopt labeling algorithm to carry out mark to image candidate feature point, obtain marking image ImBj;
(step 5-2): press from top to bottom, order is from left to right got respectively the border of each connected region in ImBj, search radius searchR is set, whether calculating there is other adjacent connected region apart from each connected region border within the scope of searchR, if existed, this adjacent connected region is merged, otherwise connected region is constant.
Step (6): adopt ChESS operator to carry out symmetrical response calculating to candidate feature points all in each candidate feature point cluster; Method is: by image labeling and connected domain, merge candidate feature point set P fdbe divided into N candidate feature point cluster { s 1, s 2..., s n, suppose cluster s iin contain m candidate feature point { d 1, d 2..., d m, extract minutiae set P fmain thought be by calculating s iin the symmetry of each candidate feature point, select s iin there is the candidate feature point of high symmetrical response and put into unique point set as unique point, the formula that calculates symmetrical response is
R ( f i ) = max j = 1 m ( R ( d j ) ) - - - ( 1 )
Wherein, R (d j) expression candidate feature point d jsymmetrical response.
The concrete steps of step (6) are:
Step (6-1) is supposed cluster s iin contain M picture point, it is r that sample radius is set, sampled point number is n, with s iin each picture point d jcentered by, in checkerboard image Im, choose sampling point set I={I 1, I 2..., I n, its sampling process is as shown in Figure 3.In figure, provide sample radius and be respectively r=3 and r=5, during number of samples n=16, the relation between sampling center 0 and sampled point.Sampled point number n gets 4 integral multiple.
Step (6-2) is according to picture point p jsampling point set I obtain d jsymmetrical response be:
R=SR-DR-MR (2)
Wherein, SR, DR and MR are respectively picture point d joverall response value, differential response value and average response, its calculating formula can be expressed as:
SR = Σ k = 1 n / 4 | ( I k + I k + n / 2 ) - ( I k + 1 / 4 + I k + 3 n / 4 ) | - - - ( 3 )
DR = Σ k = 1 n / 2 | I k - I k + n / 2 | - - - ( 4 )
MR = | 1 n Σ k = 1 n I k - 1 m Σ k = 1 m I k ′ | - - - ( 5 )
Wherein, while calculating MR, for d in checkerboard image Im jnear the picture point of 8 neighborhoods.
Step (6-3) employing formula (1) is calculated cluster s iin the symmetrical response of all picture point, if certain point has maximum symmetrical response and response is greater than 0, using this picture point as s icorresponding image characteristic point.
Step (6-4) is extracted respectively candidate feature point set P according to said method fdmiddle N candidate feature point cluster { s 1, s 2..., s ncorresponding unique point, feature point set obtained.
Step (7): judge according to the symmetrical response of candidate feature point whether this point is unique point, if it is this point is put into unique point set, if not casting out this point;
Step (8): judgement P fdwhether all candidate feature point clusters have been calculated, if completed, enter step (9); If do not completed, return to step (6);
Step (9): in feature point set resultant vector, carry out initial Corner Detection;
The method of carrying out initial Corner Detection is: whether 9 unique points putting arbitrary neighborhood in set by judging characteristic meet and close on unique point symmetry, diagonal angle unique point symmetry and close on the requirement of unique point angular range, if met, are defined as initial angle point.
Defining initial angle point is unique point set P fin meet arbitrarily 9 adjacent feature points that symmetry requires, its relation is as shown in Figure 2.In Fig. 2, central feature point is p 0, adjacent feature point is respectively p 0~p 8.Wherein, p 1~p 4for apart from p 04 nearest unique points, are called and close on unique point; p 5~p 8for p 0the unique point of diagonal, is called diagonal angle unique point.Unique point set P fin 9 adjacent unique points whether be that initial angle point need to judge from three aspects:, close on unique point symmetry, diagonal angle unique point symmetry and close on unique point angular range.
(9-1) closing on unique point symmetry requires computing method to be
Suppose unique point p 0~p 8coordinate is respectively (x i, y i), 0≤i≤8, if close on unique point p in the error range of position 1~p 4with p 0coordinate meets following relation:
x 0 = x j + x j + 2 2 y 0 = y j + y j + 2 2 - - - ( 5 )
Claim to close on unique point p 1~p 4about central feature point p 0symmetry, meets and closes on the requirement of unique point symmetry; Wherein, (x 0, y 0) centered by unique point p 0coordinate, (x j, y j) represent to close on the coordinate of unique point, j=1,2.
(9-2) closing on unique point angular range calculates
According to closing on unique point and central feature point coordinate, p 1~p 4with p 0between angle can be expressed as:
θ p i p 0 p i + 1 = arccos ( d 1 2 + d 2 2 - d 3 2 2 d 1 d 2 ) - - - ( 6 )
Wherein, d 1, d 2and d 3represent respectively p iwith p 0, p i+1with p 0, p iwith p i+1between distance, d 1 = ( x i - x 0 ) 2 + ( y i - y 0 ) 2 , d 2 = ( x i + 1 - x 0 ) 2 + ( y i + 1 - y 0 ) 2 , d 3 = ( x i + 1 - x i ) 2 + ( y i + 1 - y i ) 2 , (x i, y i), (x i+1, y i+1), (x 0, y 0) represent respectively p i, p i+1and p 0coordinate, when i=4, get p i+1=p 1.If meet:
θ p i p 0 p i + 1 ≥ θ min - - - ( 7 )
Claim to close on unique point and central feature point meets angle requirement.Wherein, θ minfor the minimum angle value arranging, get θ min>=15 °.
(9-3) diagonal angle unique point symmetry computing method are:
Suppose that diagonal angle unique point is p k, 5≤k≤8, the unique point of closing on that it is adjacent is respectively p iand p j, 1≤i, j≤4, if p in the error range of position kcoordinate and p iand p jand p 0coordinate meet:
x c = x i + x j 2 y c = y i + y j 2 x k = 2 x c - x 0 y k = 2 y c - y 0 - - - ( 8 )
Claim diagonal angle unique point p 5~p 8meet symmetry requirement.(x i, y i), (x j, y j), (x 0, y 0), (x k, y k) represent respectively p i, p j, p 0and p kcoordinate, (x c, y c) for closing on unique point p iand p jthe coordinate of central point.
Step (10): take initial angle point as initial search point, by estimating other corner location, in the error range of position, the unique point of relevant position in unique point set is set to angle point;
The angle point searching is arranged by row, and claimed that this row angle point is that angle point is capable; The number of contained angle point in checkerboard image a line angle point is set, capable if the angle point number containing in a line angle point searching and identical this row angle point of angle point number of setting are set to normal angle point, if angle point number difference is set to improper angle point capable.During angle point is capable, putting in order of angle point puts in order identical with the angle point in camera calibration template.Define the angle point that in a line angle point that normal angle point behavior detects, angle point number is preset value capable.This preset value is the angle point number that in camera calibration template, a line angle point comprises.The method that unique point in unique point set is set to angle point in the error range of position comprises following three kinds of situations: the continuous angle point in (one) known a line more than 2 and 2, estimate the position of other angle point in this row; (2) according to 2 adjacent improper angle points are capable, estimate the angle point of other angle point in capable; (3) known 2 adjacent normal angle points are capable estimates the angle point of other angle point in capable.
Described (one) circular is: the corner location method of estimation of employing is as shown in Fig. 4 (a).Wherein, p 1and p 2represent respectively two adjacent corner points of angle point in capable.According to symmetry, can estimate respectively p 1about p 2symmetric points p 3and p 2about p 1symmetric points p 4position.Within the scope of position estimation error, extract P fmiddle p 3and p 4the unique point of position is as this row angle point.Adopt successively the method, realize this angle point capable in the detection of all angle points.
Described (two) circular is: the corner location method of estimation of employing is as shown in Fig. 4 (b).Wherein, p 1, p 2and p 3for three adjacent corner points of certain angle point in capable, p 4and p 0be respectively the angle point in adjacent corner points row, p 5~p 10for the new angle point that estimates according to symmetry capable in the position of angle point.In the error range of position, by p 5~p 10the unique point of position is set to angle point, then respectively with p 5~p 7and p 8~p 10for starting point, adopt method shown in Fig. 4 (a) to detect the angle point that makes new advances other angle point in capable.
Described (three) circular is: the corner location method of estimation of employing is as shown in Fig. 4 (c).Suppose p 11, p 12and p 13for the angle point in normal angle point capable 1, p 21, p 22and p 23for the angle point in normal angle point capable 2, according to symmetry, can estimate respectively the position of angle point in adjacent corner points row 0 and angle point capable 3.In the error range of position, by unique point set P fthe unique point of middle relevant position is set to angle point.
In said process, according to two adjacent corner points, estimate that the method for other corner location is: suppose any two adjacent corner points p iand p jcoordinate be respectively (x i, y i), (x j, y j), p iabout p jsymmetrical angle point p si=(x si, y si) and p jabout p isymmetrical angle point p sj=(x sj, y sj) can be expressed as:
x sj = 2 x i - x j y sj = 2 y i - y j - - - ( 9 )
x si = 2 x j - x i y si = 2 y j - y i - - - ( 10 )
The concrete operation step of realizing above-mentioned (one), (two) and (three) is:
Step (10-1): according to initial angle point adopt method shown in Fig. 4 (a) estimate initial angle point place angle point capable in the position of other angle point, in the error range of position, search for individual features point as angle point.
Step (10-2): comprise two adjacent normal angle points in as capable in the angle point having detected capable, adopt method shown in Fig. 4 (c) to estimate the position of the capable angle point of other angle point; If it is capable two adjacent normal angle points not detected, according to method shown in existing angle point capable employing Fig. 4 (b), estimate the corner location that other angle point is capable.
Step (10-3): the capable minimum angle point number of angle point is set, if the angle point detecting capable in the number of angle point be less than the minimum angle point number of setting, changing angle point line search direction, again to search for angle point capable.
Step (11): whether contain two adjacent normal angle points during the angle point that searched of judgement is capable capable.If it is capable to contain two adjacent normal angle points, adopt normal angle point capable of the capable alignment of data that carries out of the angle point having searched, make that angle point is capable meets the requirement of column direction symmetry, enter step (12); If search finishes not find two adjacent normal angle points capable, current checkerboard image is processed as abnormal conditions, enter step (13);
Step (12): output image angle point;
Step (13): finish.
Although above-mentioned, by reference to the accompanying drawings the specific embodiment of the present invention is described; but be not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various modifications that creative work can make or distortion still in protection scope of the present invention.

Claims (10)

1. the camera calibration checkerboard image angular-point detection method based on symmetrical analysis, its feature comprises: carry out checkerboard image and read; The image reading is carried out to rim detection; Edge image carries out binaryzation; On the edge image of binaryzation, carry out candidate feature point and detect, obtain candidate feature point; The candidate feature point detecting is carried out to cluster; All candidate feature points in each candidate feature point cluster are carried out to symmetry calculating, obtain unique point set; In unique point set, carry out initial Corner Detection; Take initial angle point as initial search point, estimate other corner location, in the error range of position, the unique point at estimated corner location place is set to angle point; To the angle point searching is capable, judge; Export final angle point.
2. a kind of camera calibration checkerboard image angular-point detection method based on symmetrical analysis as claimed in claim 1, is characterized in that, concrete steps are as follows:
Step (1): start, read checkerboard image;
Step (2): adopt canny operator to carry out rim detection to image, obtain edge image;
Step (3): edge image carries out binaryzation, obtains the edge image of binaryzation;
Step (4): carry out candidate feature point and detect on the edge image of binaryzation, by the moving window traversal binaryzation edge image that size is w * w is set, if there are 4 intersection points at the edge in the edge of moving window and binaryzation edge image, the central point of moving window are set to candidate feature point, thereby obtain the set of candidate feature point;
Step (5): adopt the method for picture point mark that the candidate feature point detecting is carried out to cluster, obtain the cluster of candidate feature point;
Step (6): adopt ChESS operator to calculate the symmetrical response of all candidate feature points in each candidate feature point cluster;
Step (7): judge according to the symmetrical response of candidate feature point whether this point is unique point, if it is this point is put into unique point set, if not casting out this point;
Step (8): whether the extraction that judges all candidate feature point clusters institute character pair point completes, if completed, enters step (9); If do not completed, return to step (6);
Step (9): in unique point set, carry out initial Corner Detection;
Step (10): take initial angle point as initial search point, estimate other corner location, in the error range of position, the unique point at corner location place is set to angle point; The angle point searching is arranged by row, and claimed that this row angle point is that angle point is capable; The number of contained angle point in checkerboard image a line angle point is set, capable if the angle point number containing in a line angle point searching and identical this row angle point of angle point number of setting are set to normal angle point, if angle point number difference is set to improper angle point capable;
Step (11): whether contain two adjacent normal angle points during the angle point that searched of judgement is capable capable; If it is capable two adjacent normal angle points to be detected, adopt normal angle point capable of the capable alignment of data that carries out of the angle point having searched, make that angle point is capable meets symmetry requirement, enter step (12); If search finishes not find two adjacent normal angle points capable, current checkerboard image is processed as abnormal conditions, enter step (13);
Step (12): output image angle point,
Step (13) finishes.
3. a kind of camera calibration checkerboard image angular-point detection method based on symmetrical analysis as claimed in claim 2, it is characterized in that, the candidate feature point that the method that adopts picture point to mark in described step (5) obtains detection carries out cluster, and the method that obtains the set of candidate feature point cluster is:
First candidate feature point is marked, compose the identical label of neighboring candidate unique point, will there is the connected domain of the candidate feature point of same numeral as candidate feature point; Minimum connected domain distance is set, and the different connected domains that distance are less than to this setpoint distance are merged into a connected domain, and regard the connected domain after each merging a cluster of candidate feature point as, thereby realize the cluster of candidate feature point.
4. a kind of camera calibration checkerboard image angular-point detection method based on symmetrical analysis as claimed in claim 2, it is characterized in that, in described step (6), adopt the method for candidate feature point symmetry response in ChESS operator calculated candidate feature points clustering to be:
If candidate feature point set P fdbe divided into N candidate feature point cluster { s 1, s 2..., s n, cluster s iin contain m candidate feature point { d 1, d 2..., d m, calculate s iin the symmetry analog value of each candidate feature point, by s imiddle symmetrical response is the highest and be greater than 0 candidate feature point and put into unique point set as unique point.
5. a kind of camera calibration checkerboard image angular-point detection method based on symmetrical analysis as claimed in claim 4, is characterized in that, the formula of the symmetrical response of described calculated candidate unique point is
R ( f i ) = max j = 1 m ( R ( d j ) ) - - - ( 1 )
Wherein, R (d j) expression candidate feature point d jsymmetrical response; R(d j) computing formula be:
R(d j)=SR-DR-MR (2)
Wherein, SR, DR and MR represent respectively overall response value, differential response value and the average response of candidate feature point.Suppose with d jfor sampling center, it is r that sample radius is set, and sampled point number is n, chooses sampling point set I={I in checkerboard image 1, I 2..., I n, the computing formula of SR, DR and MR is respectively:
SR = Σ k = 1 n / 4 | ( I k + I k + n / 2 ) - ( I k + 1 / 4 + I k + 3 n / 4 ) | - - - ( 3 )
DR = Σ k = 1 n / 2 | I k - I k + n / 2 | - - - ( 4 )
MR = | 1 n Σ k = 1 n I k - 1 m Σ k = 1 m I k ′ | - - - ( 5 )
Wherein, while calculating MR, represent d jadjacent image point in checkerboard image, gets d j8 Neighborhood Graph picture point conducts
6. a kind of camera calibration checkerboard image angular-point detection method based on symmetrical analysis as claimed in claim 2, is characterized in that, the method for carrying out initial Corner Detection in described step (9) is:
Feature points set P fin with unique point p 0centered by comprise p 0in interior any 9 adjacent feature points, distance center unique point p 04 nearest unique point p 1~p 4for closing on unique point, central feature point p 0the unique point p of diagonal 5~p 8for diagonal angle unique point;
If above-mentioned unique point set P f9 unique points of middle arbitrary neighborhood meet closes on unique point symmetry, diagonal angle unique point symmetry and closes on the requirement of unique point angular range, these 9 adjacent unique points is defined as to initial angle point.
7. a kind of camera calibration checkerboard image angular-point detection method based on symmetrical analysis as claimed in claim 6, is characterized in that, described in close on unique point symmetry require be:
Suppose unique point p 0~p 8coordinate be respectively (x i, y i), 0≤i≤8, if in the error range of position, close on unique point p 1~p 4coordinate and p 0between coordinate, meet following relation:
x 0 = x j + x j + 2 2 y 0 = y j + y j + 2 2 - - - ( 6 )
Claim to close on unique point p 1~p 4symmetrical about central feature point p0, meet and close on the requirement of unique point symmetry; Wherein, (x 0, y 0) centered by the coordinate of unique point p0, (x j, y j) represent to close on the coordinate of unique point, j=1,2.
8. a kind of camera calibration checkerboard image angular-point detection method based on symmetrical analysis as claimed in claim 6, is characterized in that, unique point symmetry requirement in described diagonal angle is:
Suppose that diagonal angle unique point is p k, 5≤k≤8, the unique point of closing on that it is adjacent is respectively p iand p j, 1≤i, j≤4, if in the error range of position p kcoordinate and p iand p jand p 0between coordinate, meet:
x c = x i + x j 2 y c = y i + y j 2 x k = 2 x c - x 0 y k = 2 y c - y 0 - - - ( 9 )
Claim diagonal angle unique point p 5~p 8meet symmetry requirement; (x i, y i), (x j, y j), (x 0, y 0), (x k, y k) represent respectively p i, p j, p 0and p kcoordinate, (x c, y c) for closing on unique point p iand p jthe coordinate of central point.
9. a kind of camera calibration checkerboard image angular-point detection method based on symmetrical analysis as claimed in claim 6, is characterized in that, described in close on unique point angular range require be:
Close on unique point p 1~p 4with p 0between angle can be expressed as:
θ p i p 0 p i + 1 = arccos ( d 1 2 + d 2 2 - d 3 2 2 d 1 d 2 ) - - - ( 10 )
Wherein, d 1, d 2and d 3represent respectively p iwith p 0, p i+1with p 0, p iwith p i+1between distance, d 1 = ( x i - x 0 ) 2 + ( y i - y 0 ) 2 , d 2 = ( x i + 1 - x 0 ) 2 + ( y i + 1 - y 0 ) 2 , d 3 = ( x i + 1 - x i ) 2 + ( y i + 1 - y i ) 2 , (x i, y i), (x i+1, y i+1), (x 0, y 0) represent respectively p i, p i+1and p 0coordinate, when i=4, get p i+1=p 1;
If meet:
θ p i p 0 p i + 1 ≥ θ min - - - ( 11 )
Claim to close on unique point and central feature point meets angle requirement; Wherein, θ minfor the minimum angle value arranging, get θ min>=15 °.
10. a kind of camera calibration checkerboard image angular-point detection method based on symmetrical analysis as claimed in claim 2, is characterized in that, the concrete grammar of described step (10) is:
By other corner location of known angle point estimation, comprise following three kinds of situations:
1) if above angle points continuously of 2 and 2 in known a line are estimated other angle point in this row: suppose p 1and p 2represent respectively two adjacent corner points of angle point in capable, calculate respectively p 1about p 2symmetric points p 3and p 2about p 1symmetric points p 4position, within the scope of position estimation error, extract P fmiddle p 3and p 4the unique point of position is as this row angle point; Adopt successively the method, realize this angle point capable in the detection of all angle points;
2) capable if the angle point having detected comprises two adjacent normal angle points in capable, according to normal angle point capable estimate other angle point capable in the position of angle point: suppose p 11, p 12and p 13for the angle point in normal angle point capable 1, p 21, p 22and p 23angle point in normal angle point capable 2, calculates respectively p 11about p 21symmetric points p 31, p 21about p 11symmetric points p 01, p 12about p 22symmetric points p 32, p 22about p 12symmetric points p 02, p 13about p 23symmetric points p 33, p 23about p 13symmetric points p 03; P 01, p 02, p 03for the position of angle point in adjacent corner points row 0, p 31, p 32, p 33position for angle point in adjacent corner points row 3; In the error range of position, by unique point set P fthe unique point of middle corresponding position is set to angle point;
3) if the angle point having detected does not have two adjacent normal angle points capable in capable, according to existing angle point capable estimate other angle points capable in the position of angle point: suppose p 1, p 2and p 3for in the capable H of angle point 0three adjacent angle points in centre position, H 1for H 0adjacent corner points row, p 4for in H 1the angle point in centre position, calculates respectively p 1, p 2and p 3about p 4symmetric points p 5, p 6and p 7, p 5~p 7for the new capable H of angle point 2in corner location, in the error range of position, by P fat p 5~p 7the unique point of position is set to angle point.
CN201410308526.6A 2014-06-30 2014-06-30 Camera calibration checkerboard image angular-point detection method based on symmetrical analysis Active CN104036516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410308526.6A CN104036516B (en) 2014-06-30 2014-06-30 Camera calibration checkerboard image angular-point detection method based on symmetrical analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410308526.6A CN104036516B (en) 2014-06-30 2014-06-30 Camera calibration checkerboard image angular-point detection method based on symmetrical analysis

Publications (2)

Publication Number Publication Date
CN104036516A true CN104036516A (en) 2014-09-10
CN104036516B CN104036516B (en) 2016-09-07

Family

ID=51467275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410308526.6A Active CN104036516B (en) 2014-06-30 2014-06-30 Camera calibration checkerboard image angular-point detection method based on symmetrical analysis

Country Status (1)

Country Link
CN (1) CN104036516B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105096317A (en) * 2015-07-03 2015-11-25 吴晓军 Fully automatic calibration method for high performance camera under complicated background
CN105894518A (en) * 2016-04-22 2016-08-24 安徽师范大学 Cross-stitch template identification method based on lattice point arrangement
CN106846412A (en) * 2017-01-23 2017-06-13 上海兴芯微电子科技有限公司 A kind of checkerboard angle point detection process and device
CN108428250A (en) * 2018-01-26 2018-08-21 山东大学 A kind of X angular-point detection methods applied to vision positioning and calibration
CN109801300A (en) * 2017-11-16 2019-05-24 北京百度网讯科技有限公司 Coordinate extraction method, device, equipment and the computer readable storage medium of X-comers
CN110961289A (en) * 2019-12-09 2020-04-07 国网智能科技股份有限公司 Transformer substation insulator anti-pollution flashover coating spraying tool and spraying method
CN112465760A (en) * 2020-11-19 2021-03-09 深圳惠牛科技有限公司 Checkerboard corner point identification method, device, equipment and storage medium
CN112991465A (en) * 2021-03-26 2021-06-18 禾多科技(北京)有限公司 Camera calibration method and device, electronic equipment and computer readable medium
CN113160320A (en) * 2020-01-20 2021-07-23 北京芯海视界三维科技有限公司 Chessboard angular point detection method and device for camera parameter calibration
CN113658261A (en) * 2020-05-12 2021-11-16 武汉Tcl集团工业研究院有限公司 Checkerboard angular point position detection method and device, intelligent terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477687A (en) * 2009-01-22 2009-07-08 上海交通大学 Checkerboard angle point detection process under complex background
US20090316995A1 (en) * 2008-06-23 2009-12-24 Microsoft Corporation Blur estimation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090316995A1 (en) * 2008-06-23 2009-12-24 Microsoft Corporation Blur estimation
CN101477687A (en) * 2009-01-22 2009-07-08 上海交通大学 Checkerboard angle point detection process under complex background

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
STUART BENNETT等: "ChESS-Quick and robust detection of chess-board features", 《COMPUTER VISION AND IMAGE UNDERSTANDING》 *
XU GUAN等: "A Novel Corner Point Detector for Calibration Target Images Based on Grayscale Symmetry", 《COMPUTATIONAL INTELLIGENCE AND DESIGN, 2009. ISCID "09. SECOND INTERNATIONAL SYMPOSIUM ON》 *
刘群根: "基于梯度与对称度提取棋盘格角点及角点递推定位", 《测控技术》 *
谭晓军等: "基于对称性特征的棋盘方格角点自动检测算法", 《计算机应用》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105096317A (en) * 2015-07-03 2015-11-25 吴晓军 Fully automatic calibration method for high performance camera under complicated background
CN105096317B (en) * 2015-07-03 2018-05-08 吴晓军 A kind of high-performance camera full automatic calibration method in complex background
CN105894518A (en) * 2016-04-22 2016-08-24 安徽师范大学 Cross-stitch template identification method based on lattice point arrangement
CN105894518B (en) * 2016-04-22 2019-04-16 安徽师范大学 A kind of cross-stitch template recognition methods based on lattice point arrangement
CN106846412A (en) * 2017-01-23 2017-06-13 上海兴芯微电子科技有限公司 A kind of checkerboard angle point detection process and device
CN106846412B (en) * 2017-01-23 2020-03-13 上海兴芯微电子科技有限公司 Checkerboard angular point detection method and device
CN109801300A (en) * 2017-11-16 2019-05-24 北京百度网讯科技有限公司 Coordinate extraction method, device, equipment and the computer readable storage medium of X-comers
CN108428250A (en) * 2018-01-26 2018-08-21 山东大学 A kind of X angular-point detection methods applied to vision positioning and calibration
CN108428250B (en) * 2018-01-26 2021-09-21 山东大学 X-corner detection method applied to visual positioning and calibration
CN110961289A (en) * 2019-12-09 2020-04-07 国网智能科技股份有限公司 Transformer substation insulator anti-pollution flashover coating spraying tool and spraying method
CN110961289B (en) * 2019-12-09 2021-06-29 国网智能科技股份有限公司 Transformer substation insulator anti-pollution flashover coating spraying tool and spraying method
CN113160320A (en) * 2020-01-20 2021-07-23 北京芯海视界三维科技有限公司 Chessboard angular point detection method and device for camera parameter calibration
CN113658261A (en) * 2020-05-12 2021-11-16 武汉Tcl集团工业研究院有限公司 Checkerboard angular point position detection method and device, intelligent terminal and storage medium
CN112465760A (en) * 2020-11-19 2021-03-09 深圳惠牛科技有限公司 Checkerboard corner point identification method, device, equipment and storage medium
CN112991465A (en) * 2021-03-26 2021-06-18 禾多科技(北京)有限公司 Camera calibration method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN104036516B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN104036516A (en) Camera calibration checkerboard image corner detection method based on symmetry analysis
CN106778668B (en) A kind of method for detecting lane lines of robust that combining RANSAC and CNN
CN104008387B (en) Lane line detection method based on feature point piecewise linear fitting
US8180158B2 (en) Image processing device and image processing method for detecting a specific shape from an image
CN103148881B (en) Method and device for automatically reading pointer instrument by video frequency
CN102999886B (en) Image Edge Detector and scale grating grid precision detection system
CN108182383B (en) Vehicle window detection method and device
CN107145890B (en) A kind of pointer dashboard automatic reading method under remote multi-angle of view environment
CN103345755A (en) Chessboard angular point sub-pixel extraction method based on Harris operator
CN104657727A (en) Lane line detection method
CN106599890B (en) digital instrument recognition algorithm for substation inspection robot
CN104050446A (en) Meter pointer image identification method based on pointer width character
KR20150112656A (en) Method to calibrate camera and apparatus therefor
CN108955901B (en) Infrared temperature measurement method and system and terminal equipment
CN104766344B (en) Vehicle checking method based on movement edge extractor
CN112927303B (en) Lane line-based automatic driving vehicle-mounted camera pose estimation method and system
CN108090486A (en) Image processing method and device in a kind of game of billiards
CN104408741A (en) Video global motion estimation method with sequential consistency constraint
CN104463138A (en) Text positioning method and system based on visual structure attribute
CN106845482A (en) A kind of license plate locating method
CN103914829B (en) Method for detecting edge of noisy image
CN106327464A (en) Edge detection method
CN105678737A (en) Digital image corner point detection method based on Radon transform
CN108492306A (en) A kind of X-type Angular Point Extracting Method based on image outline
CN102313740B (en) Solar panel crack detection method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant