CN112584110A - White balance adjusting method and device, electronic equipment and storage medium - Google Patents

White balance adjusting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112584110A
CN112584110A CN202011388408.2A CN202011388408A CN112584110A CN 112584110 A CN112584110 A CN 112584110A CN 202011388408 A CN202011388408 A CN 202011388408A CN 112584110 A CN112584110 A CN 112584110A
Authority
CN
China
Prior art keywords
white balance
field angle
value
view
angle
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
CN202011388408.2A
Other languages
Chinese (zh)
Other versions
CN112584110B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011388408.2A priority Critical patent/CN112584110B/en
Publication of CN112584110A publication Critical patent/CN112584110A/en
Application granted granted Critical
Publication of CN112584110B publication Critical patent/CN112584110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The application discloses a white balance adjusting method, a white balance adjusting device, electronic equipment and a storage medium, which belong to the technical field of communication, wherein the method comprises the following steps: receiving a first input of a user; in response to the first input, enlarging a current field angle and determining a target white balance value based on the enlarged field angle; and taking the target white balance value as the white balance value of the current field angle. According to the white balance adjusting method and device, the electronic equipment and the storage medium, the effective information obtained by the automatic white balance algorithm is increased by enlarging the field angle of the current camera, the more accurate automatic white balance result is quickly obtained, the image color and the real scene are prevented from having larger deviation, and the image color accuracy is improved.

Description

White balance adjusting method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a white balance adjusting method and device, electronic equipment and a storage medium.
Background
At present, when a mobile phone end user uses a camera, an automatic white balance algorithm of the camera generally counts RGB information of each area of a picture to obtain R/G, B/G of a plurality of statistical samples, then a gray area and some special areas are defined on an R/G, B/G coordinate system, and the statistical samples falling into the areas are calculated to obtain a final white balance result.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: by adopting the current white balance algorithm, the accurate and effective result can be obtained only when enough effective information in the acquired sample falls into the defined area, if the large area in the field angle is a special color and no effective point falls into the defined area, the result of automatic white balance can be caused to have deviation, and particularly, the field angle is smaller for some cameras with middle and long focuses, so that the problem is more likely to occur.
Disclosure of Invention
An object of the embodiments of the present application is to provide a white balance adjustment method, an apparatus, an electronic device, and a storage medium, which can solve the technical problem of large deviation between image color and real scene.
In a first aspect, an embodiment of the present application provides a white balance adjustment method, including:
receiving a first input of a user;
in response to the first input, enlarging a current field angle and determining a target white balance value based on the enlarged field angle; and taking the target white balance value as the white balance value of the current field angle.
In a second aspect, an embodiment of the present application provides a white balance adjustment device, including:
the receiving module is used for receiving a first input of a user;
a response module for expanding a current field angle in response to the first input and determining a target white balance value based on the expanded field angle; and taking the target white balance value as the white balance value of the current field angle.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
According to the white balance adjusting method and device, the electronic equipment and the storage medium, the effective information obtained by the automatic white balance algorithm is increased by enlarging the field angle of the current camera, the more accurate automatic white balance result is quickly obtained, the image color and the real scene are prevented from having larger deviation, and the image color accuracy is improved.
Drawings
Fig. 1 is a schematic flow chart of a white balance adjustment method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a current field of view provided by an embodiment of the present application;
fig. 3 is one of schematic diagrams for expanding a current field angle according to an embodiment of the present application;
fig. 4 is a second schematic diagram illustrating an expansion of a current field angle according to an embodiment of the present application;
fig. 5 is a third schematic diagram illustrating an expansion of a current field angle according to an embodiment of the present application;
fig. 6 is a fourth schematic diagram illustrating an expansion of a current field angle according to an embodiment of the present application;
fig. 7 is a fifth schematic view for enlarging the current field angle according to the embodiment of the present application;
fig. 8 is a schematic structural diagram of a white balance adjustment device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flow chart of a white balance adjustment method according to an embodiment of the present disclosure, and as shown in fig. 1, an embodiment of the present disclosure provides a white balance adjustment method, where an execution subject may be a terminal, and this embodiment takes the terminal as an example for description. The method comprises the following steps:
step 101, receiving a first input of a user.
Specifically, in the process of photographing when a user opens a camera in a certain scene, if the effective information of the current image frame for calculating the white balance value is insufficient, a more reliable white balance result cannot be obtained, and when the user desires to adjust the current white balance effect, the user may perform a first input operation on the target object.
For example, the target object may be a physical key, and the first input may be a pressing operation for the physical key. The effect of white balance is adjusted by pressing a physical key.
For another example, the target object may also be a control in the graphical user interface, and the first input may be a click operation, a drag operation, a slide operation, and the like for the control. And adjusting the white balance effect by clicking, dragging and sliding the control.
The user may not perform the first input operation with respect to the specific target object. The first input operation is a blank operation.
For example, place the hand in front of the front camera and keep a certain distance (optimal distance 20-40cm) with the mobile phone, make a downward slide gesture, an upward slide gesture, etc.
Step 102, responding to the first input, expanding the current field angle, and determining a target white balance value based on the expanded field angle; and taking the target white balance value as the white balance value of the current field angle.
Specifically, after receiving a first input of a user, the terminal expands the field angle of the current camera/lens in response to the first input and determines a target white balance value based on the expanded field angle; and taking the target white balance value as the white balance value of the current field angle.
By enlarging the current field angle, more information is acquired around the current field angle, so that effective information acquired during white balance calculation is increased, and the technical problem that in a certain environment, a shot object is special in color and lacks effective information to be provided for a white balance algorithm to calculate, and the white balance effect is poor is solved.
For example, the movement parameters of the lens may be adjusted based on the micro-cloud stage to enlarge the current field angle.
The field angle of the current camera is enlarged based on the micro-pan-tilt, the speed is high, and the white balance effect is further improved. In addition, the frame can be properly locked to avoid the shaking of the picture, so that a user can not perceive the shaking and the experience of the user is better.
For another example, the movement parameter of the lens may also be adjusted based on the optical zoom to enlarge the current angle of view.
The moving parameters of the lens include moving in different directions, moving back and forth, and the like.
The specific steps of determining the target white balance value based on the expanded field angle comprise:
first, a white balance value corresponding to each of the enlarged field angles is determined.
Then, a target white balance value is determined based on the enlarged white balance value corresponding to each angle of view.
For example, the white balance values corresponding to each of the enlarged viewing angles may be averaged to obtain a target white balance value.
The white balance values corresponding to each of the enlarged viewing angles may be weighted and averaged to obtain a target white balance value.
It should be noted that: the above examples only represent two possible ways, and other calculation methods may also be used, and the way of determining the target white balance value based on the enlarged white balance value corresponding to each field angle is similar to the above way, and is not described herein again.
According to the white balance adjusting method disclosed by the embodiment of the application, the effective information obtained by the automatic white balance algorithm is increased by enlarging the field angle of the current camera, so that a more accurate automatic white balance result is quickly obtained, the image color and the real scene are prevented from having larger deviation, and the image color accuracy is improved.
Optionally, the expanding the current field angle specifically includes:
moving the lens towards at least one direction to acquire at least one field angle;
wherein the expanded field of view comprises the at least one field of view.
Specifically, in the embodiment of the present application, the specific way to expand the current field angle is to move the lens/camera toward at least one direction to expand the current field angle.
Fig. 2 is a schematic view of a current field angle provided by an embodiment of the present application, and as shown in fig. 2, a current field angle 1 (a default field angle) of the camera/lens is a front side, that is, the camera/lens always faces the front side by default. Based on the micro cloud platform technology, the camera/lens can move within the moving range 2, and the frame is properly locked in the moving process to avoid the shaking of the picture, so that the anti-shaking effect is achieved.
In the embodiment of the application, the characteristic of the micro-holder is innovatively utilized, and when the field angle of the current camera needs to be enlarged, the lens is moved towards at least one direction to obtain at least one field angle. The expanded field of view includes at least one field of view.
For example, fig. 3 is one of the schematic diagrams for enlarging the current field angle provided by the embodiment of the present application, and as shown in fig. 3, the camera/lens may move the lens toward the upper left corner within the moving range 2 to enlarge the current field angle 1, so as to obtain an enlarged field angle 3.
In fig. 3, moving the lens to the upper left corner enlarges the current field angle, and then determining the white balance value with the field angle of the upper left corner, that is, when the lens moves to the position of the upper left corner, capturing a frame of image for calculating the automatic white balance value, and after completing capturing the frame, finally adjusting the lens back to the position in fig. 2.
After determining the white balance value corresponding to the angle of view at the upper left corner, the white balance value corresponding to the angle of view at the upper left corner is taken as the white balance value of the current angle of view.
For another example, fig. 4 is a second schematic diagram of expanding the current field of view provided by the embodiment of the present application, as shown in fig. 4, the camera/lens can move toward the lower left corner within the moving range 2 to expand the current field of view 1, so as to obtain an expanded field of view 3.
For another example, fig. 5 is a third schematic view illustrating expanding the current field of view provided by the embodiment of the present application, and as shown in fig. 5, the camera/lens can move the lens toward the lower right corner within the moving range 2 to expand the current field of view 1, so as to obtain an expanded field of view 3.
For another example, fig. 6 is a fourth schematic view illustrating expanding the current field angle according to the embodiment of the present application, as shown in fig. 6, the camera/lens may move the lens toward the upper right corner within the moving range 2 to expand the current field angle 1, so as to obtain an expanded field angle 3.
For another example, fig. 7 is a fifth schematic view illustrating expanding the current field angle provided by the embodiment of the present application, and as shown in fig. 7, the camera/lens may move toward the upper left corner and the lower left corner within the moving range 2 of the camera/lens to expand the current field angle 1. The lens is moved towards the upper left corner to obtain a first angle of view 3, the lens is moved towards the lower left corner to obtain a second angle of view 4, and the expanded angles of view include the first angle of view 3 and the second angle of view 4.
In fig. 7, the lens is moved towards the upper left corner and the lower left corner respectively to enlarge the current field of view, and then the white balance value is determined according to the field of view of the upper left corner and the lower left corner, that is, when the lens is adjusted to move to the position of the upper left corner first, a frame of image is captured for calculating a first white balance value, and then when the lens is moved to the position of the lower left corner, a frame of image is captured for calculating a second white balance value, and after the frame capture is completed, the lens is finally adjusted back to the position in fig. 2.
After the first and second white balance values are determined, a target white balance value may be calculated based on the first and second white balance values, and finally, the target white balance value is taken as the white balance value of the current angle of view.
It should be noted that: fig. 3-7 only show one possible way, and the way of moving the moving lens in other directions to enlarge the current field angle is similar to the above way, and will not be described again here.
According to the white balance adjusting method disclosed by the embodiment of the application, the current field angle is enlarged by moving the lens towards at least one direction, and the white balance effect is further improved.
Optionally, the calculation formula for determining the target white balance value based on the expanded field angle is as follows:
Figure BDA0002810514610000071
where TWB is a target white balance value, WBi is a white balance value determined from the enlarged ith angle of view, ω i is a weight value corresponding to the enlarged ith angle of view, n is the number of enlarged angles of view, and n is equal to or greater than 1.
Specifically, in the embodiment of the present application, after each expanded angle of view is determined, the white balance values corresponding to each expanded angle of view are weighted and averaged to obtain the target white balance value.
For example, the expanded angle of view includes a first angle of view and a second angle of view, the white balance value corresponding to the first angle of view is a first white balance value, and the white balance value corresponding to the second angle of view is a second white balance value.
The specific steps of determining the target white balance value according to the first white balance value and the second white balance value are as follows:
firstly, determining a first weight value corresponding to a first field angle; and determining a second weight value corresponding to the second field angle.
For example, a first weight value corresponding to the first angle of view and a second weight value corresponding to the second angle of view may both be preset values.
The first weight value may be determined based on the number of valid statistical samples in the first field angle, and the second weight value may be determined based on the number of valid statistical samples in the second field angle.
It should be noted that: the examples of the weight value determining manner only represent two feasible manners, and other manners may also be used to determine a first weight value corresponding to the first field angle and a second weight value corresponding to the second field angle, and the manner of determining the first weight value and the second weight value is similar to the above manner, and is not described here again.
Then, a target white balance value is determined by performing weighted average according to the first white balance value, the first weight value, the second white balance value and the second weight value.
It should be noted that: the above example in which the expanded angle of view includes the first angle of view and the second angle of view only represents one possible way, and the way of determining the target white balance value when the expanded angle of view includes more angles of view is similar to the above way, and is not described again here.
According to the white balance adjusting method disclosed by the embodiment of the application, the white balance value corresponding to each expanded view angle and the weight value corresponding to each enlarged view angle are weighted and averaged to determine the target white balance value, and then the target white balance value is used as the white balance value of the current view angle, so that the white balance effect is further improved.
Alternatively, the value of ω i is determined by the number of valid statistical samples in the enlarged ith field angle, or the value of ω i is a preset value.
Specifically, in the embodiment of the present application, the weight value corresponding to each expanded angle of view is a preset value.
Or, the weight value corresponding to each expanded field angle is determined by the number of effective statistical samples in the field angle.
And representing the confidence corresponding to the white balance result calculated according to the field angle by using the number of effective statistical samples in the field angle, wherein the greater the number of the effective statistical samples is, the higher the confidence is, and when the number of the effective statistical samples is less than a certain value, the confidence is directly set to be 0, namely the corresponding weight value is 0.
According to the white balance adjusting method disclosed by the embodiment of the application, the calculated amount is reduced and the efficiency is improved through the preset weight value. The weight value is determined by the number of effective statistical samples in the field angle, and the white balance effect is further improved.
Optionally, the first input is an operation of a user on a target object in the preview image;
the expanding of the current field angle comprises:
acquiring lens movement parameters according to the position of the target object;
and controlling the lens to move according to the lens moving parameters so as to enlarge the current field angle.
Specifically, in the embodiment of the present application, the first input is an operation of a target object in a preview image by a user.
The target object may be a person or an object in the preview image, or may not be a specific person or object.
The specific steps for enlarging the current field angle are as follows:
first, lens movement parameters are obtained according to the position of the target object.
For example, if the first input is a click operation performed by the user on a person in the upper left corner of the preview image, the determined lens moving parameter is that the lens is moved to the upper left corner by a certain angle. The angle may be a preset value or a value related to the click position.
For another example, if the first input is a click operation performed by the user on an object at the lower left corner in the preview image, the determined lens moving parameter is that the lens moves towards the lower left corner by a certain angle.
Then, the lens movement is controlled according to the lens movement parameter to enlarge the current field angle.
According to the white balance adjusting method disclosed by the embodiment of the application, the lens moving parameters are obtained according to the position of the target object, and the lens is controlled to move according to the lens moving parameters, so that the current field angle is enlarged, and the white balance effect is further improved.
Optionally, the first input is a user operation to adjust a white balance effect based on the target object.
Specifically, in the embodiment of the application, in the process of photographing when a user opens a camera in a certain scene, if the effective information of the current image frame for calculating the white balance value is insufficient, a more reliable white balance result cannot be obtained, and when the user desires to adjust the current white balance effect, the user may perform a first input operation on a target object. The first input is an operation of the user to adjust a white balance effect based on the target object.
According to the white balance adjusting method disclosed by the embodiment of the application, the first input is the operation of adjusting the white balance effect based on the target object by the user, so that the white balance effect is further improved.
Optionally, the target object is a physical button or a control in a graphical user interface.
Specifically, in the embodiment of the present application, the target object is a physical key, and accordingly, the first input may be a pressing operation for the physical key. The effect of white balance is adjusted by pressing a physical key.
Or, the target object is a control in the graphical user interface, the control may be a function button, a function knob, or the like, and the first input is a click operation, a drag operation, a slide operation, or the like for the control. And adjusting the white balance effect by clicking, dragging and sliding the control.
According to the white balance adjusting method disclosed by the embodiment of the application, the target object is a physical key or a control in a graphical user interface, and the white balance effect is further improved.
It should be noted that, in the white balance adjustment method provided in the embodiment of the present application, the execution subject may be a white balance adjustment device, or alternatively, a control module in the white balance adjustment device for executing the method of loading white balance adjustment. In the embodiment of the present application, a method for performing loading white balance adjustment by using a white balance adjustment device is taken as an example, and the method for performing white balance adjustment provided in the embodiment of the present application is described.
Fig. 8 is a schematic structural diagram of a white balance adjustment device according to an embodiment of the present application, and as shown in fig. 8, the white balance adjustment device according to the embodiment of the present application includes a receiving module 801 and a response module 802, where:
the receiving module 801 is configured to receive a first input of a user; the response module 802 is configured to expand a current field angle in response to the first input, and determine a target white balance value based on the expanded field angle; and taking the target white balance value as the white balance value of the current field angle.
Specifically, the white balance adjustment device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment and achieve the same technical effects, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not repeated herein.
Optionally, the expanding the current field angle specifically includes:
moving the lens towards at least one direction to acquire at least one field angle;
wherein the expanded field of view comprises the at least one field of view.
Specifically, the white balance adjustment device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment and achieve the same technical effects, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not repeated herein.
Optionally, the calculation formula for determining the target white balance value based on the expanded field angle is as follows:
Figure BDA0002810514610000101
where TWB is a target white balance value, WBi is a white balance value determined from the enlarged ith angle of view, ω i is a weight value corresponding to the enlarged ith angle of view, n is the number of enlarged angles of view, and n is equal to or greater than 1.
Specifically, the white balance adjustment device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment and achieve the same technical effects, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not repeated herein.
Alternatively, the value of ω i is determined by the number of valid statistical samples in the enlarged ith field angle, or the value of ω i is a preset value.
Specifically, the white balance adjustment device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment and achieve the same technical effects, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not repeated herein.
Optionally, the first input is an operation of a user on a target object in the preview image;
the expanding of the current field angle comprises:
acquiring lens movement parameters according to the position of the target object;
and controlling the lens to move according to the lens moving parameters so as to enlarge the current field angle.
Specifically, the white balance adjustment device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment and achieve the same technical effects, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not repeated herein.
The white balance adjustment device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The white balance adjustment device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The white balance adjusting device provided in the embodiment of the present application can implement each process implemented by the white balance adjusting device in the above method embodiments, and is not described here again to avoid repetition.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application, and as shown in fig. 9, the terminal 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the terminal 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The terminal structure shown in fig. 9 does not constitute a limitation of the terminal, and the terminal may include more or less components than those shown, or combine some components, or have a different arrangement of components, and thus will not be described again.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
In this embodiment of the application, the radio frequency unit 901 receives downlink data from a network side device and then processes the downlink data to the processor 910; in addition, the uplink data is sent to the network side equipment. Generally, the radio frequency unit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
Memory 909 can be used to store software programs or instructions as well as various data. The memory 909 may mainly include a storage program or instruction area and a storage data area, wherein the storage program or instruction area may store an operating system, an application program or instruction (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. In addition, the Memory 909 may include a high-speed random access Memory, and may also include a nonvolatile Memory, wherein the nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable Programmable PROM (EPROM), an Electrically Erasable Programmable ROM (EEPROM), or a flash Memory. Such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
Processor 910 may include one or more processing units; alternatively, the processor 910 may integrate an application processor, which mainly handles operating systems, user interfaces, and applications or instructions, etc., and a modem processor, which mainly handles wireless communications, such as a baseband processor. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The user input unit 907 is configured to receive a first input from a user.
A processor 910 configured to expand a current field angle in response to the first input and determine a target white balance value based on the expanded field angle; and taking the target white balance value as the white balance value of the current field angle.
Specifically, the electronic device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment and achieve the same technical effects, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not repeated herein.
Optionally, the expanding the current field angle specifically includes:
moving the lens towards at least one direction to acquire at least one field angle;
wherein the expanded field of view comprises the at least one field of view.
Specifically, the electronic device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment and achieve the same technical effects, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not repeated herein.
Optionally, the calculation formula for determining the target white balance value based on the expanded field angle is as follows:
Figure BDA0002810514610000131
where TWB is a target white balance value, WBi is a white balance value determined from the enlarged ith angle of view, ω i is a weight value corresponding to the enlarged ith angle of view, n is the number of enlarged angles of view, and n is equal to or greater than 1.
Specifically, the electronic device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment and achieve the same technical effects, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not repeated herein.
Alternatively, the value of ω i is determined by the number of valid statistical samples in the enlarged ith field angle, or the value of ω i is a preset value.
Specifically, the electronic device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment and achieve the same technical effects, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not repeated herein.
Optionally, the first input is an operation of a user on a target object in the preview image;
the expanding of the current field angle comprises:
acquiring lens movement parameters according to the position of the target object;
and controlling the lens to move according to the lens moving parameters so as to enlarge the current field angle.
Specifically, the electronic device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment and achieve the same technical effects, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not repeated herein.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing white balance adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the white balance adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A white balance adjustment method, characterized by comprising:
receiving a first input of a user;
in response to the first input, enlarging a current field angle and determining a target white balance value based on the enlarged field angle; and taking the target white balance value as the white balance value of the current field angle.
2. The white balance adjustment method according to claim 1, wherein the enlarging a current field angle specifically includes:
moving the lens towards at least one direction to acquire at least one field angle;
wherein the expanded field of view comprises the at least one field of view.
3. The white balance adjustment method according to claim 2, wherein the calculation formula for determining the target white balance value based on the enlarged field angle is as follows:
Figure FDA0002810514600000011
where TWB is a target white balance value, WBi is a white balance value determined from the enlarged ith angle of view, ω i is a weight value corresponding to the enlarged ith angle of view, n is the number of enlarged angles of view, and n is equal to or greater than 1.
4. The white balance adjustment method according to claim 3, wherein the value of ω i is determined by the number of valid statistical samples in the enlarged ith field angle, or the value of ω i is a preset value.
5. The white balance adjustment method according to claim 1, wherein the first input is a user operation on a target object in a preview image;
the expanding of the current field angle comprises:
acquiring lens movement parameters according to the position of the target object;
and controlling the lens to move according to the lens moving parameters so as to enlarge the current field angle.
6. A white balance adjustment device characterized by comprising:
the receiving module is used for receiving a first input of a user;
a response module for expanding a current field angle in response to the first input and determining a target white balance value based on the expanded field angle; and taking the target white balance value as the white balance value of the current field angle.
7. The white balance adjustment device according to claim 6, wherein the enlarging of the current field angle specifically includes:
moving the lens towards at least one direction to acquire at least one field angle;
wherein the expanded field of view comprises the at least one field of view.
8. The white balance adjustment device according to claim 7, characterized in that the calculation formula for determining the target white balance value based on the enlarged field angle is as follows:
Figure FDA0002810514600000021
where TWB is a target white balance value, WBi is a white balance value determined from the enlarged ith angle of view, ω i is a weight value corresponding to the enlarged ith angle of view, n is the number of enlarged angles of view, and n is equal to or greater than 1.
9. The white balance adjustment device according to claim 8, wherein the value of ω i is determined by the number of valid statistical samples in the enlarged ith field angle, or the value of ω i is a preset value.
10. The white balance adjustment apparatus according to claim 6, wherein the first input is a user operation on a target object in a preview image;
the expanding of the current field angle comprises:
acquiring lens movement parameters according to the position of the target object;
and controlling the lens to move according to the lens moving parameters so as to enlarge the current field angle.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the white balance adjustment method according to any one of claims 1-5.
12. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the white balance adjustment method according to any one of claims 1 to 5.
CN202011388408.2A 2020-12-01 2020-12-01 White balance adjusting method and device, electronic equipment and storage medium Active CN112584110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011388408.2A CN112584110B (en) 2020-12-01 2020-12-01 White balance adjusting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011388408.2A CN112584110B (en) 2020-12-01 2020-12-01 White balance adjusting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112584110A true CN112584110A (en) 2021-03-30
CN112584110B CN112584110B (en) 2022-08-02

Family

ID=75126623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011388408.2A Active CN112584110B (en) 2020-12-01 2020-12-01 White balance adjusting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112584110B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489962A (en) * 2021-06-15 2021-10-08 浙江大华技术股份有限公司 White balance adjustment method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110012997A1 (en) * 2009-07-17 2011-01-20 Fujifilm Corporation Compound-eye imaging apparatus
JP2013198119A (en) * 2012-03-22 2013-09-30 Nikon Corp Image processor, image processing method and program
US20160269707A1 (en) * 2013-11-28 2016-09-15 Olympus Corporation Multi-area white-balance control device, multi-area white-balance control method, multi-area white-balance control program, computer in which multi-area white-balance control program is recorded, multi-area white-balance image-processing device, multi-area white-balance image-processing method, multi-area white-balance image-processing program, computer in which multi-area white-balance image-processing program is recorded, and image-capture apparatus
CN105981379A (en) * 2014-09-17 2016-09-28 深圳市大疆创新科技有限公司 Automatic white balancing system and method
CN107959841A (en) * 2017-12-07 2018-04-24 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
US20190236765A1 (en) * 2016-09-06 2019-08-01 Samsung Electronics Co., Ltd. Electronic device and method for processing multiple images
CN110460826A (en) * 2019-08-12 2019-11-15 Oppo广东移动通信有限公司 White balancing treatment method, processing unit and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110012997A1 (en) * 2009-07-17 2011-01-20 Fujifilm Corporation Compound-eye imaging apparatus
JP2013198119A (en) * 2012-03-22 2013-09-30 Nikon Corp Image processor, image processing method and program
US20160269707A1 (en) * 2013-11-28 2016-09-15 Olympus Corporation Multi-area white-balance control device, multi-area white-balance control method, multi-area white-balance control program, computer in which multi-area white-balance control program is recorded, multi-area white-balance image-processing device, multi-area white-balance image-processing method, multi-area white-balance image-processing program, computer in which multi-area white-balance image-processing program is recorded, and image-capture apparatus
CN105981379A (en) * 2014-09-17 2016-09-28 深圳市大疆创新科技有限公司 Automatic white balancing system and method
US20190236765A1 (en) * 2016-09-06 2019-08-01 Samsung Electronics Co., Ltd. Electronic device and method for processing multiple images
CN107959841A (en) * 2017-12-07 2018-04-24 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110460826A (en) * 2019-08-12 2019-11-15 Oppo广东移动通信有限公司 White balancing treatment method, processing unit and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489962A (en) * 2021-06-15 2021-10-08 浙江大华技术股份有限公司 White balance adjustment method, device and storage medium

Also Published As

Publication number Publication date
CN112584110B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN112714255B (en) Shooting method and device, electronic equipment and readable storage medium
EP4240000A1 (en) Photographing processing method and apparatus, electronic device, and readable storage medium
CN111669506A (en) Photographing method and device and electronic equipment
CN111669507A (en) Photographing method and device and electronic equipment
CN112887617B (en) Shooting method and device and electronic equipment
CN112954199B (en) Video recording method and device
CN112637500B (en) Image processing method and device
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112738401B (en) Zooming method and device and electronic equipment
CN112333382B (en) Shooting method and device and electronic equipment
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113473007A (en) Shooting method and device
CN112584110B (en) White balance adjusting method and device, electronic equipment and storage medium
CN112672051B (en) Shooting method and device and electronic equipment
CN112449165B (en) Projection method and device and electronic equipment
CN112367465B (en) Image output method and device and electronic equipment
CN114025092A (en) Shooting control display method and device, electronic equipment and medium
CN112948048A (en) Information processing method, information processing device, electronic equipment and storage medium
CN113286085A (en) Display control method and device and electronic equipment
CN112887624B (en) Shooting method and device and electronic equipment
CN112565605B (en) Image display method and device and electronic equipment
CN112714256B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN111107270B (en) Shooting method and electronic equipment
CN113873147A (en) Video recording method and device and electronic 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
GR01 Patent grant
GR01 Patent grant