CN108055402B - Shooting method and mobile terminal - Google Patents
Shooting method and mobile terminal Download PDFInfo
- Publication number
- CN108055402B CN108055402B CN201711392457.1A CN201711392457A CN108055402B CN 108055402 B CN108055402 B CN 108055402B CN 201711392457 A CN201711392457 A CN 201711392457A CN 108055402 B CN108055402 B CN 108055402B
- Authority
- CN
- China
- Prior art keywords
- shooting
- mobile terminal
- light
- illumination direction
- target
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a shooting method and a mobile terminal, wherein the method comprises the following steps: acquiring current environment information of the mobile terminal; determining the illumination direction of the target object according to the current environment information; and shooting the target object according to the illumination direction. The invention shoots according to the illumination direction of the target object, can improve the stereoscopic impression and the layering impression of the shot image, and improve the display effect of the dark part of the image.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a shooting method and a mobile terminal.
Background
Light rays are key factors of photography, and different illumination directions such as forward light, side light, backward light, top light and the like can show completely different shooting effects. How to shoot by utilizing the direction of illumination becomes necessary skill for each photographer.
However, the ordinary users generally do not have the skill of taking pictures under different light with different shooting parameters, resulting in poor quality of the pictures taken.
Disclosure of Invention
The invention aims to provide a shooting method and a mobile terminal, which are used for solving the problem that a user is difficult to take a picture well by utilizing light rays, so that the quality of the shot picture is poor.
In a first aspect, an embodiment of the present invention provides a shooting method, which is applied to a mobile terminal including a camera, where the method includes:
acquiring current environment information of the mobile terminal;
determining the illumination direction of the target object according to the current environment information;
and shooting the target object according to the illumination direction.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes a camera, and the mobile terminal further includes:
the acquisition module is used for acquiring the current environment information of the mobile terminal;
the determining module is used for determining the illumination direction of the target object according to the current environment information;
and the shooting module is used for shooting the target object according to the illumination direction.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when being executed by the processor, carries out the steps of the photographing method as described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the shooting method described above.
The embodiment of the invention has the following beneficial effects:
according to the technical scheme of the embodiment of the invention, shooting is carried out according to the illumination direction of the target object, so that the stereoscopic impression and the layering impression of the shot image can be improved, and the display effect of the dark part of the image is improved.
Drawings
FIG. 1 is a flowchart of a photographing method according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a photographing method according to an embodiment of the invention;
fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a second block diagram of a mobile terminal according to the embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
As shown in fig. 1, an embodiment of the present invention provides a shooting method applied to a mobile terminal including a camera, the method including:
step 101: and acquiring current environment information of the mobile terminal.
Here, the current environment information of the mobile terminal may include: the position of the mobile terminal and the system time of the mobile terminal. The position of the mobile terminal comprises at least one of longitude and latitude information and altitude information of the position of the mobile terminal, and the specific value of the system time is the current display time of the screen of the mobile terminal.
Step 102: and determining the illumination direction of the target object according to the current environment information.
The target object can be a face to be shot, the illumination direction can be specifically the illumination direction of a solar light source to the target object, the illumination direction of the solar light source to the position of the mobile terminal in the system time can be obtained according to the illumination directions of the solar light source to different positions at different times, angle information between the orientation of the face to be shot and the optical axis of the camera can be further obtained, and finally the information is synthesized to obtain the illumination direction of the face to be shot by the solar light source.
Step 103: and shooting the target object according to the illumination direction.
Specifically, according to the pre-stored corresponding relationship between the illumination direction and the shooting parameters, the appropriate shooting parameters are selected to shoot the target shooting object.
The shooting method of the embodiment of the invention obtains the current environment information of the mobile terminal; determining the illumination direction of the target object according to the current environment information; and shooting the target object according to the illumination direction. According to the embodiment of the invention, a user does not need to master complicated shooting skills, the illumination direction can be automatically determined, shooting can be carried out according to the illumination direction, the stereoscopic impression and the layering impression of the shot image are improved, and the display effect of the dark part of the image is improved.
Further, the current environment information of the mobile terminal includes: the position of the mobile terminal and the system time of the mobile terminal are determined, and the target object is a face to be shot; as an alternative implementation, as shown in fig. 2, the step 101 includes:
step 1011: and acquiring first angle information between a target irradiation direction and an optical axis of the camera according to irradiation directions of the solar light source to different positions at different time, wherein the target irradiation direction is the irradiation direction of the solar light source to the position of the mobile terminal at the system time.
According to the irradiation directions (irradiation angles, which are based on a horizontal plane) of the solar light source to different positions at different time, which are counted in advance, the target irradiation direction of the solar light source to the positions at the system time is obtained, and first angle information between the target irradiation direction and the camera illumination is further obtained, wherein the camera illumination refers to the optical axis of the opened camera.
Step 1012: and acquiring second angle information between the orientation of the face to be shot and the optical axis of the camera.
In the specific embodiment of the invention, based on a face recognition algorithm, the orientation of the face in the framing picture is judged, including pitching, sweeping and rotating angles, so as to obtain the angle of the face to be shot relative to the optical axis of the lens.
Step 1013: and determining the illumination direction of the solar source to the face to be shot according to the first angle information and the second angle information.
The first angle information is an angle between a target illumination direction and an optical axis of the camera, the second angle information is an angle between the orientation of the face to be shot and the optical axis of the camera, and the angle between the solar light source and the orientation of the face to be shot is calculated by taking the optical axis of the camera as a reference system according to the first angle information and the second angle information, namely the illumination direction of the face to be shot by the solar light source.
Further, the step 103 of photographing the target object according to the illumination direction includes:
acquiring target shooting parameters matched with the illumination direction, the light quality of the solar light source and the light intensity of a shooting interface; and shooting the face to be shot according to the target shooting parameters.
Specifically, a target shooting scene matched with the illumination direction, the light quality of the solar light source and the light intensity of the shooting interface is obtained from a plurality of pre-stored shooting scenes; acquiring target shooting parameters corresponding to the target shooting scene according to the corresponding relation between a preset shooting scene and the shooting parameters; and shooting the face to be shot according to the target shooting parameters.
The shooting scenes comprise a front light shooting scene, a back light shooting scene, a side front light shooting scene, a side back light shooting scene, a top light shooting scene, a bottom light shooting scene and the like. Each shooting scene comprises three scene characteristic parameters including an illumination direction, light quality of a solar light source and light intensity of a shooting interface, if the current illumination direction is reverse light irradiation, the difference value between the light quality of the solar light source and the light quality in the reverse light shooting scene is smaller than a first preset threshold value, and the difference value between the light intensity of the shooting interface and the light intensity in the reverse light shooting scene is smaller than a second preset threshold value, the target shooting scene is determined to be the reverse light shooting scene, preset shooting parameters corresponding to the reverse light shooting scene are obtained, and the human face to be shot is shot by using the obtained shooting parameters.
The light intensity of the shooting interface can be obtained by a preset algorithm or by collecting light sensing data of a camera, for example, by capturing the brightness H of actual ambient light by a front camera, a rear camera or other light sensors.
The light quality of the solar light source is obtained through the following steps:
acquiring weather data corresponding to the position of the mobile terminal and the system time;
according to the weather data, acquiring the light quality of the solar light source, wherein the light quality comprises the following steps: whether there is direct light, and whether the light is hard light or soft light.
According to the position and time of the mobile terminal, the mobile terminal obtains weather data of the current shooting time of the shooting location from a background weather server, wherein the weather data comprises but is not limited to weather conditions such as rain, snow, wind frost and the like, cloud layer thickness, wind power, air pressure and the like, and light quality F (whether direct light exists, whether hard light or soft light exists or not) and expected light intensity G of the current time of the current position are obtained through the weather data.
At this time, before the step 1011, the method further includes:
judging whether the light intensity of a shooting interface is greater than a first preset threshold value and whether the signal intensity of a Global Positioning System (GPS) of the mobile terminal is less than a second preset threshold value;
if the light intensity of the shooting interface is larger than a first preset threshold value and the signal intensity of the GPS is smaller than a second preset threshold value, the step of acquiring first angle information between a target irradiation direction and an optical axis of the camera according to irradiation directions of the solar light source to different positions at different time is carried out.
When the light intensity of the shooting interface is larger than a first preset threshold value and the signal intensity of the GPS is smaller than a second preset threshold value, the position where the mobile terminal is located is determined to be outdoor, namely, a solar light source exists, and at the moment, the step of obtaining first angle information between a target irradiation direction and an optical axis of the camera according to irradiation directions of the solar light source to different positions at different time is carried out.
The first predetermined threshold is specifically the expected light intensity G.
In the embodiment of the invention, whether the position of the mobile terminal is outdoor is judged firstly, and the step of obtaining the first angle information is carried out when the position of the mobile terminal is determined to be outdoor, otherwise, the method of the embodiment of the invention is not executed, so that the energy consumption of the mobile terminal is reduced.
After a user starts a camera, the mobile phone analyzes that the mobile phone is located at place A and has an altitude of m meters, 10 am, the local weather is clear, no cloud cover is shielded on the sky, the wind power is northeast 1 level, the mobile phone faces the northeast, the light sensor judges that the illumination direction is the direct light of a photographer, and then shooting parameters corresponding to a direct light shooting scene are obtained and a face to be shot is shot, so that the quality of shot pictures is improved.
Further, the step of acquiring the first angle information between the target irradiation direction and the optical axis of the camera according to the irradiation directions of the solar light source to different positions at different times in the step 1011 includes:
and determining third angle information between the solar light source and the position according to the target illumination direction, wherein the third angle information takes the horizontal ground as a reference system.
Specifically, according to the target irradiation direction, the angle between the line connecting the solar light source and the position and the horizontal ground, that is, the third angle information, can be obtained.
And acquiring fourth angle information of the mobile terminal relative to the horizontal ground, position information between the optical axis of the camera and the mobile terminal, and acquiring fifth angle information of the optical axis of the camera relative to the horizontal ground.
Specifically, a horizontal direction of the mobile terminal relative to a horizontal ground is obtained according to the electronic compass, then an inclination angle of the mobile terminal relative to the horizontal ground is obtained by using the gyroscope, and the fourth angle information is obtained. In addition, since the optical axis direction of the turned-on camera is fixed relative to the mobile terminal screen, the fifth angle information of the optical axis of the camera relative to the horizontal ground can be obtained according to the fourth angle information and the position information between the optical axis of the camera and the mobile terminal.
And obtaining the first angle information according to the third angle information and the fifth angle information.
According to the angle between the solar light source and the position of the mobile terminal in the horizontal ground and the angle between the optical axis of the camera and the horizontal ground, first angle information between the target irradiation direction and the optical axis of the camera can be obtained.
Further, the determining, in the step 1013, the illumination direction of the solar light source on the face to be photographed according to the first angle information and the second angle information includes:
acquiring a first angle of the first angle information in each dimension of a three-dimensional space coordinate system and a second angle of the second angle information in each dimension of the three-dimensional space coordinate system;
and according to the first angle and the second angle in the same dimension, obtaining the irradiation angle of the solar light source to the face to be shot in each dimension, wherein the irradiation angle uses the optical axis of the camera as a reference system.
In the embodiment of the invention, the three-dimensional space coordinate system comprises three dimensions of an x axis, a y axis and a z axis, the illumination direction of the face to be shot by the solar light source takes the optical axis of a camera of the mobile terminal as a reference system, the illumination angles of the face to be shot of the solar light source on the x axis, the y axis and the z axis are obtained by comparing the first angle and the second angle on the same dimension, and the illumination direction is obtained according to the illumination angles of the face to be shot of the solar light source on the x axis, the y axis and the z axis. If the angle on the z axis is positive and is greater than a first preset angle value, the top light shooting can be determined, and if the angle on the z axis is negative and is greater than a second preset angle value, the bottom light shooting can be determined. Similarly, the corresponding illumination direction can be determined according to the relationship between the illumination angle of the sun light source on the shot human face on the x axis or the y axis and the corresponding angle threshold.
Preferably, the method for determining the illumination direction according to the embodiment of the present invention further includes:
and according to the illumination direction, supplementing light or providing a shooting suggestion.
For example, when the user is in a smooth light state, the user is prompted that the current state is in the smooth light state, and special picture effect optimization is not performed; when the backlight is finished, the user is prompted to be backlight at present, the light supplement lamp is automatically turned on, exposure compensation is improved, skin is whitened, and the high-tone aesthetic feeling of the picture is achieved; when the light is in the side light state, prompting the user that the light is in the side light state, providing two options, and increasing the contrast to enhance the light and shade contrast or increasing the dark part to weaken the light and shade contrast so as to achieve the dramatic effect of enhancing or weakening the illumination; and when the side is smooth, prompting the user that the side is smooth currently. Two options are provided, the contrast is improved to enhance the light and shade contrast, or the dark part is improved to weaken the light and shade contrast, so as to achieve the dramatic effect of enhancing or weakening the illumination; when the side backlight is performed, the user is prompted to perform the side backlight currently, two options are provided, the contrast is improved to enhance the light and shade contrast, or the dark part is lightened to weaken the light and shade contrast, so that the dramatic effect of enhancing or weakening the illumination is achieved. When the light is emitted, the user is prompted to emit the light at present, and the lighting condition is not good enough. Suggesting to change the shooting angle or shooting place; when the light is the background light, the user is prompted that the light condition is not good enough. It is recommended to change the shooting angle or shooting place.
The shooting method of the embodiment of the invention obtains the current environment information of the mobile terminal; determining the illumination direction of the target object according to the current environment information; and shooting the target object according to the illumination direction. According to the embodiment of the invention, a user does not need to master complicated shooting skills, the illumination direction can be automatically determined, shooting can be carried out according to the illumination direction, the stereoscopic impression and the layering impression of the shot image are improved, and the display effect of the dark part of the image is improved.
As shown in fig. 3, an embodiment of the present invention further provides a mobile terminal 300, which includes a camera, and further includes:
an obtaining module 301, configured to obtain current environment information of the mobile terminal;
a determining module 302, configured to determine an illumination direction of the target object according to the current environment information;
and the shooting module 303 is configured to shoot the target object according to the illumination direction.
In the mobile terminal of the embodiment of the present invention, the current environment information of the mobile terminal includes: the position of the mobile terminal and the system time of the mobile terminal are determined, and the target object is a face to be shot;
as shown in fig. 4, the determining module 302 includes:
the first obtaining submodule 3021 is configured to obtain first angle information between a target irradiation direction and an optical axis of the camera according to irradiation directions of the solar light source to different positions at different times, where the target irradiation direction is an irradiation direction of the solar light source to a position where the mobile terminal is located at the system time;
the second obtaining submodule 3022 is configured to obtain second angle information between the orientation of the face to be photographed and the optical axis of the camera;
the determining submodule 3023 is configured to determine, according to the first angle information and the second angle information, an illumination direction of the solar light source on the face to be photographed.
In the mobile terminal of the embodiment of the present invention, the shooting module 303 includes:
the third obtaining submodule 3031 is configured to obtain a target shooting parameter matched with the illumination direction, the light quality of the solar light source, and the light intensity of the shooting interface;
and the shooting submodule 3032 is used for shooting the face to be shot according to the target shooting parameters.
In the mobile terminal according to the embodiment of the present invention, the third obtaining submodule 3031 includes:
a first obtaining unit 30311, configured to obtain weather data corresponding to a location where the mobile terminal is located and system time;
a second obtaining unit 30312, configured to obtain, according to the weather data, light quality of the solar light source, where the light quality includes: whether there is direct light, and whether the light is hard light or soft light.
In the mobile terminal of the embodiment of the present invention, the determining module 302 further includes:
the judging submodule 3024 is configured to judge whether the light intensity of the shooting interface is greater than a first preset threshold and whether the signal intensity of the global positioning system GPS of the mobile terminal is less than a second preset threshold;
the control submodule 3025 is configured to, if the light intensity of the shooting interface is greater than a first preset threshold and the signal intensity of the GPS is smaller than a second preset threshold, control the first obtaining submodule to enter a step of obtaining first angle information between a target irradiation direction and an optical axis of the camera according to irradiation directions of the solar light source to different positions at different times.
It should be noted that the mobile terminal is a mobile terminal corresponding to the above method embodiment, and all implementation manners in the above method embodiment are applicable to the embodiment of the mobile terminal, and the same technical effect can be achieved.
The mobile terminal provided by the embodiment of the invention shoots according to the illumination direction of the target object, so that the stereoscopic impression and the layering impression of the shot image can be improved, and the display effect of the dark part of the image is improved.
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.
The processor 510 is configured to obtain current environment information of the mobile terminal; determining the illumination direction of the target object according to the current environment information; and shooting the target object according to the illumination direction.
According to the technical scheme of the embodiment of the invention, the current environment information of the mobile terminal is obtained; determining the illumination direction of the target object according to the current environment information; and shooting the target object according to the illumination direction. According to the embodiment of the invention, a user does not need to master complicated shooting skills, the illumination direction can be automatically determined, shooting can be carried out according to the illumination direction, the stereoscopic impression and the layering impression of the shot image are improved, and the display effect of the dark part of the image is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
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 (6)
1. A shooting method is applied to a mobile terminal comprising a camera, and is characterized by comprising the following steps:
acquiring current environment information of the mobile terminal;
determining the illumination direction of the target object according to the current environment information;
shooting the target object according to the illumination direction; wherein, according to the illumination direction, shooting the target object comprises: selecting proper shooting parameters to shoot the target object according to the corresponding relation between the pre-stored illumination direction and the shooting parameters;
the current environment information of the mobile terminal includes: the position of the mobile terminal and the system time of the mobile terminal are determined, and the target object is a face to be shot;
the step of determining the illumination direction of the target object according to the current environment information includes:
acquiring first angle information between a target irradiation direction and an optical axis of a camera according to irradiation directions of a solar light source to different positions at different time, wherein the target irradiation direction is the irradiation direction of the solar light source to the position of the mobile terminal at the system time;
acquiring second angle information between the orientation of the face to be shot and the optical axis of the camera;
determining the illumination direction of the solar source to the face to be shot according to the first angle information and the second angle information;
the step of photographing the target object according to the illumination direction includes:
acquiring target shooting parameters matched with the illumination direction, the light quality of the solar light source and the light intensity of a shooting interface; the method comprises the following steps of obtaining target shooting parameters matched with the illumination direction, the light quality of a solar light source and the light intensity of a shooting interface, and specifically comprises the following steps: acquiring a target shooting scene matched with the illumination direction, the light quality of the solar light source and the light intensity of the shooting interface from a plurality of pre-stored shooting scenes; acquiring target shooting parameters corresponding to the target shooting scene according to the corresponding relation between a preset shooting scene and the shooting parameters;
and shooting the face to be shot according to the target shooting parameters.
2. The method of claim 1, wherein the light quality of the solar light source is obtained by:
acquiring weather data corresponding to the position of the mobile terminal and the system time;
according to the weather data, acquiring the light quality of the solar light source, wherein the light quality comprises the following steps: whether there is direct light, and whether the light is hard light or soft light.
3. The utility model provides a mobile terminal, includes the camera, its characterized in that still includes:
the acquisition module is used for acquiring the current environment information of the mobile terminal;
the determining module is used for determining the illumination direction of the target object according to the current environment information;
the shooting module is used for shooting the target object according to the illumination direction; the shooting module is specifically used for selecting proper shooting parameters to shoot the target object according to the corresponding relation between the pre-stored illumination direction and the shooting parameters;
the current environment information of the mobile terminal includes: the position of the mobile terminal and the system time of the mobile terminal are determined, and the target object is a face to be shot;
the determining module comprises:
the first acquisition submodule is used for acquiring first angle information between a target irradiation direction and an optical axis of the camera according to irradiation directions of the solar light source to different positions at different time, wherein the target irradiation direction is the irradiation direction of the solar light source to the position of the mobile terminal at the system time;
the second acquisition submodule is used for acquiring second angle information between the orientation of the face to be shot and the optical axis of the camera;
the determining submodule is used for determining the illumination direction of the solar source to the face to be shot according to the first angle information and the second angle information;
the photographing module includes:
the third acquisition submodule is used for acquiring target shooting parameters matched with the illumination direction, the light quality of the solar light source and the light intensity of the shooting interface; the third obtaining submodule is specifically configured to obtain a target shooting scene matched with the illumination direction, the light quality of the solar light source and the light intensity of the shooting interface in a plurality of pre-stored shooting scenes; acquiring target shooting parameters corresponding to the target shooting scene according to the corresponding relation between a preset shooting scene and the shooting parameters;
and the shooting submodule is used for shooting the face to be shot according to the target shooting parameters.
4. The mobile terminal of claim 3, wherein the third obtaining sub-module comprises:
the first acquisition unit is used for acquiring weather data corresponding to the position of the mobile terminal and the system time;
a second obtaining unit, configured to obtain, according to the weather data, light quality of the solar light source, where the light quality includes: whether there is direct light, and whether the light is hard light or soft light.
5. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when being executed by the processor, carries out the steps of the shooting method according to one of claims 1 to 2.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the photographing method according to any of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711392457.1A CN108055402B (en) | 2017-12-21 | 2017-12-21 | Shooting method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711392457.1A CN108055402B (en) | 2017-12-21 | 2017-12-21 | Shooting method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108055402A CN108055402A (en) | 2018-05-18 |
CN108055402B true CN108055402B (en) | 2021-01-08 |
Family
ID=62131119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711392457.1A Active CN108055402B (en) | 2017-12-21 | 2017-12-21 | Shooting method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108055402B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108055403A (en) * | 2017-12-21 | 2018-05-18 | 努比亚技术有限公司 | A kind of audio method of adjustment, terminal and computer readable storage medium |
CN109361859A (en) * | 2018-10-29 | 2019-02-19 | 努比亚技术有限公司 | A kind of image pickup method, terminal and storage medium |
CN109543666A (en) * | 2018-11-05 | 2019-03-29 | 北京小米移动软件有限公司 | Structure light assembly control method and device |
CN111182093A (en) * | 2018-11-12 | 2020-05-19 | 奇酷互联网络科技(深圳)有限公司 | HDR photographing method based on three cameras, mobile terminal and storage medium |
CN112449119A (en) * | 2019-08-30 | 2021-03-05 | 中移物联网有限公司 | Shot object recognition equipment, method and device |
CN111263077A (en) * | 2020-01-21 | 2020-06-09 | Oppo广东移动通信有限公司 | Exposure control method, terminal and storage medium |
CN112511737A (en) * | 2020-10-29 | 2021-03-16 | 维沃移动通信有限公司 | Image processing method and device, electronic equipment and readable storage medium |
CN112843678B (en) * | 2020-12-31 | 2023-05-23 | 上海米哈游天命科技有限公司 | Method and device for shooting image, electronic equipment and storage medium |
CN113108904A (en) * | 2021-04-20 | 2021-07-13 | 武汉华星光电技术有限公司 | Ambient light monitoring method and device, storage medium and mobile terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102480562A (en) * | 2010-11-23 | 2012-05-30 | 英业达股份有限公司 | Camera type mobile communication device and flash lamp control method thereof |
CN104580886B (en) * | 2014-12-15 | 2018-10-12 | 小米科技有限责任公司 | Filming control method and device |
CN107396000B (en) * | 2015-01-29 | 2019-07-19 | Oppo广东移动通信有限公司 | A kind of light compensation method and device of camera shooting |
CN105554407A (en) * | 2015-12-11 | 2016-05-04 | 小米科技有限责任公司 | Shooting control method and shooting control device |
-
2017
- 2017-12-21 CN CN201711392457.1A patent/CN108055402B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108055402A (en) | 2018-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108055402B (en) | Shooting method and mobile terminal | |
CN109361865B (en) | Shooting method and terminal | |
CN107580209B (en) | Photographing imaging method and device of mobile terminal | |
CN107786817B (en) | A kind of photographic method and mobile terminal | |
CN108038825B (en) | Image processing method and mobile terminal | |
CN109788174B (en) | Light supplementing method and terminal | |
CN110930329B (en) | Star image processing method and device | |
CN107730460B (en) | Image processing method and mobile terminal | |
CN108040209B (en) | Shooting method and mobile terminal | |
CN108881544B (en) | Photographing method and mobile terminal | |
CN109474789B (en) | Method for adjusting field angle of fill-in lamp and mobile terminal | |
CN111083386B (en) | Image processing method and electronic device | |
CN109788204A (en) | Shoot processing method and terminal device | |
CN107888823A (en) | One kind shooting processing method, apparatus and system | |
CN107566749A (en) | Image pickup method and mobile terminal | |
CN108718388B (en) | Photographing method and mobile terminal | |
CN111246102A (en) | Shooting method, shooting device, electronic equipment and storage medium | |
CN111246111B (en) | Photographing method, electronic device, and medium | |
CN110602387B (en) | Shooting method and electronic equipment | |
CN109859718B (en) | Screen brightness adjusting method and terminal equipment | |
CN110891122A (en) | Wallpaper pushing method and electronic equipment | |
CN110163036B (en) | Image recognition method and device | |
CN108259756B (en) | Image shooting method and mobile terminal | |
CN110740263B (en) | Image processing method and terminal equipment | |
CN111107281B (en) | Image processing method, image processing apparatus, electronic device, and 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 |