CN108093233B - Image processing method, terminal and computer readable storage medium - Google Patents

Image processing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108093233B
CN108093233B CN201711461785.2A CN201711461785A CN108093233B CN 108093233 B CN108093233 B CN 108093233B CN 201711461785 A CN201711461785 A CN 201711461785A CN 108093233 B CN108093233 B CN 108093233B
Authority
CN
China
Prior art keywords
white balance
balance parameter
flash
flashing
effective pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711461785.2A
Other languages
Chinese (zh)
Other versions
CN108093233A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711461785.2A priority Critical patent/CN108093233B/en
Publication of CN108093233A publication Critical patent/CN108093233A/en
Application granted granted Critical
Publication of CN108093233B publication Critical patent/CN108093233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Abstract

The embodiment of the invention discloses an image processing method, which can improve the quality of image processing during shooting and improve the reality degree of image colors, and comprises the following steps: when the pre-flash function is started, acquiring a first white balance parameter, wherein the first white balance parameter is acquired when a flash lamp is not started; pre-flashing the target object, acquiring a pre-flashing image of the target object and a reference white balance parameter of a pre-flashing reference point, and acquiring a second white balance parameter; determining the number of pre-flashing effective pixel points in the pre-flashing image according to the pre-flashing reference point; receiving a shooting instruction for starting a flash lamp, responding to the shooting instruction, and acquiring a third white balance parameter; determining a current white balance parameter based on the number of the pre-flash effective pixel points, the first white balance parameter, the second white balance parameter and the third white balance parameter; and processing the acquired shot image by adopting the current white balance parameters. The embodiment of the invention also discloses a terminal and a computer storage medium.

Description

