CN107846554B - 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
CN107846554B
CN107846554B CN201711050382.9A CN201711050382A CN107846554B CN 107846554 B CN107846554 B CN 107846554B CN 201711050382 A CN201711050382 A CN 201711050382A CN 107846554 B CN107846554 B CN 107846554B
Authority
CN
China
Prior art keywords
information
current shooting
light source
image
color
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
CN201711050382.9A
Other languages
Chinese (zh)
Other versions
CN107846554A (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 CN201711050382.9A priority Critical patent/CN107846554B/en
Publication of CN107846554A publication Critical patent/CN107846554A/en
Application granted granted Critical
Publication of CN107846554B publication Critical patent/CN107846554B/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/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses an image processing method, which is used for acquiring light source information of a current shooting environment when detecting that a current shooting interface contains a face image in the shooting process, wherein the light source information comprises: luminance information of the light source and color temperature information of the light source; determining color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment and the corresponding relation between the pre-stored light source information and the adjusting parameters; when the image of the current shooting interface is shot, the skin color of the face image in the current shooting interface is adjusted according to the color information adjusting parameters, and a shot picture after skin color processing is obtained. The embodiment of the invention also discloses a terminal and a computer readable storage medium, which can automatically adjust the image in the shooting process and improve the picture presentation effect of the shot image.

Description

Image processing method, terminal and computer readable storage medium
Technical Field
The present invention relates to image processing technology in the field of information processing, and in particular, to an image processing method, a terminal, and a computer-readable storage medium.
Background
With the continuous development of electronic technology, the development of terminals with shooting functions, especially camera devices, is also a leap forward, so that the requirements of users on the image quality (e.g., color fidelity) of the camera devices are higher and higher. In the prior art, in the process of shooting by using a terminal, the shot skin color is yellow due to the influence of sunshine and other reasons, so that the picture quality effect of shooting is poor.
Disclosure of Invention
In order to solve the foregoing technical problem, embodiments of the present invention provide an image processing method, a terminal, and a computer-readable storage medium, which can automatically adjust an image during a shooting process, thereby improving a picture presentation effect of the shot image.
The technical scheme of the invention is realized as follows:
in one aspect, an embodiment of the present invention provides an image processing method, where the method includes:
in the shooting process, when detecting that a face image is contained in a current shooting interface, obtaining light source information of a current shooting environment, wherein the light source information comprises: luminance information of the light source and color temperature information of the light source;
determining color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment and the corresponding relation between the pre-stored light source information and the adjusting parameters;
when the image of the current shooting interface is shot, the skin color of the face image in the current shooting interface is adjusted according to the color information adjusting parameters, and a shot picture after skin color processing is obtained.
Optionally, the correspondence between the pre-stored light source information and the adjustment parameter includes: the brightness information and the color temperature information correspond to each other, and the color temperature information and the adjusting parameter correspond to each other;
determining color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment and a corresponding relation between prestored light source information and adjusting parameters, including:
searching preset brightness information corresponding to the brightness information of the light source in the current shooting environment in a pre-stored corresponding relation between the brightness information and the color temperature information, searching preset color temperature information corresponding to the color temperature information of the light source in the current shooting environment in the color temperature information corresponding to the preset brightness information, and determining an adjusting parameter corresponding to the preset color temperature information as a color information adjusting parameter of a face image in the current shooting interface;
the pre-stored light source information and adjusting parameter corresponding relation table stores different preset brightness information, different preset color temperature information corresponding to the different preset brightness information, and the different preset color temperature information and the preset adjusting parameter corresponding to the different preset color temperature information in advance.
Optionally, when the image of the current shooting interface is shot, adjusting the skin color of the face image in the current shooting interface according to the color information adjustment parameter includes:
in the process of shooting the image of the current shooting interface, converting the original RAW image of the current shooting interface into an image in an RGB domain, and adjusting the red component information in the YUV domain according to the color information adjusting parameter when converting the image in the RGB domain into the YUV domain.
Optionally, the red component information includes: saturation of the red component and/or hue of the red component; the adjusting the red component information in the YUV domain includes:
reducing saturation of the red component;
and/or changing the hue of the red component to deflect the hue of the red component towards the blue component.
Optionally, before the detecting that the current shooting interface includes the face image, the method includes:
receiving touch operation of a user, wherein the touch operation indicates that a shooting application is opened;
and opening a shooting application, acquiring an image of a current shooting interface, and detecting whether the current shooting interface contains a face image or not by carrying out face recognition on the image of the current shooting interface.
In one aspect, an embodiment of the present invention further provides a terminal, where the terminal includes: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute an image processing program stored in the memory to implement the steps of:
in the shooting process, when detecting that a face image is contained in a current shooting interface, obtaining light source information of a current shooting environment, wherein the light source information comprises: luminance information of the light source and color temperature information of the light source;
determining color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment and the corresponding relation between the pre-stored light source information and the adjusting parameters;
when the image of the current shooting interface is shot, the skin color of the face image in the current shooting interface is adjusted according to the color information adjusting parameters, and a shot picture after skin color processing is obtained.
Optionally, the correspondence between the pre-stored light source information and the adjustment parameter includes: the brightness information and the color temperature information correspond to each other, and the color temperature information and the adjusting parameter correspond to each other; the processor is configured to execute an image processing program stored in the memory to implement the steps of:
searching preset brightness information corresponding to the brightness information of the light source in the current shooting environment in a pre-stored corresponding relation between the brightness information and the color temperature information, searching preset color temperature information corresponding to the color temperature information of the light source in the current shooting environment in the color temperature information corresponding to the preset brightness information, and determining an adjusting parameter corresponding to the preset color temperature information as a color information adjusting parameter of a face image in the current shooting interface;
the pre-stored light source information and adjusting parameter corresponding relation table stores different preset brightness information, different preset color temperature information corresponding to the different preset brightness information, and the different preset color temperature information and the preset adjusting parameter corresponding to the different preset color temperature information in advance.
Optionally, the processor is configured to execute an image processing program stored in the memory to implement the following steps:
in the process of shooting the image of the current shooting interface, converting the original RAW image of the current shooting interface into an image in an RGB domain, and adjusting the red component information in the YUV domain according to the color information adjusting parameter when converting the image in the RGB domain into the YUV domain.
Optionally, the red component information includes: saturation of the red component and/or hue of the red component; the processor is configured to execute an image processing program stored in the memory to implement the steps of:
reducing saturation of the red component;
and/or changing the hue of the red component to deflect the hue of the red component towards the blue component.
Optionally, before the detecting that the current shooting interface includes the face image, the processor is further configured to execute an image processing program stored in the memory, so as to implement the following steps:
receiving touch operation of a user, wherein the touch operation indicates that a shooting application is opened;
and opening a shooting application, acquiring an image of a current shooting interface, and detecting whether the current shooting interface contains a face image or not by carrying out face recognition on the image of the current shooting interface.
In one aspect, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the method as described in any one of the above.
The embodiment of the invention provides an image processing method, a terminal and a computer readable storage medium, wherein in the shooting process, when a current shooting interface is detected to contain a face image, light source information of a current shooting environment is obtained, and the light source information comprises: luminance information of the light source and color temperature information of the light source; determining color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment and the corresponding relation between the pre-stored light source information and the adjusting parameters; when the image of the current shooting interface is shot, the skin color of the face image in the current shooting interface is adjusted according to the color information adjusting parameters, and a shot picture after skin color processing is obtained. According to the image processing method, the terminal and the computer readable storage medium provided by the embodiment of the invention, the color information adjusting parameter of the face image in the current shooting interface can be selected according to the light source information of the current shooting environment, and the image is automatically adjusted according to the color information adjusting parameter in the shooting process, so that the picture presenting effect of the shot image is improved, and the user experience is improved.
Drawings
Fig. 1 is a schematic hardware configuration diagram of an alternative mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a first flowchart illustrating an image processing method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an example of color information adjustment according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a second image processing method according to an embodiment of the present invention;
fig. 6 is a first exemplary diagram of a terminal shooting operation according to an embodiment of the present invention;
fig. 7 is a second exemplary diagram of a terminal shooting operation according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the 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 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 a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi 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).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi 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 WiFi 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 a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
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 rules Function) 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.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
The embodiment of the invention provides an image processing method, which is applied to a terminal, the functions realized by the method can be realized by calling a program code through a processor in the terminal, the program code can be saved in a computer storage medium, and the terminal at least comprises the processor and the storage medium. Fig. 3 is a schematic flow chart of an implementation of an image processing method according to an embodiment of the present invention, as shown in fig. 3, the method may include the following steps:
step 301, in the shooting process, when it is detected that the current shooting interface includes a face image, light source information of the current shooting environment is obtained.
Wherein the light source information includes: luminance information of the light source and color temperature information of the light source.
Specifically, in the embodiment of the present invention, in the shooting process, when it is detected that the current shooting interface includes the face image, the obtaining of the light source information of the current shooting environment may be performed by the terminal, that is, the terminal obtains the light source information of the current shooting environment. Here, the terminal may be a terminal device having a photographing function, for example, a mobile phone, a tablet computer, or the like.
Here, the brightness information of the light source may be classified into three types according to the intensity of the light, i.e., outdoor light, indoor light, and dark light, where the brightness of the outdoor light is greater than that of the indoor light, and the brightness of the indoor light is greater than that of the dark light.
Wherein, the color temperature information of the light source may include: b light, F light, A light, H light, etc. For example, the B light can be understood as sunlight, and the color temperature of the B light is 4800K to 7500K; the F light can be understood as household lighting light, and the color temperature of the F light is about 4100K; the light A can be understood as the light of a coffee hall, and the color temperature of the light A is about 2700K; the H light can be understood as street lamp, and the color temperature of the H light is about 2300K.
Specifically, when a user wants to take a picture through a mobile phone, the user operates the mobile phone to open a camera application on the mobile phone, for example, the mobile phone opens a camera on the mobile phone, and then the mobile phone automatically detects whether a current shooting view field includes a face image, and specifically, whether the current shooting interface includes the face image can be detected through an existing face recognition algorithm. And when the terminal detects the face image, the terminal acquires the light source information of the current shooting environment.
And step 302, determining color information adjustment parameters of the face image in the current shooting interface according to the light source information of the current shooting environment and the corresponding relation between the pre-stored light source information and the adjustment parameters.
The pre-stored light source information and adjusting parameter corresponding relation table stores different preset brightness information, different preset color temperature information corresponding to the different preset brightness information, and the different preset color temperature information and the preset adjusting parameter corresponding to the different preset color temperature information in advance.
Specifically, the terminal searches preset luminance information corresponding to the luminance information of the light source in the current shooting environment from a pre-stored correspondence relationship between the luminance information and the color temperature information, searches preset color temperature information corresponding to the color temperature information of the light source in the current shooting environment from the color temperature information corresponding to the preset luminance information, and determines that the adjusting parameter corresponding to the preset color temperature information is the color information adjusting parameter of the face image in the current shooting interface.
It should be noted that, before shooting, the corresponding relationship between the light source information and the adjustment parameter is determined in advance according to different tests, and then the corresponding relationship between the light source information and the adjustment parameter is stored, during shooting, the adjustment parameter required for current shooting can be determined according to the corresponding relationship between the light source information and the adjustment parameter stored in advance, and then the adjustment parameter required for current shooting is performed during shooting to adjust the color information of the image, so that the image with better picture color is obtained.
The principle of determining the corresponding relationship between the light source information and the adjustment parameter according to the test is as follows.
In the process of image processing (ISP), the process of capturing an image is to convert an original raw image into an RGB domain and then into a YUV domain, and finally generate a jpg image through encoding and decoding, where parameter adjustment provided by the embodiment of the present invention is to perform processing when the RGB domain is converted into the YUV domain, where "Y" represents brightness (Luma) that is a gray level value; "U" and "V" denote Chroma (Chroma) which describes the color and saturation of an image and is used to specify the color of a pixel. For each pixel in the image, the standard formula for converting the RGB domain to the YUV domain is calculated as follows:
Y=0.299*R+0.587*G+0.114*B
Cb=-0.172*R-0.339*G+0.511*B+128
Cr=0.511*R-0.428*G-0.083*B+128
transforming the above formula can obtain:
Cb=a(B-G)+ab(R-G)+128
Cr=cd(B-G)+c(R-G)+128
setting the default parameters a _ m-0.5, b _ m-0.338, c _ m-0.5, d _ m-0.162 yields:
Cb=0.5(B-G)-0.5*0.338(R-G)=-0.169R-0.331G+0.5B+128
Cr=-0.5*0.162(B-G)+0.5(R-G)=0.5R-0.419G-0.081B+128
in accordance with the standard formula above.
Modifying skin tones in an image may include two methods: one is to reduce the saturation of the red component; one is to change the hue of the red component so that the hue of the red component is slightly shifted to blue.
Illustratively, as shown in fig. 4, Ap, Bp, Cp, Dp, Am, Bm, Cm, Dm are tuning parameters, Ap, Bp, Cp, Dp are a set of tuning parameters, Am, Bm, Cm, Dm are a set of tuning parameters, and Am, Bm, Cm, Dm are understood as a _ m, b _ m, c _ m, d _ m. The point corresponding to 16 in the figure represents yellow, i.e. the yellow component is adjusted by the parameters Am, Dm; 15 represents red, i.e. the red component is adjusted by the parameters Cp, Bp; 13 represents blue, i.e. the blue component is adjusted by the parameters Ap, Dp; 14 represents green, i.e. the green component is adjusted by the parameters Cm, Bm; here, the saturation of the red component is reduced, i.e. Cp is reduced; the hue of the red component is changed to slightly shift the hue of the red component to blue, i.e., Bp is changed to slightly shift Bp to the point corresponding to 13.
And 303, when the image of the current shooting interface is shot, adjusting the skin color of the face image in the current shooting interface according to the color information adjusting parameter to obtain a shot image with the processed skin color.
Specifically, in the process of shooting the image of the current shooting interface, the terminal converts the original RAW image of the current shooting interface into the image of an RGB domain, and adjusts the red component information in the YUV domain according to the color information adjustment parameter when converting the image of the RGB domain into the YUV domain, so as to obtain the shooting picture after skin color processing. Wherein the red component information includes: saturation of the red component and/or hue of the red component.
RGB represents colors of three channels of red, green, and blue, and various colors are obtained by changing the three color channels of red (R), green (G), and blue (B) and superimposing them on each other. Methods of encoding a color are collectively referred to as "color space" or "color gamut". The "color space" of any color in the world can be defined as a fixed number or variable. RGB (red, green, blue) is just one of many color spaces. With this encoding method, each color can be represented by three variables-the intensity of red green and blue.
YUV is a color coding method (belonging to PAL) adopted by European television system, and is a color space adopted by PAL and SECAM analog color television system. In modern color television systems, a three-tube color camera or a color CCD camera is usually used for image capture, then the obtained color image signals are subjected to color separation and respective amplification and correction to obtain RGB, and then a luminance signal Y and two color difference signals B-Y (i.e., U) and R-Y (i.e., V) are obtained through a matrix conversion circuit, and finally a transmitting end respectively encodes the luminance signal and the color difference signals and transmits the encoded signals through the same channel. This color representation is called YUV color space representation. The importance of using the YUV color space is that its luminance signal Y and chrominance signal U, V are separate.
The image processing method provided by the embodiment of the invention can select the color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment, and automatically adjust the image according to the color information adjusting parameters in the shooting process, thereby improving the picture presentation effect of the shot image and improving the user experience.
The embodiment of the invention provides an image processing method, which is applied to a terminal, the functions realized by the method can be realized by calling a program code through a processor in the terminal, the program code can be saved in a computer storage medium, and the terminal at least comprises the processor and the storage medium. Fig. 5 is a schematic flow chart of an implementation of an image processing method according to an embodiment of the present invention, and as shown in fig. 5, the method may include the following steps:
step 401, receiving a touch operation of a user, where the touch operation indicates to open a shooting application.
Specifically, in the embodiment of the present invention, the receiving of the touch operation of the user may be performed by the terminal, that is, the terminal receives the touch operation of the user. Here, the terminal may be a terminal device having a photographing function, for example, a mobile phone, a tablet computer, or the like.
The touch operation may be a click operation, a touch operation, a key operation, or other operations for opening a shooting application, which is not limited in the embodiments of the present invention.
Step 402, opening a shooting application, acquiring an image of a current shooting interface, and detecting whether the current shooting interface contains a face image or not by performing face recognition on the image of the current shooting interface.
Specifically, when a user wants to take a picture through a mobile phone, the user operates the mobile phone, as shown in fig. 6 and 7, a camera application on the mobile phone is opened, for example, the mobile phone opens a camera on the mobile phone, and then the mobile phone automatically detects whether a current shooting view field includes a face image, and specifically, whether the current shooting interface includes the face image can be detected through an existing face recognition algorithm.
And 402, when the current shooting interface is detected to contain the face image, acquiring light source information of the current shooting environment.
Wherein the light source information includes: luminance information of the light source and color temperature information of the light source. The brightness information of the light source is divided into three types, namely outdoor light, indoor light and dark light, wherein the brightness of the outdoor light is greater than that of the indoor light, and the brightness of the indoor light is greater than that of the dark light. The color temperature information of the light source may include: b light, F light, A light, H light, etc.
Step 403, searching preset luminance information corresponding to the luminance information of the light source in the current shooting environment in a pre-stored correspondence relationship between the luminance information and the color temperature information, searching preset color temperature information corresponding to the color temperature information of the light source in the current shooting environment in the color temperature information corresponding to the preset luminance information, and determining that the adjustment parameter corresponding to the preset color temperature information is the color information adjustment parameter of the face image in the current shooting interface.
The pre-stored light source information and adjusting parameter corresponding relation table stores different preset brightness information, different preset color temperature information corresponding to the different preset brightness information, and the different preset color temperature information and the preset adjusting parameter corresponding to the different preset color temperature information in advance.
Illustratively, as shown in table 1, the light source information and the adjustment parameter are shown in a corresponding relationship table. The method comprises the steps of acquiring brightness information of a light source in the current shooting environment as outdoor light, searching preset brightness information corresponding to the brightness information of the outdoor light source in the current shooting environment as the outdoor light in a pre-stored corresponding relation between the brightness information and color temperature information, searching preset color temperature information B light corresponding to color temperature information B light of the light source in the shooting environment in the color temperature information of the light source corresponding to the outdoor light, and determining that an adjusting parameter corresponding to the B light is a color information adjusting parameter of a face image in a front shooting interface, namely parameter 1 is a color information adjusting parameter of the face image in the front shooting interface.
TABLE 1 light source information and adjusting parameter corresponding relation table
Figure BDA0001453055230000151
Step 404, in the process of shooting the image of the current shooting interface, converting the original RAW image of the current shooting interface into an image of an RGB domain, and when converting the image of the RGB domain into a YUV domain, adjusting red component information in the YUV domain according to the color information adjustment parameter to obtain a shot image after skin color processing.
The red component information includes: saturation of the red component and/or hue of the red component.
Specifically, in the process of shooting the image of the current shooting interface by the terminal, the original raw image is converted into an RGB domain and then converted into a YUV domain, and finally a jpg picture is generated through encoding and decoding, wherein the jpg picture is a shot picture. The terminal adjusting the red component information in the YUV domain may include: the terminal reduces the saturation of the red component; and/or changing the hue of the red component to deflect the hue of the red component towards the blue component.
The terminal obtains RAW RAW data of an image to be processed through an image sensor arranged in the terminal. Wherein the image sensor may include: a Charge-coupled Device (CCD) image sensor, a Color Filter Array (CFA) element of a Complementary Metal Oxide Semiconductor (CMOS) image sensor.
The image processing method provided by the embodiment of the invention can select the color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment, and automatically adjust the image according to the color information adjusting parameters in the shooting process, thereby improving the picture presentation effect of the shot image and improving the user experience.
An embodiment of the present invention further provides a terminal 50, as shown in fig. 8, where the terminal 50 includes: a processor 501, a memory 502, and a communication bus 503;
the communication bus 503 is used for realizing connection communication between the processor 501 and the memory 502;
the processor 501 is configured to execute an image processing program stored in the memory 502 to implement the following steps:
in the shooting process, when detecting that a face image is contained in a current shooting interface, obtaining light source information of a current shooting environment, wherein the light source information comprises: luminance information of the light source and color temperature information of the light source;
determining color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment and the corresponding relation between the pre-stored light source information and the adjusting parameters;
when the image of the current shooting interface is shot, the skin color of the face image in the current shooting interface is adjusted according to the color information adjusting parameters, and a shot picture after skin color processing is obtained.
Further, the correspondence between the pre-stored light source information and the adjustment parameter includes: the brightness information and the color temperature information correspond to each other, and the color temperature information and the adjusting parameter correspond to each other; the processor 501 is configured to execute an image processing program stored in the memory 502 to implement the following steps:
searching preset brightness information corresponding to the brightness information of the light source in the current shooting environment in a pre-stored corresponding relation between the brightness information and the color temperature information, searching preset color temperature information corresponding to the color temperature information of the light source in the current shooting environment in the color temperature information corresponding to the preset brightness information, and determining an adjusting parameter corresponding to the preset color temperature information as a color information adjusting parameter of a face image in the current shooting interface;
the pre-stored light source information and adjusting parameter corresponding relation table stores different preset brightness information, different preset color temperature information corresponding to the different preset brightness information, and the different preset color temperature information and the preset adjusting parameter corresponding to the different preset color temperature information in advance.
Further, the processor 501 is configured to execute the image processing program stored in the memory 502 to implement the following steps:
in the process of shooting the image of the current shooting interface, converting the original RAW image of the current shooting interface into an image in an RGB domain, and adjusting the red component information in the YUV domain according to the color information adjusting parameter when converting the image in the RGB domain into the YUV domain.
Further, the red component information includes: saturation of the red component and/or hue of the red component; the processor 501 is configured to execute an image processing program stored in the memory 502 to implement the following steps:
reducing saturation of the red component;
and/or changing the hue of the red component to deflect the hue of the red component towards the blue component.
Further, before the time when the face image is detected to be included in the current shooting interface, the processor 501 is further configured to execute an image processing program stored in the memory 502, so as to implement the following steps:
receiving touch operation of a user, wherein the touch operation indicates that a shooting application is opened;
and opening a shooting application, acquiring an image of a current shooting interface, and detecting whether the current shooting interface contains a face image or not by carrying out face recognition on the image of the current shooting interface.
Here, the memory 502 may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a magnetic random access Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 502 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 502 in embodiments of the present invention is used to store various types of data to support the operation of the terminal 50. Examples of such data include: any computer program for operating on the terminal 50, such as an operating system and application programs; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. The program for implementing the method of the embodiment of the present invention may be included in the application program.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. Processor 501 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 502, and the processor 501 reads the information in the memory 502 and performs the steps of the aforementioned methods in conjunction with its hardware.
Specifically, for understanding of the terminal provided in the embodiment of the present invention, reference may be made to the description of the embodiment of the image processing method, and details of the embodiment of the present invention are not repeated herein.
The terminal provided by the embodiment of the invention can select the color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment, and automatically adjust the image according to the color information adjusting parameters in the shooting process, thereby improving the picture presentation effect of the shot image and improving the user experience.
In the embodiment of the present invention, if the image processing method is implemented in the form of a software functional module and sold or used as a standalone product, the image processing method may also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
An embodiment of the present invention provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of:
in the shooting process, when detecting that a face image is contained in a current shooting interface, obtaining light source information of a current shooting environment, wherein the light source information comprises: luminance information of the light source and color temperature information of the light source;
determining color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment and the corresponding relation between the pre-stored light source information and the adjusting parameters;
when the image of the current shooting interface is shot, the skin color of the face image in the current shooting interface is adjusted according to the color information adjusting parameters, and a shot picture after skin color processing is obtained.
The above description of the computer-readable storage medium embodiments, similar to the above description of the method, has the same beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the computer-readable storage medium of the present invention, a person skilled in the art shall understand with reference to the description of the embodiments of the method of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. An image processing method, characterized in that the method comprises:
in the shooting process, when detecting that a face image is contained in a current shooting interface, obtaining light source information of a current shooting environment, wherein the light source information comprises: luminance information of the light source and color temperature information of the light source;
determining color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment and a pre-stored corresponding relationship between the light source information and the adjusting parameters, wherein the pre-stored corresponding relationship between the light source information and the adjusting parameters comprises: the brightness information and the color temperature information correspond to each other, and the color temperature information and the adjusting parameter correspond to each other; the determining of the color information adjustment parameter of the face image in the current shooting interface comprises: searching preset brightness information corresponding to the brightness information of the light source in the current shooting environment in a pre-stored corresponding relation between the brightness information and the color temperature information, searching preset color temperature information corresponding to the color temperature information of the light source in the current shooting environment in the color temperature information corresponding to the preset brightness information, and determining an adjusting parameter corresponding to the preset color temperature information as a color information adjusting parameter of a face image in the current shooting interface; the method comprises the steps that different preset brightness information, different preset color temperature information corresponding to the different preset brightness information and different preset adjusting parameters corresponding to the different preset color temperature information are stored in a pre-stored corresponding relation table of light source information and adjusting parameters in advance;
when the image of the current shooting interface is shot, adjusting the skin color of the face image in the current shooting interface according to the color information adjusting parameters to obtain a shot picture with processed skin color, wherein the shot picture with processed skin color is a picture with processed skin color of the face image.
2. The method according to claim 1, wherein the adjusting the skin color of the face image in the current shooting interface according to the color information adjusting parameter when shooting the image of the current shooting interface comprises:
in the process of shooting the image of the current shooting interface, converting the original RAW image of the current shooting interface into an image in an RGB domain, and adjusting the red component information in the YUV domain according to the color information adjusting parameter when converting the image in the RGB domain into the YUV domain.
3. The method of claim 2, wherein the red component information comprises: saturation of the red component and/or hue of the red component; the adjusting the red component information in the YUV domain includes:
reducing saturation of the red component;
and/or changing the hue of the red component to deflect the hue of the red component towards the blue component.
4. The method according to claim 1, wherein before the detecting that the current shooting interface contains the face image, the method comprises:
receiving touch operation of a user, wherein the touch operation indicates that a shooting application is opened;
and opening a shooting application, acquiring an image of a current shooting interface, and detecting whether the current shooting interface contains a face image or not by carrying out face recognition on the image of the current shooting interface.
5. A terminal, characterized in that the terminal comprises: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute an image processing program stored in the memory to implement the steps of:
in the shooting process, when detecting that a face image is contained in a current shooting interface, obtaining light source information of a current shooting environment, wherein the light source information comprises: luminance information of the light source and color temperature information of the light source;
determining color information adjusting parameters of the face image in the current shooting interface according to the light source information of the current shooting environment and a pre-stored corresponding relationship between the light source information and the adjusting parameters, wherein the pre-stored corresponding relationship between the light source information and the adjusting parameters comprises: the brightness information and the color temperature information correspond to each other, and the color temperature information and the adjusting parameter correspond to each other; the determining of the color information adjustment parameter of the face image in the current shooting interface comprises: searching preset brightness information corresponding to the brightness information of the light source in the current shooting environment in a pre-stored corresponding relation between the brightness information and the color temperature information, searching preset color temperature information corresponding to the color temperature information of the light source in the current shooting environment in the color temperature information corresponding to the preset brightness information, and determining an adjusting parameter corresponding to the preset color temperature information as a color information adjusting parameter of a face image in the current shooting interface; the method comprises the steps that different preset brightness information, different preset color temperature information corresponding to the different preset brightness information and different preset adjusting parameters corresponding to the different preset color temperature information are stored in a pre-stored corresponding relation table of light source information and adjusting parameters in advance;
when the image of the current shooting interface is shot, adjusting the skin color of the face image in the current shooting interface according to the color information adjusting parameters to obtain a shot picture with processed skin color, wherein the shot picture with processed skin color is a picture with processed skin color of the face image.
6. The terminal of claim 5, wherein the processor is configured to execute an image processing program stored in the memory to perform the steps of:
in the process of shooting the image of the current shooting interface, converting the original RAW image of the current shooting interface into an image in an RGB domain, and adjusting the red component information in the YUV domain according to the color information adjusting parameter when converting the image in the RGB domain into the YUV domain.
7. The terminal of claim 6, wherein the red component information comprises: saturation of the red component and/or hue of the red component; the processor is configured to execute an image processing program stored in the memory to implement the steps of:
reducing saturation of the red component;
and/or changing the hue of the red component to deflect the hue of the red component towards the blue component.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the method according to any one of claims 1 to 4.
CN201711050382.9A 2017-10-31 2017-10-31 Image processing method, terminal and computer readable storage medium Active CN107846554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711050382.9A CN107846554B (en) 2017-10-31 2017-10-31 Image processing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711050382.9A CN107846554B (en) 2017-10-31 2017-10-31 Image processing method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107846554A CN107846554A (en) 2018-03-27
CN107846554B true CN107846554B (en) 2020-09-01

Family

ID=61681988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711050382.9A Active CN107846554B (en) 2017-10-31 2017-10-31 Image processing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107846554B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995418B (en) * 2017-11-21 2020-07-21 维沃移动通信有限公司 Shooting method and device and mobile terminal
CN108540716A (en) * 2018-03-29 2018-09-14 广东欧珀移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN110177237B (en) * 2018-11-13 2021-06-01 广东小天才科技有限公司 Video call image adjusting method and wearable device
CN109901905B (en) * 2019-02-28 2023-03-10 网易(杭州)网络有限公司 Picture color modulation method, device, equipment and computer readable storage medium
CN110113534B (en) * 2019-05-13 2021-04-23 Oppo广东移动通信有限公司 Image processing method, image processing device and mobile terminal
CN110602403A (en) * 2019-09-23 2019-12-20 华为技术有限公司 Method for taking pictures under dark light and electronic equipment
CN112653819B (en) * 2020-12-15 2023-09-26 上海豫兴电子科技有限公司 Image display method and device of vehicle-mounted camera, electronic equipment and storage medium
WO2023108443A1 (en) * 2021-12-14 2023-06-22 深圳传音控股股份有限公司 Image processing method, smart terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016193022A (en) * 2015-03-31 2016-11-17 株式会社エクォス・リサーチ Pulse wave detection device and pulse wave detection program
US9513724B2 (en) * 2011-08-30 2016-12-06 Blackberry Limited Device and method for adjusting object illumination

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448085B (en) * 2008-12-26 2013-08-21 北京中星微电子有限公司 Videography processing method and system supporting face detection
CN105187810B (en) * 2014-11-11 2017-06-06 怀效宁 A kind of auto white balance method and electronic medium device based on face color character
CN104735362B (en) * 2015-03-11 2017-11-07 广东欧珀移动通信有限公司 Photographic method and device
CN105744174B (en) * 2016-02-15 2019-03-08 Oppo广东移动通信有限公司 A kind of self-timer method, device and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9513724B2 (en) * 2011-08-30 2016-12-06 Blackberry Limited Device and method for adjusting object illumination
JP2016193022A (en) * 2015-03-31 2016-11-17 株式会社エクォス・リサーチ Pulse wave detection device and pulse wave detection program

Also Published As

Publication number Publication date
CN107846554A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN107846554B (en) Image processing method, terminal and computer readable storage medium
CN108900790B (en) Video image processing method, mobile terminal and computer readable storage medium
CN108848294B (en) Shooting parameter adjusting method, terminal and computer readable storage medium
CN107731199B (en) Screen color temperature adjusting method, terminal and computer readable storage medium
CN107302663B (en) Image brightness adjusting method, terminal and computer readable storage medium
CN107438163B (en) Photographing method, terminal and computer readable storage medium
CN107038715B (en) Image processing method and device
WO2018082165A1 (en) Optical imaging method and apparatus
CN110908765A (en) Interface display method and device, terminal equipment and storage medium
CN108184105B (en) Method and device for adjusting brightness and computer readable storage medium
CN107465881B (en) Dual-camera focusing method, mobile terminal and computer readable storage medium
CN107705247B (en) Image saturation adjusting method, terminal and storage medium
US10516860B2 (en) Image processing method, storage medium, and terminal
CN108200421B (en) White balance processing method, terminal and computer readable storage medium
CN108229372B (en) Fingerprint identification method, mobile terminal and computer readable storage medium
CN109639996B (en) High dynamic scene imaging method, mobile terminal and computer readable storage medium
CN107995437B (en) Photo shooting and lighting method and mobile terminal
CN107295270B (en) Image brightness value determination method and device, terminal and computer-readable storage medium
CN113179374A (en) Image processing method, mobile terminal and storage medium
CN108200347A (en) A kind of image processing method, terminal and computer readable storage medium
CN113179369B (en) Shot picture display method, mobile terminal and storage medium
CN107241504B (en) Image processing method, mobile terminal and computer readable storage medium
CN111787235A (en) Shooting control method and device and computer readable storage medium
CN113596231B (en) Screen-throwing display control method, device and computer readable storage medium
CN108093233B (en) Image processing method, 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