CN107995418B - Shooting method and device and mobile terminal - Google Patents

Shooting method and device and mobile terminal Download PDF

Info

Publication number
CN107995418B
CN107995418B CN201711165913.9A CN201711165913A CN107995418B CN 107995418 B CN107995418 B CN 107995418B CN 201711165913 A CN201711165913 A CN 201711165913A CN 107995418 B CN107995418 B CN 107995418B
Authority
CN
China
Prior art keywords
face
determining
area
image frame
dimming model
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
CN201711165913.9A
Other languages
Chinese (zh)
Other versions
CN107995418A (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 CN201711165913.9A priority Critical patent/CN107995418B/en
Publication of CN107995418A publication Critical patent/CN107995418A/en
Application granted granted Critical
Publication of CN107995418B publication Critical patent/CN107995418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • 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/76Circuitry for compensating brightness variation in the scene by influencing the image signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a shooting method, a shooting device and a mobile terminal, wherein the method comprises the following steps: when a shooting starting instruction is received, determining an optimal dimming model by analyzing a background area and a face area in an acquired real-time image frame; adjusting the brightness and the color temperature of a face region in the real-time image frame by adopting the optimal dimming model; and when a shooting ending instruction is received, saving the adjusted image set of the face area to obtain a shot image set. The problems of poor picture layering and poor shooting effect are solved, and the beneficial effects of enhancing the picture layering and the shooting effect are achieved.

Description

Shooting method and device and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a shooting method and device and a mobile terminal.
Background
With the popularization of mobile terminals, users can not only shoot still pictures through the mobile terminals, but also shoot video, make dynamic pictures and other picture sets composed of multiple frames of continuous pictures.
In practical application, when a mobile terminal is used for shooting multiple continuous pictures, when an instruction of starting shooting by a user is received, the pictures are directly collected through a camera until an instruction of sending an ending instruction to the shooting by the user is received, and the obtained multiple pictures are used as shooting results. Therefore, the pictures of the multiple continuous pictures shot are not subjected to any polishing treatment, the picture layering sense is weak, the shooting effect is poor, and the shooting experience of a user is reduced.
Disclosure of Invention
The shooting method, the shooting device and the mobile terminal provided by the embodiment of the invention can solve the problems of weak layering sense and poor shooting effect of the shot video picture in the prior art.
On one hand, the embodiment of the invention discloses a shooting method, which is applied to a mobile terminal and comprises the following steps:
when a shooting starting instruction is received, determining an optimal dimming model by analyzing a background area and a face area in an acquired real-time image frame;
adjusting the brightness and the color temperature of a face region in the real-time image frame by adopting the optimal dimming model;
and when a shooting ending instruction is received, saving the adjusted image set of the face area to obtain a shot image set.
On the other hand, the embodiment of the invention also discloses a shooting device, which comprises:
the dimming model determining module is used for determining an optimal dimming model by analyzing a background area and a face area in the acquired real-time image frame when a shooting starting instruction is received;
the brightness adjusting module is used for adjusting the brightness and the color temperature of the face area in the real-time image frame by adopting the optimal dimming model;
and the shot image storage module is used for storing the adjusted image set of the face area when a shooting ending instruction is received to obtain a shot image set.
In another aspect, an embodiment of the present invention further discloses a mobile terminal, which includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the shooting method according to any one of the above descriptions.
In a final aspect, an embodiment of the present invention further discloses 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 shooting method according to any one of the above.
In the embodiment of the invention, when a shooting starting instruction is received, an optimal dimming model is determined by analyzing a background area and a face area in an acquired real-time image frame; adjusting the brightness and the color temperature of a face region in the real-time image frame by adopting the optimal dimming model; and when a shooting ending instruction is received, saving the adjusted image set of the face area to obtain a shot image set. The problems of poor picture layering and poor shooting effect are solved, and the beneficial effects of enhancing the picture layering and the shooting effect are achieved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a photographing method according to a first embodiment of the present invention;
FIG. 1A shows a schematic view of the polishing effect in an embodiment of the invention;
FIG. 1B is a schematic diagram illustrating the polishing effect in an embodiment of the present invention;
FIG. 1C is a schematic diagram illustrating the polishing effect in an embodiment of the present invention;
FIG. 1D is a schematic diagram illustrating the polishing effect in an embodiment of the present invention;
FIG. 2 is a flow chart illustrating the steps of a photographing method according to a second embodiment of the present invention;
fig. 3 is a block diagram showing a configuration of a photographing apparatus according to a third embodiment of the present invention;
fig. 4 is a block diagram showing a configuration of a photographing apparatus according to a fourth embodiment of the present invention;
fig. 5 is a diagram illustrating a hardware structure of a mobile terminal implementing various embodiments 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.
The following describes a photographing method, a photographing device and a mobile terminal according to the present invention in detail by taking several specific embodiments.
Example one
Referring to fig. 1, a flowchart illustrating steps of a shooting method according to a first embodiment of the present invention is shown, which may specifically include the following steps:
step 101, when a shooting start instruction is received, determining an optimal dimming model by analyzing a background area and a face area in an acquired real-time image frame.
The embodiment of the invention is suitable for the mobile terminal with the functions of shooting pictures, videos and dynamic pictures. The mobile terminal includes, but is not limited to, a mobile phone and a tablet computer.
The embodiment of the invention can analyze each image frame captured in real time and adjust the light, thereby ensuring that each image frame achieves the best shooting effect and layering. It will be appreciated that embodiments of the invention are equally applicable to capturing a single image.
Specifically, for a frame of image, firstly, a face region and a background region in the image are identified; and then, analyzing the characteristics of the background area and the human face area respectively to obtain an optimal dimming model from the preset dimming model.
The human face area and the background area are identified by a human face identification technology, or the human face area is selected by a shooting user, so that other areas are used as the background area.
Features of the background region and the face region include, but are not limited to: the color of the background area, the skin state of the face area, the skin color, the analyzed age, the analyzed gender and the like. The embodiment of the invention can obtain the optimal dimming model through different colors, skin colors, ages and sexes.
The preset dimming model includes but is not limited to: the LED display device comprises a Luneberg light model, a butterfly light model, an shadowless light model, a multi-light source model, a wide-narrow light model, a half-plane light model and a backlight model. Fig. 1A shows the effect of side-lighting by the lambertian light, fig. 1B shows the effect of lighting by the butterfly light, and fig. 1C and 1D are both images after lighting. It can be seen that after the polishing, the pictures shot by the polishing are stronger in layering sense and better in shooting effect.
And step 102, adjusting the brightness and the color temperature of the face area in the real-time image frame by using the optimal dimming model.
According to the embodiment of the invention, the human face area is independently polished, so that the layering sense and the shooting effect of the human face area are enhanced.
Specifically, the brightness and color temperature of each pixel point in the face area are adjusted according to the specified model.
The brightness of the image is represented by the brightness of each pixel, and the image can have a better visual effect by adjusting the brightness of the pixels at different positions. For example, as shown in fig. 1A, the left face is lightened from the right side, and the brightness of the left face is adjusted to be low, thereby improving the visual effect. For example, as shown in fig. 1B, the visual effect is improved by decreasing the brightness below the nose, around the eyes, and around the neck, and increasing the brightness directly in front of the face, at the forehead and at the chin.
The color temperature is a unit of measure representing the color component contained in the light. Theoretically, color temperature refers to the color that an absolute black body would appear after warming from absolute zero (-273 ℃). A black body gradually changes from black to red, then yellow, then white, and finally blue after being heated. When heated to a certain temperature, the light emitted by a black body contains spectral components called the color temperature at that temperature, measured in "K" (kelvin). If the light emitted by a light source has the same spectral composition as the light emitted by a black body at a certain temperature, i.e. a certain K color temperature, for example, the color of the light emitted by a 100W bulb is the same as the color of the absolute black body at 2527K, the color temperature of the light emitted by the bulb is 527K + 273K-2800K. The embodiment of the invention can enable the image to present a better visual effect by adjusting the color temperature. For example, using warm light in some scenarios may render an image a warm, comfortable effect, while using cool light in some scenarios may render an bitter, tragic effect.
And 103, when a shooting end instruction is received, saving the image set with the adjusted face area to obtain a shot image set.
In the embodiment of the invention, the image set which is subjected to polishing in the face area is used as the shot image set, so that shot videos, dynamic images and the like have good shooting effects, and the shooting enthusiasm of users is improved.
In the embodiment of the invention, when a shooting starting instruction is received, an optimal dimming model is determined by analyzing a background area and a face area in an acquired real-time image frame; adjusting the brightness and the color temperature of a face region in the real-time image frame by adopting the optimal dimming model; and when a shooting ending instruction is received, saving the adjusted image set of the face area to obtain a shot image set. The problems of poor picture layering and poor shooting effect are solved, and the beneficial effects of enhancing the picture layering and the shooting effect are achieved.
Example two
Referring to fig. 2, a flowchart illustrating steps of a shooting method according to a second embodiment of the present invention is shown, which may specifically include the following steps:
step 201, acquiring an image frame in real time, and determining a face region and a background region in the image frame.
The embodiment of the invention can adopt different dimming models to carry out brightness processing on each image frame.
Specifically, firstly, a face region is determined; then, the other regions except the face region are taken as background regions. The face region can be obtained through face recognition and/or user specification.
In the actual shooting process, a user can designate a target area through clicking or other operations, so that the mobile terminal can perform special processing according to the target area designated by the user. In the embodiment of the invention, the mobile terminal can perform polishing treatment according to the face area designated by the user.
Optionally, in another embodiment of the present invention, step 201 comprises sub-steps 2011 to 2012:
the sub-step 2011 performs face recognition on the image frame to obtain a face region.
In practical applications, the face region can be determined by detecting the face feature points. The feature points of the face include, but are not limited to, the five sense organs and the contour points of the face.
And a substep 2012 of determining a background region according to the face region.
Specifically, the region outside the face region is taken as the background region.
Optionally, in another embodiment of the present invention, step 201 includes sub-steps 2013 to 2014:
and a substep 2013 of receiving a face region determination operation of a user in the image frame to obtain a face region.
In practical application, when a user selects a point in one frame of image, the point can be diffused to the surrounding area, so as to determine a face area; when a user selects an area, the area can be directly used as a face area.
And a sub-step 2014 of determining a background region according to the face region.
This step can refer to the detailed description of sub-step 2012, which is not described herein.
Step 202, determining the target attributes of the background area and the face area respectively.
The target attributes include, but are not limited to, the color of the background area, the direction of the light source, the face orientation, the face skin color, and the like. An optimal polishing model can thus be determined from these target properties.
And 203, determining an optimal dimming model from a stored optimal dimming model list according to the target attributes of the background area and the face area.
Specifically, the target attribute corresponding to each dimming model may be predetermined through experiments, and then the dimming model is determined according to the target attribute of the current shooting scene.
For example, for the butterfly light modulation model, the corresponding target attribute of the human face is the front face orientation, so that when the orientation of the human face is monitored as the front face, the butterfly light modulation model can be selected.
And 204, adjusting the brightness and the color temperature of the human face area in the real-time image frame by using the optimal dimming model.
This step can refer to the detailed description of step 102, and is not described herein again.
Step 205, adjusting the brightness and color temperature of the face region in the real-time image frame by using the dimming model selected by the user for the real-time image frame.
The embodiment of the invention provides a method for modifying the optimal dimming model according to the preference of a user. Specifically, after automatic dimming is performed, the dimming models are displayed on the shooting interface, and after a user clicks one of the dimming models, the dimming model is used for processing the face area.
Step 206, determining a target attribute of a background area in the real-time image frame, and storing the target attribute and the dimming model into an optimal dimming model list correspondingly.
In the embodiment of the invention, the dimming model selected by the user for a shooting scene can be recorded as the optimal dimming model of the shooting scene, so that the optimal dimming model is automatically adopted to process the face area when a similar shooting scene is shot next time.
And step 207, when a shooting ending instruction is received, saving the image set with the adjusted face area to obtain a shot image set.
This step can refer to the detailed description of step 103, which is not repeated herein.
In the embodiment of the invention, when a shooting starting instruction is received, an optimal dimming model is determined by analyzing a background area and a face area in an acquired real-time image frame; adjusting the brightness and the color temperature of a face region in the real-time image frame by adopting the optimal dimming model; and when a shooting ending instruction is received, saving the adjusted image set of the face area to obtain a shot image set. The problems of poor picture layering and poor shooting effect are solved, and the beneficial effects of enhancing the picture layering and the shooting effect are achieved. In addition, the charging port can be safely protected through safety check or grounding the charging port.
EXAMPLE III
Referring to fig. 3, a block diagram of a shooting apparatus according to a third embodiment of the present invention is shown.
The photographing device 300 includes: a dimming model determination module 301, a brightness adjustment module 302, and a captured image storage module 303.
The functions of the modules and the interaction relationship between the modules are described in detail below.
A dimming model determining module 301, configured to determine an optimal dimming model by analyzing a background region and a face region in the obtained real-time image frame when a shooting start instruction is received;
a brightness adjusting module 302, configured to adjust brightness and color temperature of a face region in the real-time image frame by using the optimal dimming model;
and a shot image saving module 303, configured to save the image set with the adjusted face area when a shooting end instruction is received, so as to obtain a shot image set.
In the embodiment of the invention, when a shooting starting instruction is received, an optimal dimming model is determined by analyzing a background area and a face area in an acquired real-time image frame; adjusting the brightness and the color temperature of a face region in the real-time image frame by adopting the optimal dimming model; and when a shooting ending instruction is received, saving the adjusted image set of the face area to obtain a shot image set. The problems of poor picture layering and poor shooting effect are solved, and the beneficial effects of enhancing the picture layering and the shooting effect are achieved.
The third embodiment is a corresponding apparatus embodiment to the first embodiment, and details thereof are not repeated herein.
Example four
Referring to fig. 4, a block diagram of a photographing apparatus according to a fourth embodiment of the present invention is shown.
The photographing device 400 includes: a dimming model determination module 401, a brightness adjustment module 402, a user adjustment module 403, a user model storage module 404, and a captured image storage module 405.
The functions of the modules and the interaction relationship between the modules are described in detail below.
A dimming model determining module 401, configured to determine, when a shooting start instruction is received, an optimal dimming model by analyzing a background region and a face region in the obtained real-time image frame; optionally, in an embodiment of the present invention, the dimming model determining module 401 includes:
the region determining sub-module 4011 is configured to acquire an image frame in real time, and determine a face region and a background region in the image frame.
And the target attribute determining submodule 4012 is configured to determine target attributes of the background area and the face area respectively.
And the dimming model determining submodule 4013 is configured to determine an optimal dimming model according to the target attributes of the background region and the face region.
Optionally, in another embodiment of the present invention, the area determining sub-module 4011 includes:
and the face area determining unit is used for carrying out face recognition on the image frame to obtain a face area.
And the background area determining unit is used for determining a background area according to the face area.
A brightness adjusting module 402, configured to adjust brightness and color temperature of the face region in the real-time image frame by using the optimal dimming model.
The user adjusting module 403 is configured to adjust the brightness and the color temperature of the face region in the real-time image frame by using the dimming model selected by the user for the real-time image frame.
A user model saving module 404, configured to determine a target attribute of a background area in the real-time image frame, and correspondingly save the target attribute and the dimming model to an optimal dimming model list.
And a captured image saving module 405, configured to, when a shooting end instruction is received, save the image set with the adjusted face area to obtain a captured image set.
In the embodiment of the invention, when a shooting starting instruction is received, an optimal dimming model is determined by analyzing a background area and a face area in an acquired real-time image frame; adjusting the brightness and the color temperature of a face region in the real-time image frame by adopting the optimal dimming model; and when a shooting ending instruction is received, saving the adjusted image set of the face area to obtain a shot image set. The problems of poor picture layering and poor shooting effect are solved, and the beneficial effects of enhancing the picture layering and the shooting effect are achieved. In addition, the charging port can be safely protected through safety check or grounding the charging port.
The fourth embodiment is a device embodiment corresponding to the second embodiment, and details can be found in reference to the second embodiment, which are not described herein again.
EXAMPLE five
Fig. 5 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where 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, configured to determine an optimal dimming model by analyzing a background region and a face region in the obtained real-time image frame when a shooting start instruction is received; adjusting the brightness and the color temperature of a face region in the real-time image frame by adopting the optimal dimming model; and when a shooting ending instruction is received, saving the adjusted image set of the face area to obtain a shot image set.
Therefore, in the embodiment of the invention, when a shooting start instruction is received, an optimal dimming model is determined by analyzing the background area and the face area in the acquired real-time image frame; adjusting the brightness and the color temperature of a face region in the real-time image frame by adopting the optimal dimming model; and when a shooting ending instruction is received, saving the adjusted image set of the face area to obtain a shot image set. The problems of poor picture layering and poor shooting effect are solved, and the beneficial effects of enhancing the picture layering and the shooting effect are achieved.
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 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light Emitting Diode (O L ED), 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 shooting 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 shooting 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 (9)

1. A shooting method is applied to a mobile terminal, and is characterized by comprising the following steps:
when a shooting starting instruction is received, determining an optimal dimming model by analyzing a background area and a face area in an acquired real-time image frame;
adjusting the brightness and the color temperature of a face region in the real-time image frame by adopting the optimal dimming model;
when a shooting ending instruction is received, saving the adjusted image set of the face area to obtain a shot image set; the step of determining the optimal dimming model by analyzing the background region and the face region in the acquired real-time image frame includes:
acquiring an image frame in real time, and determining a face area and a background area in the image frame;
respectively determining the target attributes of the background area and the face area;
determining an optimal dimming model according to the target attributes of the background area and the face area;
wherein the target attributes comprise the color of the background area, the light source direction, the face orientation and the face skin color;
wherein the adjusting the brightness of the face region in the real-time image frame by using the optimal dimming model comprises: adjusting pixels at different positions of the face area to different brightness according to the optimal dimming model;
wherein, the determining an optimal dimming model according to the target attributes of the background region and the face region includes: and selecting the optimal dimming model from preset dimming models according to the target attributes of the background area and the face area.
2. The method of claim 1, wherein the step of determining the face region and the background region in the image frame comprises:
carrying out face recognition on the image frame to obtain a face area;
and determining a background area according to the face area.
3. The method of claim 1, further comprising, after the step of adjusting the brightness and color temperature of the face region in the real-time image frame using the optimal dimming model:
adjusting the brightness and color temperature of a face region in the real-time image frame according to the dimming model selected by a user;
and determining a target attribute of a background area in the real-time image frame, and correspondingly storing the target attribute and the dimming model into an optimal dimming model list.
4. The method according to claim 3, wherein the step of determining an optimal dimming model according to the target attributes of the background region and the face region comprises:
and determining an optimal dimming model from a stored optimal dimming model list according to the target attributes of the background area and the face area.
5. A camera, comprising:
the dimming model determining module is used for determining an optimal dimming model by analyzing a background area and a face area in the acquired real-time image frame when a shooting starting instruction is received;
the brightness adjusting module is used for adjusting the brightness and the color temperature of the face area in the real-time image frame by adopting the optimal dimming model;
the shot image storage module is used for storing the adjusted image set of the face area when a shooting ending instruction is received to obtain a shot image set; wherein the dimming model determination module comprises:
the area determination submodule is used for acquiring an image frame in real time and determining a face area and a background area in the image frame;
the target attribute determining submodule is used for respectively determining the target attributes of the background area and the face area;
the dimming model determining submodule is used for determining an optimal dimming model according to the target attributes of the background area and the face area;
wherein the target attributes comprise the color of the background area, the light source direction, the face orientation and the face skin color;
the brightness adjusting module is specifically configured to: adjusting pixels at different positions of the face area to different brightness according to the optimal dimming model;
the dimming model determining submodule is specifically configured to select the optimal dimming model from preset dimming models according to the target attributes of the background region and the face region.
6. The apparatus of claim 5, wherein the region determination submodule comprises:
the face area determining unit is used for carrying out face recognition on the image frame to obtain a face area;
and the background area determining unit is used for determining a background area according to the face area.
7. The apparatus of claim 5, further comprising:
the user adjusting module is used for adjusting the brightness and the color temperature of the face area in the real-time image frame by adopting a dimming model selected by a user;
and the user model storage module is used for determining the target attribute of the background area in the real-time image frame and correspondingly storing the target attribute and the dimming model into an optimal dimming model list.
8. The apparatus of claim 7, wherein the dimming model determination submodule comprises:
and the dimming model determining unit is used for determining an optimal dimming model from the stored optimal dimming model list according to the target attributes of the background area and the face area.
9. 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, the computer program, when executed by the processor, implementing the steps of the photographing method according to any of claims 1 to 4.
CN201711165913.9A 2017-11-21 2017-11-21 Shooting method and device and mobile terminal Active CN107995418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711165913.9A CN107995418B (en) 2017-11-21 2017-11-21 Shooting method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711165913.9A CN107995418B (en) 2017-11-21 2017-11-21 Shooting method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107995418A CN107995418A (en) 2018-05-04
CN107995418B true CN107995418B (en) 2020-07-21

Family

ID=62031915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711165913.9A Active CN107995418B (en) 2017-11-21 2017-11-21 Shooting method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107995418B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810406B (en) * 2018-05-23 2021-03-02 Oppo广东移动通信有限公司 Portrait light effect processing method, device, terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794385A (en) * 2010-03-23 2010-08-04 上海交通大学 Multi-angle multi-target fast human face tracking method used in video sequence
CN102013006A (en) * 2009-09-07 2011-04-13 泉州市铁通电子设备有限公司 Method for automatically detecting and identifying face on the basis of backlight environment
WO2013064891A1 (en) * 2011-11-01 2013-05-10 Canon Kabushiki Kaisha Method and system for luminance adjustment of images in an image sequence
CN103123725A (en) * 2011-11-18 2013-05-29 鸿富锦精密工业(深圳)有限公司 Image analyzing device and analyzing method

Family Cites Families (10)

* 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
JP6458333B2 (en) * 2015-01-21 2019-01-30 スタンレー電気株式会社 Vehicle lighting
CN105245786B (en) * 2015-09-09 2019-01-08 厦门美图之家科技有限公司 A kind of self-timer method based on intelligent testing light, self-heterodyne system and camera terminal
CN105516613A (en) * 2015-12-07 2016-04-20 凌云光技术集团有限责任公司 Intelligent exposure method and system based on face recognition
KR102153607B1 (en) * 2016-01-22 2020-09-08 삼성전자주식회사 Apparatus and method for detecting foreground in image
KR102636243B1 (en) * 2016-02-19 2024-02-14 삼성전자주식회사 Method for processing image and electronic device thereof
CN106331510B (en) * 2016-10-31 2019-10-15 维沃移动通信有限公司 A kind of backlight photographic method and mobile terminal
CN106878695A (en) * 2017-02-13 2017-06-20 广东欧珀移动通信有限公司 Method, device and computer equipment that white balance is processed
CN107277356B (en) * 2017-07-10 2020-02-14 Oppo广东移动通信有限公司 Method and device for processing human face area of backlight scene
CN107846554B (en) * 2017-10-31 2020-09-01 努比亚技术有限公司 Image processing method, terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102013006A (en) * 2009-09-07 2011-04-13 泉州市铁通电子设备有限公司 Method for automatically detecting and identifying face on the basis of backlight environment
CN101794385A (en) * 2010-03-23 2010-08-04 上海交通大学 Multi-angle multi-target fast human face tracking method used in video sequence
WO2013064891A1 (en) * 2011-11-01 2013-05-10 Canon Kabushiki Kaisha Method and system for luminance adjustment of images in an image sequence
CN103123725A (en) * 2011-11-18 2013-05-29 鸿富锦精密工业(深圳)有限公司 Image analyzing device and analyzing method

Also Published As

Publication number Publication date
CN107995418A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN108111754B (en) Method for determining image acquisition mode and mobile terminal
CN110969981B (en) Screen display parameter adjusting method and electronic equipment
CN107580209B (en) Photographing imaging method and device of mobile terminal
CN107817939B (en) Image processing method and mobile terminal
CN109361867B (en) Filter processing method and mobile terminal
CN108712603B (en) Image processing method and mobile terminal
CN108924412B (en) Shooting method and terminal equipment
CN107644396B (en) Lip color adjusting method and device
JP2016531362A (en) Skin color adjustment method, skin color adjustment device, program, and recording medium
CN108513067B (en) Shooting control method and mobile terminal
CN108040209B (en) Shooting method and mobile terminal
CN107730460B (en) Image processing method and mobile terminal
JP7467667B2 (en) Detection result output method, electronic device and medium
CN107153500B (en) Method and equipment for realizing image display
CN109819166B (en) Image processing method and electronic equipment
CN108881782B (en) Video call method and terminal equipment
CN109639981B (en) Image shooting method and mobile terminal
CN109727212B (en) Image processing method and mobile terminal
CN109462727B (en) Filter adjusting method and mobile terminal
CN107563353B (en) Image processing method and device and mobile terminal
CN109451235B (en) Image processing method and mobile terminal
CN107729100B (en) Interface display control method and mobile terminal
CN111432154B (en) Video playing method, video processing method and electronic equipment
CN111031242B (en) Image processing method and device
CN107995418B (en) Shooting method and device 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