Image processing method, terminal and computer readable storage medium
Technical Field
The present invention relates to image processing technologies in the field of electronic applications, and in particular, to an image processing method, a terminal, and a computer-readable storage medium.
Background
In recent years, with the rapid development of internet technology and mobile communication network technology, many terminals such as mobile phones and tablet computers have a photographing function, and users can use the terminals to photograph in any occasions and environments. The purpose of performing Automatic White Balance (AWB) processing on a shot image is to uniformly compensate for color deviation caused by a color temperature environment and deviation of a color channel gain inherent to a terminal by changing the gain of the color channel of the terminal, so that the obtained image can correctly reflect the real color of an object.
Among the prior art, under dark or night environment, when the user used terminal to shoot, the terminal can be through opening functions such as flash light in order to increase the exposure, accomplished the shooting function at terminal, but, because the difference of shooting the environment, the white balance's when shooing through the adjustment of dodging turn off the light processing is single, does not have the differentiation, and the quality of the image of shooing like this is relatively poor, still can lead to the colour distortion.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention desirably provide an image processing method, a terminal, and a computer-readable storage medium, which can improve the quality of image processing during shooting and improve the degree of reality of image colors.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides an image processing method, which comprises the following steps:
when the pre-flash function is started, acquiring a first white balance parameter, wherein the first white balance parameter is acquired when a flash lamp is not started;
pre-flashing a target object, acquiring a pre-flashing image of the target object and a reference white balance parameter of a pre-flashing reference point, and acquiring a second white balance parameter;
determining the number of pre-flashing effective pixel points in the pre-flashing image according to the pre-flashing reference point;
receiving a shooting instruction for starting a flash lamp, responding to the shooting instruction, and acquiring a third white balance parameter;
determining a current white balance parameter based on the number of the pre-flash effective pixels, the first white balance parameter, the second white balance parameter and the third white balance parameter;
and processing the acquired shot image by adopting the current white balance parameter.
In the foregoing solution, the determining a current white balance parameter based on the number of pre-flash effective pixels, the first white balance parameter, the second white balance parameter, and the third white balance parameter includes:
when the number of the pre-flash effective pixel points is larger than a preset flash upper limit threshold, determining the second white balance parameter as the current white balance parameter;
when the number of the pre-flash effective pixel points is smaller than a preset flash lower limit threshold, obtaining an intermediate white balance parameter based on the first white balance parameter and the third white balance parameter, and determining the intermediate white balance parameter as the current white balance parameter;
when the number of the pre-flash effective pixel points is between the preset flash lower limit threshold and the preset flash upper limit threshold, obtaining an intermediate white balance parameter based on the first white balance parameter and the third white balance, and determining the current white balance parameter based on the intermediate white balance parameter and the second white balance parameter.
In the foregoing scheme, the obtaining an intermediate white balance parameter based on the first white balance parameter and the third white balance parameter includes:
acquiring a current environment brightness value;
when the current environment brightness value is larger than a preset environment brightness upper limit value, taking the third white balance parameter as the intermediate white balance parameter;
when the current environment brightness value is smaller than a preset environment brightness lower limit value, taking the first white balance parameter as the intermediate white balance parameter;
and when the current environment brightness value is between the preset environment brightness lower limit value and the preset environment brightness upper limit value, weighting the first white balance parameter and the third white balance parameter to obtain the intermediate white balance parameter.
In the above scheme, determining the current white balance parameter based on the intermediate white balance parameter and the second white balance parameter includes:
and weighting the intermediate white balance parameter and the second white balance parameter to determine the current white balance parameter.
In the foregoing scheme, the obtaining the second white balance parameter includes:
acquiring a pre-flashing effective pixel point of the pre-flashing image according to the pre-flashing reference point;
determining the weight of the preflash effective pixel points based on the preflash effective pixel points and the preflash reference points;
acquiring a preflash effective point white balance parameter of a preflash effective pixel point;
and obtaining the second white balance parameter according to the pre-flashing effective point white balance parameter and the weight of the pre-flashing effective pixel point.
In the foregoing scheme, the obtaining of the third white balance parameter includes:
acquiring a main flash effective pixel point of the shot image according to the main flash reference point;
determining the weight of the main flash effective pixel point based on the main flash effective pixel point and the main flash reference point;
acquiring a main flash effective point white balance parameter of a main flash effective pixel point;
and obtaining the third white balance parameter according to the main flash effective point white balance parameter and the weight of the main flash effective pixel point.
In the foregoing solution, after processing the acquired captured image by using the current white balance parameter, the method further includes:
and displaying the processed shot image.
In the foregoing solution, before the obtaining the first white balance parameter, the method further includes:
receiving a pre-flash function starting instruction;
and responding to the pre-flashing function starting instruction to start the pre-flashing function.
An embodiment of the present invention provides a terminal, including: the device comprises a processor, a storage medium, a receiver, a camera, a display and a communication bus, wherein the receiver, the storage medium, the camera and the display are connected with the processor for communication through the communication bus; the processor is used for executing the image processing program stored in the storage medium so as to realize the image processing method.
Embodiments of the present invention provide a computer storage medium storing one or more image processing programs, which are executable by one or more processors to implement the image processing method described above.
The embodiment of the invention provides an image processing method, a terminal and a computer readable storage medium, wherein when a pre-flashing function is started, a first white balance parameter is obtained, and the first white balance parameter is obtained when a flash lamp is not started; pre-flashing the target object, acquiring a pre-flashing image of the target object and a reference white balance parameter of a pre-flashing reference point, and acquiring a second white balance parameter; determining the number of pre-flashing effective pixel points in the pre-flashing image according to the pre-flashing reference point; receiving a shooting instruction for starting a flash lamp, responding to the shooting instruction, and acquiring a third white balance parameter; determining a current white balance parameter based on the number of the pre-flash effective pixel points, the first white balance parameter, the second white balance parameter and the third white balance parameter; and processing the acquired shot image by adopting the current white balance parameters. By adopting the technical scheme, the terminal can process different white balance parameters based on three groups of white balance parameters corresponding to three modes (no flash lamp, pre-flash and main flash), so that the current white balance parameters can be dynamically adjusted, the quality of the shot image processed by the current white balance parameters is improved, and the true degree of the image color of the shot image is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal according to an embodiment of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
fig. 3 is a first flowchart of an image processing method according to an embodiment of the present invention;
FIG. 4 is a diagram of an exemplary interface setup provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram of RGB values corresponding to different colors according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating RGB values corresponding to different colors according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a plurality of colors based on three primary colors according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an exemplary AWB value calculation region provided by an embodiment of the present invention;
FIG. 9 is a comparison graph of exemplary image processing results provided by embodiments of the present invention;
FIG. 10 is a flowchart illustrating a method of processing an image according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal in the embodiment of the present invention may be an electronic device with a camera or a shooting function, and the embodiment of the present invention is not limited.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, Wi-Fi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
Wi-Fi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to receive and send emails, browse webpages, access streaming media and the like through a Wi-Fi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the Wi-Fi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the Wi-Fi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and charging functions Entity) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
The terminal in the embodiment of the present invention may be a mobile terminal, and then, for example, based on the above-mentioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention may be provided. The terminals described below may be replaced with mobile terminals.
Example one
An embodiment of the present invention provides an image processing method, as shown in fig. 3, the method may include:
s101, when a pre-flashing function is started, acquiring a first white balance parameter, wherein the first white balance parameter is acquired when a flash lamp is not started;
it should be noted that the shooting method provided by the embodiment of the present invention is implemented in a scene where a picture is taken on a terminal.
It should be noted that, in the embodiment of the present invention, an image sensor is disposed on a camera of a terminal, and the terminal acquires a captured image through the image sensor, where the captured image is an image acquired on a display screen of the terminal after a camera application on the terminal starts a capturing function, for example, a preview image.
In the embodiment of the invention, before the shooting instruction is received, the images acquired by the terminal are all obtained by previewing the images on the preview interface.
Alternatively, the terminal may be a camera device, a device installed with a camera application, or the like. The specific terminal can be a mobile phone, a tablet, a computer and other electronic equipment which is provided with a camera application and has a flash function. The flash function may be implemented by a flash lamp disposed on the camera, and the implementation and the setting of the flash function are not limited in the embodiments of the present invention.
The terminal in the embodiment of the present invention acquires an image of a target object, where the target object may be a person, a building, a landscape, or other objects, and the embodiment of the present invention is not limited.
In the embodiment of the invention, a user uses the terminal to take a picture, and after the user starts the camera application of the terminal, the terminal acquires a shot image, namely a preview image, of a target object through the image sensor. The image sensor is disposed on a camera (camera) located on the terminal, and specifically, for example, the camera may be a front camera or a rear camera of the terminal device, and the embodiment of the present invention is not limited.
It should be noted that the image processing method adopted in the embodiment of the present invention is suitable for a case of processing image colors in different environments, and such a case may occur when a shooting environment is night, day, light intensity, backlight, or the like. Therefore, which image processing mode is adopted by the terminal when photographing is realized by detecting whether the optimized image processing function is started or not by the terminal, and if the optimized image processing function is started, the image processing method provided by the embodiment of the invention is adopted; if the optimized image processing function is not started, the existing image processing mode is adopted to realize the photographing. The embodiment of the invention can be compatible with the existing image processing mode and the optimized image processing mode provided by the embodiment of the invention, thereby improving the compatibility and diversity of image processing.
In the embodiment of the present invention, the terminal may detect whether to start the optimized image processing function by detecting whether to start an optimized image processing function key in the setting of the terminal. As shown in fig. 4, in a camera application of a mobile phone (terminal), a switch button for optimizing an image processing function is provided in a camera setting interface, and a user can start the image processing function on the mobile phone by clicking an "on" button, or can close the image processing function on the mobile phone by clicking an "off" button.
It should be noted that the image processing method provided by the embodiment of the present invention is mainly applied to a scene that needs to be shot by turning on a flash. In the implementation of the invention, when the terminal shoots, the terminal can adopt three modes of non-flash, pre-flash and main flash, when the pre-flash function is started but before the preview image of the preview interface is pre-flashed, the terminal can acquire the first white balance parameter of the preview image under the non-flash at the moment, namely the first white balance parameter is acquired when the flash is not started.
In the embodiment of the invention, the terminal has a pre-flashing function and a main flashing function, wherein the main flashing function refers to a mode when a flash lamp is really turned on. Pre-flash is a pre-flash attempt mode before the flash is actually turned on.
It should be noted that, in the embodiment of the present invention, the RGB color scheme is a color standard in the industry, and various colors are obtained by changing three color channels of red (R), green (G), and blue (B) and superimposing them with each other, where RGB represents colors of the three channels of red, green, and blue, and the standard includes almost all colors that can be perceived by human vision, and is one of the most widely used color systems at present.
For example, as shown in fig. 5, the RGB values corresponding to different colors in the embodiment of the present invention are shown in fig. 5, the corresponding RGB values are different for different colors, wherein the maximum value of R, G, and B is 255, and the minimum value is 0. Fig. 6 is a schematic diagram illustrating distribution of RGB values corresponding to different colors according to an embodiment of the invention, and as shown in fig. 4, the distribution of the RGB values corresponding to different colors is different. Fig. 7 is a schematic diagram of a plurality of colors based on three primary colors according to an embodiment of the present invention, as shown in fig. 7, all colors in nature can be obtained by mixing the three primary colors of red, green, and blue according to different proportions, for example, yellow can be obtained by mixing red and green according to a certain proportion.
In the embodiment of the present invention, the white balance parameters (AWB) are calculated by using RGB values, where the white balance parameters refer to (D1, D2) calculated according to formula (1) and formula (2), and formula (1) and formula (2) are as follows:
D1=R/G (1)
D2=B/G (2)
wherein R is the R value of the red channel of the terminal, B is the B value of the blue channel of the terminal, and G is the G value of the green channel of the terminal.
It should be noted that, in the embodiment of the present invention, D1 may be used to represent a warm color temperature, and correspondingly, D2 may be used to represent a cold color temperature.
Therefore, the terminal in the embodiment of the invention can process images of different scenes or environments based on the white balance parameters acquired in different shooting modes.
It should be noted that, here, the terminal may calculate a white balance parameter for each pixel point of the preview image at this time, and finally average to obtain a first white balance parameter. And the second white balance parameter in the pre-flash mode and the third white balance parameter in the main flash mode will be described in the following embodiments.
S102, pre-flashing the target object, acquiring a pre-flashing image of the target object and a reference white balance parameter of a pre-flashing reference point, and acquiring a second white balance parameter;
when the pre-flashing function is started, after the terminal acquires the first white balance parameter, the terminal already starts the pre-flashing function, so that the terminal can pre-flash the preview image of the target object at the moment, acquire the pre-flashing image, and here, the terminal can acquire the reference point of the light source, namely the pre-flashing reference point, and the reference white balance parameter calculated by the pre-flashing reference point according to the formula (1) and the formula (2), and can also calculate the white balance parameter of the pre-flashing image, namely the second white balance parameter.
In this embodiment of the present invention, the process of the terminal acquiring the second white balance parameter may be: the terminal acquires pre-flashing effective pixel points of the pre-flashing image according to the pre-flashing reference point; determining the weight of the preflash effective pixel points based on the preflash effective pixel points and the preflash reference points; acquiring a preflash effective point white balance parameter of a preflash effective pixel point; and obtaining a second white balance parameter according to the pre-flashing effective point white balance parameter and the weight of the pre-flashing effective pixel point.
It should be noted that fig. 8 is a schematic diagram of an AWB value calculation area, and as shown in fig. 8, a circle is identified as a distribution of a reference point (e.g., a pre-flash reference point) in an R/G, B/G coordinate system, a square is identified as a distribution of a pixel point (e.g., a pre-flash pixel point) on an image acquired by a current camera in an R/G, B/G coordinate system, and a star is identified as an AWB value calculated by combining a reference point weight (e.g., a pre-flash reference point weight) and a pixel point weight (e.g., a pre-flash pixel point weight).
In the embodiment of the present invention, the terminal may determine, according to the distribution position of the reference point (e.g., the pre-flashing reference point) in fig. 8, that an image pixel point in an effective area of the pre-flashing image is a pre-flashing effective pixel point, for example, a pixel point in area 1 in fig. 8 is a pre-flashing effective pixel point, and determine the weight of the pre-flashing effective pixel point according to the distance between the pre-flashing effective pixel point and the pre-flashing reference point, where the weight of the pre-flashing effective pixel point farther from the pre-flashing reference point is smaller, and the weight of the pre-flashing effective pixel point closer to the pre-flashing reference point is larger. Therefore, the terminal obtains the corresponding weight of each pre-flashing effective pixel point, and the terminal obtains the R/G and the B/G (namely the pre-flashing effective point white balance parameters) of each pre-flashing effective pixel point according to the RGB value of each pre-flashing effective pixel point, the formula (1) and the formula (2), so that the terminal carries out weighted average on all the pre-flashing effective pixel points according to the pre-flashing effective point white balance parameters and the weight of the pre-flashing effective pixel points to obtain the second white balance parameters.
It should be noted that, in the embodiment of the present invention, the valid region of the preflash reference point may be divided into a plurality of grade circles, the weights of preflash valid pixel points in each grade circle are consistent, and the weight of preflash valid pixel points in the grade circle closer to the preflash reference point is larger. The sum of the weights of all the rank circles is 1.
S103, determining the number of pre-flashing effective pixel points in the pre-flashing image according to the pre-flashing reference point;
the terminal carries out pre-flashing on the target object, after the pre-flashing image of the target object and the reference white balance parameter of the pre-flashing reference point are collected, the terminal can determine that the pre-flashing effective pixel points in the pre-flashing image are available according to the effective area, and then the terminal can also obtain the number of the pre-flashing effective pixel points in the effective area, which means the sum of all the pre-flashing effective pixel points in the effective area.
S104, receiving a shooting instruction for starting a flash lamp, responding to the shooting instruction, and acquiring a third white balance parameter;
after the terminal determines the number of the preflash effective pixel points in the preflash image according to the preflash reference point, the terminal can perform the operation of the main flash mode, that is, the terminal receives a shooting instruction for starting a flash function and shoots a target object, at this time, the terminal can calculate white balance parameters of a preview image (main flash image) when the flash is started, and here, the terminal can obtain the reference point of the light source, that is, the main flash reference point, according to the parameters of the light source when the flash is started, and also can calculate the white balance parameters of the main flash image, that is, obtain the third white balance parameter, according to the reference white balance parameters calculated by the main flash reference point according to the formula (1) and the formula (2).
In this embodiment of the present invention, the process of the terminal acquiring the third white balance parameter may be: acquiring a main flash effective pixel point of a shot image according to a main flash reference point; determining the weight of the main flash effective pixel point based on the main flash effective pixel point and the main flash reference point; acquiring a main flash effective point white balance parameter of a main flash effective pixel point; and obtaining a third white balance parameter according to the white balance parameter of the main flash effective point and the weight of the main flash effective pixel point.
It should be noted that fig. 8 is a schematic diagram of an AWB value calculation area, and as shown in fig. 8, a circle is identified as a distribution of a reference point (e.g., a pre-flash reference point) in an R/G, B/G coordinate system, a square is identified as a distribution of a pixel point (e.g., a pre-flash pixel point) on an image acquired by a current camera in an R/G, B/G coordinate system, and a star is identified as an AWB value calculated by combining a reference point weight (e.g., a pre-flash reference point weight) and a pixel point weight (e.g., a pre-flash pixel point weight).
In the embodiment of the present invention, the terminal may determine, according to the distribution position of the reference point (for example, the main flash reference point) in fig. 8, that an image pixel point in an effective area of the main flash image is a main flash effective pixel point, for example, a pixel point in area 1 in fig. 8 is a main flash effective pixel point, and determine the weight of the main flash effective pixel point according to the distance between the main flash effective pixel point and the main flash reference point, where the weight of the main flash effective pixel point farther from the main flash reference point is smaller, and the weight of the main flash effective pixel point closer to the main flash reference point is larger. Therefore, the terminal obtains the weight corresponding to each main flashing effective pixel point, and the terminal obtains the R/G and the B/G (namely the main flashing effective point white balance parameters) of each main flashing effective pixel point according to the RGB value of each pre-flashing effective pixel point, the formula (1) and the formula (2), so that the terminal carries out weighted average on all the main flashing effective pixel points according to the main flashing effective point white balance parameters and the weight of the main flashing effective pixel points to obtain the third white balance parameters.
It should be noted that, in the embodiment of the present invention, the valid region of the main flash reference point may be divided into a plurality of level circles, the weights of the main flash valid pixel points in each level circle are consistent, and the weight of the main flash valid pixel point in the level circle closer to the main flash reference point is larger. The sum of the weights of all the rank circles is 1.
S105, determining a current white balance parameter based on the number of the pre-flash effective pixel points, the first white balance parameter, the second white balance parameter and the third white balance parameter;
after the terminal acquires the third white balance parameter, the number of pre-flashing effective pixel points, the first white balance parameter, the second white balance parameter and the third white balance parameter which are acquired by the terminal at the moment are sequentially acquired. Therefore, when the terminal shoots and collects the shot image again, the current white balance parameter can be determined based on the number of the pre-flash effective pixel points, the first white balance parameter, the second white balance parameter and the third white balance parameter.
It should be noted that, in the embodiment of the present invention, the terminal may determine the actual current white balance parameter by considering the number of the pre-flashing effective pixels. The terminal mainly judges whether effective pixel points during pre-flashing are the requirements which do not represent most of the pixel points enough according to a preset flashing upper limit threshold and a preset flashing upper limit threshold, if the effective pixel points can represent the effective pixel points, the second white balance parameters during pre-flashing are directly sufficient, but if the effective pixel points cannot represent the effective pixel points, the current white balance parameters are processed under the condition that the first white balance parameters and the third white balance parameters obtained under other two modes need to be considered.
Here, based on the number of pre-flash effective pixels, the first white balance parameter, the second white balance parameter, and the third white balance parameter, the process of determining the current white balance parameter may be: when the number of the pre-flash effective pixel points is larger than a preset flash upper limit threshold, determining a second white balance parameter as the current white balance parameter; when the number of the pre-flash effective pixel points is smaller than a preset flash lower limit threshold, obtaining an intermediate white balance parameter based on the first white balance parameter and the third white balance parameter, and determining the intermediate white balance parameter as a current white balance parameter; and when the number of the pre-flash effective pixel points is between a preset flash upper limit threshold and a preset flash upper limit threshold, obtaining an intermediate white balance parameter based on the first white balance parameter and the third white balance, and determining a current white balance parameter based on the intermediate white balance parameter and the second white balance parameter.
That is, the terminal uses the preset upper flash threshold and the preset lower flash threshold as the boundary, when the boundary is higher than the preset upper flash threshold, the second white balance parameter can be directly used, when the boundary is lower than the preset lower flash threshold, the characteristic that the flash lamp is not turned on and the main flash mode is dominant, and when the boundary is between the preset upper flash threshold and the preset lower flash threshold, the functions of the three modes need to be considered.
Optionally, the preset upper flash threshold may be 1000, the preset lower flash threshold may be 500, and the determination of the values of the preset upper flash threshold and the preset lower flash threshold may be obtained from experimental data or may be determined according to actual conditions, which is not limited in the embodiment of the present invention.
In detail, based on the first white balance parameter and the third white balance parameter, the process of obtaining the intermediate white balance parameter may be: acquiring a current environment brightness value; when the current environment brightness value is larger than the preset environment brightness upper limit value, taking the third white balance parameter as an intermediate white balance parameter; when the current environment brightness value is smaller than the preset environment brightness lower limit value, taking the first white balance parameter as an intermediate white balance parameter; and when the current environment brightness value is between the preset environment brightness lower limit value and the preset environment brightness upper limit value, weighting the first white balance parameter and the third white balance parameter to obtain an intermediate white balance parameter.
That is to say, in the embodiment of the present invention, the terminal considers the influence of the current ambient brightness on the white balance parameter, the terminal determines the white balance parameter used at this time by using the preset ambient brightness upper limit value and the preset ambient brightness lower limit value as the boundaries, when the white balance parameter is higher than the preset ambient brightness upper limit value, the flash lamp is characterized to be bright in the environment and may be turned on, therefore, the third white balance parameter can be directly used, when the white balance parameter is lower than the preset ambient brightness lower limit value, the flash lamp is characterized to be not turned on, the first white balance parameter is used, and when the white balance parameter is between the preset ambient brightness upper limit value and the preset ambient brightness lower limit value, the common effect of the non-turned-on flash lamp and the main flash mode needs to be considered, that is, the first white balance parameter and the third white balance.
Optionally, the preset ambient brightness upper limit value in the embodiment of the present invention may be 5, the preset ambient brightness lower limit value may be 1, and the determination of the preset ambient brightness upper limit value and the preset ambient brightness lower limit value here may be obtained from experimental data, or may be determined according to an actual situation, which is not limited in the embodiment of the present invention.
In this embodiment of the present invention, the process of the terminal determining the current white balance parameter based on the intermediate white balance parameter and the second white balance parameter may be: and weighting the intermediate white balance parameter and the second white balance parameter to determine the current white balance parameter.
And S106, processing the acquired shot image by adopting the current white balance parameters.
When the terminal shoots the image again, the collected shot image can be processed by adopting the current white balance parameter after the current white balance parameter is determined based on the number of the pre-flash effective pixel points, the first white balance parameter, the second white balance parameter and the third white balance parameter.
Illustratively, as shown in fig. 9, the effect of the captured image 1 obtained by the conventional image processing is not as good as that of the captured image 2 obtained by the present application in consideration of the environment and the photographing mode.
It can be understood that, because the terminal can process different white balance parameters based on three groups of white balance parameters corresponding to three modes (no flash, pre-flash and main flash), the current white balance parameters can be dynamically adjusted, so that the quality of a shot image processed by using the current white balance parameters is improved, and the reality of the image color of the shot image is further improved.
Further, as shown in fig. 10, before S101, the image processing method provided by the embodiment of the present invention further includes: s107 and S108, and after S106, the image processing method provided by the embodiment of the present invention further includes: and S109. The following were used:
and S107, receiving a pre-flash function starting instruction.
And S108, responding to the pre-flashing function starting instruction and starting the pre-flashing function.
Before the pre-flashing is carried out, the terminal can realize the starting of the pre-flashing function through the operation with a user, namely the terminal can receive a pre-flashing function starting instruction generated by triggering the terminal function by the user, so that the terminal can respond to the pre-flashing function starting instruction and start the pre-flashing function.
And S109, displaying the processed shot image.
The terminal obtains the processed shot image after processing the acquired shot image by adopting the current white balance parameter, so that the terminal can display the shot image after the shooting processing.
It will be appreciated that the colour and quality of the captured image so displayed by the terminal is better.
Example two
Based on the same inventive concept of the first embodiment, as shown in fig. 11, an embodiment of the present invention provides a terminal 1, where the terminal 1 may include:
the system comprises a processor 10, a storage medium 11, a receiver 12, a camera 13, a display 14 and a communication bus 15, wherein the receiver 12, the storage medium 11, the camera 13 and the display 14 are connected with the processor 10 for communication through the communication bus 15; the processor 10 is configured to execute the image processing program stored in the storage medium 11 to implement the following steps:
when the pre-flash function is started, acquiring a first white balance parameter, wherein the first white balance parameter is acquired when a flash lamp is not started; pre-flashing a target object, acquiring a pre-flashing image of the target object and a reference white balance parameter of a pre-flashing reference point through the camera 13, and acquiring a second white balance parameter; determining the number of pre-flashing effective pixel points in the pre-flashing image according to the pre-flashing reference point; receiving a shooting instruction for starting a flash lamp through the receiver 12, and responding to the shooting instruction to acquire a third white balance parameter; determining a current white balance parameter based on the number of the pre-flash effective pixels, the first white balance parameter, the second white balance parameter and the third white balance parameter; and processing the shot image acquired by the camera 13 by using the current white balance parameter.
Optionally, the processor 10 is specifically configured to determine the second white balance parameter as the current white balance parameter when the number of the pre-flash effective pixel points is greater than a preset flash upper limit threshold; when the number of the pre-flash effective pixel points is smaller than a preset flash lower limit threshold, obtaining an intermediate white balance parameter based on the first white balance parameter and the third white balance parameter, and determining the intermediate white balance parameter as the current white balance parameter; when the number of the pre-flash effective pixel points is between the preset flash lower limit threshold and the preset flash upper limit threshold, obtaining an intermediate white balance parameter based on the first white balance parameter and the third white balance, and determining the current white balance parameter based on the intermediate white balance parameter and the second white balance parameter.
Optionally, the processor 10 is further specifically configured to obtain a current environment brightness value; when the current environment brightness value is larger than a preset environment brightness upper limit value, taking the third white balance parameter as the intermediate white balance parameter; when the current environment brightness value is smaller than a preset environment brightness lower limit value, taking the first white balance parameter as the intermediate white balance parameter; and when the current environment brightness value is between the preset environment brightness lower limit value and the preset environment brightness upper limit value, weighting the first white balance parameter and the third white balance parameter to obtain the intermediate white balance parameter.
Optionally, the processor 10 is further specifically configured to determine the current white balance parameter by weighting the intermediate white balance parameter and the second white balance parameter.
Optionally, the processor 10 is specifically configured to obtain a preflash effective pixel point of the preflash image according to the preflash reference point; determining the weight of the preflash effective pixel points based on the preflash effective pixel points and the preflash reference points; acquiring a preflash effective point white balance parameter of a preflash effective pixel point; and obtaining the second white balance parameter according to the pre-flashing effective point white balance parameter and the weight of the pre-flashing effective pixel point.
Optionally, the processor 10 is specifically configured to obtain a main flash effective pixel point of the shot image according to the main flash reference point; determining the weight of the main flash effective pixel point based on the main flash effective pixel point and the main flash reference point; acquiring a main flash effective point white balance parameter of a main flash effective pixel point; and obtaining the third white balance parameter according to the main flash effective point white balance parameter and the weight of the main flash effective pixel point.
Optionally, the display 14 is configured to display the processed shot image after the shot image acquired by the camera 13 is processed by using the current white balance parameter.
Optionally, the receiver 12 is further configured to receive a pre-flash function starting instruction before the first white balance parameter is obtained;
the processor 10 is further configured to respond to the pre-flash function starting instruction to start the pre-flash function.
It should be noted that, in the embodiment of the present invention, the processor 10 may correspond to the processor 110 in fig. 1, the storage medium 11 may correspond to the memory 109 in fig. 1, the camera 13 may correspond to the interface unit 108 in fig. 1, the receiver 12 may correspond to the rf unit 101 in fig. 1, and the display 14 may correspond to the display unit 106 in fig. 1.
It should be noted that, in practical applications, the various components in the terminal are coupled together by a communication bus 15. It will be appreciated that the communication bus 15 is used to enable connection communication between these components. The communication bus 15 includes a power bus, a control bus, and a status signal bus, in addition to a data bus. But for clarity of illustration the various buses are labeled as communication bus 15 in figure 11.
The Processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronic devices used to implement the processor functions described above may be other devices, and embodiments of the present invention are not limited in particular.
It can be understood that, because the terminal can process different white balance parameters based on three groups of white balance parameters corresponding to three modes (no flash, pre-flash and main flash), the current white balance parameters can be dynamically adjusted, so that the quality of a shot image processed by using the current white balance parameters is improved, and the reality of the image color of the shot image is further improved.
Embodiments of the present invention provide a computer storage medium storing one or more image processing programs, which are executable by one or more processors to implement a method as described in embodiment one.
In practical applications, the storage medium may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory) such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. An image processing method, comprising:
when the pre-flash function is started, acquiring a first white balance parameter, wherein the first white balance parameter is acquired when a flash lamp is not started;
pre-flashing a target object, acquiring a pre-flashing image of the target object and a reference white balance parameter of a pre-flashing reference point, and acquiring a second white balance parameter;
determining the number of pre-flashing effective pixel points in the pre-flashing image according to the pre-flashing reference point; the pre-flashing reference point is a reference point of the light source obtained according to the parameters of the light source during pre-flashing; the pre-flash effective pixel points are image pixel points in an effective area of the pre-flash image determined according to the distribution position of the pre-flash reference points;
receiving a shooting instruction for starting a flash lamp, responding to the shooting instruction, and acquiring a third white balance parameter;
determining a current white balance parameter based on the number of the pre-flash effective pixels, the first white balance parameter, the second white balance parameter and the third white balance parameter;
and processing the acquired shot image by adopting the current white balance parameter.
2. The method of claim 1, wherein determining a current white balance parameter based on the number of pre-flash active pixels, the first white balance parameter, the second white balance parameter, and the third white balance parameter comprises:
when the number of the pre-flash effective pixel points is larger than a preset flash upper limit threshold, determining the second white balance parameter as the current white balance parameter;
when the number of the pre-flash effective pixel points is smaller than a preset flash lower limit threshold, obtaining an intermediate white balance parameter based on the first white balance parameter and the third white balance parameter, and determining the intermediate white balance parameter as the current white balance parameter;
when the number of the pre-flash effective pixel points is between the preset flash lower limit threshold and the preset flash upper limit threshold, obtaining an intermediate white balance parameter based on the first white balance parameter and the third white balance, and determining the current white balance parameter based on the intermediate white balance parameter and the second white balance parameter.
3. The method according to claim 2, wherein the deriving intermediate white balance parameters based on the first white balance parameter and the third white balance parameter comprises:
acquiring a current environment brightness value;
when the current environment brightness value is larger than a preset environment brightness upper limit value, taking the third white balance parameter as the intermediate white balance parameter;
when the current environment brightness value is smaller than a preset environment brightness lower limit value, taking the first white balance parameter as the intermediate white balance parameter;
and when the current environment brightness value is between the preset environment brightness lower limit value and the preset environment brightness upper limit value, weighting the first white balance parameter and the third white balance parameter to obtain the intermediate white balance parameter.
4. The method according to claim 2 or 3, wherein determining the current white balance parameter based on the intermediate white balance parameter and the second white balance parameter comprises:
and weighting the intermediate white balance parameter and the second white balance parameter to determine the current white balance parameter.
5. The method of claim 1, wherein the obtaining the second white balance parameter comprises:
acquiring a pre-flashing effective pixel point of the pre-flashing image according to the pre-flashing reference point;
determining the weight of the preflash effective pixel points based on the preflash effective pixel points and the preflash reference points;
acquiring a preflash effective point white balance parameter of a preflash effective pixel point;
and obtaining the second white balance parameter according to the pre-flashing effective point white balance parameter and the weight of the pre-flashing effective pixel point.
6. The method of claim 1, wherein the obtaining the third white balance parameter comprises:
acquiring a main flash effective pixel point of the shot image according to a main flash reference point; the main flash reference point is a reference point of the light source obtained according to the parameters of the light source during main flash; the main flash effective pixel points are image pixel points in an effective area of the main flash image determined according to the distribution position of the main flash reference points;
determining the weight of the main flash effective pixel point based on the main flash effective pixel point and the main flash reference point;
acquiring a main flash effective point white balance parameter of a main flash effective pixel point;
and obtaining the third white balance parameter according to the main flash effective point white balance parameter and the weight of the main flash effective pixel point.
7. The method of claim 1, wherein after processing the captured image with the current white balance parameters, the method further comprises:
and displaying the processed shot image.
8. The method of claim 1, wherein before the obtaining the first white balance parameter, the method further comprises:
receiving a pre-flash function starting instruction;
and responding to the pre-flashing function starting instruction to start the pre-flashing function.
9. A terminal, comprising: the device comprises a processor, a storage medium, a receiver, a camera, a display and a communication bus, wherein the receiver, the storage medium, the camera and the display are connected with the processor for communication through the communication bus; the processor is configured to execute an image processing program stored in the storage medium to implement the method of any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more image processing programs, which are executable by one or more processors to implement the method of any one of claims 1 to 8.
CN201711461785.2A 2017-12-28 2017-12-28 Image processing method, terminal and computer readable storage medium Active CN108093233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711461785.2A CN108093233B (en) 2017-12-28 2017-12-28 Image processing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711461785.2A CN108093233B (en) 2017-12-28 2017-12-28 Image processing method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108093233A CN108093233A (en) 2018-05-29
CN108093233B true CN108093233B (en) 2020-02-18

