CN102104709B - Method for processing image shot by camera and camera - Google Patents

Method for processing image shot by camera and camera Download PDF

Info

Publication number
CN102104709B
CN102104709B CN 200910202002 CN200910202002A CN102104709B CN 102104709 B CN102104709 B CN 102104709B CN 200910202002 CN200910202002 CN 200910202002 CN 200910202002 A CN200910202002 A CN 200910202002A CN 102104709 B CN102104709 B CN 102104709B
Authority
CN
China
Prior art keywords
light source
color temperature
temperature information
source color
shadow correction
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.)
Active
Application number
CN 200910202002
Other languages
Chinese (zh)
Other versions
CN102104709A (en
Inventor
陈远
安克彬
王森
林福辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN 200910202002 priority Critical patent/CN102104709B/en
Publication of CN102104709A publication Critical patent/CN102104709A/en
Application granted granted Critical
Publication of CN102104709B publication Critical patent/CN102104709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for processing an image shot by a camera and a camera, belonging to an image processing technology. In the invention, the method comprises the following steps: before performing automatic white balance treatment on image information, correcting shadow according to the feature of a lighting source of the last frame so that the shadow correcting and the automatic white balance are an interdependent and continuous iteration process along with the updating of the image of each frame, therefore, the accuracy of the color temperature information of a light source obtained after automatic white balance treatment can be ensured so that the accuracy of correction parameters selected according to the color temperature information is ensured, the effect of shadow correcting of the shot image is greatly improved, and the image processing quality is improved.

Description

The processing method of image shot by camera and camera
Technical field
The present invention relates to image processing techniques, particularly the treatment technology of image shot by camera.
Background technology
In typical camera system, because the vignetting of the optical system that camera lens forms itself, the reasons such as off-axis illumination are so that the edge brightness of camera lens imaging is significantly less than center brightness.More seriously, along with constantly reducing of image sensor pixel, color cross talk is further serious between the different pixels.Along with further the reducing of the length of camera in the application such as similar mobile phone camera, the increasing of the chief ray angle of image border imaging beam has more increased the weight of the color cross talk between pixel herein, so that edge image exists the color response that is different from the center in addition.The interfere type infrared cutoff filter that uses in the imageing sensor is because self characteristic, and the light of different angles incident is had different cut-off wavelength difference, also can bring the color response difference of edge image and center image.Effectively proofread and correct if brightness decline and color response are not changed these two kinds of phenomenons, significantly degrading will appear in the image that obtains.
In camera system in the past, mainly used the method for off-line calibration, on-line correction to solve this problem, that is: at first use the camera to take a pictures over against the standard neutral gray object under the specific color temperature light sources Uniform Illumination; Then by the ratio of edge calculation pixel and center pixel, obtain the relative coefficient that each fringe region pixel need to be proofreaied and correct, and by certain method such as fitting of a polynomial correction coefficient is preserved; When taking, according to diverse location pixel on the original image that obtains, the correction coefficient that extracts preservation is carried out shadow correction to it, the final image (such as patent US20070247672A1, US20070030379A1 and US20080204574) that obtains field of view edge and center intensity and color uniformity.But this method exists some defectives, wherein the most significant shortcoming is at different lighting sources (such as typical D65, D50, CWF, the light sources such as A) under, the correct correction coefficient that imaging system needs is different, simply only uses one group of correction coefficient to carry out image rectification and can't obtain simultaneously good effect under the light source of various different-colours.
Therefore some improved plans are suggested, and their main thought are at first to obtain the correction coefficient that is used for shadow correction of many groups under typical color temperature light sources by similar off-line method, and preserve; Before the image of taking is carried out online shadow correction, first by Automatic white balance algorithm (AutomaticWhite Balance, be called for short " AWB ") whether the lighting source of judging current scene be a certain in the exemplary light sources situation of storing, if it is adopt this group coefficient to proofread and correct, do not belong to any a group of exemplary light sources of storage if judge the light source obtain, then find and directly use with its correction parameter that approaches the most or calculate the correction parameter that makes new advances by interpolating method and proofread and correct (specifically can referring to patent US20090251567A1 and US20080198240A1).This improving one's methods solved the defective that can't proofread and correct all lighting sources that exists in the first method preferably, can in most of the cases obtain good image.
Yet, the present inventor finds, in the above-mentioned improved plan, because constantly dwindling of present image sensor pixel size, the continuous complexity of technique, light is at the oblique incidence effect of imageing sensor and the waveguiding effect of the Multi reflection between wiring layer and diffraction, and the diffusion effect of photoproduction minority carrier between pixel, the asymmetric layout of each color channel pixel and wiring etc. various quadratic effects have strengthened the color cross talk between pixel sharp, even imageing sensor manufacturer is shifted by lenticule, the various optimization means such as distribution that change the injection of pixel alleviate these negative effects, the image that directly obtains from imageing sensor still exists very large color cross talk, these color cross talk under some specific occasion, be enough to have influence on Automatic white balance process in to the accurate judgement of illumination light Source Type, cause and in the selection of image correction parameters, do the selection that makes mistake, thereby cause the degradation of picture quality.
Summary of the invention
The object of the present invention is to provide a kind of processing method and camera of image shot by camera, avoided causing the problem of light source color temperature information that can't the Obtaining Accurate scene because imageing sensor itself has larger color cross talk, thereby guaranteed the accuracy of selected correction parameter for shadow correction.
For solving the problems of the technologies described above, embodiments of the present invention provide a kind of processing method of image shot by camera, comprise following steps:
When camera is in preview mode, the current frame image that obtains by camera lens is carried out shadow correction according to the light source color temperature information of previous frame image first, again the image behind shadow correction being carried out Automatic white balance processes, obtain the light source color temperature information of this frame, and the light source color temperature information that obtains stored, be used for the shadow correction of next frame image;
When camera is in acquisition mode, according to the light source color temperature information of last frame of the preview mode of storage, the final image of taking under the acquisition mode is carried out shadow correction.
Embodiments of the present invention also provide a kind of camera, comprise:
The shadow correction module is used for when camera is in preview mode, and the current frame image that obtains by camera lens is carried out shadow correction according to the light source color temperature information of previous frame image first;
The Automatic white balance processing module is used for that the current frame image after proofreading and correct through the shadow correction module is carried out Automatic white balance and processes, and exports the light source color temperature information of this frame;
Memory module is used for the light source color temperature information of Automatic white balance processing module output is stored;
The shadow correction module also is used for when camera is in acquisition mode, according to the light source color temperature information of the last frame of the preview mode of storage, the final image of taking under the acquisition mode is carried out shadow correction.
Embodiment of the present invention compared with prior art, the main distinction and effect thereof are:
When being in preview mode, the current frame image that obtains by camera lens is carried out shadow correction according to the light source color temperature information of previous frame image first, again the image behind shadow correction is carried out Automatic white balance and process.The light source color temperature information that obtains after the storage Automatic white balance is processed is used for the next frame image is carried out shadow correction.When described camera is in acquisition mode, according to the light source color temperature information of last frame of the preview mode of storage, the final image of taking under the acquisition mode is carried out shadow correction.Because before image information being carried out the Automatic white balance processing, carried out shadow correction according to the lighting source characteristic of previous frame, so that being one, shadow correction and Automatic white balance interdepend, and along with the process of the continuous iteration of renewal of every two field picture, therefore can guarantee the accuracy of the light source color temperature information that obtains after Automatic white balance is processed, thereby guaranteed the accuracy according to the selected correction parameter of this light source color temperature information, greatly improve the shadow correction effect to photographic images, improved the Disposal quality of image.
Further, pre-stored one group of correction parameter that is used for shadow correction, when current frame image is the first two field picture that obtains by camera lens under the preview mode, according to pre-stored correction parameter the first two field picture that obtains by camera lens under the preview mode is carried out shadow correction.Efficiently solve the initialization problem of the first two field picture also being carried out shadow correction, so that the Automatic white balance of the first two field picture is processed the image also be based on behind shadow correction, thereby guaranteed the first two field picture is carried out the accuracy of the light source color temperature information that obtains after Automatic white balance is processed.
Further, pre-stored correction parameter is the correction parameter that is used for shadow correction under the D50 light source, because the correction parameter under the D50 light source is for all being unlikely to cause very large color error in the various light source situations, be one group of correction parameter that various light source scene equalization compromises are processed, therefore can be used as the initial parameter and the acquiescence correction parameter that can't stablize when finding the light source scene information of this iterative process.
Further, before the current frame image that obtains by camera lens is carried out shadow correction according to the light source color temperature information of previous frame image, whether saltus step greater than M time light source scene Recognition has occured in the N frame before judging, if do not have generation greater than the saltus step of M time light source scene Recognition, then according to the light source color temperature information of previous frame image current frame image is carried out shadow correction again, if the saltus step greater than M time light source scene Recognition has occured, then adopt pre-stored one group of correction parameter that is used for shadow correction, current frame image is carried out shadow correction.Effectively avoid the iteration renewal process of shadow correction and Automatic white balance not restrain and be in divergent state (as not stopping saltus step between each light source scene), and then guaranteed the stability of the light source color temperature information that gets access to.
Further, after obtaining the light source color temperature information of present frame, judge whether present frame and previous frame the saltus step of light source scene Recognition has occured, if the saltus step of light source scene Recognition has occured, then temporarily do not upgrade the light source color temperature information of current storage, until when continuously the light source color temperature information that obtains of L frame is light source color temperature information after the saltus step afterwards, be the light source color temperature information after the saltus step again with the light source color temperature information updating of storage, be used for the shadow correction of next frame image.When further having guaranteed the change scene, the change process of the corresponding shadow correction coefficient of light source judged result can be shown reposefully.
Description of drawings
Fig. 1 is the process flow figure according to the image shot by camera of first embodiment of the invention;
Fig. 2 is the processing method schematic diagram according to the image shot by camera of first embodiment of the invention;
Fig. 3 is the camera structure schematic diagram according to four embodiment of the invention.
Embodiment
In the following description, in order to make the reader understand the application better many ins and outs have been proposed.But, persons of ordinary skill in the art may appreciate that even without these ins and outs with based on many variations and the modification of following each execution mode, also can realize each claim of the application technical scheme required for protection.
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing embodiments of the present invention are described in further detail.
First embodiment of the invention relates to a kind of processing method of image shot by camera, and idiographic flow as shown in Figure 1.
In step 110, obtain current frame image.As everyone knows, generally there is preview in a digitized camera and catches two mode of operations.The former offers continuous dynamic video information of user and is used for finding a view the common raising of using lower resolution to be used for demonstration and frame per second; And the latter uses full resolution image and complete image processing algorithm to be used for obtaining and storing the image of final shooting.This step is the step of obtaining current frame image under preview mode by camera lens.
Then, in step 120, according to canned data in the light source color temperature register current frame image is carried out shadow correction.
Specifically, canned data is the light source color temperature information that the previous frame image obtains after Automatic white balance is processed in the light source color temperature register.Can learn to adopt where organize correction parameter current frame image is carried out shadow correction according to light source color temperature information stored in the register.Correction parameters of the corresponding different lighting source types of the many groups of storage in camera how, and it is all same as the prior art how to carry out shadow correction according to the correction parameter of selecting, and does not repeat them here.
Then, in step 130, current frame image is carried out Automatic white balance process, obtain the light source color temperature information of this frame.The concrete mode of carrying out the Automatic white balance processing in this step is same as the prior art, does not repeat them here.Process picture frame for through the picture frame behind the shadow correction owing to carrying out Automatic white balance, therefore can guarantee Automatic white balance process in to the accurate judgement of illumination light Source Type.
Then, in step 140, with the light source color temperature information of light source color temperature information updating for obtaining in step 130 of preserving in the register, the light source color temperature information after the renewal is used for the shadow correction of next frame image.This shows, in the preview mode of operation, shadow correction and Automatic white balance be one and interdepend, and along with the process of the continuous iteration of renewal of every two field picture.
Need to prove, when camera enters preview mode and obtains the first frame image data and begin shadow correction, owing to there not being the light source color temperature information of previous frame in the register, can't judge the light source information of current scene.Therefore, in the present embodiment, pre-stored one group of correction parameter that is used for shadow correction in the light source color temperature register, so that the current frame image that obtains by camera lens when being the first two field picture that obtains by camera lens under the preview mode, can carry out shadow correction to the first two field picture that obtains by camera lens under the preview mode according to pre-stored correction parameter.Efficiently solve the initialization problem of the first two field picture also being carried out shadow correction, so that the Automatic white balance of the first two field picture is processed the image also be based on behind shadow correction, thereby guaranteed the first two field picture is carried out the accuracy of the light source color temperature information that obtains after Automatic white balance is processed.In addition, be appreciated that, in actual applications, can be not yet in camera pre-stored one group of correction parameter that is used for shadow correction, the first two field picture is directly carried out Automatic white balance to be processed, the light source color temperature information of the first frame that obtains after Automatic white balance processed stores in the register, is used for the shadow correction of next frame image.
In the present embodiment, pre-stored correction parameter is the correction parameter that is used for shadow correction under the D50 light source, because the correction parameter under the D50 light source is for all being unlikely to cause very large color error in the various light source situations, be one group of correction parameter that various light source scene equalization compromises are processed, therefore can be used as the initial parameter and the acquiescence correction parameter that can't stablize when finding the light source scene information of this iterative process.In addition, be appreciated that in actual applications, pre-stored correction parameter also can not be the correction parameter that is used for shadow correction under the D50 light source, but other can carry out the correction parameter that the equalization compromise is processed to various light source scenes.
Then, in step 150, judge whether to have entered acquisition mode.If entered acquisition mode, then enter step 160, according to the light source color temperature information of preserving in the register final image of taking under the acquisition mode is carried out shadow correction, after carrying out shadow correction, get back to step 110, obtain the image of next frame; If do not enter acquisition mode, then directly get back to step 110, obtain the image of next frame.
Because before taking a sub-picture, common camera must be introduced into preview mode and find a view, wait for after the user presses shutter key and enter acquisition mode photographing process final image, last sub-picture when generally leaving preview mode with finally catch image identical scene content arranged, therefore can judge and obtain light source information and the light source color temperature information of last sub-picture is passed to acquisition mode by in having the dynamic previewing pattern of higher frame per second, carrying out Automatic white balance, be used for selecting correct correction coefficient to carry out image shadow correction under this light source color temperature.
Be not difficult to find, in the present embodiment, when camera was in preview mode, what at first carry out in the image handling process was shadow correction, carried out and then Automatic white balance.So avoided the wrongheaded situation of light source color temperature to occurring after not processing through the image elder generation Automatic white balance of shadow correction among patent US20090251567A1 and the US20080198240A1.In preview mode, the selection of the correction parameter when each two field picture carries out shadow correction all is to select by the light source color temperature information that reads the previous frame preview image that stores in the light source color temperature register, Automatic white balance then is that each frame is carried out the judgement of light source color temperature information through the image of shadow correction, and the light source color temperature information of judging is constantly updated in the light source color temperature register.When the user presses soon behind the door, camera enters behind the acquisition mode and when beginning shadow correction, obtains light source information by reading the light source color temperature register, selects correct correction parameter to carry out shadow correction, as shown in Figure 2.
Because before image information being carried out the Automatic white balance processing, carried out shadow correction according to the lighting source characteristic of previous frame, so that being one, shadow correction and Automatic white balance interdepend, and along with the process of the continuous iteration of renewal of every two field picture, therefore can guarantee the accuracy of the light source color temperature information that obtains after Automatic white balance is processed, thereby guaranteed the accuracy according to the selected correction parameter of this light source color temperature information, greatly improve the shadow correction effect to photographic images, improved the Disposal quality of image.
It is worth mentioning that, in the present embodiment, be by light source color temperature information is stored in the register, after the light source color temperature information of the present frame that obtains, be the mode of the light source color temperature information of present frame with the content update of storing in the described register, realize the storage of light source color temperature information.But also can store the light source color temperature information that obtains after the Automatic white balance processing by other means in actual applications.
Second embodiment of the invention relates to a kind of processing method of image shot by camera.The second execution mode improves on the basis of the first execution mode, main improvements are: before the current frame image that obtains by camera lens is carried out shadow correction according to the light source color temperature information of previous frame image, whether saltus step greater than M time light source scene Recognition has occured in the N frame before judging, if do not have generation greater than the saltus step of M time light source scene Recognition, then according to the light source color temperature information of previous frame image current frame image carried out shadow correction again.If the saltus step greater than M time light source scene Recognition has occured, then adopt pre-stored one group of correction parameter (such as the correction parameter under the D50 light source) that is used for shadow correction, current frame image is carried out shadow correction.Wherein, M, N are default natural number.
Such as, because the high frame per second in the preview mode, whether the sequence image of pending certain hour by judging front N frame (such as front 10 frames) the repeatedly saltus step of light source scene Recognition has not occured so that can not upgrade immediately the light source color temperature register after initialization the first frame Automatic white balance is finished dealing with etc.Think that if transition times surpasses certain ratio the light source scene differentiates error, adopt the correction coefficient (such as one group of pre-stored correction parameter that is used for shadow correction) of acquiescence to carry out shadow correction, and do not upgrade register.Do not restrain and be in divergent state (as not stopping saltus step between each light source scene) with the iteration renewal process of effectively avoiding shadow correction and Automatic white balance, and then guaranteed the stability of the light source color temperature information that gets access to.
Third embodiment of the invention relates to a kind of processing method of image shot by camera.The 3rd execution mode improves on the basis of the first execution mode, main improvements are: after obtaining the light source color temperature information of present frame, judge whether present frame and previous frame the saltus step of light source scene Recognition has occured, if the saltus step of light source scene Recognition has occured, then temporarily do not upgrade the light source color temperature information of current storage, until when continuously the light source color temperature information that obtains of L frame is light source color temperature information after the saltus step afterwards, be the light source color temperature information after the saltus step again with the light source color temperature information updating of storing, the shadow correction that is used for the next frame image, wherein, L is default natural number.
By after continuous several two field pictures are all stably exported consistent new light source scene determination result after for the first time saltus step of affirmation generation, just register being upgraded, and shadow correction parameter etc. made a change, in the time of can further guaranteeing to change scene, the change process of the corresponding shadow correction coefficient of light source judged result can be shown reposefully.
Need to prove, each method execution mode of the present invention all can be realized in modes such as software, hardware, firmwares.No matter the present invention realizes with software, hardware or firmware mode, instruction code can be stored in the memory of computer-accessible of any type (for example permanent or revisable, volatibility or non-volatile, solid-state or non-solid-state, fixing or removable medium etc.).Equally, memory can for example be programmable logic array (Programmable ArrayLogic, be called for short " PAL "), random access memory (Random Access Memory, be called for short " RAM "), programmable read only memory (Programmable Read Only Memory, be called for short " PROM "), read-only memory (Read-Only Memory, be called for short " ROM "), Electrically Erasable Read Only Memory (Electrically Erasable Programmable ROM, be called for short " EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc is called for short " DVD ") etc.
Four embodiment of the invention relates to a kind of camera.As shown in Figure 3, this camera comprises:
The shadow correction module is used for when camera is in preview mode, and the current frame image that obtains by camera lens is carried out shadow correction according to the light source color temperature information of previous frame image first.
The Automatic white balance processing module is used for that the current frame image after proofreading and correct through the shadow correction module is carried out Automatic white balance and processes, and exports the light source color temperature information of this frame.
Memory module is used for the light source color temperature information of Automatic white balance processing module output is stored.Wherein, memory module is stored the light source color temperature information that obtains in the following manner: light source color temperature information is stored in the register, after the light source color temperature information of the present frame that obtains, be the light source color temperature information of present frame with the content update of storing in the register.
The shadow correction module also is used for when camera is in acquisition mode, according to the light source color temperature information of the last frame of the preview mode of storage, the final image of taking under the acquisition mode is carried out shadow correction.
Need to prove, in the present embodiment, the pre-stored one group of correction parameter that is used for shadow correction of memory module is as being used for the correction parameter of shadow correction under the D50 light source.When the current frame image that obtains by camera lens was the first two field picture that obtains by camera lens under the preview mode, the shadow correction module was carried out shadow correction according to pre-stored correction parameter to the first two field picture that obtains by camera lens under the preview mode.
Be not difficult to find, the first execution mode is the method execution mode corresponding with present embodiment, present embodiment can with the enforcement of working in coordination of the first execution mode.The correlation technique details of mentioning in the first execution mode is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in the present embodiment also can be applicable in the first execution mode.
Fifth embodiment of the invention relates to a kind of camera.The 5th execution mode improves on the basis of the 4th execution mode, main improvements are, the camera of present embodiment also comprises: the first judge module, be used for before the shadow correction module is carried out shadow correction to the current frame image that obtains by camera lens according to the light source color temperature information of previous frame image, whether saltus step greater than M time light source scene Recognition has occured in the N frame before judging, if do not have generation greater than the saltus step of M time light source scene Recognition, then indicate again the shadow correction module to carry out shadow correction according to the light source color temperature information of previous frame image.If the saltus step greater than M time light source scene Recognition has occured, then indicate the shadow correction module to adopt pre-stored one group of correction parameter that is used for shadow correction, current frame image is carried out shadow correction.M, N are default natural number.
Be not difficult to find, the second execution mode is the method execution mode corresponding with present embodiment, present embodiment can with the enforcement of working in coordination of the second execution mode.The correlation technique details of mentioning in the second execution mode is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in the present embodiment also can be applicable in the second execution mode.
Sixth embodiment of the invention relates to a kind of camera.The 6th execution mode improves on the basis of the 4th execution mode, main improvements are, camera in the present embodiment also comprises: the second judge module, be used for after the Automatic white balance processing module obtains the light source color temperature information of present frame, judge whether present frame and previous frame the saltus step of light source scene Recognition has occured, if the saltus step of light source scene Recognition has occured, then indicate memory module temporarily not upgrade the light source color temperature information of current storage, until when continuously the light source color temperature information that obtains of L frame is light source color temperature information after the saltus step afterwards, be the light source color temperature information after the saltus step again with the light source color temperature information updating of storing, the shadow correction that is used for the next frame image, L is default natural number.
Be not difficult to find, the 3rd execution mode is the method execution mode corresponding with present embodiment, present embodiment can with the enforcement of working in coordination of the 3rd execution mode.The correlation technique details of mentioning in the 3rd execution mode is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in the present embodiment also can be applicable in the 3rd execution mode.
Need to prove, each unit of mentioning in each equipment execution mode of the present invention all is logical block, physically, a logical block can be a physical location, it also can be the part of a physical location, can also realize with the combination of a plurality of physical locations, the physics realization mode of these logical blocks itself is not most important, and the combination of the function that these logical blocks realize is the key that just solves technical problem proposed by the invention.In addition, for outstanding innovation part of the present invention, above-mentioned each the equipment execution mode of the present invention will not introduced not too close unit with solving technical problem relation proposed by the invention, and this does not show that there is not other unit in the said equipment execution mode.
Although pass through with reference to some of the preferred embodiment of the invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (12)

1. the processing method of an image shot by camera is characterized in that, comprises following steps:
When described camera is in preview mode, the current frame image that obtains by camera lens is carried out shadow correction according to the light source color temperature information of previous frame image first, again the image behind shadow correction being carried out Automatic white balance processes, obtain the light source color temperature information of this frame, and the light source color temperature information that obtains stored, be used for the shadow correction of next frame image;
When described camera is in acquisition mode, according to the light source color temperature information of last frame of the described preview mode of storage, the final image of taking under the acquisition mode is carried out shadow correction.
2. the processing method of image shot by camera according to claim 1 is characterized in that, also comprises following steps:
Pre-stored one group of correction parameter that is used for shadow correction;
When the described current frame image that obtains by camera lens was the first two field picture that obtains by camera lens under the preview mode, the step that described light source color temperature information according to the previous frame image is carried out shadow correction was:
According to described pre-stored correction parameter the first two field picture that obtains by camera lens under the described preview mode is carried out shadow correction.
3. the processing method of image shot by camera according to claim 2 is characterized in that, described pre-stored correction parameter is the correction parameter that is used for shadow correction under the D50 light source.
4. the processing method of each described image shot by camera in 3 according to claim 1 is characterized in that, also comprises following steps:
Before the current frame image that obtains by camera lens is carried out shadow correction according to the light source color temperature information of previous frame image, whether saltus step greater than M time light source scene Recognition has occured in the N frame before judging, if do not have generation greater than the saltus step of M time light source scene Recognition, then enter again described step of carrying out shadow correction according to the light source color temperature information of previous frame image; If the saltus step greater than M time light source scene Recognition has occured, then adopt pre-stored one group of correction parameter that is used for shadow correction, current frame image is carried out shadow correction; Described M, N are default natural number.
5. the processing method of each described image shot by camera in 3 according to claim 1 is characterized in that, also comprises following steps:
After obtaining the light source color temperature information of present frame, judge whether present frame and previous frame the saltus step of light source scene Recognition has occured, if the saltus step of light source scene Recognition has occured, then temporarily do not upgrade the light source color temperature information of current storage, until when continuously the light source color temperature information that obtains of L frame is light source color temperature information after the saltus step afterwards, be the light source color temperature information after the saltus step again with the light source color temperature information updating of storing, be used for the shadow correction of next frame image, described L is default natural number.
6. the processing method of each described image shot by camera in 3 according to claim 1 is characterized in that, in the following manner the light source color temperature information that obtains is stored:
Light source color temperature information is stored in the register, after the light source color temperature information of the present frame that obtains, is the light source color temperature information of present frame with the content update of storing in the described register.
7. a camera is characterized in that, comprises:
The shadow correction module is used for when described camera is in preview mode, and the current frame image that obtains by camera lens is carried out shadow correction according to the light source color temperature information of previous frame image first;
The Automatic white balance processing module is used for that the current frame image after proofreading and correct through described shadow correction module is carried out Automatic white balance and processes, and exports the light source color temperature information of this frame;
Memory module is used for the light source color temperature information of described Automatic white balance processing module output is stored;
Described shadow correction module also is used for when described camera is in acquisition mode, according to the light source color temperature information of the last frame of the described preview mode of storage, the final image of taking under the acquisition mode is carried out shadow correction.
8. camera according to claim 7 is characterized in that, the pre-stored one group of correction parameter that is used for shadow correction of described memory module;
When the described current frame image that obtains by camera lens was the first two field picture that obtains by camera lens under the preview mode, described shadow correction module was carried out shadow correction according to described pre-stored correction parameter to the first two field picture that obtains by camera lens under the described preview mode.
9. camera according to claim 8 is characterized in that, described pre-stored correction parameter is the correction parameter that is used for shadow correction under the D50 light source.
10. each described camera in 9 according to claim 7, it is characterized in that, also comprise: the first judge module, be used for before described shadow correction module is carried out shadow correction to the current frame image that obtains by camera lens according to the light source color temperature information of previous frame image, whether saltus step greater than M time light source scene Recognition has occured in the N frame before judging, if do not have generation greater than the saltus step of M time light source scene Recognition, then indicate again described shadow correction module to carry out shadow correction according to the light source color temperature information of previous frame image; If the saltus step greater than M time light source scene Recognition has occured, then indicate described shadow correction module to adopt pre-stored one group of correction parameter that is used for shadow correction, current frame image is carried out shadow correction; Described M, N are default natural number.
11. each described camera in 9 according to claim 7, it is characterized in that, also comprise: the second judge module, be used for after described Automatic white balance processing module obtains the light source color temperature information of present frame, judge whether present frame and previous frame the saltus step of light source scene Recognition has occured, if the saltus step of light source scene Recognition has occured, then indicate described memory module temporarily not upgrade the light source color temperature information of current storage, until when continuously the light source color temperature information that obtains of L frame is light source color temperature information after the saltus step afterwards, be the light source color temperature information after the saltus step again with the light source color temperature information updating of storing, the shadow correction that is used for the next frame image, described L is default natural number.
12. camera according to claim 7 is characterized in that, described memory module is stored the light source color temperature information that obtains in the following manner:
Light source color temperature information is stored in the register, after the light source color temperature information of the present frame that obtains, is the light source color temperature information of present frame with the content update of storing in the described register.
CN 200910202002 2009-12-21 2009-12-21 Method for processing image shot by camera and camera Active CN102104709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910202002 CN102104709B (en) 2009-12-21 2009-12-21 Method for processing image shot by camera and camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910202002 CN102104709B (en) 2009-12-21 2009-12-21 Method for processing image shot by camera and camera

Publications (2)

Publication Number Publication Date
CN102104709A CN102104709A (en) 2011-06-22
CN102104709B true CN102104709B (en) 2013-01-30

Family

ID=44157206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910202002 Active CN102104709B (en) 2009-12-21 2009-12-21 Method for processing image shot by camera and camera

Country Status (1)

Country Link
CN (1) CN102104709B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841390B (en) 2014-02-22 2015-06-17 深圳市中兴移动通信有限公司 Shooting method and device
CN105100550A (en) * 2014-04-21 2015-11-25 展讯通信(上海)有限公司 Shadow correction method and device and imaging system
US9186909B1 (en) 2014-09-26 2015-11-17 Intel Corporation Method and system of lens shading color correction using block matching
CN104394392B (en) * 2014-11-14 2016-09-28 广东欧珀移动通信有限公司 A kind of white balance adjusting method, device and terminal
CN107801013B (en) * 2017-10-30 2019-05-17 Oppo广东移动通信有限公司 White balancing treatment method and device, electronic device and computer readable storage medium
CN107888804A (en) * 2017-11-13 2018-04-06 烟台艾睿光电科技有限公司 Thermal imaging system image processing method and device
CN108174173B (en) * 2017-12-25 2020-01-10 Oppo广东移动通信有限公司 Photographing method and apparatus, computer-readable storage medium, and computer device
CN108197560B (en) * 2017-12-28 2022-06-07 努比亚技术有限公司 Face image recognition method, mobile terminal and computer-readable storage medium
CN111757029A (en) * 2018-03-26 2020-10-09 上海小蚁科技有限公司 Shadow correction detection parameter determination method, shadow correction detection device, storage medium and fisheye camera
CN111050158B (en) * 2019-12-24 2021-11-02 惠州市德赛西威智能交通技术研究院有限公司 Camera module correction method and device and storage medium
CN113905218B (en) * 2021-05-25 2022-10-28 荣耀终端有限公司 Color shading correction method, electronic device, chip system and storage medium
CN113711781B (en) * 2021-08-30 2022-11-15 瑞昌市惠农农产品有限公司 Chinese yam storage device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1311111A2 (en) * 2001-11-08 2003-05-14 Fuji Photo Film Co., Ltd. Method and apparatus for correcting white balance, method for correcting density and program recording medium
CN101079954A (en) * 2007-06-26 2007-11-28 北京中星微电子有限公司 Method and device for realizing white balance correction
CN101444083A (en) * 2006-04-06 2009-05-27 德克索实验室 Method of processing a relative illumination phenomenon on a digital image and associated processing system
CN101600121A (en) * 2008-06-03 2009-12-09 亚洲光学股份有限公司 A kind of computational methods of white balance correct value

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1311111A2 (en) * 2001-11-08 2003-05-14 Fuji Photo Film Co., Ltd. Method and apparatus for correcting white balance, method for correcting density and program recording medium
CN101444083A (en) * 2006-04-06 2009-05-27 德克索实验室 Method of processing a relative illumination phenomenon on a digital image and associated processing system
CN101079954A (en) * 2007-06-26 2007-11-28 北京中星微电子有限公司 Method and device for realizing white balance correction
CN101600121A (en) * 2008-06-03 2009-12-09 亚洲光学股份有限公司 A kind of computational methods of white balance correct value

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2006-148881A 2006.06.08

Also Published As

Publication number Publication date
CN102104709A (en) 2011-06-22

Similar Documents

Publication Publication Date Title
CN102104709B (en) Method for processing image shot by camera and camera
US9414052B2 (en) Method of calibrating an image signal processor to overcome lens effects
JP7015374B2 (en) Methods for image processing using dual cameras and mobile terminals
US10298864B2 (en) Mismatched foreign light detection and mitigation in the image fusion of a two-camera system
US20170256036A1 (en) Automatic microlens array artifact correction for light-field images
US8368762B1 (en) Methods and apparatus for camera calibration based on multiview image geometry
CN102823236B (en) Imaging device and image processing method
CN110428366A (en) Image processing method and device, electronic equipment, computer readable storage medium
US10805508B2 (en) Image processing method, and device
TW201724842A (en) Image sensor, pixel information output method of the image sensor, phase focusing method, imaging device, and terminal
US8737755B2 (en) Method for creating high dynamic range image
US20140063288A1 (en) Imaging apparatus, electronic device and method providing exposure compensation
Golish et al. Development of a scalable image formation pipeline for multiscale gigapixel photography
CN108322651A (en) Image pickup method and device, electronic equipment, computer readable storage medium
JP5185253B2 (en) Method for processing relative illuminance phenomenon on digital image and related processing system
CN106603896A (en) Camera module and method of manufacturing the same
CN104125378A (en) Method, lens assembly, camera, system and use for reducing stray light
CN109410152A (en) Imaging method and device, electronic equipment, computer readable storage medium
US11669942B2 (en) Image de-warping system
JP2008289034A (en) Image processor and image processing program
US20110115938A1 (en) Apparatus and method for removing lens distortion and chromatic aberration
CN108881876A (en) The method, apparatus and electronic equipment of white balance processing are carried out to image
CN109040598B (en) Image processing method, image processing device, computer-readable storage medium and electronic equipment
CN107948619B (en) Image processing method, device, computer readable storage medium and mobile terminal
CN109360176A (en) Image processing method, device, electronic equipment and computer readable storage medium

Legal Events

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

Effective date of registration: 20170112

Address after: Room 32, building 3205F, No. 707, Zhang Yang Road, free trade zone,, China (Shanghai)

Patentee after: Xin Xin Finance Leasing Co.,Ltd.

Address before: 201203 Shanghai city Zuchongzhi road Pudong Zhangjiang hi tech park, Spreadtrum Center Building 1, Lane 2288

Patentee before: Spreadtrum Communications (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170707

Address after: 100033 room 2062, Wenstin Executive Apartment, 9 Financial Street, Beijing, Xicheng District

Patentee after: Xin Xin finance leasing (Beijing) Co.,Ltd.

Address before: Room 32, building 707, Zhang Yang Road, China (Shanghai) free trade zone, 3205F

Patentee before: Xin Xin Finance Leasing Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20110622

Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Assignor: Xin Xin finance leasing (Beijing) Co.,Ltd.

Contract record no.: 2018990000163

Denomination of invention: Method for processing image shot by camera and camera

Granted publication date: 20130130

License type: Exclusive License

Record date: 20180626

EE01 Entry into force of recordation of patent licensing contract
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200305

Address after: 201203 Zuchongzhi Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai 2288

Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Address before: 100033 room 2062, Wenstin administrative apartments, 9 Financial Street B, Xicheng District, Beijing.

Patentee before: Xin Xin finance leasing (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200528

Address after: 361012 unit 05, 8 / F, building D, Xiamen international shipping center, No.97 Xiangyu Road, Xiamen area, China (Fujian) free trade zone, Xiamen City, Fujian Province

Patentee after: Xinxin Finance Leasing (Xiamen) Co.,Ltd.

Address before: 201203 Zuchongzhi Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai 2288

Patentee before: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

EC01 Cancellation of recordation of patent licensing contract
EC01 Cancellation of recordation of patent licensing contract

Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Assignor: Xin Xin finance leasing (Beijing) Co.,Ltd.

Contract record no.: 2018990000163

Date of cancellation: 20210301

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20110622

Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Assignor: Xinxin Finance Leasing (Xiamen) Co.,Ltd.

Contract record no.: X2021110000010

Denomination of invention: Image processing method and camera

Granted publication date: 20130130

License type: Exclusive License

Record date: 20210317

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230712

Address after: 201203 Shanghai city Zuchongzhi road Pudong New Area Zhangjiang hi tech park, Spreadtrum Center Building 1, Lane 2288

Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Address before: 361012 unit 05, 8 / F, building D, Xiamen international shipping center, 97 Xiangyu Road, Xiamen area, China (Fujian) pilot Free Trade Zone, Xiamen City, Fujian Province

Patentee before: Xinxin Finance Leasing (Xiamen) Co.,Ltd.