[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104794704A - Calibration template and template detection method, device and terminal - Google Patents

Calibration template and template detection method, device and terminal Download PDF

Info

Publication number
CN104794704A
CN104794704A CN201510140105.1A CN201510140105A CN104794704A CN 104794704 A CN104794704 A CN 104794704A CN 201510140105 A CN201510140105 A CN 201510140105A CN 104794704 A CN104794704 A CN 104794704A
Authority
CN
China
Prior art keywords
circle
group
template
center
setting
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
CN201510140105.1A
Other languages
Chinese (zh)
Other versions
CN104794704B (en
Inventor
陈世峰
屈展
方芬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Gaohang Intellectual Property Operation Co ltd
Jiangsu Yichuan Electromechanical Co ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510140105.1A priority Critical patent/CN104794704B/en
Publication of CN104794704A publication Critical patent/CN104794704A/en
Application granted granted Critical
Publication of CN104794704B publication Critical patent/CN104794704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses a calibration template and a template detection method, device and terminal. The calibration template comprises at least one calibration circle set and at least three positioning circle sets. The circle centers of the positioning circle sets are not located on the same straight line. Each calibration circle set comprises at least two calibration circles with the same circle center, a circular ring is formed by the calibration circles in each calibration circle set, and the colors of the circular rings are different from the colors of adjacent areas. Each positioning circle set comprises at least two positioning circles with the same circle centers, a circular ring is formed by the positioning circles in each positioning circle set, and the colors of the circular rings are different from the colors of adjacent areas. Each positioning circle set comprises a first characteristic ring and a second characteristic ring, wherein the radius of the first characteristic ring is not equal to that of any positioning ring in the positioning ring sets, and the radius of the second characteristic ring is not equal to that of any calibration ring in each calibration ring set. The calibration template is not prone to interference of the external environment, and the template detection accuracy is improved.

Description

A kind of calibrating template, template detection method, device and terminal
Technical field
The disclosure relates to technical field of visual measurement, particularly relates to a kind of calibrating template, template detection method, device and terminal.
Background technology
The filming apparatus such as camera, video camera can record the image of moment, is widely used in daily life and work.In order to understand the performance of filming apparatus, need the parameter obtaining filming apparatus, the parametric procedure solving filming apparatus is called demarcation.
In conventional art, demarcate and usually adopt two dimensional surface scaling method, the method comprises the following steps: first, chooses calibrating template, and described calibrating template is the two dimensional surface with fixed pattern pattern, and, include calibration point in described demarcating module; Then, utilize filming apparatus to take pictures to described calibrating template from different positions and angle, obtain the image comprising described calibrating template, and detect each calibration point position in the images, obtain the distribution situation of calibration point; Finally, according to the distribution situation of calibration algorithm and described calibration point, calculate the parameter of filming apparatus.Wherein, obtain the image comprising demarcating module, and each calibration point comprised in detected image, according to the step of described calibration point distribution situation determination template coordinate in the picture, be called template detection.At present, when adopting two dimensional surface scaling method to calculate the parameter of filming apparatus, the demarcating module chosen is generally gridiron pattern scaling board, and using tessellated angle point as calibration point, in template detection process, obtain after comprising the image of gridiron pattern scaling board, each angle point comprised in image is detected by X-comers detection algorithm, then according to the frame of gridiron pattern scaling board to each Corner character detected, obtain angle point distribution situation in the picture, and according to angle point distribution situation determination template coordinate in the picture.
But, inventor finds in the research process of the application, when carrying out template detection to gridiron pattern scaling board, be easily subject to the interference of external environment, such as, if containing picture noise in the image of shooting, or the image of shooting is fuzzyyer, then cannot angle point be detected, or Corner Detection mistake, cause the precision of template detection low, and the stated accuracy that impact is follow-up further.
Summary of the invention
The embodiment of the present application provides a kind of calibrating template, template detection method, device and terminal, and to solve in conventional art, when carrying out template detection to gridiron pattern scaling board, the template detection precision of existence is low, and affects the problem of stated accuracy.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses following technical scheme:
According to the first aspect of disclosure embodiment, provide a kind of calibrating template, described calibrating template comprises at least one and demarcates circle group and at least three setting circle groups, and the center of circle of described at least three setting circle groups is not located along the same line, wherein,
Each described demarcation circle group comprises at least two and demarcates round, and the center of circle that described demarcation whole in same demarcation circle group is round is identical, and same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area;
Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area;
Each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal;
Described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal.
In conjunction with first aspect, in the first possible implementation of first aspect, described calibrating template also comprises:
Calibration line, the length of described calibration line equals to have the distance of center circle between excentric any two circles.
According to the second aspect of disclosure embodiment, provide a kind of template detection method, described template detection method comprises:
Obtain the template image of filming apparatus shooting to be calibrated, preset calibrations template is included in described template image, described preset calibrations module comprises at least one and demarcates circle group and at least three setting circle groups, the center of circle of described at least three setting circle groups is not located along the same line, wherein, each described demarcation circle group comprises at least two and demarcates circle, the center of circle that described demarcation whole in same demarcation circle group is round is identical, and, same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal; Described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal;
According to default connection block coverage, filter the connection block in described template image, acquisition comprises described setting circle group and is communicated with block with the multiple of demarcation circle group;
Described connection block is detected, obtains the contour edge group that described connection block is corresponding;
According to the center of each contour edge in described contour edge group, determine the center of described contour edge group, and according to the size of each contour edge in described contour edge group, determine the type of described contour edge group, described type comprises: demarcate circle group and setting circle group, wherein, the center of described setting circle group is described anchor point, and the center of described demarcation circle group is described calibration point;
According to the distributing position of described anchor point in described template image, determine the distributing position of calibration point in described template image, and according to described anchor point and calibration point the distributing position in described template image, determine the template coordinate of described template image.
In conjunction with second aspect, in the first possible implementation of second aspect, the described center according to each contour edge in described contour edge group, determine the center of described contour edge group, comprising:
Calculate the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group;
Or,
Behind the center obtaining each contour edge in described contour edge group, whether the range difference between the center judging each contour edge described is in the distance range preset;
If described range difference is in described default distance range, then calculate the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, described according to anchor point and calibration point the distributing position in described template image, determine that the template coordinate of described template image comprises:
The distributing position in described template image according to described anchor point and calibration point, by each anchor point on described image to be calibrated and calibration point, sets up mapping relations with each anchor point on the calibrating template of known coordinate system and calibration point;
According to described mapping relations, and the coordinate of anchor point on the calibrating template of described known coordinate system and calibration point, determine the template coordinate of described template image.
In conjunction with second aspect, in the third possible implementation of second aspect, described template detection method also comprises:
Being communicated with block coverage according to presetting, before the connection block in described template image is filtered, denoising is carried out to described template image;
Described basis is preset and is communicated with block coverage, filters, comprising the connection block in described template image:
After template image after obtaining denoising, according to default connection block coverage, the template image after described denoising is filtered;
Or,
Being communicated with block coverage according to presetting, before the connection block in described template image is filtered, binary conversion treatment is carried out to described template image;
Described basis is preset and is communicated with block coverage, filters, comprising the connection block in described template image:
After template image after obtaining binary conversion treatment, according to default connection block coverage, the template image after described binary conversion treatment is filtered.
In conjunction with second aspect, in the 4th kind of possible implementation of second aspect, described preset calibrations template also comprises calibration line, the length of described calibration line equals to have the distance of center circle between excentric arbitrary two circles, after the template coordinate determining described template image, described template detection method also comprises:
By described template coordinate, determine the coordinate of the center of circle in described template image of described two circles;
According to the coordinate of the center of circle in described template image of described two circles, calculate the distance of center circle calculated value of described two circles in world coordinate system;
After receiving the calibration line measured value of described calibration line in world coordinate system, obtain the range difference between described distance of center circle calculated value and described calibration line measured value, to be characterized the precision of this template detection by described range difference.
According to the third aspect of disclosure embodiment, provide a kind of template detection device, described template detection device comprises:
Image collection module, for obtaining the template image of filming apparatus shooting to be calibrated, preset calibrations template is included in described template image, described preset calibrations module comprises at least one and demarcates circle group and at least three setting circle groups, the center of circle of described at least three setting circle groups is not located along the same line, wherein, each described demarcation circle group comprises at least two and demarcates circle, the center of circle that described demarcation whole in same demarcation circle group is round is identical, and, same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal; Described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal;
Filtering module, for being communicated with block coverage according to presetting, filters the connection block in described template image, and acquisition comprises described setting circle group and is communicated with block with the multiple of demarcation circle group;
Detection module, for detecting described connection block, obtains the contour edge group that described connection block is corresponding;
First determination module, for the center according to each contour edge in described contour edge group, determine the center of described contour edge group, and according to the size of each contour edge in described contour edge group, determine the type of described contour edge group, described type comprises: demarcate circle group and setting circle group, wherein, the center of described setting circle group is described anchor point, and the center of described demarcation circle group is described calibration point;
Second determination module, for according to the distributing position of described anchor point in described template image, determine the distributing position of calibration point in described template image, and according to described anchor point and calibration point the distributing position in described template image, determine the template coordinate of described template image.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described first determination module comprises:
First computing unit, for calculating the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group;
Or,
Judging unit, for behind the center obtaining each contour edge in described contour edge group, whether the range difference between the center judging each contour edge described is in the distance range preset;
Second computing unit, if for described range difference in described default distance range, then calculates the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group.
In conjunction with the third aspect, in the implementation that the second of the third aspect is possible, described second determination module comprises:
Unit is set up in mapping, for the distributing position in described template image according to described anchor point and calibration point, by each anchor point on described image to be calibrated and calibration point, set up mapping relations with each anchor point on the calibrating template of known coordinate system and calibration point;
Template coordinate determining unit, for according to described mapping relations, and the coordinate of anchor point on the calibrating template of described known coordinate system and calibration point, determine the template coordinate of described template image.
In conjunction with the third aspect, in the third possible implementation of the third aspect, described template detection device also comprises:
Denoising module, for being communicated with block coverage according to presetting, before filtering, carries out denoising to described template image to the connection block in described template image;
Described filtering module also for after the template image after obtaining denoising, according to default connection block coverage, filters the template image after described denoising;
And/or,
Binary conversion treatment module, for being communicated with block coverage according to presetting, before filtering, carries out binary conversion treatment to described template image to the connection block in described template image;
Described filtering module also for after the template image after obtaining binary conversion treatment, according to default connection block coverage, filters the template image after described binary conversion treatment.
In conjunction with the third aspect, in the 4th kind of possible implementation of the third aspect, described preset calibrations template also comprises calibration line, and the length of described calibration line equals to have the distance of center circle between excentric any two circles, after the template coordinate determining described template image, described template detection device also comprises:
Central coordinate of circle determination module, for by described template coordinate, determines the coordinate of the center of circle in described template image of described two circles;
Distance of center circle computing module, for the coordinate of the center of circle in described template image according to described two circles, calculates the distance of center circle calculated value of described two circles in world coordinate system;
Range difference computing module, for after receiving the calibration line measured value of described calibration line in world coordinate system, obtain the range difference between described distance of center circle calculated value and described calibration line measured value, to be characterized the precision of this template detection by described range difference.
According to the fourth aspect of disclosure embodiment, a kind of terminal is provided, comprises: processor, storer and bus, wherein,
Described processor, by bus, is connected with described storer;
Described storer, for the program code of the method for storage process data sharing;
Described processor, for obtaining the program code stored in described storer, and performs following operation according to described program code:
Obtain the template image of filming apparatus shooting to be calibrated, preset calibrations template is included in described template image, described preset calibrations module comprises at least one and demarcates circle group and at least three setting circle groups, the center of circle of described at least three setting circle groups is not located along the same line, wherein, each described demarcation circle group comprises at least two and demarcates circle, the center of circle that described demarcation whole in same demarcation circle group is round is identical, and, same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal; Described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal;
According to default connection block coverage, filter the connection block in described template image, acquisition comprises described setting circle group and is communicated with block with the multiple of demarcation circle group;
Described connection block is detected, obtains the contour edge group that described connection block is corresponding;
According to the center of each contour edge in described contour edge group, determine the center of described contour edge group, and according to the size of each contour edge in described contour edge group, determine the type of described contour edge group, described type comprises: demarcate circle group and setting circle group, wherein, the center of described setting circle group is described anchor point, and the center of described demarcation circle group is described calibration point;
According to the distributing position of described anchor point in described template image, determine the distributing position of calibration point in described template image, and according to described anchor point and calibration point the distributing position in described template image, determine the template coordinate of described template image.
The application discloses a kind of calibrating template, template detection method, device and terminal.In calibrating template disclosed in the present application, each center of circle demarcating circle group is calibration point, the center of circle of each setting circle group is anchor point, when carrying out template detection by calibrating template disclosed in the present application, the center of circle that circle determines this demarcation circle group is demarcated by each at least two of demarcating in circle group, thus acquisition calibration point, the center of circle of this setting circle group is determined by least two setting circles in each setting circle group, thus acquisition anchor point, and determine each calibration point distribution situation in the picture by described anchor point, obtain template coordinate further.Compared with gridiron pattern scaling board of the prior art, calibrating template disclosed in the present application, when obtaining calibration point, is not vulnerable to the interference of external environment, improves stability and the correctness of calibration point acquisition, the precision of corresponding raising template detection, and follow-up stated accuracy can be improved further.
In addition, in calibrating template disclosed in the present application, each circle group and setting circle group of demarcating, by the identical circle composition at least two centers of circle, determine plate with chessboard case marker and is compared, and circular less by the project impact that changes of filming apparatus, robustness is stronger.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation demarcating circle group in a kind of calibrating template disclosed by the invention;
Fig. 2 is the structural representation demarcating circle group in another calibrating template disclosed by the invention;
Fig. 3 is the schematic diagram of a kind of calibrating template disclosed by the invention;
Fig. 4 is the schematic diagram of another calibrating template disclosed by the invention;
Fig. 5 is the schematic diagram of another calibrating template disclosed by the invention;
Fig. 6 is the embodiment process flow diagram of a kind of template detection method disclosed by the invention;
Fig. 7 is in a kind of template detection method disclosed by the invention, obtains the embodiment process flow diagram of range difference;
Fig. 8 is the structural representation of a kind of template detection device disclosed by the invention;
Fig. 9 is the structural representation of a kind of terminal disclosed by the invention.
Embodiment
The embodiment of the present application provides a kind of calibrating template, template detection method, device and terminal, and to solve in conventional art, when carrying out template detection to gridiron pattern scaling board, the template detection precision of existence is low, and affects the problem of stated accuracy.
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art, and enable the above-mentioned purpose of the embodiment of the present invention, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present invention is described in further detail.
The application discloses a kind of calibrating template, and described calibrating template comprises at least one and demarcates circle group and at least three setting circle groups, and the center of circle of described at least three setting circle groups is not located along the same line.
Wherein, each described demarcation circle group comprises at least two and demarcates round, and the center of circle that described demarcation whole in same demarcation circle group is round is identical, and same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area.
Each center of circle demarcating circle comprised in each demarcation circle group is identical, and using the center of circle of round for described demarcation group as calibration point.In same demarcation circle group, comprise at least two and demarcate circle, then demarcate at least one annulus round-formed at least two described in, demarcate circle for the ease of distinguishing each, each annulus is different from the color of adjacent area.Further, in order to improve the precision of differentiation, the color of each annulus and adjacent area selects the color that contrast is higher usually, and such as, can arrange one of them annulus is black, and the adjacent area of this annulus is white.
Such as, the structural representation of demarcation circle group shown in Figure 1, this demarcation circle group comprises two and demarcates circle, demarcate round-formed inner circle 1 and an annulus 2 for described two, wherein, the adjacent area of annulus 2 is inner circle 1, demarcates circle to distinguish these two, inner circle 1 is set to white, annulus 2 is set to black.
In addition, another kind shown in Figure 2 demarcates the structural representation of circle group, and the demarcation circle group in this figure comprises three and demarcates circle, demarcates round-formed inner circle 3, annulus 4 and annulus 5 for described three.Wherein, the adjacent area of annulus 4 is inner circle 3 and annulus 5, and the adjacent area of annulus 5 is annulus 4.Demarcate circle to distinguish these three, inner circle 3 and annulus 5 are set to white, and annulus 4 is set to black.
Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area.
The center of circle of the setting circle comprised in each setting circle group is identical, and using the center of circle of described setting circle group as anchor point.Because the center of circle of described at least three setting circle groups is not located along the same line, therefore can obtain at least three anchor points according to this scaling board, and described at least three anchor points are not at same straight line, thus the effect of location can be played.In addition, in same setting circle group, comprise at least two setting circles, then described in, at least two setting circles form at least one annulus, and for the ease of distinguishing each setting circle, each annulus is different from the color of adjacent area.Further, in order to improve the precision of differentiation, the color of each annulus and adjacent area selects the color that contrast is higher usually, and such as, can arrange one of them annulus is black, and the adjacent area of this annulus is white.
Further, each described setting circle group comprises fisrt feature circle and second feature circle, wherein, location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal, described second feature radius of a circle and the demarcation radius of a circle demarcated described in each in circle group all unequal.
Fisrt feature circle is all included in each setting circle group, fisrt feature radius of a circle in each setting circle group is all unequal with the location radius of a circle in each setting circle group, that is, fisrt feature circle in each setting circle group is all unequal with the location radius of a circle in other each setting circle groups except self, and, in this fisrt feature fenestra and setting circle group belonging to self other each to locate radius of a circle all unequal, thus can to come according to each setting circle group differentiation of the large young pathbreaker of described fisrt feature radius of a circle.
Accordingly, second feature circle is also included in each setting circle group, described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal, thus can according to described second feature radius of a circle size discrimination setting circle group and demarcate circle group.
In addition, in described scaling board, each setting circle group can be identical with the number demarcating the circle comprised in circle group, also can be different, and the application is not construed as limiting this.
In calibrating template disclosed in the present application, each center of circle demarcating circle group is calibration point, the center of circle of each setting circle group is anchor point, when carrying out template detection by calibrating template disclosed in the present application, the center of circle that circle determines this demarcation circle group is demarcated by each at least two of demarcating in circle group, thus acquisition calibration point, the center of circle of this setting circle group is determined by least two setting circles in each setting circle group, thus acquisition anchor point, and determine each calibration point distribution situation in the picture by described anchor point, obtain template coordinate further.Compared with gridiron pattern scaling board of the prior art, calibrating template disclosed in the present application, when obtaining calibration point, is not vulnerable to the interference of external environment, improves stability and the correctness of calibration point acquisition, the precision of corresponding raising template detection, and follow-up stated accuracy can be improved further.
In addition, in calibrating template disclosed in the present application, each circle group and setting circle group of demarcating, by the identical circle composition at least two centers of circle, determine plate with chessboard case marker and is compared, and circular less by the project impact that changes of filming apparatus, robustness is stronger.
Further, described calibrating template also comprises:
Calibration line, the length of described calibration line equals to have the distance of center circle between excentric any two circles.
Wherein, the length of described calibration line can be on described calibrating template, any two distance of center circle had between excentric circle.When drawing scaling board before, the distance of center circle between described two circles can be obtained, and draw the calibration line equal with described distance of center circle length on scaling board.During owing to measuring the calibrating template be placed in world coordinate system, be difficult to determine the center of circle, therefore, scaling board characterized by described calibration line the distance of center circle of described two circles.After acquisition template coordinate, can according to the coordinate of the center of circle on template image of described two circles, calculate distance of center circle calculated value, and, the scaling board in physical world is measured by survey instrument (as vernier caliper), the length measurements of described calibration line in world coordinate system can be obtained, by the range difference between described distance of center circle calculated value and length measurements, the precision of this template detection can be obtained.
The schematic diagram of a kind of calibrating template shown in Figure 3, in this figure, the demarcation circle arranged in this calibrating template is organized and setting circle group forms by two concentric circless, certainly, the numerical value that each setting circle group and the quantity of demarcating the circle comprised in circle group also can be greater than two for other, the application is not construed as limiting this.Wherein, the demarcation circle in this calibrating template organizes and in setting circle group, inner circle is white, and cylindrical is black, and to distinguish inner circle and cylindrical, certainly, inner circle and cylindrical can also be set to other different colors, and the application does not limit this.
In addition, in the calibrating template shown in Fig. 3, the setting circle group comprised is separately positioned on the position of the upper left of calibrating template, upper right and lower-left, the setting circle group being arranged on calibrating template upper left refers to first round group in left side in this calibrating template the first row, the setting circle group being arranged on calibrating template upper right refers to first round group on right side in this calibrating template the first row, and the setting circle group being arranged on calibrating template lower-left refers to first round group in left side in this calibrating template last column.Further, positioning action not on the same line, can be played in the center of circle of these three setting circle groups, for determining the distribution situation of demarcating circle group in template detection process, thus determines the template coordinate of calibrating template.Further, the concentric circles being positioned at other positions demarcates circle group to being.In order to distinguish each setting circle group, in this calibrating template, the inner circle radius of three setting circle groups is set to different length; In order to by setting circle group with demarcate circle group differentiation and open, the inner circle radius of described three setting circle groups is with each to demarcate the inner circle radius that circle organizes all unequal, and that is, the fisrt feature in described three setting circle groups is round and second feature is round is inner circle.Wherein, the white inner circle radius of the setting circle group of upper left is maximum, and the white inner circle radius of the setting circle group of lower-left is second largest, and the white inner circle radius of the setting circle group of upper right is minimum.In addition, each shown in Fig. 3 is demarcated in circle group, and interior radius of a circle is all equal, and in other embodiments, each is demarcated in circle group, and radius of a circle also can be unequal, and the application does not limit this.
In calibrating template disclosed in the present application, the quantity of the demarcation of setting circle group and setting circle group is more, and the precision of template detection is higher, and described demarcate circle organize and the quantity of setting circle group more, the time needed for template detection is longer.In actual applications, usually by demarcating multiple concentric circless pair of circle group and the formation of setting circle group, the form of 3x4 to 12x15 is set to.
Further, in the calibrating template shown in Fig. 3, be also provided with calibration line, the length of described calibration line etc. and the distance of center circle had between excentric any two circles.Wherein, the line segment of this calibrating template bottom is described calibration line.There are described in setting excentric two circles and be respectively the first circle and the second circle, as shown in Figure 3, four calibration lines are included in this calibrating template, according to order from left to right, Article 1, described first circle that calibration line is corresponding and the second circle are respectively the circle in first round group in last column, and the circle in second round group, described first circle that Article 2 calibration line is corresponding and the second circle are respectively the circle in the 3rd round group in last column, and the circle in the 4th round group, described first circle that Article 3 calibration line is corresponding and the second circle are respectively the circle in the 5th round group in last column, and the circle in the 6th round group, described first circle that Article 4 calibration line is corresponding and the second circle are respectively the circle in the 7th round group in last column, and the circle in the 8th round group.These four calibration lines are separately positioned on the below of corresponding first circle and the second circle, and the starting point of described calibration line and terminal are in same level.Certainly, can also choose other circles as the first circle and the second circle, and calibration line is arranged on other positions of calibrating template, the application does not limit this.
Such as, in the another kind of calibrating template shown in Fig. 4, the circle that described first circle and the second circle are respectively in first round group of last column, and the circle in last circle group of last column, and this calibration line is arranged on the below of described first circle and the second circle.Another kind of calibrating template shown in Figure 5, described first circle is the circle in first round group of calibrating template the first row, described second circle is the circle in second round group of calibrating template second row, the calibration line that distance of center circle length that is round with described first and the second circle is equal is arranged on the left side of described calibrating template, if the line set between described first circle and the center of circle of the second circle is center of circle line, this calibration line and described center of circle line parallel.Certainly, also this calibration line can be arranged to vertical direction, the application does not limit this.
Accordingly, disclosed herein as well is a kind of template detection method.
Workflow schematic diagram shown in Figure 6, template detection method disclosed in the present application comprises the following steps:
Step S11, obtain the template image of filming apparatus to be calibrated shooting, preset calibrations template is included in described template image, described preset calibrations module comprises at least one and demarcates circle group and at least three setting circle groups, the center of circle of described at least three setting circle groups is not located along the same line, wherein, each described demarcation circle group comprises at least two and demarcates circle, the center of circle that described demarcation whole in same demarcation circle group is round is identical, and, same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal; Described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal.
Step S12, basis are preset and are communicated with block coverage, filter the connection block in described template image, and acquisition comprises described setting circle group and is communicated with block with round the multiple of group of demarcation.
Filming apparatus, when taking pictures to preset calibrations template, often photographs other objects beyond described preset calibrations template, thus needs to be filtered template image by step S12.
In step s 12, template image is detected, obtain the connection block in template image, then according to the connection block coverage preset, this connection block is filtered, the connection block of filtering area coverage not in described default connection block coverage, the connection block of remaining area coverage in described default connection block coverage is setting circle group and demarcates circle group.
Wherein, setting outermost circle in each described demarcation circle group and setting circle group is the 3rd circle, and the area coverage setting described 3rd circle is that unit is communicated with block area coverage, minimum value then in described default connection block coverage is not more than the minimum value in described unit connection block area coverage, and the maximal value in described default connection block coverage is not less than the maximal value in described unit connection block area coverage.
Step S13, described connection block to be detected, obtain the contour edge group that described connection block is corresponding.
Wherein, described setting circle group and demarcate circle group and be and circular be communicated with block, filming apparatus is when taking pictures to calibrating template, the impact projected, setting circle group in template image and demarcation circle group often present ellipse, therefore, when being communicated with block to each and detecting, the method by ellipse fitting obtains contour edge group corresponding to described connection block.
In addition, can also by the method for ellipses detection, obtain the contour edge group that described connection block is corresponding, the application is not construed as limiting this.
After edge fitting is carried out to connection block, the contour edge group corresponding with being communicated with block can be obtained.Such as, if described calibrating template as shown in Figure 3, then each contour edge group comprises two oval contour edges.
Step S14, center according to each contour edge in described contour edge group, determine the center of described contour edge group, and according to the size of each contour edge in described contour edge group, determine the type of described contour edge group, described type comprises: demarcate circle group and setting circle group, wherein, the center of described setting circle group is described anchor point, and the center of described demarcation circle group is described calibration point.
Owing to comprising second feature circle in described setting circle group, described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal, then can according to the type of each contour edge group of the size discrimination of contour edge, type due to contour edge group comprises demarcates circle group and setting circle group, thus each contour edge group described is divided into demarcation circle group and setting circle group.
Step S15, according to the distributing position of described anchor point in described template image, determine the distributing position of calibration point in described template image, and according to described anchor point and calibration point the distributing position in described template image, determine the template coordinate of described template image.
Owing to including fisrt feature circle in each setting circle group, described fisrt feature radius of a circle and other each described in location radius of a circle in setting circle group all unequal, therefore, by the size of each contour edge in setting circle group, each setting circle group differentiation is come, thus determines the distributing position of described anchor point in described template image.According to the distributing position of described anchor point in described template image, the distributing position of each calibration point in described template image can be determined.
If this secondary module detect for described template image in the calibrating template that comprises as shown in Figure 3, fisrt feature circle in each setting circle group is inner circle, by the size of contour edge corresponding to inner circle, three setting circle group differentiations can be come, thus determine the distributing position of anchor point in described template image.Then, positioned by described anchor point, such as, if first calibration point on the right side of the anchor point being distributed in upper left is defined as the first calibration point, then can determine that second calibration point be distributed on the right side of the anchor point of upper left is the second calibration point, thus obtain the distributing position of each calibration point in template image successively.
The step S11 to step S15 of the application discloses a kind of template detection method.When carrying out template detection by method disclosed in the present application, the center of circle that circle determines this demarcation circle group is demarcated by each at least two of demarcating in circle group, thus acquisition calibration point, the center of circle of this setting circle group is determined by least two setting circles in each setting circle group, thus acquisition anchor point, and determine each calibration point distribution situation in the picture by described anchor point, obtain template coordinate further.Compared with gridiron pattern scaling board of the prior art, calibrating template disclosed in the present application, when obtaining calibration point, is not vulnerable to the interference of external environment, improves stability and the correctness of calibration point acquisition, the precision of corresponding raising template detection, and follow-up stated accuracy can be improved further.
In addition, in calibrating template disclosed in the present application, each circle group and setting circle group of demarcating, by the identical circle composition at least two centers of circle, determine plate with chessboard case marker and is compared, and circular less by the project impact that changes of filming apparatus, robustness is stronger.
In step S14, the open center according to each contour edge in described contour edge group, determine this step of center of described contour edge group, this step realizes by various ways.
Wherein in a kind of implementation, the described center according to each contour edge in described contour edge group, determine the center of described contour edge group, comprising:
Calculate the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group.
Such as, if this template detection for calibrating template as shown in Figure 3, namely each demarcation circle group and setting circle group form by 2 concentric circless, passing through edge fitting, after obtaining contour edge group, can detect in each contour edge group and include two contour edges, then detect the center of two contour edges comprised in each contour edge group, the mean value at the center of described two contour edges is the center of this contour edge group.
In another kind of implementation, the described center according to each contour edge in described contour edge group, determine the center of described contour edge group, comprising:
First, behind the center obtaining each contour edge in described contour edge group, whether the range difference between the center judging each contour edge described is in the distance range preset; Then, if described range difference is in described default distance range, then calculate the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group.
In above-mentioned steps, behind the center getting each contour edge in contour edge group, whether the range difference between the center judging each contour edge described is in the distance range preset, if described range difference exceedes described default distance range, then illustrate that the centre distance of each contour edge in same contour edge group is far away, in this case, think that error appears in this contour edge group, in subsequent step, no longer consider this contour edge group; If the range difference between the center of each contour edge described is in the distance range preset, then illustrate that the centre distance of each contour edge in same contour edge group is comparatively near, then determine the center of described contour edge group by the mean value at the center of each contour edge in this contour edge group.
By above-mentioned steps, can error be reduced, improve the precision of template detection further.
The distributing position in described template image according to each anchor point described and calibration point, can determine the template coordinate of described template image.Wherein, determine that the implementation of the template coordinate of described template image comprises multiple.
Wherein in a kind of implementation, described according to anchor point and calibration point the distributing position in described template image, determine that the template coordinate of described template image comprises:
First, the distributing position in described template image according to described anchor point and calibration point, by each anchor point on described image to be calibrated and calibration point, sets up mapping relations with each anchor point on the calibrating template of known coordinate system and calibration point;
Then, according to described mapping relations, and the coordinate of anchor point on the calibrating template of described known coordinate system and calibration point, determine the template coordinate of described template image.
In above-mentioned implementation, need the calibrating template obtaining known coordinate system in advance, in this calibrating template, the coordinate of each calibration point and anchor point is known, in this case, according to each anchor point on described image to be calibrated and calibration point, and the mapping relations between each anchor point and calibration point on the calibrating template of known coordinate system, and the coordinate of each calibration point on the calibrating template of described known coordinate system, can determine the template coordinate of described template image.Wherein, described known coordinate system can be world coordinate system, or, can be other forms of image coordinate system.
In another kind of implementation, can prestore and be distributed in each anchor point of diverse location and the coordinate of calibration point, after getting each anchor point and the distributing position of calibration point in described template image, inquire about the coordinate information prestored, the template coordinate of described template image can be determined.
Such as, if this template detection for calibrating template as shown in Figure 3, first calibration point on the right side of the anchor point being distributed in upper left is defined as the first calibration point, determine that second calibration point be distributed on the right side of the anchor point of upper left is the second calibration point, and prestored the coordinate of the first calibration point and the second calibration point.When carrying out template detection, pass through anchor point, the distributing position of the first calibration point in template image and the second calibration point can be determined, and inquire about the coordinate information prestored, the coordinate of the first calibration point and the second calibration point can be determined, identical, other calibration points and the coordinate of anchor point in template image can also be obtained, according to described coordinate, get final product the template coordinate of determination module image.
Further, template detection method disclosed in the present application also comprises: being communicated with block coverage according to presetting, before filtering, carry out denoising to described template image to the connection block in described template image.
In this case, being communicated with block coverage according to presetting described in step S12, the connection block in described template image being filtered, comprising: after the template image after obtaining denoising, according to default connection block coverage, the template image after described denoising is filtered.
Wherein, denoising can adopt the method such as medium filtering or gaussian filtering, can reduce the impact of picture noise.
Further, template detection method disclosed in the present application also comprises: being communicated with block coverage according to presetting, before filtering, carry out binary conversion treatment to described template image to the connection block in described template image.
In this case, being communicated with block coverage according to presetting described in step S12, the connection block in described template image being filtered, comprising: after the template image after obtaining binary conversion treatment, according to default connection block coverage, the template image after described binary conversion treatment is filtered.
By binary conversion treatment, the contrast in image can be increased, make image present comparatively significantly visual effect.Denoising and binary conversion treatment all can improve the accuracy of detection of calibration point and anchor point, and then improve the precision of template detection.
Further, described preset calibrations template also comprises calibration line, and the length of described calibration line equals to have the distance of center circle between excentric arbitrary two circles, after the template coordinate determining described template image, see Fig. 7, described template detection method also comprises:
Step S21, by described template coordinate, determine the coordinate of the center of circle in described template image of described two circles;
Step S22, the coordinate of the center of circle in described template image according to described two circles, calculate the distance of center circle calculated value of described two circles in world coordinate system;
Step S23, after receiving the calibration line measured value of described calibration line in world coordinate system, obtain the range difference between described distance of center circle calculated value and described calibration line measured value, to be characterized the precision of this template detection by described range difference.
During owing to measuring the calibrating template be placed in world coordinate system, be difficult to determine the center of circle, therefore, scaling board characterized by described calibration line the distance of center circle of described two circles.After acquisition template coordinate, can according to the coordinate of the center of circle on template image of described two circles, calculate distance of center circle calculated value, and, the scaling board in physical world is measured by survey instrument (as vernier caliper), the length measurements of described calibration line in world coordinate system can be obtained, by the range difference between described distance of center circle calculated value and length measurements, the precision of this template detection can be obtained.
Wherein, according to the coordinate of the center of circle in described template image of described two circles, when calculating the distance of center circle calculated value of described two circles in world coordinate system, each anchor point on image to be calibrated and calibration point can be set up in advance, and the mapping relations between each anchor point and calibration point on the calibrating template of world coordinate system, according to these mapping relations, determine the world coordinates in the center of circle of described two circles, then according to this world coordinates, the distance of center circle calculated value of described two circles in world coordinate system can both have been calculated.
The range difference of described distance of center circle calculated value and length measurements, can reflect the precision of this template detection, and described range difference is less, then illustrate that the precision of this template detection is higher.Test of many times shows, compared with the method for gridiron pattern scaling board being carried out to template detection with prior art, error rate can be reduced about 33.3% by template detection method disclosed in the present application.
Accordingly, the application also discloses a kind of template detection device.Structural representation shown in Figure 8, described template detection device comprises: image collection module 11, filtering module 12, detection module 13, first determination module 14 and the second determination module 15.
Wherein, described image collection module 11, for obtaining the template image of filming apparatus shooting to be calibrated, preset calibrations template is included in described template image, described preset calibrations module comprises at least one and demarcates circle group and at least three setting circle groups, the center of circle of described at least three setting circle groups is not located along the same line, wherein, each described demarcation circle group comprises at least two and demarcates circle, the center of circle that described demarcation whole in same demarcation circle group is round is identical, and, same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area, each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area, each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal, described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal,
Described filtering module 12, for being communicated with block coverage according to presetting, filters the connection block in described template image, and acquisition comprises described setting circle group and is communicated with block with the multiple of demarcation circle group;
Described detection module 13, for detecting described connection block, obtains the contour edge group that described connection block is corresponding;
Described first determination module 14, for the center according to each contour edge in described contour edge group, determine the center of described contour edge group, and according to the size of each contour edge in described contour edge group, determine the type of described contour edge group, described type comprises: demarcate circle group and setting circle group, wherein, the center of described setting circle group is described anchor point, and the center of described demarcation circle group is described calibration point;
Described second determination module 15, for according to the distributing position of described anchor point in described template image, determine the distributing position of calibration point in described template image, and according to described anchor point and calibration point the distributing position in described template image, determine the template coordinate of described template image.
Further, described first determination module 14 comprises:
First computing unit, for calculating the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group;
Or,
Judging unit, for behind the center obtaining each contour edge in described contour edge group, whether the range difference between the center judging each contour edge described is in the distance range preset;
Second computing unit, if for described range difference in described default distance range, then calculates the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group.
Further, described second determination module 15 comprises:
Unit is set up in mapping, for the distributing position in described template image according to described anchor point and calibration point, by each anchor point on described image to be calibrated and calibration point, set up mapping relations with each anchor point on the calibrating template of known coordinate system and calibration point;
Template coordinate determining unit, for according to described mapping relations, and the coordinate of anchor point on the calibrating template of described known coordinate system and calibration point, determine the template coordinate of described template image.
Further, described template detection device also comprises:
Denoising module, for being communicated with block coverage according to presetting, before filtering, carries out denoising to described template image to the connection block in described template image;
Accordingly, described filtering module also for after the template image after obtaining denoising, according to default connection block coverage, filters the template image after described denoising.
And/or described template detection device also comprises:
Binary conversion treatment module, for being communicated with block coverage according to presetting, before filtering, carries out binary conversion treatment to described template image to the connection block in described template image;
Accordingly, described filtering module also for after the template image after obtaining binary conversion treatment, according to default connection block coverage, filters the template image after described binary conversion treatment.
Further, described preset calibrations template also comprises calibration line, and the length of described calibration line equals to have the distance of center circle between excentric arbitrary two circles, and after the template coordinate determining described template image, described template detection device also comprises:
Central coordinate of circle determination module, for by described template coordinate, determines the coordinate of the center of circle in described template image of described two circles;
Distance of center circle computing module, for the coordinate of the center of circle in described template image according to described two circles, calculates the distance of center circle calculated value of described two circles in world coordinate system;
Range difference computing module, for after receiving the calibration line measured value of described calibration line in world coordinate system, obtain the range difference between described distance of center circle calculated value and described calibration line measured value, to be characterized the precision of this template detection by described range difference.
Template detection device disclosed in the present application is when carrying out template detection, the center of circle that circle determines this demarcation circle group is demarcated by each at least two of demarcating in circle group, thus acquisition calibration point, the center of circle of this setting circle group is determined by least two setting circles in each setting circle group, thus acquisition anchor point, and determine each calibration point distribution situation in the picture by described anchor point, obtain template coordinate further.Compared with gridiron pattern scaling board of the prior art, calibrating template disclosed in the present application, when obtaining calibration point, is not vulnerable to the interference of external environment, improves stability and the correctness of calibration point acquisition, the precision of corresponding raising template detection, and follow-up stated accuracy can be improved further.
In addition, in the calibrating template that the application adopts, each circle group and setting circle group of demarcating, by the identical circle composition at least two centers of circle, determine plate with chessboard case marker and is compared, and circular less by the project impact that changes of filming apparatus, robustness is stronger.
Accordingly, the application also discloses a kind of terminal, structural representation shown in Figure 9, and described terminal 10 comprises: processor 100, storer 200 and bus 300, wherein,
Described processor 100, by bus 300, is connected with described storer 200;
Described storer 200, for the program code of the method for storage process data sharing;
Described processor 100, for obtaining the program code stored in described storer 200, and performs following operation according to described program code:
Obtain the template image of filming apparatus shooting to be calibrated, preset calibrations template is included in described template image, described preset calibrations module comprises at least one and demarcates circle group and at least three setting circle groups, the center of circle of described at least three setting circle groups is not located along the same line, wherein, each described demarcation circle group comprises at least two and demarcates circle, the center of circle that described demarcation whole in same demarcation circle group is round is identical, and, same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal; Described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal;
According to default connection block coverage, filter the connection block in described template image, acquisition comprises described setting circle group and is communicated with block with the multiple of demarcation circle group;
Described connection block is detected, obtains the contour edge group that described connection block is corresponding;
According to the center of each contour edge in described contour edge group, determine the center of described contour edge group, and according to the size of each contour edge in described contour edge group, determine the type of described contour edge group, described type comprises: demarcate circle group and setting circle group, wherein, the center of described setting circle group is described anchor point, and the center of described demarcation circle group is described calibration point;
According to the distributing position of described anchor point in described template image, determine the distributing position of calibration point in described template image, and according to described anchor point and calibration point the distributing position in described template image, determine the template coordinate of described template image.
By above-mentioned terminal, template detection can be realized, and in template detection process, the center of circle that circle determines this demarcation circle group is demarcated by each at least two of demarcating in circle group, thus acquisition calibration point, determined the center of circle of this setting circle group by least two setting circles in each setting circle group, thus obtain anchor point, and determine each calibration point distribution situation in the picture by described anchor point, obtain template coordinate further.Compared with gridiron pattern scaling board of the prior art, calibrating template disclosed in the present application, when obtaining calibration point, is not vulnerable to the interference of external environment, improves stability and the correctness of calibration point acquisition, the precision of corresponding raising template detection, and follow-up stated accuracy can be improved further.
Those skilled in the art can be well understood to the mode that technology in the embodiment of the present invention can add required general hardware platform by software and realize.Based on such understanding, technical scheme in the embodiment of the present invention can embody with the form of software product, this computer software product can be stored in storage medium, as ROM (read-only memory) is (English: read-only memory, abbreviation: ROM), random access memory is (English: random access memory, RAM), magnetic disc, CD etc. abbreviation:, comprises some instructions and performs method described in some part of the embodiment of the present invention or embodiment in order to make processor.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiment.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (13)

1. a calibrating template, is characterized in that, described calibrating template comprises at least one and demarcates circle group and at least three setting circle groups, and the center of circle of described at least three setting circle groups is not located along the same line, wherein,
Each described demarcation circle group comprises at least two and demarcates round, and the center of circle that described demarcation whole in same demarcation circle group is round is identical, and same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area;
Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area;
Each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal;
Described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal.
2. calibrating template according to claim 1, is characterized in that, described calibrating template also comprises:
Calibration line, the length of described calibration line equals to have the distance of center circle between excentric any two circles.
3. a template detection method, is characterized in that, described template detection method comprises:
Obtain the template image of filming apparatus shooting to be calibrated, preset calibrations template is included in described template image, described preset calibrations module comprises at least one and demarcates circle group and at least three setting circle groups, the center of circle of described at least three setting circle groups is not located along the same line, wherein, each described demarcation circle group comprises at least two and demarcates circle, the center of circle that described demarcation whole in same demarcation circle group is round is identical, and, same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal; Described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal;
According to default connection block coverage, filter the connection block in described template image, acquisition comprises described setting circle group and is communicated with block with the multiple of demarcation circle group;
Described connection block is detected, obtains the contour edge group that described connection block is corresponding;
According to the center of each contour edge in described contour edge group, determine the center of described contour edge group, and according to the size of each contour edge in described contour edge group, determine the type of described contour edge group, described type comprises: demarcate circle group and setting circle group, wherein, the center of described setting circle group is described anchor point, and the center of described demarcation circle group is described calibration point;
According to the distributing position of described anchor point in described template image, determine the distributing position of calibration point in described template image, and according to described anchor point and calibration point the distributing position in described template image, determine the template coordinate of described template image.
4. method according to claim 3, is characterized in that, the described center according to each contour edge in described contour edge group, determines the center of described contour edge group, comprising:
Calculate the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group;
Or,
Behind the center obtaining each contour edge in described contour edge group, whether the range difference between the center judging each contour edge described is in the distance range preset;
If described range difference is in described default distance range, then calculate the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group.
5. method according to claim 3, is characterized in that, described according to anchor point and calibration point the distributing position in described template image, determine that the template coordinate of described template image comprises:
The distributing position in described template image according to described anchor point and calibration point, by each anchor point on described image to be calibrated and calibration point, sets up mapping relations with each anchor point on the calibrating template of known coordinate system and calibration point;
According to described mapping relations, and the coordinate of anchor point on the calibrating template of described known coordinate system and calibration point, determine the template coordinate of described template image.
6. method according to claim 3, is characterized in that, described template detection method also comprises:
Being communicated with block coverage according to presetting, before the connection block in described template image is filtered, denoising is carried out to described template image;
Described basis is preset and is communicated with block coverage, filters, comprising the connection block in described template image:
After template image after obtaining denoising, according to default connection block coverage, the template image after described denoising is filtered;
Or,
Being communicated with block coverage according to presetting, before the connection block in described template image is filtered, binary conversion treatment is carried out to described template image;
Described basis is preset and is communicated with block coverage, filters, comprising the connection block in described template image:
After template image after obtaining binary conversion treatment, according to default connection block coverage, the template image after described binary conversion treatment is filtered.
7. method according to claim 3, it is characterized in that, described preset calibrations template also comprises calibration line, the length of described calibration line equals to have the distance of center circle between excentric arbitrary two circles, after the template coordinate determining described template image, described template detection method also comprises:
By described template coordinate, determine the coordinate of the center of circle in described template image of described two circles;
According to the coordinate of the center of circle in described template image of described two circles, calculate the distance of center circle calculated value of described two circles in world coordinate system;
After receiving the calibration line measured value of described calibration line in world coordinate system, obtain the range difference between described distance of center circle calculated value and described calibration line measured value, to be characterized the precision of this template detection by described range difference.
8. a template detection device, is characterized in that, described template detection device comprises:
Image collection module, for obtaining the template image of filming apparatus shooting to be calibrated, preset calibrations template is included in described template image, described preset calibrations module comprises at least one and demarcates circle group and at least three setting circle groups, the center of circle of described at least three setting circle groups is not located along the same line, wherein, each described demarcation circle group comprises at least two and demarcates circle, the center of circle that described demarcation whole in same demarcation circle group is round is identical, and, same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal; Described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal;
Filtering module, for being communicated with block coverage according to presetting, filters the connection block in described template image, and acquisition comprises described setting circle group and is communicated with block with the multiple of demarcation circle group;
Detection module, for detecting described connection block, obtains the contour edge group that described connection block is corresponding;
First determination module, for the center according to each contour edge in described contour edge group, determine the center of described contour edge group, and according to the size of each contour edge in described contour edge group, determine the type of described contour edge group, described type comprises: demarcate circle group and setting circle group, wherein, the center of described setting circle group is described anchor point, and the center of described demarcation circle group is described calibration point;
Second determination module, for according to the distributing position of described anchor point in described template image, determine the distributing position of calibration point in described template image, and according to described anchor point and calibration point the distributing position in described template image, determine the template coordinate of described template image.
9. device according to claim 8, is characterized in that, described first determination module comprises:
First computing unit, for calculating the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group;
Or,
Judging unit, for behind the center obtaining each contour edge in described contour edge group, whether the range difference between the center judging each contour edge described is in the distance range preset;
Second computing unit, if for described range difference in described default distance range, then calculates the mean value at the center of each contour edge in described contour edge group, and using the center of described mean value as described contour edge group.
10. device according to claim 8, is characterized in that, described second determination module comprises:
Unit is set up in mapping, for the distributing position in described template image according to described anchor point and calibration point, by each anchor point on described image to be calibrated and calibration point, set up mapping relations with each anchor point on the calibrating template of known coordinate system and calibration point;
Template coordinate determining unit, for according to described mapping relations, and the coordinate of anchor point on the calibrating template of described known coordinate system and calibration point, determine the template coordinate of described template image.
11. devices according to claim 8, is characterized in that, described template detection device also comprises:
Denoising module, for being communicated with block coverage according to presetting, before filtering, carries out denoising to described template image to the connection block in described template image;
Described filtering module also for after the template image after obtaining denoising, according to default connection block coverage, filters the template image after described denoising;
And/or,
Binary conversion treatment module, for being communicated with block coverage according to presetting, before filtering, carries out binary conversion treatment to described template image to the connection block in described template image;
Described filtering module also for after the template image after obtaining binary conversion treatment, according to default connection block coverage, filters the template image after described binary conversion treatment.
12. devices according to claim 8, it is characterized in that, described preset calibrations template also comprises calibration line, and the length of described calibration line equals to have the distance of center circle between excentric arbitrary two circles, after the template coordinate determining described template image, described template detection device also comprises:
Central coordinate of circle determination module, for by described template coordinate, determines the coordinate of the center of circle in described template image of described two circles;
Distance of center circle computing module, for the coordinate of the center of circle in described template image according to described two circles, calculates the distance of center circle calculated value of described two circles in world coordinate system;
Range difference computing module, for after receiving the calibration line measured value of described calibration line in world coordinate system, obtain the range difference between described distance of center circle calculated value and described calibration line measured value, to be characterized the precision of this template detection by described range difference.
13. 1 kinds of terminals, is characterized in that, comprising: processor, storer and bus, wherein,
Described processor, by bus, is connected with described storer;
Described storer, for the program code of the method for storage process data sharing;
Described processor, for obtaining the program code stored in described storer, and performs following operation according to described program code:
Obtain the template image of filming apparatus shooting to be calibrated, preset calibrations template is included in described template image, described preset calibrations module comprises at least one and demarcates circle group and at least three setting circle groups, the center of circle of described at least three setting circle groups is not located along the same line, wherein, each described demarcation circle group comprises at least two and demarcates circle, the center of circle that described demarcation whole in same demarcation circle group is round is identical, and, same at least two of demarcating in circle group demarcate round-formed annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises at least two setting circles, and the center of circle of described setting circles whole in same setting circle group is identical, and at least two setting circles in same setting circle group form annulus, and annulus is different from the color of adjacent area; Each described setting circle group comprises fisrt feature circle and second feature is justified, and wherein, the location radius of a circle in described fisrt feature radius of a circle and all described setting circle groups is all unequal; Described second feature radius of a circle and demarcate described in each circle group in demarcation radius of a circle all unequal;
According to default connection block coverage, filter the connection block in described template image, acquisition comprises described setting circle group and is communicated with block with the multiple of demarcation circle group;
Described connection block is detected, obtains the contour edge group that described connection block is corresponding;
According to the center of each contour edge in described contour edge group, determine the center of described contour edge group, and according to the size of each contour edge in described contour edge group, determine the type of described contour edge group, described type comprises: demarcate circle group and setting circle group, wherein, the center of described setting circle group is described anchor point, and the center of described demarcation circle group is described calibration point;
According to the distributing position of described anchor point in described template image, determine the distributing position of calibration point in described template image, and according to described anchor point and calibration point the distributing position in described template image, determine the template coordinate of described template image.
CN201510140105.1A 2015-03-27 2015-03-27 A kind of calibrating template, template detection method, apparatus and terminal Active CN104794704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510140105.1A CN104794704B (en) 2015-03-27 2015-03-27 A kind of calibrating template, template detection method, apparatus and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510140105.1A CN104794704B (en) 2015-03-27 2015-03-27 A kind of calibrating template, template detection method, apparatus and terminal

Publications (2)

Publication Number Publication Date
CN104794704A true CN104794704A (en) 2015-07-22
CN104794704B CN104794704B (en) 2017-11-17

Family

ID=53559484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510140105.1A Active CN104794704B (en) 2015-03-27 2015-03-27 A kind of calibrating template, template detection method, apparatus and terminal

Country Status (1)

Country Link
CN (1) CN104794704B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106023271A (en) * 2016-07-22 2016-10-12 武汉海达数云技术有限公司 Method and device for extracting center coordinates of target
CN108205395A (en) * 2018-01-16 2018-06-26 安徽慧视金瞳科技有限公司 A kind of calibration point centre coordinate precise positioning method
CN108895961A (en) * 2018-05-24 2018-11-27 南京阿凡达机器人科技有限公司 A kind of measurement method, measuring device and the adhesive band of cabinet size
CN109064512A (en) * 2018-07-30 2018-12-21 安徽慧视金瞳科技有限公司 A kind of more calibration point coordinate value detection methods of interactive mode Teaching System
CN109285194A (en) * 2018-09-29 2019-01-29 人加智能机器人技术(北京)有限公司 Camera calibration plate and camera calibration collecting method
WO2019201259A1 (en) * 2018-04-17 2019-10-24 深圳市道通科技股份有限公司 Vehicle-mounted camera calibrating device, system and method
CN110440690A (en) * 2019-07-30 2019-11-12 华中科技大学 A kind of device and method for single-point diamond lathe linear axis error measure
CN110986846A (en) * 2019-12-10 2020-04-10 中国计量科学研究院 Multi-quantity metering standard device and preparation method thereof
CN112883963A (en) * 2021-02-01 2021-06-01 合肥联宝信息技术有限公司 Positioning correction method, device and computer readable storage medium
CN113822950A (en) * 2021-11-22 2021-12-21 天远三维(天津)科技有限公司 Calibration point distribution determination method, device, equipment and storage medium of calibration plate
CN115307559A (en) * 2022-07-08 2022-11-08 国网湖北省电力有限公司荆州供电公司 Target positioning method, remote laser cleaning method and system
WO2023226403A1 (en) * 2022-05-27 2023-11-30 华为技术有限公司 Calibration board and calibration control device
CN117381763A (en) * 2023-10-18 2024-01-12 芜湖藦卡机器人科技有限公司 Automatic calibration detection mechanism and detection method for robot tool hand
CN117911542A (en) * 2024-03-19 2024-04-19 杭州灵西机器人智能科技有限公司 Calibration plate, calibration plate identification method, system, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1455222A (en) * 2003-04-11 2003-11-12 天津大学 Camera calibration method and implementation device thereof
CN1801896A (en) * 2006-01-17 2006-07-12 东南大学 Video camera rating data collecting method and its rating plate
US7155030B2 (en) * 2001-04-02 2006-12-26 Korea Advanced Institute Of Science And Technology Camera calibration system using planar concentric circles and method thereof
CN101783018A (en) * 2010-02-04 2010-07-21 上海交通大学 Method for calibrating camera by utilizing concentric circles

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7155030B2 (en) * 2001-04-02 2006-12-26 Korea Advanced Institute Of Science And Technology Camera calibration system using planar concentric circles and method thereof
CN1455222A (en) * 2003-04-11 2003-11-12 天津大学 Camera calibration method and implementation device thereof
CN1801896A (en) * 2006-01-17 2006-07-12 东南大学 Video camera rating data collecting method and its rating plate
CN101783018A (en) * 2010-02-04 2010-07-21 上海交通大学 Method for calibrating camera by utilizing concentric circles

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐仙伟等: "基于同心圆环模板的摄像机标定方法", 《科学技术与工程》 *

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106023271B (en) * 2016-07-22 2018-12-11 武汉海达数云技术有限公司 A kind of target center coordinate extraction method and device
CN106023271A (en) * 2016-07-22 2016-10-12 武汉海达数云技术有限公司 Method and device for extracting center coordinates of target
CN108205395A (en) * 2018-01-16 2018-06-26 安徽慧视金瞳科技有限公司 A kind of calibration point centre coordinate precise positioning method
CN108205395B (en) * 2018-01-16 2021-03-23 安徽慧视金瞳科技有限公司 Method for accurately positioning center coordinates of calibration points
WO2019201259A1 (en) * 2018-04-17 2019-10-24 深圳市道通科技股份有限公司 Vehicle-mounted camera calibrating device, system and method
CN108895961A (en) * 2018-05-24 2018-11-27 南京阿凡达机器人科技有限公司 A kind of measurement method, measuring device and the adhesive band of cabinet size
CN109064512A (en) * 2018-07-30 2018-12-21 安徽慧视金瞳科技有限公司 A kind of more calibration point coordinate value detection methods of interactive mode Teaching System
CN109285194A (en) * 2018-09-29 2019-01-29 人加智能机器人技术(北京)有限公司 Camera calibration plate and camera calibration collecting method
CN110440690A (en) * 2019-07-30 2019-11-12 华中科技大学 A kind of device and method for single-point diamond lathe linear axis error measure
CN110986846B (en) * 2019-12-10 2022-04-29 中国计量科学研究院 Multi-quantity metering standard device and preparation method thereof
CN110986846A (en) * 2019-12-10 2020-04-10 中国计量科学研究院 Multi-quantity metering standard device and preparation method thereof
CN112883963A (en) * 2021-02-01 2021-06-01 合肥联宝信息技术有限公司 Positioning correction method, device and computer readable storage medium
CN112883963B (en) * 2021-02-01 2022-02-01 合肥联宝信息技术有限公司 Positioning correction method, device and computer readable storage medium
CN113822950B (en) * 2021-11-22 2022-02-25 天远三维(天津)科技有限公司 Calibration point distribution determination method, device, equipment and storage medium of calibration plate
CN113822950A (en) * 2021-11-22 2021-12-21 天远三维(天津)科技有限公司 Calibration point distribution determination method, device, equipment and storage medium of calibration plate
WO2023226403A1 (en) * 2022-05-27 2023-11-30 华为技术有限公司 Calibration board and calibration control device
CN115307559A (en) * 2022-07-08 2022-11-08 国网湖北省电力有限公司荆州供电公司 Target positioning method, remote laser cleaning method and system
CN115307559B (en) * 2022-07-08 2023-10-24 国网湖北省电力有限公司荆州供电公司 Target positioning method, remote laser cleaning method and system
CN117381763A (en) * 2023-10-18 2024-01-12 芜湖藦卡机器人科技有限公司 Automatic calibration detection mechanism and detection method for robot tool hand
CN117381763B (en) * 2023-10-18 2024-05-31 芜湖藦卡机器人科技有限公司 Automatic calibration detection mechanism and detection method for robot tool hand
CN117911542A (en) * 2024-03-19 2024-04-19 杭州灵西机器人智能科技有限公司 Calibration plate, calibration plate identification method, system, equipment and medium
CN117911542B (en) * 2024-03-19 2024-06-11 杭州灵西机器人智能科技有限公司 Calibration plate, calibration plate identification method, system, equipment and medium

Also Published As

Publication number Publication date
CN104794704B (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN104794704A (en) Calibration template and template detection method, device and terminal
US9007602B2 (en) Three-dimensional measurement apparatus, three-dimensional measurement method, and computer-readable medium storing control program
CN107920246B (en) The gradient test method and device of camera module
US20130101158A1 (en) Determining dimensions associated with an object
CN104079927B (en) A kind of angle of visual field measurement mechanism
CN102273208A (en) Image processing device, image processing method, and program
CN104052979B (en) For device and the technology of image processing
CN101783018B (en) Method for calibrating camera by utilizing concentric circles
CN107192716A (en) A kind of workpiece, defect quick determination method based on contour feature
US9794528B2 (en) Color measurement and calibration
CN109300104A (en) Angular-point detection method, device
CN107230212B (en) Vision-based mobile phone size measuring method and system
CN103813095B (en) Test chart and its application method
CN108537846B (en) Camera calibration method and device
JP5919212B2 (en) Visual verification support device and control method thereof
CN113838139B (en) Parameter detection method and device of image sensor, electronic equipment and storage medium
CN110035281B (en) Dead pixel detection method and device and electronic equipment
CN104751458A (en) Calibration angle point detection method based on 180-degree rotating operator
CN112556994B (en) Optical information detection method, device and equipment
CN106845314A (en) A kind of method for rapidly positioning of Quick Response Code
JP2005140547A (en) 3-dimensional measuring method, 3-dimensional measuring device and computer program
CN114972531A (en) Calibration board, corner detection method, equipment and readable storage medium
CN115511718A (en) PCB image correction method and device, terminal equipment and storage medium
CN116883515B (en) Optical environment adjusting method and optical calibration device
CN107734324B (en) Method and system for measuring illumination uniformity of flash lamp and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200306

Address after: Jiangyan District of Jiangsu city in Taizhou province 225500 Luo Tong Street West South Central No. 999 (high-tech business center, Jiangyan District)

Patentee after: Jiangsu Yichuan electromechanical Co.,Ltd.

Address before: Room 2401-2416, Zhonggong education building, No. 371-1, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Effective date of registration: 20200306

Address after: Room 2401-2416, Zhonggong education building, No. 371-1, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.