Family

ID=62180348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711461785.2A Active CN108093233B (en) 2017-12-28 2017-12-28 Image processing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108093233B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881876B (en) * 2018-08-17 2021-02-02 Oppo广东移动通信有限公司 Method and device for carrying out white balance processing on image and electronic equipment
CN110944116B (en) * 2019-11-08 2021-06-25 瑞芯微电子股份有限公司 Single flash compensation method, apparatus, device and medium based on white balance
WO2022126379A1 (en) * 2020-12-15 2022-06-23 深圳市大疆创新科技有限公司 Method and device for image processing, and image capturing device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4379129B2 (en) * 2004-01-23 2009-12-09 ソニー株式会社 Image processing method, image processing apparatus, and computer program
JP2005347928A (en) * 2004-06-01 2005-12-15 Matsushita Electric Ind Co Ltd Imaging controller, solid-state imaging apparatus, and imaging method
US7652717B2 (en) * 2005-01-11 2010-01-26 Eastman Kodak Company White balance correction in digital camera images
CN101179663A (en) * 2006-11-07 2008-05-14 明基电通股份有限公司 Picture-taking method and system and machine readable medium
JP6049343B2 (en) * 2012-08-01 2016-12-21 キヤノン株式会社 Image processing apparatus, image processing method, and program
CN104754238B (en) * 2013-12-31 2018-03-23 展讯通信(上海)有限公司 A kind of image formation control method and device, imaging control system
WO2016006304A1 (en) * 2014-07-08 2016-01-14 富士フイルム株式会社 Image processing device, imaging device, image processing method, and image processing program

Also Published As

Publication number Publication date
CN108093233A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN107302663B (en) Image brightness adjusting method, terminal and computer readable storage medium
CN107566752B (en) Shooting method, terminal and computer storage medium
CN108900790B (en) Video image processing method, mobile terminal and computer readable storage medium
CN107438163B (en) Photographing method, terminal and computer readable storage medium
CN108848294B (en) Shooting parameter adjusting method, terminal and computer readable storage medium
CN108156393B (en) Image photographing method, mobile terminal and computer-readable storage medium
CN108419008B (en) Shooting method, terminal and computer readable storage medium
CN107231470B (en) Image processing method, mobile terminal and computer readable storage medium
CN107995437B (en) Photo shooting and lighting method and mobile terminal
CN107240072B (en) Screen brightness adjusting method, terminal and computer readable storage medium
CN107465881B (en) Dual-camera focusing method, mobile terminal and computer readable storage medium
CN107040723B (en) Imaging method based on double cameras, mobile terminal and storage medium
CN110035176B (en) Brightness adjusting method of mobile terminal, mobile terminal and storage medium
CN108200421B (en) White balance processing method, terminal and computer readable storage medium
CN109525782A (en) A kind of image pickup method, terminal and computer readable storage medium
CN107705247B (en) Image saturation adjusting method, terminal and storage medium
CN111885307B (en) Depth-of-field shooting method and device and computer readable storage medium
CN108093233B (en) Image processing method, terminal and computer readable storage medium
CN113179374A (en) Image processing method, mobile terminal and storage medium
CN109120858B (en) Image shooting method, device, equipment and storage medium
CN108234893B (en) Brightness adjusting method, brightness adjusting equipment and computer readable storage medium
CN108184105B (en) Method and device for adjusting brightness and computer readable storage medium
CN107896304B (en) Image shooting method and device and computer readable storage medium
CN107241504B (en) Image processing method, mobile terminal and computer readable storage medium
CN110177207B (en) Backlight image shooting method, mobile terminal and computer readable storage medium

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