CN106846395A - Targeted graphical area computation method and system in photo - Google Patents
Targeted graphical area computation method and system in photo Download PDFInfo
- Publication number
- CN106846395A CN106846395A CN201611267235.2A CN201611267235A CN106846395A CN 106846395 A CN106846395 A CN 106846395A CN 201611267235 A CN201611267235 A CN 201611267235A CN 106846395 A CN106846395 A CN 106846395A
- Authority
- CN
- China
- Prior art keywords
- reference picture
- targeted graphical
- target image
- compensation coefficient
- area
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 11
- 238000012937 correction Methods 0.000 claims abstract description 29
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 235000012489 doughnuts Nutrition 0.000 claims description 12
- 239000003086 colorant Substances 0.000 claims description 7
- 238000011084 recovery Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 abstract description 2
- 230000003287 optical effect Effects 0.000 description 3
- 239000002689 soil Substances 0.000 description 3
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002262 irrigation Effects 0.000 description 1
- 238000003973 irrigation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/80—Geometric correction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
The present invention relates to technical field of image processing, object area computation method in a kind of photo, including step are disclosed:S1:Reference picture and target image are gathered respectively by identical acquisition parameters;S2:The reference picture correct and obtains compensation coefficient, and the targeted graphical is corrected by compensation coefficient;S3:The color targeted graphical region different from background colour in target image after identification correction, and calculate the area in the targeted graphical region.The present invention can exactly calculate the area of targeted graphical in photo.
Description
Technical field
Targeted graphical area computation method and it is the present invention relates to technical field of image processing, in more particularly to a kind of photo
System.
Background technology
Lens distortion is actually the general name of the intrinsic perspective distortion of optical lens, namely because what transillumination was caused
Distortion, this distortion is very unfavorable for the image quality of photo, and the purpose photographed after all is, in order to reproduce, rather than to overstate
, but because this is the inherent characteristic (convex lens converge light, concavees lens divergent rays) of lens, cannot eliminate, can only
Improve.Due to this lens distortion, taking the photo (especially edge) for coming can deform.
In agriculture application field, it is often necessary to obtain the area of soil reclaimed water irrigation from the experimental plot photo for shooting, by
The optical axis of camera is in a certain angle with soil plane when shooting, therefore takes the photo for the coming not side of being for square experimental plot
, there is near big and far smaller perspective distortion in shape, if directly calculating the area of targeted graphical in photo, can produce larger error.
The content of the invention
(1) technical problem to be solved
The technical problem to be solved in the present invention is:How the area of in photo targeted graphical is accurately calculated.
(2) technical scheme
In order to solve the above technical problems, the invention provides targeted graphical area computation method in a kind of photo, including step
Suddenly:
S1:Reference picture and target image are gathered respectively by identical acquisition parameters;
S2:The reference picture correct and obtains compensation coefficient, and the targeted graphical is carried out by compensation coefficient
Correction;
S3:The color targeted graphical region different from background colour in target image after identification correction, and calculate the target
The area of graphics field.
Wherein, the reference picture is chequered with black and white doughnut, and step S2 includes:
Plane coordinate system is set up in the reference picture for obtaining, the center of circle as origin (0,0) is set, as center;
By the reference picture of elliptical distortion with origin as the center of circle is reduced into distortionless annular image;
According to same pixel on doughnut before and after conversion, different coordinate values calculate the compensation coefficient in a coordinate system;
In the plane coordinate system, the pixel point coordinates of the target image before correction is changed by compensation coefficient, according to
The target image after pixel generation correction after conversion.
Wherein, also include in the step S3:The retroreflective regions in target image after identification correction, and calculate reflective areas
Domain and the sum of regions of different colours area.
Present invention also offers targeted graphical areal calculation system in a kind of photo, including:
Image capture module, for gathering reference picture and target image respectively by identical acquisition parameters;
Image flame detection module, compensation coefficient is obtained for the reference picture correct, and by compensation coefficient to institute
Targeted graphical is stated to be corrected;
Area calculation module, for the targeted graphical area different from background colour of color in the target image after identification correction
Domain, and calculate the area in the targeted graphical region.
Wherein, the reference picture is chequered with black and white doughnut, and described image rectification module includes:
Coordinate sets up module, for setting up plane coordinate system in the reference picture for obtaining, set the center of circle as origin (0,
0), as center;
Reference picture recovery module, for by the reference picture of elliptical distortion with origin as the center of circle is reduced into distortionless circle
Annular image;
Compensation coefficient computing module, for according to same pixel difference coordinates in a coordinate system on doughnut before and after conversion
Value calculates the compensation coefficient;
Target image recovery module, in the plane coordinate system, the pixel of the target image before correction being sat
Mark is changed by compensation coefficient, according to the target image after the pixel generation correction after conversion.
Wherein, also include:Retroreflective regions identification module, for recognizing the retroreflective regions in the target image after correction, institute
State the sum that area calculation module is additionally operable to calculate retroreflective regions and regions of different colours area.
(3) beneficial effect
The method of the present invention and system carry out the correction of perspective distortion to shooting photo, and the face of targeted graphical is calculated after correction
Product so that the area of targeted graphical is more accurate.
Brief description of the drawings
Fig. 1 is targeted graphical area computation method flow chart in a kind of photo of the invention;
Fig. 2 is reference picture schematic diagram;
Fig. 3 is targeted graphical areal calculation system construction drawing in a kind of photo of the invention.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiment of the invention is described in further detail.Hereinafter implement
Example is not limited to the scope of the present invention for illustrating the present invention.
Present embodiments provide targeted graphical area computation method in a kind of photo, its flow as shown in figure 1, including:
Step S1, reference picture and target image are gathered by identical acquisition parameters respectively.Acquisition parameters include:Shooting angle
Degree, object distance, image distance, focal length and aperture size.
Step S2, to the reference picture correct and obtains compensation coefficient, and by compensation coefficient to the targeted graphical
Corrected.The optical axis of camera is in a certain angle with plane shot during due to shooting, therefore, the photo taken can produce near big remote
Small perspective distortion, wherein, the shape of targeted graphical can also deform, it is therefore desirable to be reduced into the targeted graphical of deformation original
Shape.
Step S3, the color targeted graphical region different from background colour in the target image after identification correction, and calculating should
The area in targeted graphical region.Different colours can be distinguished by setting color threshold, so as to identify the face of targeted graphical
The shape of two dimensional surface is corrected back in color, the region that can be will identify that according to compensation coefficient, so as to the target on being taken
The real area of image corresponding region.
As shown in Fig. 2 reference picture is chequered with black and white doughnut, step S2 includes:
Set up plane coordinate system in the reference picture for obtaining, set the center of circle as origin (0,0), specifically, with origin (0,
0) centered on, four, the upper and lower, left and right point of maximum annulus outer space white region is chosen respectively, and two symmetrical points are tried one's best guarantor
Hold point-blank.It is (x, y) that coordinate value is assigned to the pixel in the range of reference picture, by the region chosen to reference to figure
As dividing four quadrants, to set up plane coordinate system.I.e. in the plane coordinate system, each pixel of reference picture of elliptical distortion
Known to the coordinate of point.
By the reference picture of elliptical distortion with origin as the center of circle is reduced into distortionless annular image.Due to reference picture
Two-dimensional image, it is known that therefore the relativeness between each pixel is fixed, the reference picture of elliptical distortion is with original
Point (can enter line translation) after being reduced into distortionless plane ring shaped image for the center of circle by stretcher strain, and any pixel point is relative
Can be determined by the size positions in chequered with black and white ring with origin (0,0), that is, can determine that the coordinate of any pixel point.
According to same pixel on doughnut before and after conversion, different coordinate values are calculated each pixel in a coordinate system
The relative transformational relation of transverse and longitudinal coordinate value x, y, i.e., described compensation coefficient.Such as transformational relation can be transverse and longitudinal coordinate before and after conversion
Ratio.
In the plane coordinate system, the pixel point coordinates of the target image before correction is changed by compensation coefficient, according to
The target image after pixel generation correction after conversion.
In the present embodiment, correction mode is simple, and computation complexity is low, and reduction is accurate.
For in the application for calculating the area that soil reclaimed water is irrigated, the area irrigated by water can be reflective, therefore in step S3
Also include:The retroreflective regions in target image after identification correction, and calculate the sum of retroreflective regions and regions of different colours area.
Retroreflective regions can determine whether retroreflective regions by photo threshold high.
Present invention also offers targeted graphical areal calculation system in a kind of photo, as shown in figure 3, including:
Image capture module 1, for gathering reference picture and target image respectively by identical acquisition parameters.
Image flame detection module 2, compensation coefficient is obtained for the reference picture correct, and by compensation coefficient to institute
Targeted graphical is stated to be corrected.
Area calculation module 3, for the targeted graphical area different from background colour of color in the target image after identification correction
Domain, and calculate the area in the targeted graphical region.
Wherein, the reference picture is chequered with black and white doughnut, and described image rectification module 2 includes:
Coordinate sets up module 21, for setting up plane coordinate system in the reference picture for obtaining, set the center of circle as origin (0,
0), as center.
Reference picture recovery module 22, for the reference picture of elliptical distortion is distortionless as the center of circle is reduced into origin
Annular image.
Compensation coefficient computing module 23, for difference to be sat in a coordinate system according to same pixel on doughnut before and after conversion
Scale value calculates the compensation coefficient.
Target image recovery module 24, in the plane coordinate system, by the pixel of the target image before correction
Coordinate is changed by compensation coefficient, according to the target image after the pixel generation correction after conversion.
Wherein, also include:Retroreflective regions identification module, for recognizing the retroreflective regions in the target image after correction, institute
State the sum that area calculation module is additionally operable to calculate retroreflective regions and regions of different colours area.
Embodiment of above is merely to illustrate the present invention, and not limitation of the present invention, about the common of technical field
Technical staff, without departing from the spirit and scope of the present invention, can also make a variety of changes and modification, therefore all
Equivalent technical scheme falls within scope of the invention, and scope of patent protection of the invention should be defined by the claims.
Claims (6)
1. targeted graphical area computation method in a kind of photo, it is characterised in that including step:
S1:Reference picture and target image are gathered respectively by identical acquisition parameters;
S2:The reference picture correct and obtains compensation coefficient, and the targeted graphical is corrected by compensation coefficient;
S3:The color targeted graphical region different from background colour in target image after identification correction, and calculate the targeted graphical
The area in region.
2. targeted graphical area computation method in photo according to claim 1, it is characterised in that the reference picture is
Chequered with black and white doughnut, step S2 includes:
Plane coordinate system is set up in the reference picture for obtaining, the center of circle as origin (0,0) is set;
By the reference picture of elliptical distortion with origin as the center of circle is reduced into distortionless annular image;
According to same pixel on doughnut before and after conversion, different coordinate values calculate the compensation coefficient in a coordinate system;
In the plane coordinate system, the pixel point coordinates of the target image before correction is changed by compensation coefficient, according to conversion
The target image after pixel generation correction afterwards.
3. targeted graphical area computation method in photo according to claim 1 and 2, it is characterised in that the step S3
In also include:The retroreflective regions in target image after identification correction, and calculate retroreflective regions and regions of different colours area
With.
4. targeted graphical areal calculation system in a kind of photo, it is characterised in that including:
Image capture module, for gathering reference picture and target image respectively by identical acquisition parameters;
Image flame detection module, compensation coefficient is obtained for the reference picture correct, and by compensation coefficient to the mesh
Shape of marking on a map is corrected;
Area calculation module, for the targeted graphical region different from background colour of color in the target image after identification correction, and
Calculate the area in the targeted graphical region.
5. targeted graphical areal calculation system in photo according to claim 4, it is characterised in that the reference picture is
Chequered with black and white doughnut, described image rectification module includes:
Coordinate sets up module, for setting up plane coordinate system in the reference picture for obtaining, sets the center of circle as origin (0,0), with
Centered on this;
Reference picture recovery module, for by the reference picture of elliptical distortion with origin as the center of circle is reduced into distortionless annular
Image;
Compensation coefficient computing module, based on according to same pixel on doughnut before and after converting in a coordinate system different coordinate values
Calculate the compensation coefficient;
Target image recovery module, in the plane coordinate system, the pixel point coordinates of the target image before correction being pressed
Compensation coefficient is changed, according to the target image after the pixel generation correction after conversion.
6. targeted graphical areal calculation system in the photo according to claim 4 or 5, it is characterised in that also include:It is reflective
Region identification module, for recognizing the retroreflective regions in the target image after correction, the area calculation module is additionally operable to calculate
The sum of retroreflective regions and regions of different colours area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611267235.2A CN106846395B (en) | 2016-12-31 | 2016-12-31 | Method and system for calculating area of target graph in photo |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611267235.2A CN106846395B (en) | 2016-12-31 | 2016-12-31 | Method and system for calculating area of target graph in photo |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106846395A true CN106846395A (en) | 2017-06-13 |
CN106846395B CN106846395B (en) | 2019-12-27 |
Family
ID=59117825
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611267235.2A Active CN106846395B (en) | 2016-12-31 | 2016-12-31 | Method and system for calculating area of target graph in photo |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106846395B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108022217A (en) * | 2017-11-26 | 2018-05-11 | 合肥赛为智能有限公司 | A kind of aerial photographing deformation method of adjustment |
CN110298351A (en) * | 2019-06-21 | 2019-10-01 | 上海邻致科技有限公司 | A kind of method and device of color of image identification storage |
CN112836268A (en) * | 2019-11-25 | 2021-05-25 | 深圳云天励飞技术有限公司 | Pipeline excavating method and related product |
CN113055601A (en) * | 2021-03-30 | 2021-06-29 | Oppo广东移动通信有限公司 | Binocular shooting correction method, binocular shooting correction device and electronic equipment |
CN113516703A (en) * | 2020-10-26 | 2021-10-19 | 阿里巴巴集团控股有限公司 | Camera coverage detection method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383006A (en) * | 2007-09-05 | 2009-03-11 | 清华大学深圳研究生院 | Image pre-processing method of oval correction and circle normalization |
CN101966083A (en) * | 2010-04-08 | 2011-02-09 | 太阳系美容事业有限公司 | Abnormal skin area computing system and computing method |
CN103177250A (en) * | 2011-12-22 | 2013-06-26 | 北大方正集团有限公司 | Method and system for correcting perspective deformation of planar target image |
CN103400131A (en) * | 2013-08-16 | 2013-11-20 | 徐宁 | Correction device and method for image identification |
CN103644865A (en) * | 2013-11-08 | 2014-03-19 | 广东出入境检验检疫局检验检疫技术中心 | Plane area measuring method based on digital image analysis |
CN104994367A (en) * | 2015-06-30 | 2015-10-21 | 华为技术有限公司 | Image correcting method and camera |
-
2016
- 2016-12-31 CN CN201611267235.2A patent/CN106846395B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383006A (en) * | 2007-09-05 | 2009-03-11 | 清华大学深圳研究生院 | Image pre-processing method of oval correction and circle normalization |
CN101966083A (en) * | 2010-04-08 | 2011-02-09 | 太阳系美容事业有限公司 | Abnormal skin area computing system and computing method |
CN103177250A (en) * | 2011-12-22 | 2013-06-26 | 北大方正集团有限公司 | Method and system for correcting perspective deformation of planar target image |
CN103400131A (en) * | 2013-08-16 | 2013-11-20 | 徐宁 | Correction device and method for image identification |
CN103644865A (en) * | 2013-11-08 | 2014-03-19 | 广东出入境检验检疫局检验检疫技术中心 | Plane area measuring method based on digital image analysis |
CN104994367A (en) * | 2015-06-30 | 2015-10-21 | 华为技术有限公司 | Image correcting method and camera |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108022217A (en) * | 2017-11-26 | 2018-05-11 | 合肥赛为智能有限公司 | A kind of aerial photographing deformation method of adjustment |
CN108022217B (en) * | 2017-11-26 | 2021-07-30 | 合肥赛为智能有限公司 | Aerial shooting deformation adjusting method |
CN110298351A (en) * | 2019-06-21 | 2019-10-01 | 上海邻致科技有限公司 | A kind of method and device of color of image identification storage |
CN112836268A (en) * | 2019-11-25 | 2021-05-25 | 深圳云天励飞技术有限公司 | Pipeline excavating method and related product |
CN112836268B (en) * | 2019-11-25 | 2024-06-07 | 深圳云天励飞技术有限公司 | Pipeline excavation method and related products |
CN113516703A (en) * | 2020-10-26 | 2021-10-19 | 阿里巴巴集团控股有限公司 | Camera coverage detection method, device, equipment and storage medium |
CN113055601A (en) * | 2021-03-30 | 2021-06-29 | Oppo广东移动通信有限公司 | Binocular shooting correction method, binocular shooting correction device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106846395B (en) | 2019-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106846395A (en) | Targeted graphical area computation method and system in photo | |
CN110197466B (en) | Wide-angle fisheye image correction method | |
CN107527324B (en) | A kind of pattern distortion antidote of HUD | |
WO2021120406A1 (en) | Infrared and visible light fusion method based on saliency map enhancement | |
CN104331896B (en) | A kind of system calibrating method based on depth information | |
CN108776980A (en) | A kind of scaling method towards lenticule light-field camera | |
CN104657982A (en) | Calibration method for projector | |
CN105957041B (en) | A kind of wide-angle lens infrared image distortion correction method | |
CN102622739B (en) | Image non-uniformity correction method for Bayer filter array color camera | |
KR101053506B1 (en) | Method for adjusting parameters in distortion calibration of image acquired by camera having fish eye lens | |
CN106485751B (en) | Unmanned aerial vehicle photographic imaging and data processing method and system applied to foundation pile detection | |
KR100996897B1 (en) | correction method of Radial Distortion Based on a Line-Fitting | |
CN103150724B (en) | Segmented model-based camera calibration method | |
CN107995424A (en) | Light field total focus image generating method based on depth map | |
CN103886107A (en) | Robot locating and map building system based on ceiling image information | |
CN104331900A (en) | Corner sub-pixel positioning method in CCD (charge coupled device) camera calibration | |
CN104680505A (en) | Panoramic view algorithm for fisheye lens correction | |
CN103854272A (en) | Panorama parking system automatic point matching method | |
CN105374044A (en) | Automatic calibration method of light field camera | |
CN104766276B (en) | A kind of color cast correction based on color space | |
CN103106635B (en) | Digital camouflage information concealing method and device | |
CN109308472B (en) | Three-dimensional sight estimation method based on iris projection matching function | |
CN117522803A (en) | Bridge component accurate positioning method based on binocular vision and target detection | |
CN102013087A (en) | Method for digitalizing cutting template | |
CN109887027A (en) | A kind of method for positioning mobile robot based on image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |