CN107404647A - Camera lens condition detection method and device - Google Patents
Camera lens condition detection method and device Download PDFInfo
- Publication number
- CN107404647A CN107404647A CN201610343365.3A CN201610343365A CN107404647A CN 107404647 A CN107404647 A CN 107404647A CN 201610343365 A CN201610343365 A CN 201610343365A CN 107404647 A CN107404647 A CN 107404647A
- Authority
- CN
- China
- Prior art keywords
- information
- camera lens
- determined
- monochrome
- fisrt feature
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Studio Devices (AREA)
Abstract
The present invention discloses a kind of camera lens condition detection method and device;Method includes:Determine that characteristic information meets the target block of the first preparatory condition from each block of capture images;Obtain the first monochrome information and fisrt feature information of target block;According to the first monochrome information and fisrt feature information, determine whether camera lens is abnormal;Determine to prompt user to be handled during camera lens exception.Using the embodiment of the present invention, the automatic detection to camera lens state is realized, it is determined that prompting user is handled during camera lens exception, improves the quality of shooting photo.
Description
Technical field
The present invention relates to the image processing techniques of communication technical field, more particularly to a kind of camera lens state-detection side
Method and device.
Background technology
With the convenience that the fast development of intelligent terminal and mobile device are taken pictures, mobile phone photograph has become people
Network social intercourse new lover, therefore, the requirement of the camera system of mobile phone to photographic quality also more and more higher, and
The guarantee of photographic quality is except by sensor (sensor) and image processor (ISP, Image Signal
Processor) the debugging optimization of performance is outer, it is also necessary to consider from photographer's angle, such as camera lens surface
Whether without spot, shooting environmental.
In existing technology, camera developer considers the various usage scenarios of user as far as possible, and algorithm is examined
Consider the pattern of full-automatic adaptive scene, most of technology is all based on objective weather, light, environment etc.
The specific aim processing made detection and carried out.Therefore, prior art have ignored the artificial pollution of camera lens and cause
Shooting photographic quality decline.That is, because mobile phone is often hand held, the camera lens of camera is not
Evitable to be influenceed by sweat stain and greasy dirt, camera lens spot often allows the video or photographic quality of shooting
Dimness, texture obscure, if running into lighting source (such as LED advertisement board, car light, street lamp etc.)
Halation can also become big, and at this time the existing full-automatic photographic quality shot of taking pictures is still very poor.
The content of the invention
To solve existing technical problem, the embodiment of the present invention provide a kind of camera lens condition detection method and
Device, the automatic detection to camera lens state can be realized, it is determined that prompting user is handled during camera lens exception,
Improve the quality of shooting photo.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiment of the present invention provides a kind of camera lens condition detection method, method includes:
Determine that characteristic information meets the target block of the first preparatory condition from each block of capture images;
Obtain the first monochrome information and fisrt feature information of the target block;
According to first monochrome information and fisrt feature information, determine whether camera lens is abnormal;
Determine to prompt user to be handled during the camera lens exception.
It is described according to first monochrome information and fisrt feature information in such scheme, determine that camera lens is
No exception, including:
According to the corresponding relation between default monochrome information and characteristic information, it is determined that believing with first brightness
Second feature information corresponding to breath;
Calculate the difference of the fisrt feature information and the second feature information;
Judge whether the difference meets the second preparatory condition;
If, it is determined that the camera lens is abnormal;Otherwise determine that the camera lens is normal.
In such scheme, methods described also includes:
Obtain atmospheric visibility information;
It is described to determine whether camera lens is abnormal according to first monochrome information and fisrt feature information, including:
According to the atmospheric visibility information, first monochrome information and fisrt feature information, it is determined that described
Whether camera lens is abnormal.
In such scheme, it is described determination the camera lens exception when prompting user handled after, the side
Method also includes:
According to the corresponding relation between the monochrome information and nonlinear compensation information obtained in advance, it is determined that with it is described
Nonlinear compensation information corresponding to first monochrome information;
According to the nonlinear compensation information, nonlinear compensation processing is carried out to the capture images.
In such scheme, pair between monochrome information and nonlinear compensation information that the basis obtains in advance
It should be related to, it is determined that nonlinear compensation information corresponding with first monochrome information, including:
According to the corresponding relation between first monochrome information and brightness degree, it is determined that with first brightness
Brightness degree corresponding to information;
According to the corresponding relation between the brightness degree and gamma correction information obtained in advance, it is determined that with it is described bright
Spend gamma correction information corresponding to grade.
Second aspect, the embodiments of the invention provide a kind of camera lens condition checkout gear, device includes:
Detection module, for determining that characteristic information meets the first preparatory condition from each block of capture images
Target block;
Acquisition module, for obtaining the first monochrome information and fisrt feature information of the target block;
Judge module, for according to first monochrome information and fisrt feature information, determining whether camera lens is different
Often;
First respond module, prompting user is handled during for determining the camera lens exception.
In such scheme, the judge module, it is specifically used for:
According to the corresponding relation between default monochrome information and characteristic information, it is determined that believing with first brightness
Second feature information corresponding to breath;
Calculate the difference of the fisrt feature information and the second feature information;
Judge whether the difference meets the second preparatory condition;
If, it is determined that the camera lens is abnormal;Otherwise determine that the camera lens is normal.
In such scheme, the judge module, it is specifically used for:
Obtain atmospheric visibility information;
It is described to determine whether camera lens is abnormal according to first monochrome information and fisrt feature information, including:
According to the atmospheric visibility information, first monochrome information and fisrt feature information, it is determined that described
Whether camera lens is abnormal.
In such scheme, described device also includes:
Second respond module, according to the corresponding pass between the monochrome information obtained in advance and nonlinear compensation information
System, it is determined that nonlinear compensation information corresponding with first monochrome information;
According to the nonlinear compensation information, nonlinear compensation processing is carried out to the capture images.
In such scheme, second respond module, it is specifically used for:
According to the corresponding relation between first monochrome information and brightness degree, it is determined that with first brightness
Brightness degree corresponding to information;
According to the corresponding relation between the brightness degree and gamma correction information obtained in advance, it is determined that with it is described bright
Spend gamma correction information corresponding to grade.
In the embodiment of the present invention, by determining that characteristic information meets that first is pre- from each block of capture images
If the target block of condition, the first monochrome information and fisrt feature information based on target block determine that camera lens is
No exception, it is determined that prompting user is handled during camera lens exception, the automatic detection to camera lens state is realized,
It is determined that prompting user is handled or by the nonlinear compensation to capture images, avoided during camera lens exception
The picture distortion caused by camera lens spot/scratch, in this way, the quality of shooting photo can be improved.
Brief description of the drawings
Fig. 1 is a kind of optional schematic flow sheet of camera lens condition detection method in the embodiment of the present invention;
Fig. 2 is another optional schematic flow sheet of camera lens condition detection method in the embodiment of the present invention;
Fig. 3 is a kind of optional structural representation of camera lens condition checkout gear in the embodiment of the present invention;
Fig. 4 is a kind of optional schematic diagram of LUT table storage formats in the embodiment of the present invention;
Fig. 5 is another optional schematic flow sheet of camera lens condition detection method in the embodiment of the present invention;
Fig. 6 is another optional structural representation of camera lens condition checkout gear in the embodiment of the present invention;
Fig. 7 is another optional structural representation of camera lens condition checkout gear in the embodiment of the present invention.
Embodiment
In various embodiments of the present invention:Camera lens condition checkout gear is true from each block of capture images
Determine the target block that characteristic information meets the first preparatory condition, obtain the first monochrome information and the of target block
One characteristic information, according to the first monochrome information and fisrt feature information, determine whether camera lens is abnormal, determines mirror
Prompting user is handled when abnormal.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear
Chu, it is fully described by.
Embodiment one
A kind of camera lens condition detection method is present embodiments provided, can apply to because user is abnormal to camera lens (such as
Camera lens has the factors such as spot/scratch) ignore and may cause shooting photographic quality decline scene in;This reality
It can be camera lens condition checkout gear to apply an executive agent for camera lens condition detection method, and camera lens state-detection fills
Putting can be implemented using following manner, such as:Implement in mobile terminal, photographing device or monitoring device
The component of camera lens condition checkout gear, it can also be coupled in mobile terminal, photographing device or monitoring device side
Mode implement the component of camera lens condition checkout gear, wherein, photographing device can be for example camera, take the photograph
Camera, DV etc. have/the equipment of camera function of taking pictures.
Fig. 1 is a kind of optional schematic flow sheet of camera lens condition detection method in the embodiment of the present invention;Such as figure
Shown in 1, camera lens condition detection method includes:
Step 101:Determine that characteristic information meets the mesh of the first preparatory condition from each block of capture images
Mark block.
Capture images, such as can be that the camera lenses of the mobile terminals such as mobile phone, notebook, tablet personal computer is captured
Image;Characteristic information for reflection shooting image quality characteristic parameter, for example, it may be acutance (with it is sharp
Spend closely related aberration), brightness and contrast, noise, the embodiment of the present invention is not specific to this to be limited.
The target block of first preparatory condition can be the area of contrast value and sharpness value maximum in the capture images
Block, the size of block is according to the self-defined determination of reference standard image;Can be by frequency to the sharpness value of capture images
Domain scope calculates, and computational methods are according to ISO12233 criterion calculation spatial frequencys, image sharpness MTF50
Or MTF50P spatial frequency represents;Picture contrast can centered on grey scale pixel value and surrounding 4 it is near
Square sum of the difference of adjacent grey scale pixel value, divided by the number of above quadratic term, the embodiment of the present invention to this simultaneously
Do not limit specifically.
Step 102:Obtain the first monochrome information and fisrt feature information of target block.
First monochrome information can be the first brightness degree corresponding to the first brightness value, the first brightness value, this
Embodiment is not specific to this to be limited.
Fisrt feature information can be used for the parameter that picture characteristics is described for acutance, contrast etc. or will
Element, the present embodiment is not specific to this to be limited.
Step 103:According to the first monochrome information and fisrt feature information, determine whether camera lens is abnormal.
A kind of feasible implementation of step 103 includes:According to default monochrome information and characteristic information it
Between corresponding relation, it is determined that second feature information corresponding with the first monochrome information;Calculate fisrt feature information
With the difference of second feature information;Judge whether difference meets the second preparatory condition;If, it is determined that camera lens
It is abnormal;Otherwise determine that camera lens is normal.
Here, camera lens can include extremely:Camera lens have the factors such as spot, camera lens are scraped off, camera lens is blocked/
State;Above-mentioned second preparatory condition can be preset threshold value or difference range.Second feature information can be
Acutance, contrast, the present embodiment is not specific to this to be limited, and determines that second feature information process is:Choose
Sharp-featured object is mark domain picture, obtains sharpness value, contrast of the mark domain picture under different brightness values
Value, brightness value is identified as index, brightness value and sharpness value, the mapping relations of contrast value is established, deposits
Store up as association index table.
Another feasible implementation of step 103 includes:After a kind of above-mentioned feasible implementation also
Including:Obtain atmospheric visibility information;According to atmospheric visibility information, the first monochrome information and fisrt feature
Information, determine whether camera lens is abnormal.
It is above-mentioned according to atmospheric visibility information, the first monochrome information and fisrt feature information, whether determine camera lens
A kind of abnormal feasible implementation includes:Obtain atmospheric visibility information;Determining atmospheric visibility value is
It is no to be higher than preparatory condition;When atmospheric visibility value is higher than three preparatory conditions, camera lens exception is determined.
Above-mentioned 3rd preparatory condition can be preset atmospheric visibility threshold value, current atmospheric visibility with it is preset
The difference range of atmospheric visibility value, the present embodiment are not limited specifically this.Visibility of air information is for example
The haze detector that can be installed by mobile terminal, which detects, to be obtained, and can also be received and serviced by mobile terminal
The atmospheric visibility information acquisition that device is sent, the present embodiment are not limited this.
Step 104:Determine to prompt user to be handled during camera lens exception.
Camera lens condition detection method can be real-time detector lens shape automatically when taking pictures every time in example in real time of the invention
State;Can also preset a doze output, when determining camera lens exception, start doze output, it is determined that
When doze output exceeds preset threshold wake-up value, the function of camera lens state automatic detection is closed.
The embodiment of the present invention is obtained full by the detection of characteristic information in each block to camera lens capture images
The first monochrome information and fisrt feature information of the target block of the first preparatory condition of foot, and according to the first brightness
Information and fisrt feature information, determine whether camera lens is abnormal, determine to prompt user to be handled during camera lens exception,
Avoid because user it is abnormal to camera lens ignore caused by shooting photographic quality decline, in this way, can improve
User shoots the quality of photo.
Embodiment two
The present embodiment is based on embodiment one, can apply to wish whether have without the advance detector lens of user
Spot/scratch, or user be not thorough to camera lens spot/scratch processing, and camera lens condition checkout gear is caught to it automatically
The image correction obtained, improve in the scene for shooting photographic quality.
Detection of the camera lens condition checkout gear to camera lens state can be detected in real time according to user's request or the cycle
Property detection, the present embodiment do not limited this.
Fig. 2 is another optional schematic flow sheet of camera lens condition detection method in the embodiment of the present invention;Figure
After method pair shown in 2 determines that prompting user is handled during camera lens exception, capture images are modified
Implementation process is supplemented, and this method includes:
Step 201:According to the corresponding relation between the monochrome information and nonlinear compensation information obtained in advance,
It is determined that nonlinear compensation information corresponding with the first monochrome information.
The feasible implementation of step 201 can be it is following any one:
Mode 1, according to the corresponding relation between the first monochrome information and brightness degree, it is determined that with the first brightness
Brightness degree corresponding to information;According to the corresponding pass between the brightness degree obtained in advance and gamma correction information
System, it is determined that gamma correction information corresponding with brightness degree.
After determining camera lens exception, detect that user does not respond to extremely to camera lens or camera lens still has exception
When, obtain the first monochrome information and fisrt feature information of target block;According to the first monochrome information, search
Concordance list corresponding to first monochrome information, determine the first gamma school in concordance list corresponding to the first monochrome information
Positive information;Wherein, the first concordance list is used to indicate that predetermined luminance information has with what gamma correction information was established
The association index table of mapping relations;
Mode 2, according to the corresponding relation between the first monochrome information and brightness degree, it is determined that with the first brightness
Brightness degree corresponding to information;According to the corresponding relation between the brightness degree and characteristic information obtained in advance,
It is determined that second feature information corresponding with brightness degree;Calculate the difference of fisrt feature information and second feature information
Value;According to the corresponding relation between the difference and gamma correction information obtained in advance, it is determined that corresponding with difference
Second gamma correction information.
After determining camera lens exception, detect that user does not respond to extremely to camera lens or camera lens still has exception
When, obtain the first monochrome information and fisrt feature information of target block;According to the first monochrome information, it is determined that
Brightness degree corresponding to the monochrome information of target block;According to brightness degree, the is searched corresponding to brightness degree
Two concordance lists, determine the gamma correction information in the second concordance list corresponding to brightness degree;Wherein, the second rope
Draw table and be used for the pass with mapping relations for indicating that different predetermined luminance grades are established with default gamma correction information
Join concordance list;
Mode 3, according to the corresponding relation between the first monochrome information and brightness degree, it is determined that with the first brightness
Brightness degree corresponding to information;According to the corresponding relation between the brightness degree and characteristic information obtained in advance,
It is determined that second feature information corresponding with brightness degree;Calculate the difference of fisrt feature information and second feature information
Value;According to the corresponding relation between the difference and gamma correction information obtained in advance, it is determined that corresponding with difference
Second gamma correction information.
After determining camera lens exception, detect that user does not respond to extremely to camera lens or camera lens still has exception
When, obtain the first monochrome information and fisrt feature information of target block;According to monochrome information, brightness is determined
Brightness degree corresponding to information;According to brightness degree, the 3rd concordance list corresponding to brightness degree is searched, it is determined that
Sharpness value and contrast value in 3rd concordance list corresponding to brightness degree;Wherein, the 3rd concordance list is used to refer to
Show the tool that sharpness value, contrast value and the predetermined luminance grade of different predetermined luminance grade subscript domain pictures are established
There is the association index table of mapping relations;Sharpness value and contrast value are determined from each block of capture images most
Big block is target block, obtains the sharpness value and contrast value of target block, and by the sharp of target block
Angle value and contrast value are matched with the sharpness value in corresponding 3rd concordance list and contrast value, calculate mesh
Mark the sharpness value and contrast value and sharpness value and the difference of contrast value in the 3rd concordance list of block;According to
Difference, the 4th concordance list corresponding to lookup difference, determines the gamma correction in the 4th concordance list corresponding to difference
Information, wherein, the 4th concordance list, which is used to indicating that difference and gamma correction information to establish, has mapping relations
Association index table.
Really usual practice such as can be 3 meters or so ribs of selected distance when it is determined that camera lens is clean to above-mentioned mark domain picture
The clearly demarcated object in angle is shooting condition, and using at different brightnesses, clapping, a series of contrasts are strong, corner angle point
In the scene of the photo of bright object, the selection of brightness can be by adjusting luminance gain, regulation exposure compensating
Obtain, the present embodiment is not specific to this to be limited.
Step 202:According to nonlinear compensation information, nonlinear compensation processing is carried out to capture images.
Nonlinear compensation information can be default gamma value, by carrying out gamma correction compensation to capture images
The difference of color of image caused by camera lens spot/damage.
The camera lens condition detection method of the embodiment of the present invention, camera lens condition checkout gear are bright according to what is obtained in advance
The corresponding relation spent between information and nonlinear compensation information, it is determined that corresponding with the first monochrome information non-linear
Compensated information, according to nonlinear compensation information, carry out nonlinear compensation processing automatic to capture images, avoid
Input picture and the difference of output image color, so as to avoiding because user ignores the inspection to camera lens state
Survey, or camera lens is not wiped clean, or the decline for having photographic quality caused by scratch of camera lens, improve and catch
Obtain picture quality.
Embodiment three
The present embodiment is based on embodiment one, can apply to wish terminal device camera lens have spot or
During damage, user's wiped clean is prompted, and is modified to taking a picture, in the scene for improving photographic quality.
Camera lens condition checkout gear provided by the invention, be a kind of prompting of terminal device camera lens stain and
The system of amendment, it is divided into corresponding nextport hardware component NextPort part and software section.
Hardware components, except the related module of the camera module of existing mobile phone (including camera module,
Image processor, audio, light emitting diode (LCD, Light Emitting Diode) display, storage are single
Member etc.) outside, it is also necessary to increase special modulation transfer functions (MTF, Modulation in the image processor
Transfer Function) computing unit, to facilitate the spatial frequency for calculating correlation, and then to image
Acutance is assessed.Camera module includes camera lens, motor and imaging sensor, image processor be in order to
The image real time transfer to capturing is completed, includes the benefit of camera lens shadow correction (LSC, lens shading)
Repay, colour correction, color conversion, the module such as gamma (gamma) correction.LCD is then in order to which preview is caught
The image frame grasped.Memory cell is then to realize the storage to last photo.
Software section, the camera lens of no pollution, shot under certain distance under (3m or so) different brightness
Typical scene acutance and contrast be organized into table and stored, the scene requirement contrast is strong, and rib
Angle is clearly more demarcated.The table sorted out can be stored according to certain format, as display look-up table (LUT,
Look-Up-Table) use.As long as user in use, holding when mobile phone goes to take a picture that (distance is similarly
3m or so), mobile phone will detect that the region that contrast is higher under current scene automatically, and select the region
By the MTF computing units in graphics processing unit, corresponding sharpness value is obtained, is gone with reference to current brightness
Preprepared LUT is searched, if current acutance or contrast value are less than the certain model of value in LUT
Enclose, it is believed that acutance and contrast decline the prompting for seriously, sending camera lens pollution, remind user's wiped clean.
If user could not wipe in time, software increases contrast to lift vision automatically by modification gamma
Clear sense, while exposure is adjusted to reduce the halation at the light that camera lens spot is brought, to reach amendment spot
Bring the counter productive of photo.
The present embodiment provides a kind of camera lens condition checkout gear, for the spot of camera lens to be detected and reminded,
Referring to Fig. 3, the device includes:
1st, primary processor 301:It is the access points (AP, Access Point) in mobile phone, is applied to
The request of response image processor, while shown to LCD, memory cell data read-write, audio system prompting
Sound is sent in the scene of the corresponding command.
2nd, image processor 302:For by picture signal carry out image color space conversion, color correction,
In the scene of the processing such as gamma correction, noise reduction.
3rd, camera lens and module 303:With with the light of clapped scene is converted into the scene of picture signal.
4th, LCD shows 304:For by the scene of treated data preview.
5th, audio output 305:Sent for the process of taking pictures in the scene of prompt tone.
6th, memory cell 306:For in the scene that is compressed treated data.
MTF computing units, in image processor, naturally it is also possible to which pure software is realized, why is placed on
It is because hardware calculates faster in image processor, it is ensured that real-time.Need in advance in camera lens
On the premise of clean, at different brightnesses, clap that a series of contrasts are strong, the photo of sharp-featured object.
The region comprising the object corner angle calculates MTF in selected photo, obtains MTF50 as sharpness value, according to
Current brightness value, sharpness value, contrast etc. are organized into LUT tables by form below, are stored in memory cell,
For software transfer.LUT table storage formats are as shown in Figure 4:Such as data 1_1 can representative luminance value Lux,
Or the index value of exposure meter, data 1_2 can represent the MTF50 values that MTF computing units are drawn, the number
Drawing for value can try to achieve spatial frequency according to IS012233 by extracting edge and carry out Fourier transformation,
And find out the numerical value at spatial frequency 50;Data 1_3 can be contrast value.It can be represented in LUT tables
The corresponding relation of brightness value and gamma correction;Or represent corresponding with the brightness value sharpness value of brightness value, right
Than the corresponding relation of angle value;Or represent gamma correction and difference (sharpness value of target block, contrast value and
Default sharpness value, the difference of contrast value) corresponding relation, the present embodiment is not specific to this to be limited.
Software processing flow, referring to Fig. 5, the camera lens condition detection method of the present embodiment includes:
Step 501:When using mobile phone, opening camera, alignment surrounding certain distance (such as 3m) or so
Object;
Step 502:At this moment mobile phone meeting automatic detection takes the photograph the region of contrast and acutance maximum in picture, area
The size in domain can be previously set.
Step 503:MTF computing units in following image processor can calculate the clearly demarcated area in edge automatically
The MTF50 values and contrast value at some edge in domain, the calculating of the value can according to ISO12233 standards,
Spatial frequency is calculated by Fourier transformation, and then obtains MTF50.It is corresponding right to obtain simultaneously
Compare angle value.
Step 504:It is contaminated before by the MTF50 values and contrast value that are obtained in above-mentioned steps and not
Camera lens LUT at different brightnesses be compared, judge whether difference is more than certain threshold value, if so, holding
Row step 505;Otherwise step 510 is performed.
Step 505:When the acutance (MTF50) in LUT and contrast value and current MTF50 and
When whether the difference of contrast value is more than certain threshold value, when more than certain threshold value, step 506 is performed, otherwise
Perform step 511.
Step 506:Judge current weather, PM2.5 detectors that can be by mobile phone or real-time connection
The weather forecast of net obtains;When weather is haze, directly skips for the step of prompting and correcting, perform
Step 511, step 507 is otherwise performed.
Step 507:When weather is good, then it can determine whether that camera lens pollutes, audio sends suggestion voice or LCD
Upper ejection signal language;
Step 508:Determine whether user wipes clean, when user wipes but does not wipe clean or does not respond, hold
Row step 509;Otherwise step 511 is performed.
Step 509:At this moment built-in, tried gamma and exposure value can be used, improves photo
Contrast, improve picture quality.
Step 510:Walk common flow of taking pictures.
Step 511:Finally photo is preserved.So far, the software of the prompting of camera lens spot and update the system finishes.
On 509 links, can specifically implement by following scheme, can be by the gained under present intensity
The difference of MTF50 and contrast value and response in LUT is divided into multiple grades, is corresponded under each grade
One group of preprepared gamma, the gamma are arranged from high to low according to the difference of contrast, are often selected
One grade, corresponding one group of gamma, after user selects gamma, LCD meeting live previews, Yong Huxuan
Go out the preferable photo of effect.The adjustment of exposure can be adjusted according to the amended picture brightness changes of gamma
It is whole, after such as selecting a certain grade, picture is found than dark, at this moment suitably appropriate manually can increase light exposure,
Make picture brightness moderate, can also be exposed according to the lamp sources such as car light, street lamp, selection region emphasis to adjust.
The embodiment of the present invention can also be applied in following scenes:
Scene 1, user are on outdoor daytime, clearly demarcated containing corner angle in the picture captured as long as opening camera,
The stronger tree limb of contrast, light pole, electric pole, or guideboard edge etc., it is possible to be using this
System goes to judge whether camera lens is contaminated or do not wipe clean, and does not wipe clean also equally using we if wiped
Method is especially corrected to taking a picture, to ensure shooting effect.
Scene 2, special weather, such as haze weather, can be forecast or mobile phone by network real-time weather
Dust detector, after certain threshold value is reached, camera lens pollution prompting function is closed automatically.In addition,
The scene of dark can not use camera lens pollution to remind the function.
Mobile phone camera camera lens spot update the system is applied equally to camera lens by sharp thing in the embodiment of the present invention
Scratch caused by scraping, scratch equally can also cause photographic quality to decline.It can reach scratch using the system
Prompting and amendment.
User of the embodiment of the present invention can also one, band can be put into the small card of wallet, the card black and white is half-and-half
Segmentation, half is black, and half is white, can be placed in one meter of distant positions of camera during use.Equally can be using this
System reaches the purpose of pollution prompting and amendment.
The embodiment of the present invention is found pre- by obtaining the brightness value of capture images target block according to brightness value
The gamma correction information first set, the regulation to capture images contrast is realized, exposed in combination with adjustment
To reduce the halation at the light that camera lens spot brings, the photographic quality of shooting is improved.
Example IV
Fig. 6 is another optional structural representation of camera lens state detection process device in the embodiment of the present invention;
The camera lens state detection process device that the present embodiment provides, including:
Detection module 601, for determining that characteristic information meets that first is default from each block of capture images
The target block of condition;
Acquisition module 602, for obtaining the first monochrome information and fisrt feature information of target block;
Judge module 603, for according to the first monochrome information and fisrt feature information, determining whether camera lens is different
Often;
First respond module 604, prompting user is handled during for determining camera lens exception.
The embodiment of the present invention, by determining that characteristic information meets that first is default from each block of capture images
The target block of condition, the first monochrome information and fisrt feature information of target block are obtained, it is bright according to first
Information and fisrt feature information are spent, determines whether camera lens is abnormal, determines to prompt at user during camera lens exception
Reason, so as to avoid real-time detection of the user to camera lens state, prevent from causing in camera lens exception captured
Photographic quality declines, and realizes the automatic detection to camera lens state, in this way, the quality of shooting photo can be improved.
On the basis of above-described embodiment, judge module 603, it is specifically used for:According to default monochrome information
Corresponding relation between characteristic information, it is determined that second feature information corresponding with the first monochrome information;Calculate
The difference of fisrt feature information and second feature information;Judge whether difference meets the second preparatory condition;If so,
Then determine that camera lens is abnormal;Otherwise determine that camera lens is normal.
On the basis of above-described embodiment, judge module 603, it is specifically used for:Obtain atmospheric visibility information;
Institute determines whether camera lens is abnormal according to the first monochrome information and fisrt feature information, including:According to air energy
Degree of opinion information, the first monochrome information and fisrt feature information, determine whether camera lens is abnormal.
On the basis of above-described embodiment, Fig. 7 is the another of camera lens condition checkout gear in the embodiment of the present invention
The optional structural representation of kind, the camera lens condition checkout gear shown in Fig. 7 also include detection module 601, obtained
Modulus block 602, judge module 603, the first respond module 604, and these modules also have above-mentioned implementation
Respective action described in example, meanwhile, the camera lens condition checkout gear shown in Fig. 7 also includes:
Second respond module 605, according to pair between the monochrome information and nonlinear compensation information obtained in advance
It should be related to, it is determined that nonlinear compensation information corresponding with the first monochrome information;According to nonlinear compensation information,
Nonlinear compensation processing is carried out to capture images.
On the basis of above-described embodiment, the second respond module 605, it is specifically used for:Believed according to the first brightness
Corresponding relation between breath and brightness degree, it is determined that brightness degree corresponding with the first monochrome information;According to pre-
Corresponding relation between the brightness degree and gamma correction information that first obtain, it is determined that gal corresponding with brightness degree
Horse control information.
In actual applications, detection module 601, acquisition module 602, judge module 603, first respond mould
Block 604, the second respond module 605 can by the central processing unit (CPU) positioned at communicating number processing unit,
Microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA)
Deng realization.
Embodiment five
The present embodiment records a kind of computer-readable medium, can be ROM (for example, read-only storage,
FLASH memory, transfer device etc.), magnetic storage medium (for example, tape, disc driver etc.),
Optical storage medium (for example, CD-ROM, DVD-ROM, paper card, paper tape etc.) and other are known
The program storage of type;Computer executable instructions are stored with computer-readable medium, work as execute instruction
When, cause at least one computing device to include following operation:
Determine that characteristic information meets the target block of the first preparatory condition from each block of capture images;
Obtain the first monochrome information and fisrt feature information of target block;
According to the first monochrome information and fisrt feature information, determine whether camera lens is abnormal;
Determine to prompt user to be handled during camera lens exception.
To sum up, the embodiment of the present invention, determine that feature is believed from each block of capture images by detection module
Breath meets the target block of the first preparatory condition;Acquisition module obtains the first monochrome information and the of target block
One characteristic information;Judge module determines whether camera lens is abnormal according to the first monochrome information and fisrt feature information;
First respond module determines to prompt user to be handled during camera lens exception, due to the automatic detection to camera lens state,
Simultaneously it is determined that prompting user is handled during camera lens exception, avoid user and ignoring the scene of camera lens state
Under shot, improve user shoot photo quality.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use hardware embodiment, software implementation or combine software and
The form of the embodiment of hardware aspect.Moreover, the present invention can use wherein includes calculating in one or more
The computer-usable storage medium of machine usable program code (includes but is not limited to magnetic disk storage and optical storage
Device etc.) on the form of computer program product implemented.
The present invention is produced with reference to method according to embodiments of the present invention, equipment (system) and computer program
The flow chart and/or block diagram of product describes.It should be understood that can by computer program instructions implementation process figure and/
Or each flow and/or square frame and flow and/or square frame in flow chart and/or block diagram in block diagram
Combination.These computer program instructions can be provided to all-purpose computer, special-purpose computer, embedded processing
Machine or the processor of other programmable data processing devices are to produce a machine so that by computer or its
The instruction of the computing device of his programmable data processing device produce for realizing in one flow of flow chart or
The device for the function of being specified in one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices
In the computer-readable memory to work in a specific way so that be stored in the computer-readable memory
Instruction produces the manufacture for including command device, and the command device is realized in one flow of flow chart or multiple streams
The function of being specified in one square frame of journey and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and series of operation steps performed on computer or other programmable devices to produce computer implemented processing,
So as to which the instruction performed on computer or other programmable devices is provided for realizing in one flow of flow chart
Or specified in one square frame of multiple flows and/or block diagram or multiple square frames function the step of.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the protection model of the present invention
Enclose.
Claims (10)
1. a kind of camera lens condition detection method, it is characterised in that methods described includes:
Determine that characteristic information meets the target block of the first preparatory condition from each block of capture images;
Obtain the first monochrome information and fisrt feature information of the target block;
According to first monochrome information and fisrt feature information, determine whether camera lens is abnormal;
Determine to prompt user to be handled during the camera lens exception.
2. according to the method for claim 1, it is characterised in that described according to first monochrome information
And fisrt feature information, determine whether camera lens is abnormal, including:
According to the corresponding relation between default monochrome information and characteristic information, it is determined that believing with first brightness
Second feature information corresponding to breath;
Calculate the difference of the fisrt feature information and the second feature information;
Judge whether the difference meets the second preparatory condition;
If, it is determined that the camera lens is abnormal;Otherwise determine that the camera lens is normal.
3. according to the method for claim 2, it is characterised in that methods described also includes:
Obtain atmospheric visibility information;
It is described to determine whether camera lens is abnormal according to first monochrome information and fisrt feature information, including:
According to the atmospheric visibility information, first monochrome information and fisrt feature information, it is determined that described
Whether camera lens is abnormal.
4. according to the method for claim 1, it is characterised in that carried during the determination camera lens exception
After showing that user is handled, methods described also includes:
According to the corresponding relation between the monochrome information and nonlinear compensation information obtained in advance, it is determined that with it is described
Nonlinear compensation information corresponding to first monochrome information;
According to the nonlinear compensation information, nonlinear compensation processing is carried out to the capture images.
5. according to the method for claim 4, it is characterised in that the brightness letter that the basis obtains in advance
Corresponding relation between breath and nonlinear compensation information, it is determined that corresponding non-linear with first monochrome information
Compensated information, including:
According to the corresponding relation between first monochrome information and brightness degree, it is determined that with first brightness
Brightness degree corresponding to information;
According to the corresponding relation between the brightness degree and gamma correction information obtained in advance, it is determined that with it is described bright
Spend gamma correction information corresponding to grade.
6. a kind of camera lens condition checkout gear, it is characterised in that described device includes:
Detection module, for determining that characteristic information meets the first preparatory condition from each block of capture images
Target block;
Acquisition module, for obtaining the first monochrome information and fisrt feature information of the target block;
Judge module, for according to first monochrome information and fisrt feature information, determining whether camera lens is different
Often;
First respond module, prompting user is handled during for determining the camera lens exception.
7. device according to claim 6, it is characterised in that the judge module, be specifically used for:
According to the corresponding relation between default monochrome information and characteristic information, it is determined that believing with first brightness
Second feature information corresponding to breath;
Calculate the difference of the fisrt feature information and the second feature information;
Judge whether the difference meets the second preparatory condition;
If, it is determined that the camera lens is abnormal;Otherwise determine that the camera lens is normal.
8. device according to claim 7, it is characterised in that the judge module, be specifically used for:
Obtain atmospheric visibility information;
It is described to determine whether camera lens is abnormal according to first monochrome information and fisrt feature information, including:
According to the atmospheric visibility information, first monochrome information and fisrt feature information, it is determined that described
Whether camera lens is abnormal.
9. device according to claim 6, it is characterised in that described device also includes:
Second respond module, according to the corresponding pass between the monochrome information obtained in advance and nonlinear compensation information
System, it is determined that nonlinear compensation information corresponding with first monochrome information;
According to the nonlinear compensation information, nonlinear compensation processing is carried out to the capture images.
10. device according to claim 9, it is characterised in that second respond module, specifically
For:
According to the corresponding relation between first monochrome information and brightness degree, it is determined that with first brightness
Brightness degree corresponding to information;
According to the corresponding relation between the brightness degree and gamma correction information obtained in advance, it is determined that with it is described bright
Spend gamma correction information corresponding to grade.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610343365.3A CN107404647A (en) | 2016-05-20 | 2016-05-20 | Camera lens condition detection method and device |
PCT/CN2016/107732 WO2017197865A1 (en) | 2016-05-20 | 2016-11-29 | Method and apparatus for detecting state of lens |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610343365.3A CN107404647A (en) | 2016-05-20 | 2016-05-20 | Camera lens condition detection method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107404647A true CN107404647A (en) | 2017-11-28 |
Family
ID=60325693
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610343365.3A Withdrawn CN107404647A (en) | 2016-05-20 | 2016-05-20 | Camera lens condition detection method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107404647A (en) |
WO (1) | WO2017197865A1 (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108347601A (en) * | 2018-03-19 | 2018-07-31 | 云丁网络技术(北京)有限公司 | The detection method and relevant device of video shelter |
CN109640075A (en) * | 2018-12-24 | 2019-04-16 | 维沃移动通信有限公司 | A kind of image pick-up detection device, method and mobile terminal |
CN111405177A (en) * | 2020-03-09 | 2020-07-10 | Oppo广东移动通信有限公司 | Image processing method, terminal and computer readable storage medium |
CN111493802A (en) * | 2020-04-24 | 2020-08-07 | 北京凡星光电医疗设备股份有限公司 | Endoscope lens flushing method and device and endoscope |
CN112001271A (en) * | 2020-08-05 | 2020-11-27 | 安徽智星交通科技股份有限公司 | Construction site road cleaning method, device and system |
CN113409271A (en) * | 2021-06-21 | 2021-09-17 | 广州文远知行科技有限公司 | Method, device and equipment for detecting oil stain on lens |
CN113906726A (en) * | 2020-08-17 | 2022-01-07 | 深圳市大疆创新科技有限公司 | Imaging method, imaging device, movable object, and unmanned aerial vehicle |
WO2022088620A1 (en) * | 2020-10-28 | 2022-05-05 | 北京市商汤科技开发有限公司 | State detection method and apparatus for camera lens, device and storage medium |
WO2022198508A1 (en) * | 2021-03-24 | 2022-09-29 | 深圳市大疆创新科技有限公司 | Lens abnormality prompt method and apparatus, movable platform, and readable storage medium |
CN115243038A (en) * | 2022-09-23 | 2022-10-25 | 北京小马易行科技有限公司 | Method for monitoring roadside camera, server and automatic driving system |
WO2023045933A1 (en) * | 2021-09-23 | 2023-03-30 | 北京鹰瞳科技发展股份有限公司 | Fault detection method and apparatus for fundus camera, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120026326A1 (en) * | 2010-07-30 | 2012-02-02 | Hitachi, Ltd. | Surveillance camera system having camera malfunction detection function |
CN103327219A (en) * | 2012-03-21 | 2013-09-25 | 浙江大华技术股份有限公司 | Video image contrast adjustment method and device |
CN104424645A (en) * | 2013-08-30 | 2015-03-18 | 现代摩比斯株式会社 | Image identification device and method of vehicle |
CN104424632A (en) * | 2013-08-23 | 2015-03-18 | 浙江大华技术股份有限公司 | Video contrast abnormity detection method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104424633B (en) * | 2013-08-23 | 2018-01-12 | 浙江大华技术股份有限公司 | A kind of video contrast's method for detecting abnormality and device |
-
2016
- 2016-05-20 CN CN201610343365.3A patent/CN107404647A/en not_active Withdrawn
- 2016-11-29 WO PCT/CN2016/107732 patent/WO2017197865A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120026326A1 (en) * | 2010-07-30 | 2012-02-02 | Hitachi, Ltd. | Surveillance camera system having camera malfunction detection function |
CN103327219A (en) * | 2012-03-21 | 2013-09-25 | 浙江大华技术股份有限公司 | Video image contrast adjustment method and device |
CN104424632A (en) * | 2013-08-23 | 2015-03-18 | 浙江大华技术股份有限公司 | Video contrast abnormity detection method and device |
CN104424645A (en) * | 2013-08-30 | 2015-03-18 | 现代摩比斯株式会社 | Image identification device and method of vehicle |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108347601A (en) * | 2018-03-19 | 2018-07-31 | 云丁网络技术(北京)有限公司 | The detection method and relevant device of video shelter |
CN108347601B (en) * | 2018-03-19 | 2020-06-19 | 云丁网络技术(北京)有限公司 | Video occlusion detection method and related equipment |
CN109640075A (en) * | 2018-12-24 | 2019-04-16 | 维沃移动通信有限公司 | A kind of image pick-up detection device, method and mobile terminal |
CN109640075B (en) * | 2018-12-24 | 2020-10-09 | 维沃移动通信有限公司 | Camera detection device and method and mobile terminal |
CN111405177A (en) * | 2020-03-09 | 2020-07-10 | Oppo广东移动通信有限公司 | Image processing method, terminal and computer readable storage medium |
CN111493802A (en) * | 2020-04-24 | 2020-08-07 | 北京凡星光电医疗设备股份有限公司 | Endoscope lens flushing method and device and endoscope |
CN112001271A (en) * | 2020-08-05 | 2020-11-27 | 安徽智星交通科技股份有限公司 | Construction site road cleaning method, device and system |
CN113906726A (en) * | 2020-08-17 | 2022-01-07 | 深圳市大疆创新科技有限公司 | Imaging method, imaging device, movable object, and unmanned aerial vehicle |
WO2022036504A1 (en) * | 2020-08-17 | 2022-02-24 | 深圳市大疆创新科技有限公司 | Imaging method, imaging apparatus, movable object, and unmanned aerial vehicle |
WO2022088620A1 (en) * | 2020-10-28 | 2022-05-05 | 北京市商汤科技开发有限公司 | State detection method and apparatus for camera lens, device and storage medium |
WO2022198508A1 (en) * | 2021-03-24 | 2022-09-29 | 深圳市大疆创新科技有限公司 | Lens abnormality prompt method and apparatus, movable platform, and readable storage medium |
CN113409271A (en) * | 2021-06-21 | 2021-09-17 | 广州文远知行科技有限公司 | Method, device and equipment for detecting oil stain on lens |
CN113409271B (en) * | 2021-06-21 | 2022-02-11 | 广州文远知行科技有限公司 | Method, device and equipment for detecting oil stain on lens |
WO2023045933A1 (en) * | 2021-09-23 | 2023-03-30 | 北京鹰瞳科技发展股份有限公司 | Fault detection method and apparatus for fundus camera, and storage medium |
CN115243038A (en) * | 2022-09-23 | 2022-10-25 | 北京小马易行科技有限公司 | Method for monitoring roadside camera, server and automatic driving system |
CN115243038B (en) * | 2022-09-23 | 2023-01-24 | 北京小马易行科技有限公司 | Method for monitoring roadside camera, server and automatic driving system |
Also Published As
Publication number | Publication date |
---|---|
WO2017197865A1 (en) | 2017-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107404647A (en) | Camera lens condition detection method and device | |
US10997696B2 (en) | Image processing method, apparatus and device | |
US9852499B2 (en) | Automatic selection of optimum algorithms for high dynamic range image processing based on scene classification | |
Peng et al. | Image haze removal using airlight white correction, local light filter, and aerial perspective prior | |
CN110022469B (en) | Image processing method, device, storage medium and electronic device | |
CN109413336A (en) | Image pickup method, device, electronic equipment and computer readable storage medium | |
CN107277388A (en) | Mobile terminal and its light compensation method | |
JP6559229B2 (en) | Image processing apparatus, imaging apparatus, image processing method, and storage medium storing image processing program of image processing apparatus | |
CN103646392B (en) | Backlighting detecting and equipment | |
CN102404495B (en) | Method for adjusting shooting parameters of digital camera | |
CN108364275B (en) | Image fusion method and device, electronic equipment and medium | |
CN111246092B (en) | Image processing method, device, storage medium and electronic device | |
CN106534677A (en) | Image overexposure optimization method and device | |
CN110349114A (en) | Applied to the image enchancing method of AOI equipment, device and road video monitoring equipment | |
CN113674303B (en) | Image processing method, device, electronic equipment and storage medium | |
US20050206776A1 (en) | Apparatus for digital video processing and method thereof | |
CN110047060B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN106550227B (en) | A kind of image saturation method of adjustment and device | |
CN102724541B (en) | Intelligent diagnosis and recovery method for monitoring images | |
CN118192638A (en) | A UAV control platform capable of three-dimensional holographic inspection | |
CN114821440B (en) | Mobile video stream content identification and analysis method based on deep learning | |
CN116894984B (en) | Image recognition-based access method for home and computer readable storage medium | |
CN110891145B (en) | Method for obtaining image by photographing and electronic equipment | |
CN116721039B (en) | Image preprocessing method applied to automatic optical defect detection | |
KR20150040559A (en) | Apparatus for Improving Image Quality and Computer-Readable Recording Medium with Program Therefor |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20171128 |
|
WW01 | Invention patent application withdrawn after publication |