CN109639981B - Image shooting method and mobile terminal - Google Patents

Image shooting method and mobile terminal Download PDF

Info

Publication number
CN109639981B
CN109639981B CN201811643194.1A CN201811643194A CN109639981B CN 109639981 B CN109639981 B CN 109639981B CN 201811643194 A CN201811643194 A CN 201811643194A CN 109639981 B CN109639981 B CN 109639981B
Authority
CN
China
Prior art keywords
region
area
image
skin
eye
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
CN201811643194.1A
Other languages
Chinese (zh)
Other versions
CN109639981A (en
Inventor
刘雨莳
李璨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811643194.1A priority Critical patent/CN109639981B/en
Publication of CN109639981A publication Critical patent/CN109639981A/en
Application granted granted Critical
Publication of CN109639981B publication Critical patent/CN109639981B/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/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

Abstract

The invention provides an image shooting method and a mobile terminal, wherein the method comprises the following steps: acquiring a preview image for a target face; determining an eye white region, a nose region and a skin region according to the preview image; determining an exposure adjustment value according to the attributes of the eye white area, the nose area and the skin area; according to the exposure adjustment value, shooting operation is performed on the target face, color difference of an eye white area, a nose area and a skin area can be achieved, detection of race complexion is achieved, different exposure adjustment values can be adjusted according to different race complexion, accordingly shooting quality of face images is improved, and use experience of users is improved.

Description

Image shooting method and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to an image shooting method and a mobile terminal.
Background
With the continuous development of scientific technology, the technology of the existing mobile terminal in the aspect of photographing is also changing day by day, and not only is the automatic exposure of the image processing software, but also the automatic exposure aiming at the human face is realized.
However, in the using process of the user, the face of the shot photo is still too dark or too bright. For example: for a particularly dark person, the exposure intensity of the existing automatic exposure is still insufficient, and the face exposure is still particularly dark, or for a particularly white person, the exposure intensity of the existing automatic exposure is excessive, so that the face is particularly bright, and the effect of perfect exposure is difficult to achieve.
Disclosure of Invention
The embodiment of the invention provides an image shooting method and a mobile terminal, and aims to solve the problem that in the prior art, the automatic exposure effect is poor when an image is shot.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image capturing method, where the method includes: acquiring a preview image for a target face; determining an eye white region, a nose region and a skin region according to the preview image; determining an exposure adjustment value according to the attributes of the white eye region, the nose region and the skin region; and executing shooting operation on the target face according to the exposure adjustment value.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes: the acquisition module is used for acquiring a preview image aiming at a target face; the first determining module is used for determining an eye white area, a nose area and a skin area according to the preview image; a second determining module, configured to determine an exposure adjustment value according to attributes of the white eye region, the nose region, and the skin region; and the shooting module is used for executing shooting operation on the target face according to the exposure adjustment value.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the image capturing method.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the image capturing method.
In the embodiment of the invention, the preview image aiming at the target face is obtained; determining an eye white region, a nose region and a skin region according to the preview image; determining an exposure adjustment value according to the attributes of the eye white area, the nose area and the skin area; according to the exposure adjustment value, shooting operation is performed on the target face, color difference of an eye white area, a nose area and a skin area can be achieved, detection of race complexion is achieved, different exposure adjustment values can be adjusted according to different race complexion, accordingly shooting quality of face images is improved, and use experience of users is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of an image capturing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of an image capturing method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of an image capturing method according to a first embodiment of the present invention is shown.
The image shooting method provided by the embodiment of the invention comprises the following steps:
step 101: and acquiring a preview image aiming at the target face.
When photographing is needed, a front camera or a rear camera is called to obtain a preview image of a target face.
Step 102: from the preview image, an eye white region, a nose region, and a skin region are determined.
And performing resampling processing on the preview image to generate a target image. Resampling refers to the process of interpolating information of one type of pixel from information of another type of pixel. In remote sensing, resampling is a process of extracting a low-resolution image from a high-resolution remote sensing image.
In this embodiment, the preview image may be divided into a plurality of specific images having unique properties, and an eye white region, a nose region, and a skin region may be acquired from each of the divided images.
Step 103: and determining an exposure adjustment value according to the attributes of the eye white area, the nose area and the skin area.
Because the skin areas of people with different skin colors are different, the skin colors can be detected according to the eye white area, the nose area and the skin area, the automatic exposure values corresponding to the face images with different skin colors are different, and the exposure adjustment value is determined through the eye white area, the nose area and the skin area.
Step 104: and executing shooting operation on the target face according to the exposure adjustment value.
The target face is shot through the exposure adjustment value, and the shot image effect of the target face is better because the exposure adjustment value is different for different skin colors.
In the embodiment of the invention, the preview image aiming at the target face is obtained; determining an eye white region, a nose region and a skin region according to the preview image; determining an exposure adjustment value according to the attributes of the eye white area, the nose area and the skin area; according to the exposure adjustment value, shooting operation is performed on the target face, color difference of an eye white area, a nose area and a skin area can be achieved, detection of race complexion is achieved, different exposure adjustment values can be adjusted according to different race complexion, accordingly shooting quality of face images is improved, and use experience of users is improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of an image capturing method according to a second embodiment of the present invention is shown.
The image shooting method provided by the embodiment of the invention comprises the following steps:
step 201: and recording the corresponding relation between the exposure value of the historical face image and the historical face image shot each time in a preset time period.
It should be noted that, a person skilled in the art may set the preset time period according to actual situations, and the preset time period may be set to be one month, two months, three months, and the like, and the embodiment of the present invention is not limited in particular to this. And, each historical face image corresponds to an exposure value.
Step 202: and training based on the corresponding relation between the historical face images and the exposure values of the historical face images to obtain a prediction model.
Step 203: and acquiring a preview image aiming at the target face.
When photographing is needed, a front camera or a rear camera is called to obtain a preview image of a target face.
Step 204: and performing resampling processing on the preview image to generate a target image.
And performing resampling processing on the preview image to generate a target image. Resampling refers to the process of interpolating information of one type of pixel from information of another type of pixel. In remote sensing, resampling is a process of extracting a low-resolution image from a high-resolution remote sensing image.
Step 205: the target image is divided to generate divided images.
Image segmentation is a technique and process that divides an image into several specific regions with unique properties and proposes an object of interest. It is a key step from image processing to image analysis. The existing image segmentation methods mainly include the following categories: a threshold-based segmentation method, a region-based segmentation method, an edge-based segmentation method, a particular theory-based segmentation method, and the like acquire an eye white region, a nose region, and a skin region from each of the segmented images.
Each of the segmented images includes an eye region, a nose region, an eyebrow region, an ear region, a skin region, and the like.
Step 206: a skin region, a nose region, and an eye region are determined from each of the segmented images.
Step 207: and dividing the eye area into eye white areas.
The skin area, the nose area and the eye area in each segmented image are acquired, and the white eye area is segmented by image segmentation of the image of the eye area.
Step 208: and randomly selecting the first pixel points of the skin area with the preset number, the second pixel points of the nose area with the preset number and the third pixel points of the eye white area with the preset number.
For example: and randomly selecting 5 pixel points from the skin area, the nose area and the white eye area.
Each pixel point is of three colors of RGB, and a 15 x 3 vector is formed in total.
Step 209: and processing each first pixel point, each second pixel point and each third pixel point through a prediction model to obtain an exposure adjustment value of the target face.
The input of the prediction model is an RGB image with a face region scaled to 64x64 size, and 45-dimensional single-point features extracted in section 2.5 are copied to a 64x64 feature plane, and Concat operation is performed to obtain a 48-dimensional 64x64 input. And processing the input pixel points by the prediction model to obtain the exposure adjustment value of the target face.
Step 210: and executing shooting operation on the target face according to the exposure adjustment value.
In the embodiment of the invention, the preview image aiming at the target face is obtained; determining an eye white region, a nose region and a skin region according to the preview image; determining an exposure adjustment value according to the attributes of the eye white area, the nose area and the skin area; according to the exposure adjustment value, shooting operation is performed on the target face, color difference of an eye white area, a nose area and a skin area can be achieved, detection of race complexion is achieved, different exposure adjustment values can be adjusted according to different race complexion, accordingly shooting quality of face images is improved, and use experience of users is improved.
EXAMPLE III
Referring to fig. 3, a block diagram of a mobile terminal according to a third embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: an obtaining module 301, configured to obtain a preview image for a target face; a first determining module 302, configured to determine an eye white region, a nose region, and a skin region according to the preview image; a second determining module 303, configured to determine an exposure adjustment value according to attributes of the white eye region, the nose region, and the skin region; and the shooting module 304 is configured to perform a shooting operation on the target face according to the exposure adjustment value.
In the embodiment of the invention, the preview image aiming at the target face is obtained; determining an eye white region, a nose region and a skin region according to the preview image; determining an exposure adjustment value according to the attributes of the eye white area, the nose area and the skin area; according to the exposure adjustment value, shooting operation is performed on the target face, color difference of an eye white area, a nose area and a skin area can be achieved, detection of race complexion is achieved, different exposure adjustment values can be adjusted according to different race complexion, accordingly shooting quality of face images is improved, and use experience of users is improved.
Example four
Referring to fig. 4, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: an obtaining module 401, configured to obtain a preview image for a target face; a first determining module 402, configured to determine an eye white region, a nose region, and a skin region according to the preview image; a second determining module 403, configured to determine an exposure adjustment value according to attributes of the white eye region, the nose region, and the skin region; and a shooting module 404, configured to perform a shooting operation on the target face according to the exposure adjustment value.
Preferably, the first determining module 402 comprises: the first processing submodule 4021 is configured to perform resampling processing on the preview image to generate a target image; a generation submodule 4022 configured to perform segmentation processing on the target image to generate each segmented image; a determination sub-module 4023 for determining a skin region, a nose region, and an eye region from each of the segmented images; a segmentation sub-module 4024, configured to segment the eye region into an eye white region.
Preferably, the mobile terminal further includes: a recording module 405, configured to record, in a preset time period, a corresponding relationship between an exposure value of each shot historical face image and the historical face image before the obtaining module 401 obtains a preview image for a target face; and the training module 406 is configured to perform training based on a corresponding relationship between each historical face image and the exposure value of the historical face image, so as to obtain a prediction model.
Preferably, the second determining module 403 includes: a selection submodule 4031 configured to arbitrarily select a preset number of first pixel points of the skin region, a preset number of second pixel points of the nose region, and a preset number of third pixel points of the white region; and the second processing submodule 4032 is configured to process each of the first pixel points, each of the second pixel points, and each of the third pixel points through a prediction model, so as to obtain an exposure adjustment value of the target face.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In the embodiment of the invention, the preview image aiming at the target face is obtained; determining an eye white region, a nose region and a skin region according to the preview image; determining an exposure adjustment value according to the attributes of the eye white area, the nose area and the skin area; according to the exposure adjustment value, shooting operation is performed on the target face, color difference of an eye white area, a nose area and a skin area can be achieved, detection of race complexion is achieved, different exposure adjustment values can be adjusted according to different race complexion, accordingly shooting quality of face images is improved, and use experience of users is improved.
EXAMPLE five
Referring to fig. 5, a hardware structure diagram of a mobile terminal for implementing various embodiments of the present invention is shown.
The mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 510 for obtaining a preview image for a target face; determining an eye white region, a nose region and a skin region according to the preview image; determining an exposure adjustment value according to the attributes of the white eye region, the nose region and the skin region; and executing shooting operation on the target face according to the exposure adjustment value.
In the embodiment of the invention, the preview image aiming at the target face is obtained; determining an eye white region, a nose region and a skin region according to the preview image; determining an exposure adjustment value according to the attributes of the eye white area, the nose area and the skin area; according to the exposure adjustment value, shooting operation is performed on the target face, color difference of an eye white area, a nose area and a skin area can be achieved, detection of race complexion is achieved, different exposure adjustment values can be adjusted according to different race complexion, accordingly shooting quality of face images is improved, and use experience of users is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 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 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture 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 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 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), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 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 507 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 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 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 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 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 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. 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 508 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 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 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 509 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 510 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 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 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 processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the image capturing method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned image capturing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. An image shooting method is applied to a mobile terminal, and is characterized by comprising the following steps:
acquiring a preview image for a target face;
determining an eye white region, a nose region and a skin region according to the preview image;
determining an exposure adjustment value according to the attributes of the white eye region, the nose region and the skin region;
according to the exposure adjustment value, shooting operation is carried out on the target face;
wherein the determining an exposure adjustment value according to the attributes of the white eye region, the nose region, and the skin region comprises:
determining the skin color of the target human face according to the color difference of the eye white area, the nose area and the skin area;
determining the exposure adjustment value according to the skin color of the target face;
wherein the exposure adjustment values corresponding to the target human faces with different skin colors are different;
the step of determining an exposure adjustment value according to the attributes of the whiteeye region, the nose region, and the skin region includes:
randomly selecting a preset number of first pixel points of the skin area, a preset number of second pixel points of the nose area and a preset number of third pixel points of the white eye area;
and processing each first pixel point, each second pixel point and each third pixel point through a prediction model to obtain an exposure adjustment value of the target face.
2. The method of claim 1, wherein the step of determining an eye white region, a nose region, and a skin region from the preview image comprises:
resampling the preview image to generate a target image;
performing segmentation processing on the target image to generate each segmented image;
determining a skin region, a nose region and an eye region from each of the segmented images;
and segmenting the eye area into eye white areas.
3. The method of claim 1, wherein prior to the step of obtaining a preview image for a target face, the method further comprises:
recording the corresponding relation between the exposure value of each shooting of the historical face image and the historical face image within a preset time period;
and training based on the corresponding relation between the historical face images and the exposure values of the historical face images to obtain the prediction model.
4. A mobile terminal, characterized in that the mobile terminal comprises:
the acquisition module is used for acquiring a preview image aiming at a target face;
the first determining module is used for determining an eye white area, a nose area and a skin area according to the preview image;
a second determining module, configured to determine an exposure adjustment value according to attributes of the white eye region, the nose region, and the skin region;
the shooting module is used for executing shooting operation on the target face according to the exposure adjustment value;
the second determining module is specifically configured to determine a skin color of the target face according to the color difference between the white eye region, the nose region, and the skin region; determining the exposure adjustment value according to the skin color of the target face; wherein the exposure adjustment values corresponding to the target human faces with different skin colors are different;
the second determining module includes:
the selection submodule is used for randomly selecting a preset number of first pixel points of the skin area, a preset number of second pixel points of the nose area and a preset number of third pixel points of the eye white area;
and the second processing submodule is used for processing each first pixel point, each second pixel point and each third pixel point through a prediction model to obtain an exposure adjustment value of the target face.
5. The mobile terminal of claim 4, wherein the first determining module comprises:
the first processing submodule is used for resampling the preview image to generate a target image;
the generation submodule is used for carrying out segmentation processing on the target image to generate each segmentation image;
a determination submodule for determining a skin region, a nose region, and an eye region from each of the segmented images;
and the segmentation submodule is used for segmenting the eye area into an eye white area.
6. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
the recording module is used for recording the corresponding relation between the exposure value of each shooting historical face image and the historical face image in a preset time period before the acquisition module acquires the preview image of the target face;
and the training module is used for training based on the corresponding relation between the historical face images and the exposure values of the historical face images to obtain the prediction model.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the image capturing method according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the image capturing method according to any one of claims 1 to 3.
CN201811643194.1A 2018-12-29 2018-12-29 Image shooting method and mobile terminal Active CN109639981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811643194.1A CN109639981B (en) 2018-12-29 2018-12-29 Image shooting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811643194.1A CN109639981B (en) 2018-12-29 2018-12-29 Image shooting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109639981A CN109639981A (en) 2019-04-16
CN109639981B true CN109639981B (en) 2021-12-24

Family

ID=66054826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811643194.1A Active CN109639981B (en) 2018-12-29 2018-12-29 Image shooting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109639981B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443769B (en) * 2019-08-08 2022-02-08 Oppo广东移动通信有限公司 Image processing method, image processing device and terminal equipment
WO2022027432A1 (en) * 2020-08-06 2022-02-10 深圳市锐明技术股份有限公司 Photography method, photographic apparatus, and terminal device
CN112843690B (en) * 2020-12-31 2023-05-12 上海米哈游天命科技有限公司 Shooting method, shooting device, shooting equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016648A (en) * 2016-01-27 2017-08-04 三星电子株式会社 Electronic equipment and its control method
CN107911617A (en) * 2017-12-27 2018-04-13 上海传英信息技术有限公司 Photographic method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7542600B2 (en) * 2004-10-21 2009-06-02 Microsoft Corporation Video image quality
JP2008118383A (en) * 2006-11-02 2008-05-22 Matsushita Electric Ind Co Ltd Digital camera
CN103095979A (en) * 2011-11-07 2013-05-08 华晶科技股份有限公司 Image processing method and imaging capture device of face overexposure
CN103325089B (en) * 2012-03-21 2016-08-03 腾讯科技(深圳)有限公司 Colour of skin processing method and processing device in image
CN107370940B (en) * 2017-06-16 2019-08-02 Oppo广东移动通信有限公司 Image acquiring method, device and terminal device
CN107249105A (en) * 2017-06-16 2017-10-13 广东欧珀移动通信有限公司 Exposure compensation, device and terminal device
CN107633485B (en) * 2017-08-07 2022-03-25 百度在线网络技术(北京)有限公司 Face brightness adjusting method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016648A (en) * 2016-01-27 2017-08-04 三星电子株式会社 Electronic equipment and its control method
CN107911617A (en) * 2017-12-27 2018-04-13 上海传英信息技术有限公司 Photographic method and device

Also Published As

Publication number Publication date
CN109639981A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN109361865B (en) Shooting method and terminal
CN107817939B (en) Image processing method and mobile terminal
CN108111754B (en) Method for determining image acquisition mode and mobile terminal
CN110365907B (en) Photographing method and device and electronic equipment
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN107977652B (en) Method for extracting screen display content and mobile terminal
CN108307106B (en) Image processing method and device and mobile terminal
CN108513067B (en) Shooting control method and mobile terminal
CN110969981A (en) Screen display parameter adjusting method and electronic equipment
CN107730460B (en) Image processing method and mobile terminal
CN109819166B (en) Image processing method and electronic equipment
CN111401463B (en) Method for outputting detection result, electronic equipment and medium
CN109727212B (en) Image processing method and mobile terminal
CN109618218B (en) Video processing method and mobile terminal
CN109639981B (en) Image shooting method and mobile terminal
CN109246351B (en) Composition method and terminal equipment
CN107807488B (en) Camera assembly, aperture adjusting method and mobile terminal
CN111031178A (en) Video stream clipping method and electronic equipment
CN109104573B (en) Method for determining focusing point and terminal equipment
CN111080747A (en) Face image processing method and electronic equipment
CN107798662B (en) Image processing method and mobile terminal
CN107817963B (en) Image display method, mobile terminal and computer readable storage medium
CN110443752B (en) Image processing method and mobile terminal
CN109819331B (en) Video call method, device and mobile terminal
CN109462727B (en) Filter adjusting method and mobile terminal

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