CN109218714A - A kind of automatic correction method for camera lens shade - Google Patents

A kind of automatic correction method for camera lens shade Download PDF

Info

Publication number
CN109218714A
CN109218714A CN201811162478.9A CN201811162478A CN109218714A CN 109218714 A CN109218714 A CN 109218714A CN 201811162478 A CN201811162478 A CN 201811162478A CN 109218714 A CN109218714 A CN 109218714A
Authority
CN
China
Prior art keywords
camera lens
lens shade
gain
automatic correction
correction method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811162478.9A
Other languages
Chinese (zh)
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.)
Tianjin Tiandi Base Industry Technology Co Ltd
Original Assignee
Tianjin Tiandi Base Industry Technology 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 Tianjin Tiandi Base Industry Technology Co Ltd filed Critical Tianjin Tiandi Base Industry Technology Co Ltd
Priority to CN201811162478.9A priority Critical patent/CN109218714A/en
Publication of CN109218714A publication Critical patent/CN109218714A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Abstract

The present invention provides a kind of automatic correction methods for camera lens shade, including step 1: according to parameter setting, adjusting the size of brightness blockette;Step 2: counting the brightness of each blockette, carries out the calculating of luminance gain;Step 3: difference calculating is carried out with adjacent domain, calculates the luminance gain of each pixel;Step 4: configuration file is saved.A kind of automatic correction method for camera lens shade of the present invention, camera lens shade correcting function can be carried out in the production phase, each camera lens is set to have a set of peculiar parameter of oneself, the phenomenon for the imaging effect exception that can be largely introduced to different camera lenses using the same correction file is optimized.

Description

A kind of automatic correction method for camera lens shade
Technical field
The invention belongs to field of video monitoring, more particularly, to a kind of automatic correction method for camera lens shade.
Background technique
In video monitoring, people are higher and higher for the demand of monitoring, are also increasingly stringenter, for monitoring demand not Again it is only that can see image, the readability of image is also had higher requirement, but due to camera lens convex lens Introduced shadow problem becomes an important factor for influence video imaging effect.
In the prior art, it is contemplated that the intrinsic problem of lens imaging, most of situation not will do it camera lens shade Correction;And with regard at last carry out shade correction in the case where, it is contemplated that camera lens shade correction environmental requirement harshness, also only retain One default configuration cannot fundamentally solve the problems, such as camera lens shade, in some instances it may even be possible to can introduce more because of the difference of camera lens Big bright angle problem.
Summary of the invention
In view of this, the present invention is directed to propose a kind of automatic correction method for camera lens shade, it can be in the production phase Camera lens shade correcting function is carried out, so that each camera lens is had a set of peculiar parameter of oneself, largely different camera lenses can be made The phenomenon of the imaging effect exception introduced with the same correction file optimizes.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
A kind of automatic correction method for camera lens shade, comprising:
Step 1: according to parameter setting, the size of brightness blockette is adjusted;
Step 2: counting the brightness of each blockette, carries out the calculating of luminance gain;
Step 3: difference calculating is carried out with adjacent domain, calculates the luminance gain of each pixel;
Step 4: configuration file is saved.
Further, in step 1, the calculation formula of adjustment subregion block size is Rm=log2Rm-1, R0+R1+……Rm= A/2, wherein A is the width of image.
Further, in step 2, the average brightness in m block region is calculated in statistic procedure one, respectively with R0On the basis of Carry out the calculating of luminance gain.
Further, the calculation formula of each pixel intensity gain is in step 3: Gaini=logPosm-Posm-1(Posi- Posm)*(Gainm-Gainm-1)+Gainm-1
Because including many pixels in each region, if all pixels all use same brightness gain values, meeting There are apparent brightness to jump difference.So connecting calculating difference, difference with adjacent domain intermediate point with each regional center point The brightness gain values of intermediate pixel are then influenced according to a certain percentage.
Further, correction table is generated in step 4, realizes the correcting function of control camera lens shade.
Further, configuration file is saved convenient for enabling automatically after starting next time in step 4.
Compared with the existing technology, a kind of automatic correction method for camera lens shade of the present invention has following excellent Gesture:
A kind of automatic correction method for camera lens shade of the present invention, by counting the brightness in each region, into The calculating of row luminance gain can carry out camera lens shade in the production phase then by carrying out the promotion of brightness to marginal position Correcting function makes each camera lens have a set of peculiar parameter of oneself, largely can use the same correction to different camera lenses File and the phenomenon of imaging effect exception introduced optimize.
Detailed description of the invention
The attached drawing for constituting a part of the invention is used to provide further understanding of the present invention, schematic reality of the invention It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.
In the accompanying drawings:
Fig. 1 is a kind of automatic correction method flow chart for camera lens shade described in the embodiment of the present invention.
Specific embodiment
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase Mutually combination.
In the description of the present invention, it is to be understood that, term " center ", " longitudinal direction ", " transverse direction ", "upper", "lower", The orientation or positional relationship of the instructions such as "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside" is It is based on the orientation or positional relationship shown in the drawings, is merely for convenience of description of the present invention and simplification of the description, rather than instruction or dark Show that signified device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as pair Limitation of the invention.In addition, term " first ", " second " etc. are used for description purposes only, it is not understood to indicate or imply phase To importance or implicitly indicate the quantity of indicated technical characteristic.The feature for defining " first ", " second " etc. as a result, can To explicitly or implicitly include one or more of the features.In the description of the present invention, unless otherwise indicated, " multiple " It is meant that two or more.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood by concrete condition Concrete meaning in the present invention.
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
As shown in Figure 1, a kind of automatic correction method for camera lens shade, comprising:
Step 1: according to parameter setting, the size of brightness blockette is adjusted;
Step 2: counting the brightness of each blockette, carries out the calculating of luminance gain;
Step 3: difference calculating is carried out with adjacent domain, calculates the luminance gain of each pixel;
Step 4: configuration file is saved.
As shown in Figure 1, the calculation formula of adjustment subregion block size is R in step 1m=log2Rm-1, R0+R1+……Rm =A/2, wherein A is the width of image.
As shown in Figure 1, calculating the average brightness in m block region in statistic procedure one, respectively in step 2 with R0On the basis of Carry out the calculating of luminance gain.
As shown in Figure 1, the calculation formula of each pixel intensity gain is in step 3: Gaini=logPosm-Posm-1 (Posi-Posm)*(Gainm-Gainm-1)+Gainm-1
Because including many pixels in each region, if all pixels all use same brightness gain values, meeting There are apparent brightness to jump difference.So connecting calculating difference, difference with adjacent domain intermediate point with each regional center point The brightness gain values of intermediate pixel are then influenced according to a certain percentage.
As shown in Figure 1, generating correction table in step 4, the correcting function of control camera lens shade is realized.
As shown in Figure 1, configuration file is saved convenient for enabling automatically after starting next time in step 4.
A kind of automatic correction method for camera lens shade of the present invention is carried out by the brightness in each region of statistics The calculating of luminance gain then by carrying out the promotion of brightness to marginal position, and then improves the effect of camera lens shade.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (6)

1. a kind of automatic correction method for camera lens shade, it is characterised in that: include:
Step 1: according to parameter setting, the size of brightness blockette is adjusted;
Step 2: counting the brightness of each blockette, carries out the calculating of luminance gain;
Step 3: difference calculating is carried out with adjacent domain, calculates the luminance gain of each pixel;
Step 4: configuration file is saved.
2. a kind of automatic correction method for camera lens shade according to claim 1, it is characterised in that: in step 1, The calculation formula for adjusting subregion block size is Rm=log2Rm-1, R0+R1+……Rm=A/2, wherein A is the width of image.
3. a kind of automatic correction method for camera lens shade according to claim 1, it is characterised in that: in step 2, The average brightness in m block region is calculated in statistic procedure one, respectively with R0On the basis of carry out luminance gain calculating.
4. a kind of automatic correction method for camera lens shade according to claim 1, it is characterised in that: every in step 3 The calculation formula of a pixel intensity gain is:
Gaini=logPosm-Posm-1(Posi-Posm)*(Gainm-Gainm-1)+Gainm-1
5. a kind of automatic correction method for camera lens shade according to claim 1, it is characterised in that: raw in step 4 At correction table, the correcting function of control camera lens shade is realized.
6. a kind of automatic correction method for camera lens shade according to claim 1, it is characterised in that: will in step 4 Configuration file saves to enable automatically after starting next time.
CN201811162478.9A 2018-09-30 2018-09-30 A kind of automatic correction method for camera lens shade Pending CN109218714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811162478.9A CN109218714A (en) 2018-09-30 2018-09-30 A kind of automatic correction method for camera lens shade

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811162478.9A CN109218714A (en) 2018-09-30 2018-09-30 A kind of automatic correction method for camera lens shade

Publications (1)

Publication Number Publication Date
CN109218714A true CN109218714A (en) 2019-01-15

Family

ID=64982685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811162478.9A Pending CN109218714A (en) 2018-09-30 2018-09-30 A kind of automatic correction method for camera lens shade

Country Status (1)

Country Link
CN (1) CN109218714A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618569A (en) * 2019-09-23 2019-12-27 天津天地基业科技有限公司 Method for automatic zoom linkage of laser light spots
CN116939374A (en) * 2023-09-11 2023-10-24 归芯科技(深圳)有限公司 Lens shading correction method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070285552A1 (en) * 2006-06-05 2007-12-13 Core Logic Inc. Lens shading correction device and method in image sensor
WO2008026847A1 (en) * 2006-08-28 2008-03-06 Mtekvision Co., Ltd. Image brightness compensating apparatus and method, recorded medium recorded the program performing it
CN106161883A (en) * 2014-09-22 2016-11-23 三星电机株式会社 Camera model and the method for camera lens shadow correction
CN106506905A (en) * 2016-10-20 2017-03-15 湖南国科微电子股份有限公司 Camera lens shadow correction method
CN108307098A (en) * 2018-03-09 2018-07-20 上海小蚁科技有限公司 Fisheye camera shadow correction parameter determination method, bearing calibration and device, storage medium, fisheye camera

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070285552A1 (en) * 2006-06-05 2007-12-13 Core Logic Inc. Lens shading correction device and method in image sensor
WO2008026847A1 (en) * 2006-08-28 2008-03-06 Mtekvision Co., Ltd. Image brightness compensating apparatus and method, recorded medium recorded the program performing it
CN106161883A (en) * 2014-09-22 2016-11-23 三星电机株式会社 Camera model and the method for camera lens shadow correction
CN106506905A (en) * 2016-10-20 2017-03-15 湖南国科微电子股份有限公司 Camera lens shadow correction method
CN108307098A (en) * 2018-03-09 2018-07-20 上海小蚁科技有限公司 Fisheye camera shadow correction parameter determination method, bearing calibration and device, storage medium, fisheye camera

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618569A (en) * 2019-09-23 2019-12-27 天津天地基业科技有限公司 Method for automatic zoom linkage of laser light spots
CN116939374A (en) * 2023-09-11 2023-10-24 归芯科技(深圳)有限公司 Lens shading correction method and device and electronic equipment
CN116939374B (en) * 2023-09-11 2024-03-26 归芯科技(深圳)有限公司 Lens shading correction method and device and electronic equipment

Similar Documents

Publication Publication Date Title
EP3308537B1 (en) Calibration of defective image sensor elements
CN103426403B (en) The correction image-pickup method of LED display, picture display process and bearing calibration
CN104754240A (en) Automatic exposure method and device for CMOS (complementary metal oxide semiconductor) image sensor
CN106470336A (en) Camera color temperature compensating system and intelligent terminal
CN103024279A (en) Camera brightness regulating device and implementation method thereof
CN105185314A (en) Uniformity compensation method for LED display screen
CN103716547A (en) Smart mode photographing method
US7995137B2 (en) Exposure compensation method for digital image
CN104992669A (en) Splicing bright and dark line compensation method and device
KR101941801B1 (en) Image processing method and device for led display screen
CN106210712A (en) A kind of dead pixel points of images detection and processing method
CN103390395A (en) Method and electronic equipment for adjusting brightness of display
CN109218714A (en) A kind of automatic correction method for camera lens shade
CN106550227B (en) A kind of image saturation method of adjustment and device
CN112512184A (en) Color-taking illumination control method, device, system and storage medium
CN106851103A (en) Atomatic focusing method and device based on dual camera system
TWI394443B (en) Image brightness correction method
CN105025283A (en) Novel color saturation adjusting method and system and mobile terminal
CN105611182A (en) Method and device for brightness compensation
CN106097286A (en) A kind of method and device of image procossing
CN105791671B (en) Front camera shooting correction method and device and terminal
CN105631819A (en) Flat-field correction method and system of CCD DR detector
CN112102762A (en) Method and device for identifying abnormal light points of LED screen
US8781226B2 (en) Digital image processing apparatus for recognizing fireworks, method of operating the same, and computer-readable storage medium
JP5585117B2 (en) Multi-display system, multi-display adjustment method and program

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190115