CN107911674A - Image white balance adjustment method and device, electronic equipment, computer-readable recording medium - Google Patents

Image white balance adjustment method and device, electronic equipment, computer-readable recording medium Download PDF

Info

Publication number
CN107911674A
CN107911674A CN201711339892.8A CN201711339892A CN107911674A CN 107911674 A CN107911674 A CN 107911674A CN 201711339892 A CN201711339892 A CN 201711339892A CN 107911674 A CN107911674 A CN 107911674A
Authority
CN
China
Prior art keywords
white balance
image
mode
time period
preset time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711339892.8A
Other languages
Chinese (zh)
Other versions
CN107911674B (en
Inventor
张弓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711339892.8A priority Critical patent/CN107911674B/en
Publication of CN107911674A publication Critical patent/CN107911674A/en
Application granted granted Critical
Publication of CN107911674B publication Critical patent/CN107911674B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control

Abstract

This application involves a kind of image white balance adjustment method and device, electronic equipment, computer-readable recording medium, the instruction for receiving shooting image is inscribed in the first preset time period, response instruction simultaneously carries out white balance processing according to default white balance mode to the image shot, the image after white balance processing is generated, the image after white balance is handled is shown.Default white balance mode is the white balance mode that the optical sieving after being handled in the second preset time period according to white balance obtains, and the second preset time period is before the first preset time period.According to the white balance mode screened in image of the user after being handled according to white balance in the second preset time period, as default white balance mode, then white balance processing is carried out to the image captured by the first time period after the second preset time period using the default white balance mode, so it can realize accurate blank level adjustment effect in the case of some ambient lights are more complicated.

Description

Image white balance adjustment method and device, electronic equipment, computer-readable recording medium
Technical field
This application involves technical field of image processing, more particularly to a kind of image white balance adjustment method and device, electricity Sub- equipment, computer-readable recording medium.
Background technology
Many people can run into the problem of such when taking pictures using electronic equipment:Shot in the room of fluorescent lamp Image can seem greening that shooting the scenery come under tungsten light indoors will be partially yellow, and is photographed in daylight shaded side Photo then somehow or other is partially blue, its reason is that in the setting of white balance.It is important that white balance is that electronic equipment is taken pictures Technology, the color performance of the photo to shooting are most important.As soon as white balance is a very abstract concept, most popular understanding It is to allow white imaging still to be white, if Bai Shibai, the image of other scenery can be closer to the color vision of human eye Custom.Image blank level adjustment is called to the process of Image Adjusting white balance.
The content of the invention
The embodiment of the present application provides a kind of image white balance adjustment method and device, electronic equipment, computer-readable storage Medium, can improve the accuracy that blank level adjustment is carried out to image.
A kind of image white balance adjustment method, including:
The instruction for receiving shooting image is inscribed in the first preset time period;
Response described instruction simultaneously carries out white balance processing according to default white balance mode to the image shot, and generates white flat Image after weighing apparatus processing, the default white balance mode are the image sieve after being handled in the second preset time period according to white balance Obtained white balance mode is selected, second preset time period is before first preset time period;
Image after white balance processing is shown.
A kind of image white balance adjustment device, described device include:
The command reception module of shooting image, the instruction of shooting image is received for being inscribed in the first preset time period;
White balance processing module, for responding described instruction and being carried out according to default white balance mode to the image shot White balance processing, the image after generation white balance processing, the default white balance mode is the root in the second preset time period The white balance mode that optical sieving after being handled according to white balance obtains, second preset time period is in first preset time Before section;
Image display, for the image after white balance processing to be shown.
A kind of electronic equipment, including memory and processor, store computer-readable instruction in the memory, described When instruction is performed by the processor so that the processor performs the step of image white balance adjustment method as described above.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor The step of image white balance adjustment method as described above is realized during row.
Above-mentioned image white balance adjustment method and device, electronic equipment, computer-readable recording medium, when first is default Between section the instruction for receiving shooting image is inscribed, response instruction simultaneously carries out white balance according to default white balance mode to the image shot Processing, the image after generation white balance processing, the image after white balance is handled are shown.Default white balance mode be The white balance mode that optical sieving after being handled according to white balance in second preset time period obtains, the second preset time period is the Before one preset time period.Obtained according to screening in image of the user after being handled according to white balance in the second preset time period White balance mode, as default white balance mode, after then presetting white balance mode to the second preset time period using this Image captured by first time period carries out white balance processing, so can it is more complicated in some ambient lights, electronic equipment is automatic In the case of the white balance mode adjustment effect of recommendation is not very accurate, to the white balance mode selective rules of user Practise, the selection rule is applied mechanically, so as to fulfill accurate blank level adjustment effect.
Brief description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of application, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the application scenario diagram of image white balance adjustment method in one embodiment;
Fig. 2 is the block diagram of the part-structure of electronic equipment in one embodiment;
Fig. 3 is the flow chart of image white balance adjustment method in one embodiment;
Fig. 4 is the flow chart of image white balance adjustment method in another embodiment;
Fig. 5 is that the multiple image after white balance is handled in one embodiment is included in display screen in the form of thumbnail Schematic diagram;
Fig. 6 is the structure diagram of image white balance adjustment device in one embodiment;
Fig. 7 is the structure diagram of image white balance adjustment device in another embodiment
Fig. 8 is the schematic diagram that circuit is shot in one embodiment.
Embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the object, technical solution and advantage of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish first element and another element.Citing comes Say, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action Second client is known as the first client.First client and the second client both clients, but it is not same visitor Family end.
Fig. 1 is the application environment schematic diagram of image white balance adjustment method in one embodiment.As shown in Figure 1, electronics is set Standby 10 can be shot the image shot by camera 102 to reference object 20.Wherein, can be wrapped in camera 102 Include the first camera and second camera.The instruction of shooting image, response are received in the first preset time period inner electronic equipment 10 Instruct and white balance processing carried out to the image shot according to default white balance mode, generate the image after white balance processing, Image after white balance is handled is shown.Default white balance mode be in the second preset time period according to white balance at The white balance mode that optical sieving after reason obtains, the second preset time period is before the first preset time period.
Fig. 2 is the internal structure schematic diagram of electronic equipment in one embodiment.As shown in Fig. 2, the electronic equipment includes leading to Cross processor, memory and the network interface of system bus connection.Wherein, which is used to provide calculating and control ability, Support the operation of whole electronic equipment.Memory is used to store data, program etc., and at least one computer journey is stored on memory Sequence, the computer program can be executed by processor, to realize the image suitable for electronic equipment provided in the embodiment of the present application White balance adjustment method.Memory may include that magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc. are non- Volatile storage medium, or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment In, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system and calculating Machine program.The computer program can be performed by processor, for a kind of realization image that each embodiment is provided below White balance adjustment method.Built-in storage provides cache for the operating system computer program in non-volatile memory medium Running environment.Network interface can be Ethernet card or wireless network card etc., for communicating with exterior electronic equipment.The electricity Sub- equipment can be mobile phone, tablet computer or personal digital assistant or Wearable etc..
In one embodiment, as shown in Figure 3, there is provided a kind of image white balance adjustment method, is applied in this way Illustrated exemplified by electronic equipment in Fig. 2, including:
Step 302, the instruction of receipts shooting image is inscribed in the first preset time period.
First preset time period is the advance period set in the electronic device, in first preset time period Electronic equipment can just be performed carries out white balance processing, generation white balance processing to the image shot according to default white balance mode Image afterwards.
Wherein, the instruction of shooting image can be related touch control operation, the pressing operation of physical button by detecting Or the shooting instruction of the triggering such as voice-controlled operations.Touch control operation can be to touch clicking operation, touch long-press operation, touch and slide Operation, multi-point touch operation etc. operate.Electronic equipment can provide for the shooting push button that is shot of triggering, when detecting to this During the clicking operation of button, the instruction of shooting image is triggered.The also predeterminable shooting for being used to trigger the shooting instruction of electronic equipment Voice messaging.By calling pronunciation receiver, corresponding voice messaging is received, by parsing the voice messaging, when detecting When the voice messaging is matched with the shooting voice messaging, the instruction of the shooting image can trigger.In the first preset time period, electricity Sub- equipment receives the instruction of shooting image.
Step 304, response instructs and carries out white balance processing, generation to the image shot according to default white balance mode Image after white balance processing, default white balance mode are the image sieve after being handled in the second preset time period according to white balance Obtained white balance mode is selected, the second preset time period is before the first preset time period.
In the first preset time period, electronic equipment receives the instruction of shooting image, and response instruction is simultaneously white according to presetting Balanced mode carries out the image shot white balance processing, the image after generation white balance processing.Wherein, white balance mould is preset Formula for user in the second preset time period, have taken image.Electronic equipment is according to a variety of different white balance modes to real-time The each image shot carries out white balance processing respectively, then just obtains multiframe white balance to an image shot Image after processing.Liked in the image after the processing of multiframe white balance corresponding to user a from image shot according to individual An image is filtered out well, is preserved as target image, the image after the processing of other multiframe white balances can be carried out Delete.The white balance effect of the target image for user it is satisfied and favor.User is in the second preset time to each Open the image shot and all carry out above-mentioned screening operation in real time, preserve the corresponding target image of each image.It is pre- to count second If user is screened the target image of preservation and is handled using which kind of white balance mode in the period, and is further calculated The probability that each white balance mode occurs in the target image.The highest white balance mode of probability of occurrence is obtained as default white Balanced mode, which is the most commonly used white balance mode of user in current second preset time period, so It can deduce under the scene of current second preset time period, user most favors the figure after this white balance mode processing Picture.Effect after being handled under the scene for being also likely to be current second preset time period using this white balance mode image Fruit is relatively good.Therefore, it is just default second according to user after having crossed the second preset time period and having entered the first preset time period Period to the selective rules of white balance mode, using the highest white balance mode of this probability of occurrence as default white balance mould Formula, the acquiescence white balance mode of current first preset time period.
White balance processing is carried out to the image shot according to default white balance mode in first time period, generates white balance Image after processing.
To image carry out white balance processing process be:The image shot is made of several pixels, each picture Vegetarian refreshments can be made of multiple Color Channels, and each Color Channel represents a color component.For example, image can be by RGB (three kinds of colors of red, green, blue) triple channel forms or is formed, may be used also by HSV (tone, saturation degree and lightness) triple channel To be made of CMY (blue or green, fuchsin or magenta and yellow three kinds of colors) triple channel.Lead to for each color on each pixel Road, electronic equipment can be modified the color value of corresponding colour developing passage according to the corresponding white balance data of white balance mode. So as to fulfill to the processing of the white balance of image so that revised color value can more reflect the true color of corresponding shooting object It is color.
Second preset time period can be construed to the finish time of the second preset time period before the first preset time period With carving direct neighbor at the beginning of the first preset time period.Can certainly be construed to finish time of the second preset time period with Compartment certain period of time is gone back among being carved at the beginning of first preset time period, is not directly adjacent.Step 306, will Image after white balance processing is shown.
The image that will carry out generating after white balance processing in real time to the image shot according to white balance mode is preset, in electricity Shown on the display screen of sub- equipment, and shown image is preserved.
In the present embodiment, according to being screened in the second preset time period in image of the user after being handled according to white balance The white balance mode arrived, as default white balance mode, then using this preset white balance mode to the second preset time period it Image captured by first time period afterwards carries out white balance processing, so can in some ambient lights more complicated, electronic equipment Automatically in the case of the white balance mode adjustment effect recommended is not very accurate, the white balance mode selective rules of user are carried out Study, applies mechanically the selection rule, so as to fulfill accurate blank level adjustment effect.
In one embodiment, as shown in figure 4, before the operation for receiving shooting image is inscribed in the first preset time period, bag Include:
Step 402, it is inscribed in the second preset time period and over takes the photograph to obtain the first original image.
Second preset time period is before the first preset time period, for example, at the noon 12 of some day:00-12:10, use Family is used electronic equipment and carries out shooting image, it is assumed that the second preset time period can be noon 12:00-12:10, and because Second preset time period before the first preset time period, so the first preset time period can be this noon is and then on the same day 12:11-12:21.It is inscribed in the second preset time period and over takes the photograph to obtain the first original image.For example, it may be at noon 12:00-12:The image that 10 reception users shoot, as the first original image.
Step 404, carry out white balance processing respectively to the first original image according to a variety of white balance modes, generate white balance Multiple image after processing.
White balance processing is carried out respectively to the first original image according to a variety of different white balance modes, is generated at white balance Multiple image after reason.Specifically, a variety of different white balance modes are the pattern with different white balance parameters.For example, A variety of different white balance modes include candle light pattern, incandescent optical mode, daylight mode, fluorescence mode, cloudy pattern, warm fluorescence Pattern, low-light pattern and shadow mode etc..Wherein, candle light pattern is automatic is applicable in of taking pictures under the scene that light is provided by candle Pattern, incandescent optical mode be take pictures under the scene that light is provided by incandescent lamp automatically be applicable in pattern, similarly to above-mentioned several Kind white balance mode is analogized.Under normal circumstances the colour temperature of candle probably 1800K, incandescent lamp colour temperature probably 3000K, The colour temperature that the colour temperature of fine day is about under 5200K, direct sunlight is about 5000K, the colour temperature under the cloudy day probably in 6500- Probably between 9000K-20000K, K refers to kelvin degree for 9000K, the colour temperature in blue sky.Colour temperature is to represent to include in light One measurement unit of color component.Colour temperature numerical value is higher under normal circumstances, and the image of shooting shows red, opposite colour temperature number Value is lower, then the image shot shows blueness.White balance processing is exactly by adjusting the colour temperature numerical value of shooting image with by institute The color white balance adjusting of shooting image is to zone of reasonableness, to be unlikely to take the photo colour cast come.For example, to the first original graph As carrying out handling it by daylight mode, incandescent lamp pattern, cloudy pattern and the shadow mode of colour temperature numerical value relatively respectively Afterwards, the multiple image after 4 kinds of white balances are handled will be generated to same the first original image, is respectively handled by daylight mode Image afterwards, the image after incandescent lamp mode treatment, image after cloudy mode treatment and by shadow mode Image after reason.
Step 406, the target image that user selects according to personal like from the multiple image after white balance processing is received Preserved.
User likes from each corresponding multiple image after white balance is handled of the first original image according to individual An image is filtered out well to be preserved as the corresponding target image of the first original image.Specifically, user browses successively First original image of current shooting passes through the image of different white balance effects, judges or likes according to individual from image, sieve Select user and think that the more accurately image of white balance effect adjustment is preserved as target image.It is further continued for clapping user The next image taken the photograph is handled by different white balance modes, obtains the image of different white balance effects, user according to Individual judges or hobby filters out user and thinks that the more accurately image of white balance effect adjustment is protected as target image Deposit.The image of each shooting is all so operated in the second preset time period.One is obtained to each image Target image just preserves.
Step 408, the probability of occurrence of the corresponding white balance mode of target image is counted.
The white balance mode of all target images is counted in the second preset time period, it is white flat to count each The probability of occurrence of weighing apparatus pattern in the target image.For example, the 12 of the second preset time period day noon:00-12:In 10, altogether Meter has obtained 20 target images.The probability of occurrence for counting daylight mode in the white balance mode of 20 target images is 80%, the probability of occurrence of cloudy pattern is 10%, and the probability of occurrence of shadow mode is 10%.
Step 410, the highest white balance mode of probability of occurrence is obtained, white balance mode is arranged to the first preset time period Interior default white balance mode.
To in the probability of occurrence of each white balance mode counted from target image, it is highest to obtain probability of occurrence White balance mode.Using the white balance mode as the default white balance mode in the first preset time period.First preset time period For the period after the second preset time period, for example, the second preset time period can be noon 12:00-12:10, then One preset time period is noon back to back 12 on the same day:11-12:21.
In the embodiment of the present application, the image shot is handled according to a variety of different white balance modes, after processing Obtain the multiple image of different white balance effects for selection by the user.User is going out target image according to personal like's manual screening Preserved.Different demands of the different user to white balance effect are met, and electronic equipment can also be corrected and carried out automatically in vain Error caused by Balance Treatment.All images shot in second preset time period are all picked out again by above-mentioned processing Target image.The highest white balance mode of probability of occurrence in the first preset time period is counted, using white balance mode as Default white balance mode in one preset time period.So as to realize the higher white balance of the probability for user's manual screening Pattern is applied to next adjacent period.Avoid user to be required for carrying out screening target image manually each time, also at the same time It disclosure satisfy that the personal like of user.
In one embodiment, phase is carved at the beginning of the finish time of the second preset time period and the first preset time period It is adjacent.
Specifically, both the second preset time period, first preset time period are the adjacent period.For example, in some day Noon 12:00-12:10, user is used electronic equipment and carries out shooting image, then defining the second preset time period can be Noon 12:00-12:10, because the first preset time period is after the second preset time period, the first preset time period can be with It is noon back to back 12 on the same day:11-12:21.Certainly, the second preset time period, the first preset time period duration can Then to be set according to whether user's photographed scene and ambient light information occur larger change.For example, it is assumed that user at noon 12:21 Photographed scene and ambient light information when minute do not vary widely, then the first preset time period can be extended to 12: 30 or longer, as long as meeting that the photographed scene of user and ambient light information do not have greatly changed i.e. within this period Can.It is of course also possible to the initial time of the second preset time period is extended forward, for example, can be by the second preset time period Initial time is from noon 12:00 extends to forward noon 11:50, as long as user's photographed scene in this forward extended period And larger change does not occur for ambient light information.
In the present embodiment, when in face of complicated photographed scene, the figure after the automatic white balance mode processing of electronic equipment As that may have certain difference with the desired white balance effect of user.Electronic equipment can be to the white balance mould of user at this time Formula selective rules are learnt, the first preset time period be with the adjacent period after the second preset time period, at the two In the continuous period, photographed scene and ambient light information residing for user generally can be more close, and user is similar at this Selection under photographed scene and ambient light information to white balance mode can also have uniformity.Therefore, a upper period was used The white balance mode that family is filtered out according to personal like is applied to next adjacent period, can thus reduce user's hand The dynamic number for adjusting white balance, while it is also possible that the image after automatic white balance processing is met the needs of users.
In one embodiment, the second preset time period, the first preset time period are same a period of time in adjacent predetermined period Between section.
Specifically, predetermined period can be for the cycle with one day, and the second preset time period, the first preset time period are adjacent The same period in predetermined period.And second preset time period before the first preset time period, therefore, the second preset time Section is the 12 of the previous day:00am-1:00pm, the first preset time period are the 12 of the same day:00am-1:00pm.Using in the previous day 12:00am-1:The default white balance mode that 00pm user's manual screening goes out, to the 12 of the same day:00am-1:Captured by 00pm Image is applied mechanically default white balance mode and is handled.
Specifically, predetermined period can be for the cycle with one week, and the second preset time period, the first preset time period are adjacent The same period in predetermined period.And second preset time period before the first preset time period, therefore, the second preset time Section is the Monday 9 of upper one week:00am-10:00am, the first preset time period are the Monday 9 of this week:00am-10:00am.Using In the Monday 9 of upper one week:00am-10:The default white balance mode that 00am user is filtered out, to the Monday 9 of this week:00am- 10:Image captured by 00am is applied mechanically default white balance mode and is handled.
In the present embodiment, when shooting environmental is more complicated, followed if user behavior is regular, user is previous The residing photographed scene and ambient light information of it some period and the same period on the same day generally can be more close, because This, the default white balance mode gone out with some period user's manual screening of the previous day is to captured by the same period on the same day Image carries out same white balance processing, and obtained performance user equally can be satisfied, and reduces what user manually selected Number, improves the satisfaction of user experience.
In one embodiment, a variety of white balance modes include first kind white balance mode and the second class white balance mode, First kind white balance mode includes incandescent optical mode, daylight mode, fluorescence mode, cloudy pattern, warm fluorescence mode, low-light pattern And shadow mode, the second class white balance mode are by obtained by two or more any mode combinations in first kind white balance mode White balance mode.
Specifically, first kind white balance mode is white balance mode preset in electronic equipment, generally comprises incandescent optical mode Formula, daylight mode, fluorescence mode, cloudy pattern, warm fluorescence mode, low-light pattern and shadow mode etc., further include other certainly Other preset white balance modes in the electronic device, and to the title of above-mentioned white balance mode in different electronic equipments There is certain deviation.Each white balance mode corresponds to one group of white balance parameter.
Specifically, when shooting environmental is more complicated, for example, some in photographed scene is under daylight, also have one It is partially under shade, then the image with two scenes while to being shot in this photographed scene, using day optical mode Formula carries out white balance processing, and the color rendition of solar radiation part is accurate in obtained image, but dash area will It is partially blue, therefore dash area will seem very dark.And handled according to shadow mode, then solar radiation in the image obtained Part is partially yellow, and the color rendition of dash area is accurate.Therefore, can be if expecting the more satisfied image of user New pattern after the white balance parameter of preset daylight mode and shadow mode is average on electronic equipment, puts down in vain as the second class Weighing apparatus pattern.The above-mentioned image with day two scenes of light and shade is carried out at white balance by the second class white balance mode Reason, the white balance effect of gained image will will connect than the white balance effect of the image handled by daylight mode or shadow mode Near-nature forest is a bit.
In the present embodiment, white balance mode preset in electronic equipment add and perfect, enriched electronics The white balance effect that equipment obtains after handling image, has provided more more accurately selections to the user.
In one embodiment, the highest white balance mode of probability of occurrence is being obtained, white balance mode is arranged to first After default white balance mode in preset time period, including:
The first original image is obtained, the white balance mode of the corresponding target image of the first original image is default white balance mould Formula;
The ambient light information of first original image is identified, obtains the ambient light information of the first original image;
The ambient light information progress of ambient light information and the first original image to the second original image of shooting gained Match somebody with somebody, when matching degree reaches given threshold, then white balance processing is carried out using default white balance mode to the second original image, will Image after white balance processing is shown.
Specifically, it is highest white that probability of occurrence has been filtered out in user's target image all out of second preset time period Balanced mode, which is set as after the acquiescence white balance mode of the first preset time period.From all targets One or more target image is obtained in image, which presets at white balance mode for the process that user's manual screening goes out Manage the image obtained afterwards.Shooting for the corresponding most original of the target image is further got further according to the target image to come The image handled without white balance, using the image as the first original image.To the ambient light information of the first original image into Row identification, the parameter that can quantify of ambient light information include:Illumination, brightness, colour temperature and colour rendering index, naturally it is also possible to include Other parameters quantified to ambient light information.
Wherein, illumination refers to intensity of illumination, refers to the luminous flux for receiving visible ray on unit area, for indicating illumination Power and the illuminated degree of body surface area amount, unit lux (Lux or Lx).Brightness refers to illuminator (refractive body) table Face shines the physical quantity of (reflective) power, and the unit of brightness is candela/square metre (cd/m2), brightness is intensity of the people to light Impression, it is a subjective amount.Colour temperature is a measurement unit for representing to include color component in light.Light source is to object Coloration ability be known as colour rendering, be by object appearance face under the reference with same colour temperature or reference light source (incandescent lamp draws light) The comparison of color.The colour rendering index of sunlight is defined as 100, and the colour rendering index of incandescent lamp is about 97 very close daylight.
Further, after identification has obtained the ambient light information of the first original image, by the ambient light of the first original image Information carries out record preservation.Specifically, by the concrete numerical value of the illumination of the first original image, brightness, colour temperature and colour rendering index into Row preserves.When carrying out shooting image afterwards, the ambient light of the second original image and the first original image to shooting gained Information is matched.When matching degree has reached given threshold, then illustrate the ambient light information of the first original image and second original The ambient light information of image is more approximate, you can with original to second using the corresponding default white balance mode of the first original image Image is handled, and can thus obtain the satisfied image of user.Given threshold, can be defined as the every of ambient light information The matching degree of one parameter all reached 80% and more than.It is of course also possible to other numbers are according to circumstances arranged to given threshold Value.
In one embodiment, the mesh that user selects according to personal like from the multiple image after white balance processing is received Logo image is preserved, including:
Multiple image after white balance is handled is shown on a display screen in the form of thumbnail;
Receive clicking operation of the user to thumbnail;
It will click on the corresponding thumbnail amplification of operation to be shown, so that user checks the corresponding image of thumbnail Selection;
User is received to be preserved as target image according to the image that personal like selects.
Specifically, to the first original image of shooting gained respectively by a variety of white balance modes (such as a variety of white balances Pattern includes four kinds of colour temperature numerical value daylight mode relatively, incandescent lamp pattern, cloudy pattern and shadow mode patterns) carry out After processing, the multiple image after 4 kinds of white balances are handled will be generated to same the first original image, respectively by day optical mode A images after formula processing, the B images after incandescent lamp mode treatment, the C images after cloudy mode treatment and process are cloudy D images after shadow mode treatment.As shown in figure 5, A images, B images, C images and D images are shown in the form of thumbnail respectively Show on a display screen.User clicks on any one hypertonic sketch map, then the thumbnail clicked on will be amplified to whole display screen, so as to User carries out thumbnail to check selection.Image of the user after to the above-mentioned processing by a variety of white balance modes is checked Afterwards, user is therefrom selected according to personal like and thinks that white balance effect best suits the image of personal like as target image Preserved.
In a specific embodiment, there is provided a kind of image white balance adjustment method, in this way applied in Fig. 2 Illustrated exemplified by electronic equipment, be specially:
First, user using electronic equipment some day the second preset time period:Noon 12:00-12:10 are clapped According to, shoot first original image after, this image can be put down in vain respectively by a variety of different white balance modes Weighing apparatus processing, the multiple image after generation white balance processing.User filters out one from these multiple images, according to personal like Image is preserved as the corresponding target image of the first original image.Then it is further continued for shooting next image, under One image carries out above-mentioned same operation, and an image is filtered out as the corresponding target image of the image according to personal like Preserved.
Further, in the second preset time period i.e. the 12 of certain day noon:00-12:In 10,20 target figures have been obtained altogether Picture.The probability of occurrence for counting daylight mode in the white balance mode of 20 target images is 80%, and the appearance of cloudy pattern is general Rate is 10%, and the probability of occurrence of shadow mode is 10%.It can be seen that the probability of occurrence highest of daylight mode, then by daylight Pattern is as the default white balance mode in the first preset time period.First preset time period for this on the same day noon it is back to back 12:11-12:21.
Further, in the first preset time period:The 12 of noon on the same day:11-12:21, user is carried out using electronic equipment Take pictures, then handled directly to the image shot according to default white balance mode i.e. daylight mode can obtain it is final white Image shows after Balance Treatment to user and preserve.
In one embodiment, as shown in Figure 6, there is provided a kind of image white balance adjustment device 600, including:Shooting figure Command reception module 601, white balance processing module 602 and the image display 603 of picture.Wherein,
The command reception module 601 of shooting image, the instruction of shooting image is received for being inscribed in the first preset time period.
White balance processing module 602, for responding instruction and being carried out according to default white balance mode to the image shot White balance processing, the image after generation white balance processing, it is according to white flat in the second preset time period to preset white balance mode The white balance mode that optical sieving after weighing apparatus processing obtains, the second preset time period is before the first preset time period.
Image display 603, is shown for the image after white balance is handled.
In one embodiment, as shown in Figure 7, there is provided a kind of image white balance adjustment device 600, further includes:First Original image taking module 604, a variety of white balance mode processing modules 605, target image selection module 606, white balance mode Probability of occurrence statistical module 607 and default white balance mode acquisition module 608.Wherein,
First original image taking module 604, over takes the photograph to obtain the first original graph for being inscribed in the second preset time period Picture.
A variety of white balance mode processing modules 605, for according to a variety of white balance modes to the first original image respectively into The processing of row white balance, the multiple image after generation white balance processing.
Target image selection module 606, for receive user according to personal like from white balance processing after multiple image The target image of middle selection is preserved.
The probability of occurrence statistical module 607 of white balance mode, for counting going out for the corresponding white balance mode of target image Existing probability.
Default white balance mode acquisition module 608, for obtaining the highest white balance mode of probability of occurrence, by white balance mould Formula is arranged to the default white balance mode in the first preset time period.
In one embodiment, the second preset time period, the first preset time period are same a period of time in adjacent predetermined period Between section.
In one embodiment, a variety of white balance modes include incandescent optical mode, daylight mode, fluorescence mode, cloudy mould White balance mode obtained by formula, warm fluorescence mode, low-light pattern, shadow mode and two or more above-mentioned any mode combinations.
In one embodiment, there is provided a kind of image white balance adjustment device, further includes:
First original image acquisition module, for obtaining the first original image, the corresponding target image of the first original image White balance mode be default white balance mode.
Ambient light information identification module, for the ambient light information of the first original image to be identified, it is former to obtain first The ambient light information of beginning image.
Ambient light information matches and white balance processing module, and the ambient light for the second original image to shooting gained is believed Breath is matched with the ambient light information of the first original image, when matching degree reaches given threshold, then to the second original image White balance processing is carried out using default white balance mode, the image after white balance is handled is shown.
In one embodiment, target image selection module is additionally operable to the multiple image after white balance is handled with thumbnail Form show on a display screen;Receive clicking operation of the user to thumbnail;Will click on the corresponding thumbnail of operation amplify into Row display, so that user carries out checking selection to the corresponding image of thumbnail;Receive the image that user selects according to personal like Preserved as target image.
The division of modules is only used for for example, in other embodiments in above-mentioned image white balance adjustment device, Image white balance adjustment device can be divided into different modules, to complete above-mentioned image white balance adjustment device as required All or part of function.
A kind of computer program product for including instruction, when run on a computer so that computer performs above-mentioned Image white balance adjustment method.
The embodiment of the present application provides a kind of electronic equipment, including memory, and processor and storage are on a memory and can The computer program run on a processor, processor realize the image that the various embodiments described above are provided when performing computer program The step of white balance adjustment method.
The embodiment of the present application additionally provides a kind of computer-readable recording medium.Computer program is stored thereon with, is calculated Machine program realizes the step of image white balance adjustment method that the various embodiments described above are provided when being executed by processor.
The embodiment of the present application also provides a kind of electronic equipment.Above-mentioned electronic equipment includes shooting circuit, and shooting circuit can To be realized using hardware and or software component, it may include define ISP (Image Signal Processing, at picture signal Reason) pipeline various processing units.Fig. 8 is the schematic diagram that circuit is shot in one embodiment.As shown in figure 8, for purposes of illustration only, Various aspects with the relevant technique for taking of the embodiment of the present application are only shown.
As shown in figure 8, shooting circuit includes ISP processors 840 and control logic device 850.The figure that imaging device 810 is caught As data are handled by ISP processors 840 first, ISP processors 840 analyze view data can be used for determining to catch And/or the image statistics of one or more control parameters of imaging device 810.Imaging device 810 may include there is one Or the camera of multiple lens 812 and imaging sensor 814.Imaging sensor 814 may include colour filter array (such as Bayer Filter), imaging sensor 814 can obtain the luminous intensity and wavelength information caught with each imaging pixel of imaging sensor 814, And provide the one group of raw image data that can be handled by ISP processors 840.Sensor 820 (such as gyroscope) can be based on sensor The parameter (such as stabilization parameter) of the shooting of collection is supplied to ISP processors 840 by 820 interface types.820 interface of sensor can be with Utilize SMIA (Standard Mobile Imaging Architecture, Standard Mobile Imager framework) interface, other serial Or the combination of parallel camera interface or above-mentioned interface.
In addition, raw image data can be also sent to sensor 820 by imaging sensor 814, sensor 820 can be based on passing 820 interface type of sensor is supplied to ISP processors 840, or sensor 820 to deposit raw image data raw image data Store up in video memory 830.
ISP processors 840 handle raw image data pixel by pixel in various formats.For example, each image pixel can Bit depth with 8,10,12 or 14 bits, ISP processors 840 can carry out raw image data one or more shooting behaviour Make, statistical information of the collection on view data.Wherein, shooting operation can be carried out by identical or different bit depth precision.
ISP processors 840 can also receive view data from video memory 830.For example, 820 interface of sensor will be original View data is sent to video memory 830, and the raw image data in video memory 830 is available to ISP processors 840 It is for processing.Video memory 830 can be independent special in the part of storage arrangement, storage device or electronic equipment With memory, and it may include DMA (Direct Memory Access, direct direct memory access (DMA)) feature.
When receiving from 814 interface of imaging sensor or from 820 interface of sensor or from video memory 830 During raw image data, ISP processors 840 can carry out one or more shooting operations, such as time-domain filtering.Picture number after processing According to can be transmitted to video memory 830, to carry out other processing before shown.ISP processors 840 can also be from image Memory 830 receives processing data, and processing data are carried out with the picture number in original domain and in RGB and YCbCr color spaces According to processing.View data after processing may be output to display 880, so that user watches and/or by graphics engine or GPU (Graphics Processing Unit, graphics processor) is further handled.In addition, the output of ISP processors 840 can also be sent out Video memory 830 is given, and display 880 can read view data from video memory 830.In one embodiment, scheme As memory 830 can be configured as realizing one or more frame buffers.In addition, the output of ISP processors 840 can be transmitted to volume Code device/decoder 870, so as to encoding/decoding image data.The view data of coding can be saved, and be shown in display Decompressed before in 880 equipment.
The step of processing view data of ISP processors 840, includes:To view data carry out VFE (Video Front End, Video front) handle and CPP (Camera Post Processing, camera post processing) processing.At the VFE of view data Reason may include correct view data contrast or brightness, modification record in a digital manner illumination conditions data, to picture number According to compensate processing (such as white balance, automatic growth control, γ correction etc.), to view data be filtered processing etc..To figure As the CPP processing of data may include to zoom in and out image, preview frame and record frame are provided to each path.Wherein, CPP can make Preview frame and record frame are handled with different codecs.View data after the processing of ISP processors 840 can be transmitted to U.S. face Module 860, to carry out U.S. face processing to image before shown.U.S. face module 860 can wrap the face processing of view data U.S. Include:Whitening, nti-freckle, mill skin, thin face, anti-acne, increase eyes etc..Wherein, U.S. face module 860 can be CPU in mobile terminal (Central Processing Unit, central processing unit), GPU or coprocessor etc..Data after the U.S. processing of face module 860 It can be transmitted to encoder/decoder 870, so as to encoding/decoding image data.The view data of coding can be saved, and aobvious Decompressed before being shown in 880 equipment of display.Wherein, U.S. face module 860 may be additionally located at encoder/decoder 870 and display Between device 880, i.e., U.S. face module carries out the image being imaged U.S. face processing.Above-mentioned encoder/decoder 870 can be mobile whole CPU, GPU or coprocessor etc. in end.
The definite statistics of ISP processors 840, which can be transmitted, gives control logic device Unit 850.For example, statistics can wrap Include the image sensings such as automatic exposure, automatic white balance, automatic focusing, flicker detection, black level compensation, 812 shadow correction of lens 814 statistical information of device.Control logic device 850 may include the processor and/or micro-control for performing one or more routines (such as firmware) Device processed, one or more routines according to the statistics of reception, can determine control parameter and the ISP processing of imaging device 810 The control parameter of device 840.For example, the control parameter of imaging device 810 may include 820 control parameter of sensor (such as gain, expose The time of integration of photocontrol), camera flash control parameter, 812 control parameter of lens (such as focus on or zoom focal length) or The combination of these parameters.ISP control parameters may include to be used for automatic white balance and color adjustment (for example, during RGB processing) Gain level and color correction matrix, and 812 shadow correction parameter of lens.
Image white balancing treatment method as above can be realized with technique for taking in Fig. 8.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only storage (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Embodiment described above only expresses the several embodiments of the application, its description is more specific and detailed, but simultaneously Therefore the limitation to the application the scope of the claims cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, on the premise of the application design is not departed from, various modifications and improvements can be made, these belong to the guarantor of the application Protect scope.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

  1. A kind of 1. image white balance adjustment method, it is characterised in that including:
    The instruction for receiving shooting image is inscribed in the first preset time period;
    Response described instruction simultaneously carries out white balance processing according to default white balance mode to the image shot, and generates at white balance Image after reason, the default white balance mode are that the optical sieving after being handled in the second preset time period according to white balance obtains The white balance mode arrived, second preset time period is before first preset time period;
    Image after white balance processing is shown.
  2. 2. according to the method described in claim 1, it is characterized in that, receipts shooting image is inscribed in the first preset time period described Instruction before, including:
    It is inscribed in second preset time period and over takes the photograph to obtain the first original image;
    White balance processing is carried out respectively to first original image according to a variety of white balance modes, after generation white balance processing Multiple image;
    User is received to be preserved according to the target image that personal like selects from the multiple image after white balance processing;
    Count the probability of occurrence of the corresponding white balance mode of the target image;
    The highest white balance mode of probability of occurrence is obtained, the white balance mode is arranged in first preset time period The default white balance mode.
  3. 3. according to the method described in claim 2, it is characterized in that, a variety of white balance modes include incandescent optical mode, day Optical mode, fluorescence mode, cloudy pattern, warm fluorescence mode, low-light pattern, shadow mode and two or more above-mentioned any patterns Combine the white balance mode of gained.
  4. 4. according to the method described in claim 2, it is characterized in that, it is described acquisition the highest white balance mode of probability of occurrence, The white balance mode is arranged to after the default white balance mode in first preset time period, including:
    Obtain first original image, the white balance mode of the corresponding target image of first original image is described default White balance mode;
    The ambient light information of first original image is identified, obtains the ambient light information of first original image;
    Ambient light information progress to the ambient light information and first original image of the second original image of shooting gained Match somebody with somebody, when matching degree reaches given threshold, then second original image is put down in vain using the default white balance mode Weighing apparatus processing, the image after white balance processing is shown.
  5. 5. according to the method described in claim 2, it is characterized in that, the reception user according to personal like from the white balance The target image selected in multiple image after processing is preserved, including:
    Multiple image after white balance processing is shown on a display screen in the form of thumbnail;
    Receive clicking operation of the user to the thumbnail;
    The corresponding thumbnail amplification of the clicking operation is shown, so that user carries out the corresponding image of the thumbnail Check selection;
    User is received to be preserved as target image according to the image that personal like selects.
  6. 6. according to the method described in claim 1, it is characterized in that, second preset time period, first preset time Section is the same period in adjacent predetermined period.
  7. 7. a kind of image white balance adjustment device, it is characterised in that described device includes:
    The command reception module of shooting image, the instruction of shooting image is received for being inscribed in the first preset time period;
    White balance processing module, for responding described instruction and being put down in vain to the image shot according to default white balance mode Weighing apparatus processing, the image after generation white balance processing, the default white balance mode are according to white flat in the second preset time period The obtained white balance mode of optical sieving after weighing apparatus processing, second preset time period first preset time period it Before;
    Image display, for the image after white balance processing to be shown.
  8. 8. device according to claim 7, it is characterised in that described device further includes:
    First original image taking module, over takes the photograph to obtain the first original image for being inscribed in the second preset time period;
    A variety of white balance mode processing modules, for carrying out white balance respectively to the first original image according to a variety of white balance modes Processing, the multiple image after generation white balance processing;
    Target image selection module, selects from the multiple image after white balance processing for receiving user according to personal like Target image is preserved;
    The probability of occurrence statistical module of white balance mode, for counting the probability of occurrence of the corresponding white balance mode of target image;
    Default white balance mode acquisition module, for obtaining the highest white balance mode of probability of occurrence, white balance mode is set For the default white balance mode in the first preset time period.
  9. 9. a kind of electronic equipment, including memory and processor, computer-readable instruction is stored in the memory, its feature It is, when described instruction is performed by the processor so that the processor is performed as any one of claim 1 to 6 Image white balance adjustment method the step of.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The step of image white balance adjustment method as any one of claim 1 to 6 is realized when being executed by processor.
CN201711339892.8A 2017-12-14 2017-12-14 Image white balance adjusting method and device, electronic equipment and computer readable storage medium Expired - Fee Related CN107911674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711339892.8A CN107911674B (en) 2017-12-14 2017-12-14 Image white balance adjusting method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711339892.8A CN107911674B (en) 2017-12-14 2017-12-14 Image white balance adjusting method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107911674A true CN107911674A (en) 2018-04-13
CN107911674B CN107911674B (en) 2020-05-26

Family

ID=61868977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711339892.8A Expired - Fee Related CN107911674B (en) 2017-12-14 2017-12-14 Image white balance adjusting method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107911674B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101099396A (en) * 2004-11-10 2008-01-02 索尼爱立信移动通讯股份有限公司 White balance adjustment
WO2013088774A1 (en) * 2011-12-13 2013-06-20 シャープ株式会社 Display device, display system, adjustment method, television receiver, program, and recording medium
CN103338329A (en) * 2013-05-31 2013-10-02 广东欧珀移动通信有限公司 Method and device for photograph shooting
CN104168468A (en) * 2013-11-08 2014-11-26 深圳市中兴移动通信有限公司 White-balance adjusting method and device
CN104853092A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Photographing method and device
CN105120247A (en) * 2015-09-10 2015-12-02 联想(北京)有限公司 White-balance adjusting method and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101099396A (en) * 2004-11-10 2008-01-02 索尼爱立信移动通讯股份有限公司 White balance adjustment
WO2013088774A1 (en) * 2011-12-13 2013-06-20 シャープ株式会社 Display device, display system, adjustment method, television receiver, program, and recording medium
CN103338329A (en) * 2013-05-31 2013-10-02 广东欧珀移动通信有限公司 Method and device for photograph shooting
CN104168468A (en) * 2013-11-08 2014-11-26 深圳市中兴移动通信有限公司 White-balance adjusting method and device
CN104853092A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Photographing method and device
CN105120247A (en) * 2015-09-10 2015-12-02 联想(北京)有限公司 White-balance adjusting method and electronic device

Also Published As

Publication number Publication date
CN107911674B (en) 2020-05-26

Similar Documents

Publication Publication Date Title
KR102376901B1 (en) Imaging control method and imaging device
CN101116324B (en) Method and device for creating high dynamic range pictures from multiple exposures
US8830348B2 (en) Imaging device and imaging method
US8212890B2 (en) Imaging device and imaging method
JP5512550B2 (en) White balance calibration of digital camera devices
US20160227100A1 (en) Dual camera systems and methods for rapid 3a convergence and high dynamic range exposure metering
CN109005364A (en) Image formation control method, device, electronic equipment and computer readable storage medium
CN107800971B (en) Auto-exposure control processing method, device and the equipment of pan-shot
GB2496241A (en) Multiple image high dynamic range (HDR) imaging from a single sensor array
CN108024054A (en) Image processing method, device and equipment
CN108012078A (en) Brightness of image processing method, device, storage medium and electronic equipment
CN110213502A (en) Image processing method, device, storage medium and electronic equipment
CN108198152A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN108805198A (en) Image processing method, device, computer readable storage medium and electronic equipment
CN110166707A (en) Image processing method, device, electronic equipment and storage medium
US11601600B2 (en) Control method and electronic device
CN107801011B (en) White balancing treatment method, device and the equipment of pan-shot
CN108833802A (en) Exposal control method, device and electronic equipment
CN108683863A (en) Image formation control method, device, electronic equipment and readable storage medium storing program for executing
CN108322651A (en) Image pickup method and device, electronic equipment, computer readable storage medium
CN109040607A (en) Image formation control method, device, electronic equipment and computer readable storage medium
CN108900785A (en) Exposal control method, device and electronic equipment
CN107920205B (en) Image processing method, device, storage medium and electronic equipment
CN108965729A (en) Control method, device, electronic equipment and computer readable storage medium
CN107872663A (en) Image processing method and device, computer-readable recording medium and computer equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200526