CN107623818B - Image exposure method and mobile terminal - Google Patents

Image exposure method and mobile terminal Download PDF

Info

Publication number
CN107623818B
CN107623818B CN201711052535.3A CN201711052535A CN107623818B CN 107623818 B CN107623818 B CN 107623818B CN 201711052535 A CN201711052535 A CN 201711052535A CN 107623818 B CN107623818 B CN 107623818B
Authority
CN
China
Prior art keywords
foreground
image
background
shooting
exposure compensation
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
CN201711052535.3A
Other languages
Chinese (zh)
Other versions
CN107623818A (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 CN201711052535.3A priority Critical patent/CN107623818B/en
Publication of CN107623818A publication Critical patent/CN107623818A/en
Application granted granted Critical
Publication of CN107623818B publication Critical patent/CN107623818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides an image exposure method and a mobile terminal, wherein the method comprises the following steps: identifying a foreground person and a background of a shot object; based on photometric data of the foreground person, carrying out exposure compensation on the foreground person, and shooting to obtain a foreground image corresponding to the foreground person; carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background; and synthesizing the foreground image and the background image to obtain an output image. The embodiment of the invention respectively carries out exposure compensation on the foreground person and the background, and can improve the quality of the output image.

Description

Image exposure method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an image exposure method and a mobile terminal.
Background
With the development of terminal technology, photographing has become an essential function of a mobile terminal, and people often use this function. In which foreground persons often exist in the captured image. In addition, the current mobile terminal often supports an exposure function, and can expose a foreground image during shooting, but under the condition of exposing the foreground image, the background of the shot image is overexposed, and has no details, so that the background is blurred, and the quality of the shot image is poor.
Disclosure of Invention
The embodiment of the invention provides an image exposure method and a mobile terminal, aiming at solving the problem of poor quality of shot images.
In order to solve the technical problem, the invention is realized as follows: an image exposure method comprising:
identifying a foreground person and a background of a shot object;
based on photometric data of the foreground person, carrying out exposure compensation on the foreground person, and shooting to obtain a foreground image corresponding to the foreground person; carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background;
and synthesizing the foreground image and the background image to obtain an output image.
In a first aspect, an embodiment of the present invention provides an image exposure method, including:
identifying a foreground person and a background of a shot object;
based on photometric data of the foreground person, carrying out exposure compensation on the foreground person, and shooting to obtain a foreground image corresponding to the foreground person; carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background;
and synthesizing the foreground image and the background image to obtain an output image.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the recognition module is used for recognizing foreground characters and backgrounds of the shot objects;
the shooting module is used for carrying out exposure compensation on the foreground person based on photometric data of the foreground person and obtaining a foreground image corresponding to the foreground person through shooting; carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background;
and the synthesis module is used for synthesizing the foreground image and the background image to obtain an output image.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including: the image exposure system comprises a memory, a processor and an image exposure program which is stored on the memory and can run on the processor, wherein the image exposure program realizes the steps in the image exposure method provided by the embodiment of the invention when being executed by the processor.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having stored thereon an image exposure program, which when executed by a processor, implements the steps of an image exposure method as provided by embodiments of the invention as claimed.
The embodiment of the invention respectively carries out exposure compensation on the foreground person and the background, and can improve the quality of the output image.
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 exercise.
FIG. 1 is a flow chart of an image exposure method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another image exposure method provided by an embodiment of the invention;
fig. 3 is a block diagram of a mobile terminal to which an embodiment of the present invention is applied;
fig. 4 is a block diagram of another mobile terminal to which the embodiment of the present invention is applied.
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.
Referring to fig. 1, fig. 1 is a flowchart of an image exposure method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
step 101, identifying a foreground person and a background of a shooting object.
The above-mentioned shooting object may be understood as an object that the mobile terminal needs to shoot, for example: if a person needs to be photographed and stands in front of a gate of a scene, the photographed object may include the person, the gate of the scene, and the sky, so that the foreground person is identified in step 101, and the gate of the scene and the sky are used as a background. In addition, the recognition may be performed by a preview image or a captured image, and the foreground person recognition may be performed by a High-Dynamic Range (HDR) multi-synthesis technique, specifically, the recognition may be performed based on 2 dimensions of brightness and a capturing distance, or may also be performed by a face recognition technique. It should be noted that, in the embodiment of the present invention, the identification method for identifying the foreground person and the background is not limited.
102, performing exposure compensation on the foreground person based on photometric data of the foreground person, and shooting to obtain a foreground image corresponding to the foreground person; and carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background.
The photometric data of the foreground person may be measured light data obtained by performing spot photometry on the foreground person, or may be photometric data obtained by performing photometry such as center-weighted photometry or matrix photometry on the foreground person, which is not limited in the embodiment of the present invention. In addition, the exposure compensation of the foreground person based on the measured light data may be implemented by adding corresponding exposure compensation to the measured light data, for example: according to the correspondence between the pre-acquired photometric data and the exposure compensation, the corresponding exposure compensation is performed, or the photometric data may be subjected to a preset operation to obtain a corresponding exposure compensation parameter, and the exposure compensation is performed. The bright and white effect of the foreground character can be achieved through the exposure compensation of the foreground character. For example: if the photometric data of the foreground person is 18% middle gray, exposure compensation of 1/3-2/3 gears can be added on the basis of the photometric data, and the bright white effect of the final shot of the human face is ensured.
The light metering data of the background may be light metering data obtained by performing light metering on the background, and may also be light metering data obtained by performing spot light metering on the background, which is not limited in this embodiment of the present invention. In addition, the exposure compensation of the background can also be realized by adding corresponding exposure compensation on the basis of photometric data so as to avoid overexposure of the background without details and improve the shooting effect of the background.
And 103, synthesizing the foreground image and the background image to obtain an output image.
Since the foreground image and the background image are both images taken of the same subject, and only different exposures are adopted, step 103 may synthesize the foreground image and the background image to obtain an output image taken for the subject. Specifically, the foreground image and the background image may be synthesized according to an HDR multi-synthesis technology to obtain an HDR picture with natural transition, so that both the foreground character and the background of the output image are clear.
Through the steps, the foreground images and the background images with different exposures can be synthesized to obtain the output image, the problem that the background of the shot image is excessively exposed and has no details to cause fuzzy background under the condition of exposing the foreground image is avoided, and therefore the quality of the output image is improved. Of course, in the embodiment of the present invention, in order to further improve the quality of the output image, fine adjustment may be performed on the output image by taking natural transition of the overall image tone as a target, specifically, transition gradual change and other processing may be performed on a composite junction of the foreground image and the background image, so as to further improve the quality of the output image.
It should be noted that the above method can be applied to a mobile terminal, for example: a Mobile phone, a camera, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
In the embodiment of the invention, a foreground person and a background of a shooting object are identified; based on photometric data of the foreground person, carrying out exposure compensation on the foreground person, and shooting to obtain a foreground image corresponding to the foreground person; carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background; because different exposure compensation is adopted for the foreground figure and the background, the quality of the shot image can be improved.
Referring to fig. 2, fig. 2 is a flowchart of another image exposure method according to an embodiment of the present invention, as shown in fig. 2, including the following steps:
step 201, identifying a foreground person and a background of a shooting object.
202, performing exposure compensation on the foreground person based on photometric data of the foreground person, and shooting to obtain a foreground image corresponding to the foreground person; carrying out exposure compensation on the object based on photometric data of the object in the background, and shooting to obtain an object image corresponding to the object; performing exposure compensation on a target area based on photometric data of the target area in the background, and shooting to obtain a target image corresponding to the target area; wherein the brightness of the target area is higher than the brightness of the object.
Optionally, based on the photometric data of the foreground person, the foreground person is subjected to exposure compensation, and a foreground image corresponding to the foreground person is obtained by shooting, including:
and exposing the foreground figure, performing spot light measurement on the exposed foreground figure, performing exposure compensation on the foreground figure based on spot light measurement data, and shooting to obtain a foreground image corresponding to the foreground figure.
The exposure can be understood as selecting a suitable aperture and shutter combination according to the brightness of the foreground person and the requirement of recording the foreground person, and then taking the image of the object on the photosensitive film. It can be further understood that the exposure value corresponding to the brightness value of the foreground person is adopted for shooting, so that the total light quantity received by the image sensor meets the preset requirement, and the brightness of the image meets the preset requirement.
The spot light measurement may be performed on the foreground person according to spots to obtain a more accurate light measurement result of the foreground person, and then exposure compensation may be performed on the foreground person based on spot light measurement data. The performing exposure compensation on the foreground person based on the spot metering data may be determining an exposure compensation parameter corresponding to a metering result according to a correspondence between the metering result and the exposure compensation, and performing exposure compensation on the person exposure image, specifically, performing exposure compensation on the foreground person. For example: if the light measurement result of the foreground person is 18% middle gray, 1/3-2/3 levels of exposure compensation can be added on the basis of the light measurement result to ensure that the bright white effect is finally shot by the foreground person.
In this embodiment, since exposure is performed for the foreground person, and exposure compensation is performed for the foreground person based on spot light measurement data, image quality can be further improved. For example: the effect that the foreground person is brighter and whiter is shot.
It should be noted that this embodiment mode can also be applied to the embodiment shown in fig. 1, and can achieve the same beneficial effects, which is not described in detail herein.
Optionally, the above performing exposure compensation on the object based on photometric data of the object in the background to obtain an object image corresponding to the object by shooting includes:
it is right object in the background is surveyed photometry, obtains the light and shade degree of object, and the object is in the shared proportion of shooting object, based on the light and shade degree of object, and the object is in the shared proportion of shooting object is right the object carries out exposure compensation, the shooting obtain with the object image that the object corresponds.
The light metering of the object in the background may be performed by metering the object, and performing comprehensive evaluation on the object according to metering data to obtain a brightness of the object, and the object is in a proportion occupied by the photographic subject. The exposure compensation performed on the object based on the brightness of the object and the specific gravity of the object in the photographic subject may be performed by determining the brightness of the object and an exposure compensation parameter corresponding to the specific gravity of the object in the photographic subject according to a pre-obtained correspondence relationship or an exposure compensation rule, and performing the exposure compensation based on photometric data using the exposure compensation parameter. For example: the object is a tree, the tree is dark through photometry, the occupied area is large, 1/3-2/3-grade exposure compensation can be reduced on the basis of photometry data, and finally correct exposure is carried out, so that the quality of an object exposure image is improved.
In this embodiment, exposure compensation is performed on the object based on the brightness of the object and the specific gravity of the object in the photographic subject, so that the image quality can be further improved.
It should be noted that, in the embodiment of the present invention, in step 202, exposure compensation is performed on the object based on the brightness of the object and the proportion of the object in the shooting object, for example: it is also possible to perform exposure compensation or the like based only on the degree of shading of the object.
Optionally, the performing exposure compensation on the target area based on photometric data of the target area in the background to obtain a target image corresponding to the target area by shooting includes:
and performing spot light measurement on the target area in the background, performing exposure compensation on the target area based on spot light measurement data of the target area, and shooting to obtain a target image corresponding to the target area.
The spot metering may measure brightness of a part or all of the spots in the target area, so as to perform exposure compensation on the target area based on spot metering data of the target area, thereby improving quality of an image of the target area. For example: when the target area is an image of a bright area such as sky and the area occupied by the area is large, 1/3-2/3-stage exposure compensation can be added on the basis of photometric data of sky spot photometry to improve the quality of the target area image.
It should be noted that, in the embodiment of the present invention, exposure compensation is performed on the target area based on the spot metering data of the target area, for example: the target area may be exposed, or photometry may be performed, and corresponding exposure compensation is performed based on photometry data.
And 203, synthesizing the foreground image, the object image and the target image to obtain an output image.
Since the three images are all images taken of the same subject and only different exposures are used, step 203 can synthesize the three images to obtain an output image taken of the subject. Specifically, the three images can be synthesized according to an HDR multi-image synthesis technology to obtain an HDR image with natural transition, so that foreground characters and a background of an output image are clear.
Optionally, the synthesizing the foreground image, the object image, and the target image to obtain an output image includes:
and synthesizing the foreground image, the object image and the target image according to the preset weights of the foreground image, the object image and the target image to obtain an output image.
The weights of the three images can be preset by a user or automatically configured in advance by the mobile terminal. For example: the foreground image has a weight of 0.6, the object image has a weight of 0.2, and the target image has a weight of 0.2, and then the three images can be synthesized according to these weights. Because the image is synthesized according to the weight, the foreground person, the object and the target area of the output image are reasonably exposed, and the image quality is further improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 3, the mobile terminal 300 includes:
the recognition module 301 is configured to recognize a foreground person and a background of a photographic subject;
a shooting module 302, configured to perform exposure compensation on the foreground person based on photometric data of the foreground person, and obtain a foreground image corresponding to the foreground person through shooting; carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background;
and a synthesizing module 303, configured to synthesize the foreground image and the background image to obtain an output image.
Optionally, the shooting module 302 is specifically configured to expose the foreground person, perform spot metering on the exposed foreground person, perform exposure compensation on the foreground person based on spot metering data, and obtain a foreground image corresponding to the foreground person through shooting; and carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background.
Optionally, the shooting module 302 is specifically configured to perform exposure compensation on the foreground person based on photometric data of the foreground person, and shoot a foreground image corresponding to the foreground person; carrying out exposure compensation on the object based on photometric data of the object in the background, and shooting to obtain an object image corresponding to the object; performing exposure compensation on a target area based on photometric data of the target area in the background, and shooting to obtain a target image corresponding to the target area;
wherein the brightness of the target area is higher than the brightness of the object.
Optionally, the synthesizing module 303 is specifically configured to synthesize the foreground image, the object image, and the target image to obtain an output image.
Optionally, the shooting module 302 is specifically configured to perform exposure compensation on the foreground person based on photometric data of the foreground person, and shoot a foreground image corresponding to the foreground person; performing photometry on an object in the background to obtain the brightness of the object and the proportion of the object in the shooting object, performing exposure compensation on the object based on the brightness of the object and the proportion of the object in the shooting object, and shooting to obtain an object image corresponding to the object; and carrying out exposure compensation on the target area based on photometric data of the target area in the background, and shooting to obtain a target image corresponding to the target area.
Optionally, the shooting module 302 is specifically configured to perform exposure compensation on the foreground person based on photometric data of the foreground person, and shoot a foreground image corresponding to the foreground person; carrying out exposure compensation on the object based on photometric data of the object in the background, and shooting to obtain an object image corresponding to the object; and performing spot light measurement on the target area in the background, performing exposure compensation on the target area based on spot light measurement data of the target area, and shooting to obtain a target image corresponding to the target area.
Optionally, the synthesizing module 303 is specifically configured to synthesize the foreground image, the object image, and the target image according to preset weights of the foreground image, the object image, and the target image, so as to obtain an output image.
The mobile terminal provided by 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 for avoiding repetition, the description is omitted here, and the quality of the captured image can be improved.
Figure 4 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 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.
The processor 410 is used for identifying a foreground person and a background of a shooting object; based on photometric data of the foreground person, carrying out exposure compensation on the foreground person, and shooting to obtain a foreground image corresponding to the foreground person; carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background; and synthesizing the foreground image and the background image to obtain an output image.
Optionally, the performing, by the processor 410, exposure compensation on the foreground person based on the photometric data of the foreground person, and capturing a foreground image corresponding to the foreground person includes:
and exposing the foreground figure, performing spot light measurement on the exposed foreground figure, performing exposure compensation on the foreground figure based on spot light measurement data, and shooting to obtain a foreground image corresponding to the foreground figure.
Optionally, the performing, by the processor 410, exposure compensation on the background based on the photometric data of the background, and capturing a background image corresponding to the background, includes:
carrying out exposure compensation on the object based on photometric data of the object in the background, and shooting to obtain an object image corresponding to the object; performing exposure compensation on a target area based on photometric data of the target area in the background, and shooting to obtain a target image corresponding to the target area;
wherein the brightness of the target area is higher than the brightness of the object.
Optionally, the synthesizing, performed by the processor 410, the foreground image and the background image to obtain an output image includes:
and synthesizing the foreground image, the object image and the target image to obtain an output image.
Optionally, the performing, by the processor 410, exposure compensation on the object based on photometric data of the object in the background, and capturing an object image corresponding to the object includes:
it is right object in the background is surveyed photometry, obtains the light and shade degree of object, and the object is in the shared proportion of shooting object, based on the light and shade degree of object, and the object is in the shared proportion of shooting object is right the object carries out exposure compensation, the shooting obtain with the object image that the object corresponds.
Optionally, the performing, by the processor 410, exposure compensation on the target area based on photometric data of the target area in the background, and capturing a target image corresponding to the target area includes:
and performing spot light measurement on the target area in the background, performing exposure compensation on the target area based on spot light measurement data of the target area, and shooting to obtain a target image corresponding to the target area.
Optionally, the synthesizing, performed by the processor 410, the foreground image, the object image, and the target image to obtain an output image includes:
and synthesizing the foreground image, the object image and the target image according to the preset weights of the foreground image, the object image and the target image to obtain an output image.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 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 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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. Further, the radio unit 401 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 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound 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 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 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 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 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 407 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 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, 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 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, 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 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. 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 408 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 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 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 409 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 410 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 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 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 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program is executed by the processor 110 to implement each process of the above-mentioned embodiment of the image exposure method, and can achieve the same technical effect, and in order to avoid repetition, the details are not described here again.
An 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 image exposure 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 exposure method characterized by comprising:
identifying a foreground person and a background of a shot object;
based on photometric data of the foreground person, carrying out exposure compensation on the foreground person, and shooting to obtain a foreground image corresponding to the foreground person; carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background;
synthesizing the foreground image and the background image to obtain an output image;
wherein, the exposure compensation is performed on the background based on the photometric data of the background, and a background image corresponding to the background is obtained by shooting, including:
carrying out exposure compensation on the object based on photometric data of the object in the background, and shooting to obtain an object image corresponding to the object; performing exposure compensation on a target area based on photometric data of the target area in the background, and shooting to obtain a target image corresponding to the target area, wherein the brightness of the target area is higher than that of the object;
wherein, the exposure compensation is performed on the object based on the photometric data of the object in the background, and an object image corresponding to the object is obtained by shooting, including:
it is right object in the background is surveyed photometry, obtains the light and shade degree of object, and the object is in the shared proportion of shooting object, based on the light and shade degree of object, and the object is in the shared proportion of shooting object is right the object carries out exposure compensation, the shooting obtain with the object image that the object corresponds.
2. The method of claim 1, wherein the performing exposure compensation on the foreground person based on photometric data of the foreground person to capture a foreground image corresponding to the foreground person comprises:
and exposing the foreground figure, performing spot light measurement on the exposed foreground figure, performing exposure compensation on the foreground figure based on spot light measurement data, and shooting to obtain a foreground image corresponding to the foreground figure.
3. The method of claim 1, wherein said combining the foreground image and the background image to obtain an output image comprises:
and synthesizing the foreground image, the object image and the target image to obtain an output image.
4. A mobile terminal, comprising:
the recognition module is used for recognizing foreground characters and backgrounds of the shot objects;
the shooting module is used for carrying out exposure compensation on the foreground person based on photometric data of the foreground person and obtaining a foreground image corresponding to the foreground person through shooting; carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background;
the synthesis module is used for synthesizing the foreground image and the background image to obtain an output image;
the shooting module is specifically used for carrying out exposure compensation on the foreground person based on photometric data of the foreground person, and shooting to obtain a foreground image corresponding to the foreground person; performing photometry on an object in the background to obtain the brightness of the object and the proportion of the object in the shooting object, performing exposure compensation on the object based on the brightness of the object and the proportion of the object in the shooting object, and shooting to obtain an object image corresponding to the object; and carrying out exposure compensation on a target area based on photometric data of the target area in the background, and shooting to obtain a target image corresponding to the target area, wherein the brightness of the target area is higher than that of the object.
5. The mobile terminal of claim 4, wherein the capturing module is specifically configured to expose the foreground person, perform spot metering on the exposed foreground person, perform exposure compensation on the foreground person based on spot metering data, and capture a foreground image corresponding to the foreground person; and carrying out exposure compensation on the background based on the photometric data of the background, and shooting to obtain a background image corresponding to the background.
6. The mobile terminal of claim 4, wherein the synthesis module is specifically configured to synthesize the foreground image, the object image, and the target image to obtain an output image.
7. A mobile terminal, comprising: a memory, a processor and an image exposure program stored on the memory and executable on the processor, which when executed by the processor implements the steps in the image exposure method according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that an image exposure program is stored thereon, which when executed by a processor implements the steps of the image exposure method according to any one of claims 1 to 3.
CN201711052535.3A 2017-10-30 2017-10-30 Image exposure method and mobile terminal Active CN107623818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711052535.3A CN107623818B (en) 2017-10-30 2017-10-30 Image exposure method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711052535.3A CN107623818B (en) 2017-10-30 2017-10-30 Image exposure method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107623818A CN107623818A (en) 2018-01-23
CN107623818B true CN107623818B (en) 2020-04-17

Family

ID=61092296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711052535.3A Active CN107623818B (en) 2017-10-30 2017-10-30 Image exposure method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107623818B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616689B (en) * 2018-04-12 2020-10-02 Oppo广东移动通信有限公司 Portrait-based high dynamic range image acquisition method, device and equipment
CN109729275A (en) * 2019-03-14 2019-05-07 Oppo广东移动通信有限公司 Imaging method, device, terminal and storage medium
CN110062160B (en) 2019-04-09 2021-07-02 Oppo广东移动通信有限公司 Image processing method and device
CN111083389B (en) * 2019-12-27 2021-11-16 维沃移动通信有限公司 Method and device for shooting image
CN114827487B (en) * 2020-04-28 2024-04-12 荣耀终端有限公司 High dynamic range image synthesis method and electronic equipment
CN112887624B (en) * 2021-01-26 2022-08-09 维沃移动通信有限公司 Shooting method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454145A (en) * 2016-09-28 2017-02-22 湖南优象科技有限公司 Automatic exposure method with scene self-adaptivity
CN107124561A (en) * 2016-12-27 2017-09-01 福建新大陆自动识别技术有限公司 A kind of bar code image exposure adjustment system and method based on CMOS

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200721809A (en) * 2005-11-17 2007-06-01 Benq Corp Method for exposure compensation using a flashlight of a camera
TW200928574A (en) * 2007-12-31 2009-07-01 Altek Corp Automatic exposure control method
US8976257B2 (en) * 2012-07-31 2015-03-10 Jadak, Llc Automatic exposure calibration and compensation for machine vision
CN106851063A (en) * 2017-02-27 2017-06-13 努比亚技术有限公司 A kind of exposure regulation terminal and method based on dual camera
CN107018323B (en) * 2017-03-09 2019-07-12 Oppo广东移动通信有限公司 Control method, control device and electronic device
CN107172353B (en) * 2017-06-16 2019-08-20 Oppo广东移动通信有限公司 Automatic explosion method, device and computer equipment
CN107241557A (en) * 2017-06-16 2017-10-10 广东欧珀移动通信有限公司 Image exposure method, device, picture pick-up device and storage medium
CN107197169B (en) * 2017-06-22 2019-12-06 维沃移动通信有限公司 high dynamic range image shooting method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454145A (en) * 2016-09-28 2017-02-22 湖南优象科技有限公司 Automatic exposure method with scene self-adaptivity
CN107124561A (en) * 2016-12-27 2017-09-01 福建新大陆自动识别技术有限公司 A kind of bar code image exposure adjustment system and method based on CMOS

Also Published As

Publication number Publication date
CN107623818A (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN110177221B (en) Shooting method and device for high dynamic range image
CN107613191B (en) Photographing method, photographing equipment and computer readable storage medium
CN107623818B (en) Image exposure method and mobile terminal
CN107566529B (en) Photographing method, mobile terminal and cloud server
CN107707827B (en) High-dynamic image shooting method and mobile terminal
CN107592466B (en) Photographing method and mobile terminal
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN107566739B (en) photographing method and mobile terminal
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN109218626B (en) Photographing method and terminal
CN110913131B (en) Moon shooting method and electronic equipment
CN110930329B (en) Star image processing method and device
CN110213484B (en) Photographing method, terminal equipment and computer readable storage medium
CN111083386B (en) Image processing method and electronic device
CN108449541B (en) Panoramic image shooting method and mobile terminal
CN109068116B (en) Image processing method and device based on supplementary lighting, mobile terminal and storage medium
CN107948505B (en) Panoramic shooting method and mobile terminal
CN107730460B (en) Image processing method and mobile terminal
CN109462745B (en) White balance processing method and mobile terminal
CN108718388B (en) Photographing method and mobile terminal
CN111131722A (en) Image processing method, electronic device, and medium
CN108616687B (en) Photographing method and device and mobile terminal
CN111028192B (en) Image synthesis method and electronic equipment
CN111050069B (en) Shooting method and electronic equipment
CN110708475B (en) Exposure parameter determination method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant