CN111314618B - Shooting method, shooting device, storage medium and mobile terminal - Google Patents
Shooting method, shooting device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN111314618B CN111314618B CN202010188258.4A CN202010188258A CN111314618B CN 111314618 B CN111314618 B CN 111314618B CN 202010188258 A CN202010188258 A CN 202010188258A CN 111314618 B CN111314618 B CN 111314618B
- Authority
- CN
- China
- Prior art keywords
- image
- shooting
- parameter value
- mobile terminal
- light source
- 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
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000012545 processing Methods 0.000 claims abstract description 21
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012805 post-processing Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 7
- 230000001678 irradiating effect Effects 0.000 description 7
- 230000001960 triggered effect Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
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/80—Camera processing pipelines; Components thereof
-
- 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/72—Combination of two or more compensation controls
-
- 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
-
- 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/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a shooting method, a shooting device, a storage medium and a mobile terminal, wherein the method comprises the following steps: receiving a shooting instruction; controlling the light source to emit light according to first brightness and shoot a target object according to the shooting instruction to obtain a target image; and processing the target image to obtain a processed image, wherein the processed image is an image obtained by simulating the light source to emit light according to a second brightness and shooting a target object, and the second brightness is greater than the first brightness, so that the problems of light source loss and overlarge power consumption of the mobile terminal can be avoided.
Description
Technical Field
The present application relates to the field of electronic devices, and in particular, to a shooting method, an apparatus, a storage medium, and a mobile terminal.
Background
The photographing is one of the most important and common functions of the mobile terminal, and as the user's needs for photographing become more and more abundant and diversified, for example, in a scene where the mobile terminal is located in a dark environment, the user wants to take a clear picture through the mobile terminal, and can illuminate an object to be photographed for a short time through a flash lamp to take a picture.
In the prior art, when a user presses a shooting key, a flash lamp emits light with weak brightness so as to illuminate an object to be shot, and at the moment when a camera is focused, the flash lamp emits light with strong brightness and uses the camera for shooting. However, controlling the flash to generate a strong brightness instantly requires inputting a strong electric signal to the flash, which causes problems of loss of the flash and excessive power consumption of the mobile terminal.
Disclosure of Invention
The embodiment of the application provides a shooting method, which can avoid the problems of light source loss and overlarge power consumption of a mobile terminal.
The embodiment of the application provides a shooting method, which is applied to a mobile terminal, wherein the mobile terminal comprises a light source exposed outside the mobile terminal, and the shooting method comprises the following steps:
receiving a shooting instruction;
controlling the light source to emit light according to first brightness and shoot a target object according to the shooting instruction to obtain a target image;
and processing the target image to obtain a processed image, wherein the processed image is an image obtained by simulating the light source to emit light according to a second brightness and shooting a target object, and the second brightness is greater than the first brightness.
In the shooting method of the present application, the processing the target image to obtain a processed image includes:
and adjusting the image parameters in the target image to obtain a processed image.
In the shooting method of the present application, the adjusting the image parameter value in the target image to obtain a processed image includes:
determining a first area of the target image with the image parameter value larger than a first preset image parameter value;
determining a second area of the target image, wherein the image parameter value is smaller than a first preset image parameter value;
and adjusting the image parameter of the first area to be a second preset image parameter value, and adjusting the image parameter of the second area to be a third preset image parameter value.
In the photographing method of the present application, the image parameter values include:
one or more of an image grayscale parameter value, an image lightness parameter value, and an image saturation parameter value.
In the shooting method of the present application, the controlling the light source to emit light according to a first brightness and shooting a target object to obtain a target image includes:
detecting the ambient light intensity of the environment where the current mobile terminal is located;
and if the ambient light intensity is smaller than a first ambient light intensity or the ambient light intensity is larger than a second ambient light intensity, controlling the light source to emit light according to a first brightness and shooting a target object to obtain a target image, wherein the second ambient light intensity is larger than the first ambient light intensity.
In the shooting method of the present application, the method further includes:
and if the ambient light intensity is greater than the first ambient light intensity and less than the second ambient light intensity, forbidding to start the light source, and shooting the target object to obtain the target image.
The embodiment of the present application further provides a shooting device, is applied to mobile terminal, mobile terminal includes exposes at the outside light source of mobile terminal, its characterized in that includes:
the receiving module is used for receiving a shooting instruction;
the shooting module is used for controlling the light source to emit light according to first brightness and shooting a target object according to the shooting instruction to obtain a target image;
and the processing module is used for processing the target image to obtain a processed image, the processed image is an image obtained by simulating the light source to emit light according to a second brightness and shooting a target object, and the second brightness is greater than the first brightness.
In the photographing apparatus of the present application, the processing module includes:
and the adjusting submodule is used for adjusting the image parameters in the target image to obtain a processed image.
An embodiment of the present application further provides a storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the shooting method as described above.
The embodiment of the present application further provides a mobile terminal, which includes a memory and a processor, and is characterized in that the processor is configured to execute the shooting method described above by calling a computer program stored in the memory.
The shooting method provided by the embodiment of the application comprises the following steps: receiving a shooting instruction; controlling the light source to emit light according to first brightness and shoot a target object according to the shooting instruction to obtain a target image; and processing the target image to obtain a processed image, wherein the processed image is an image obtained by simulating the light source to emit light according to a second brightness and shooting a target object, and the second brightness is greater than the first brightness, so that the problems of light source loss and overlarge power consumption of the mobile terminal can be avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first flowchart of a shooting method according to an embodiment of the present disclosure.
Fig. 2 is a schematic structural diagram of a second shooting method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a shooting device according to an embodiment of the present application.
Fig. 4 is a specific structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the present application and for simplicity in description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated in a particular manner, and are not to be construed as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
In this application, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may comprise direct contact of the first and second features, or may comprise contact of the first and second features not directly but through another feature in between. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all 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 application.
Referring to fig. 1, fig. 1 is a first structural schematic diagram of a shooting method according to an embodiment of the present disclosure. The shooting method comprises the following steps:
Specifically, a physical key may be preset on the mobile terminal to receive a shooting instruction of the user, or a shooting button is provided in the shooting software, and the shooting instruction is triggered and generated when the user clicks the shooting button.
Wherein, the mobile terminal includes the light source that exposes outside this mobile terminal, for example: the mobile terminal comprises a flashlight, a charging signal indicator lamp and the like, wherein the flashlight, the charging signal indicator lamp and the like can automatically control the light source to emit light when the mobile terminal is in a dark or bright environment so as to irradiate a target object. The mobile terminal can be installed with various applications required by the user, such as applications with entertainment functions (e.g., video applications, audio playing applications, game applications, and reading software), and applications with service functions (e.g., map navigation applications, dining applications, etc.).
And 102, controlling the light source to emit light according to the first brightness and shoot the target object according to the shooting instruction to obtain a target image.
Specifically, after a shooting instruction triggered by user operation is detected, the light source is controlled to emit light according to preset first brightness so as to illuminate a target object, and after the camera is focused, the camera is controlled to shoot the illuminated target object, so that a target image is obtained.
When the scene brightness of the mobile terminal is not too high or too low, the light source does not need to be lightened, so that the ambient light intensity of the current environment of the mobile terminal can be detected after a shooting instruction is received, and if the detected ambient light intensity is less than the preset first ambient light intensity, the current ambient light intensity is relatively weak, and the light source needs to be lightened; or if the detected ambient light intensity is greater than the preset second ambient light intensity, it indicates that the current ambient light intensity is brighter, and the light source may be turned on so as to prevent the shot target object from being overexposed. Therefore, before the controlling the light source to emit light at the first brightness and shoot the target object to obtain the target image, the method may further include:
detecting the ambient light intensity of the current environment where the mobile terminal is located according to the shooting instruction;
and if the ambient light intensity is smaller than a first ambient light intensity or the ambient light intensity is larger than a second ambient light intensity, controlling the light source to emit light according to a first brightness and shooting a target object to obtain a target image, wherein the second ambient light intensity is larger than the first ambient light intensity.
On the contrary, if the detected current ambient light intensity is between the first ambient light intensity and the second ambient light intensity, it indicates that the scene brightness of the current mobile terminal is not too high or too low, and the light source does not need to be turned on. Therefore, before the controlling the light source to emit light at the first brightness and shoot the target object to obtain the target image, the method may further include:
and if the ambient light intensity is greater than the first ambient light intensity and less than the second ambient light intensity, forbidding to start the light source, and shooting the target object to obtain the target image.
And 103, processing the target image to obtain a processed image.
Specifically, when the target object is photographed, the target object is irradiated by the light source with light emitted at a first luminance having a low emission luminance, but the luminance of an image photographed by irradiating the target object with light having a low luminance is insufficient, which may cause a factor affecting the photographing quality such as insufficient luminance of the image. Therefore, it is necessary to process the captured target image so as to simulate the image captured by irradiating the target object with light emitted from the light source at the second luminance higher than the luminance.
The mode of simulating the light source to emit light according to the second brightness and shooting the image obtained by the target object can be to adjust the image parameters of the target image, so that the processed image obtained by simulating the light source to emit light according to the second brightness and shooting the target object is obtained. Thus, step 103 may comprise:
and adjusting the image parameter value in the target image to obtain a processed image.
Specifically, considering that the light source irradiates on the target object when emitting light, the luminance of the area of the target object facing the light source is high, and the luminance of the area spreading from the area to the periphery is low, it may be determined which area of the target image obtained by shooting has an image parameter value larger than the first preset image parameter value, and which area has an image parameter value smaller than the first preset image parameter value, so as to determine the area facing the light source and the area spreading from the area to the periphery when shooting. And when the target image is processed, adjusting image parameters in different areas respectively, so as to simulate an image shot by the light source emitting light according to the second brightness and irradiating the target object. Therefore, the adjusting the image parameter value in the target image to obtain a processed image includes:
determining a first area of the target image with the image parameter value larger than a first preset image parameter value;
determining a second area of the target image, wherein the image parameter value is smaller than a first preset image parameter value;
and adjusting the image parameter value of the first area to be a second preset image parameter value, and adjusting the image parameter value of the second area to be a third preset image parameter value.
Wherein the image parameter values include:
one or more of an image grayscale parameter value, an image lightness parameter value, and an image saturation parameter value.
The shooting method provided by the embodiment of the application comprises the following steps: receiving a shooting instruction; controlling the light source to emit light according to first brightness and shoot a target object according to the shooting instruction to obtain a target image; and processing the target image to obtain a processed image, wherein the processed image is an image obtained by simulating the light source to emit light according to a second brightness and shooting a target object, and the second brightness is greater than the first brightness. The light source emits light with high brightness when shooting is simulated by carrying out post-processing on the target image, so that the problems of light source loss and overlarge power consumption of the mobile terminal are avoided.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a second shooting method according to an embodiment of the present disclosure. The shooting method comprises the following steps:
Specifically, a physical key may be preset on the mobile terminal to receive a shooting instruction of the user, or a shooting button is provided in the shooting software, and the shooting instruction is triggered and generated when the user clicks the shooting button.
Wherein, the mobile terminal includes the light source that exposes outside this mobile terminal, for example: the mobile terminal comprises a flashlight, a charging signal indicator lamp and the like, wherein the flashlight, the charging signal indicator lamp and the like can automatically control the light source to emit light when the mobile terminal is in a dark or bright environment so as to irradiate a target object. The mobile terminal can be installed with various applications required by the user, such as applications with entertainment functions (e.g., video applications, audio playing applications, game applications, and reading software), and applications with service functions (e.g., map navigation applications, dining applications, etc.).
Specifically, after a shooting instruction triggered by user operation is detected, the light source is controlled to emit light according to preset first brightness so as to illuminate a target object, and after the camera is focused, the camera is controlled to shoot the illuminated target object, so that a target image is obtained.
When the scene brightness of the mobile terminal is not too high or too low, the light source does not need to be lightened, so that the ambient light intensity of the current environment of the mobile terminal can be detected after the shooting instruction is received
If the detected ambient light intensity is less than the preset first ambient light intensity, the current ambient light intensity is relatively weak, and the light source needs to be lightened; or if the detected ambient light intensity is greater than the preset second ambient light intensity, it indicates that the current ambient light intensity is brighter, and the light source may be turned on so as to prevent the shot target object from being overexposed.
And 204, if the ambient light intensity is greater than the first ambient light intensity and less than the second ambient light intensity, forbidding turning on the light source, and shooting the target object.
On the contrary, if the detected current ambient light intensity is between the first ambient light intensity and the second ambient light intensity, it indicates that the scene brightness of the current mobile terminal is not too high or too low, and the light source does not need to be turned on.
Specifically, when the target object is photographed, the target object is irradiated by the light source with light emitted at a first luminance having a low emission luminance, but the luminance of an image photographed by irradiating the target object with light having a low luminance is insufficient, which may cause a factor affecting the photographing quality such as insufficient luminance of the image. Therefore, it is necessary to process the captured target image so as to simulate the image captured by irradiating the target object with light emitted from the light source at the second luminance higher than the luminance.
The mode of simulating the light source to emit light according to the second brightness and shooting the image obtained by the target object can be to adjust the image parameters of the target image, so that the processed image obtained by simulating the light source to emit light according to the second brightness and shooting the target object is obtained.
Considering that the light source irradiates on the target object when emitting light, the brightness of the area of the target object opposite to the light source is high, and the brightness of the area spreading to the periphery from the area is low, it can be determined which area of the target image obtained by shooting has the image parameter value larger than the first preset image parameter value, and which area has the image parameter value smaller than the first preset image parameter value, so as to determine the area opposite to the light source and the area spreading to the periphery from the area when shooting.
After the area over which the light source is directed and the area spreading from the area to the periphery are determined in step 205 and this step, image parameters in different areas are adjusted respectively when the target image is processed, so that an image shot by the light source emitting light at a second brightness and illuminating the target object is simulated.
The shooting method provided by the embodiment of the application comprises the following steps: receiving a shooting instruction; controlling the light source to emit light according to first brightness and shoot a target object according to the shooting instruction to obtain a target image; and processing the target image to obtain a processed image, wherein the processed image is an image obtained by simulating the light source to emit light according to a second brightness and shooting a target object, and the second brightness is greater than the first brightness. The light source emits light with high brightness when shooting is simulated by carrying out post-processing on the target image, so that the problems of light source loss and overlarge power consumption of the mobile terminal are avoided.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a shooting device according to an embodiment of the present disclosure. The photographing apparatus includes: a receiving module 31, an imaging module 32 and a processing module 33.
The receiving unit 31 is configured to receive a shooting instruction.
Specifically, a physical key may be preset on the mobile terminal to receive a shooting instruction of the user, or a shooting button is provided in the shooting software, and the shooting instruction is triggered and generated when the user clicks the shooting button.
Wherein, the mobile terminal includes the light source that exposes outside this mobile terminal, for example: the mobile terminal comprises a flashlight, a charging signal indicator lamp and the like, wherein the flashlight, the charging signal indicator lamp and the like can automatically control the light source to emit light when the mobile terminal is in a dark or bright environment so as to irradiate a target object. The mobile terminal can be installed with various applications required by the user, such as applications with entertainment functions (e.g., video applications, audio playing applications, game applications, and reading software), and applications with service functions (e.g., map navigation applications, dining applications, etc.).
And the shooting module 32 is used for controlling the light source to emit light according to the first brightness and shooting the target object according to the shooting instruction to obtain a target image.
Specifically, after a shooting instruction triggered by user operation is detected, the light source is controlled to emit light according to preset first brightness so as to illuminate a target object, and after the camera is focused, the camera is controlled to shoot the illuminated target object, so that a target image is obtained.
The processing module 33 is configured to process the target image to obtain a processed image, where the processed image is an image obtained by simulating that the light source emits light according to a second brightness and shooting a target object, and the second brightness is greater than the first brightness.
Specifically, when the target object is photographed, the target object is irradiated by the light source with light emitted at a first luminance having a low emission luminance, but the luminance of an image photographed by irradiating the target object with light having a low luminance is insufficient, which may cause a factor affecting the photographing quality such as insufficient luminance of the image. Therefore, it is necessary to process the captured target image so as to simulate the image captured by irradiating the target object with light emitted from the light source at the second luminance higher than the luminance.
In some embodiments, the processing module 33 may further include:
and the adjusting submodule is used for adjusting the image parameters in the target image to obtain a processed image.
Based on the above method, the present invention also provides a storage medium having a plurality of instructions stored thereon, wherein the instructions are adapted to be loaded by a processor and to perform the photographing method as described above.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Fig. 4 is a block diagram showing a specific structure of a terminal according to an embodiment of the present invention, where the terminal may be used to implement the sound effect adjusting method, the storage medium, and the terminal provided in the foregoing embodiments.
As shown in fig. 4, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 4 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with a second device over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the photographing method, apparatus, storage medium and mobile terminal in the above embodiments, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, that is, realizes the function of mutual chip identification. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or a second non-volatile solid-state memory. In some examples, memory 120 may be a storage medium as described above.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and further, the touch-sensitive surface 131 may cover the display panel 141. The display interface of the mobile terminal in the above embodiment may be represented by the display unit 140, that is, the display content of the display sound effect adjustment may be displayed by the display unit 140.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and a second sensor. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As for the second sensor such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, the detailed description is omitted here.
The mobile terminal 1200, which can help a user send and receive e-mails, browse web pages, access streaming media, etc., provides the user with wireless broadband internet access through the transmission module 170.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Specifically, the processor 180 includes: an Arithmetic Logic Unit (ALU), an application processor, a Global Positioning System (GPS) and a control and status Bus (Bus) (not shown).
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system in some embodiments to provide management of power, and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a re-power system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein.
Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
receiving a shooting instruction;
controlling the light source to emit light according to first brightness and shoot a target object according to the shooting instruction to obtain a target image;
and processing the target image to obtain a processed image, wherein the processed image is an image obtained by simulating the light source to emit light according to a second brightness and shooting a target object, and the second brightness is greater than the first brightness.
In some embodiments, when processing the target image to obtain a processed image, processor 380 may further execute the following instructions:
and adjusting the image parameter value in the target image to obtain a processed image.
In some embodiments, when adjusting the image parameter values in the target image to obtain the processed image, the processor 380 may further execute the following instructions:
determining a first area of the target image with the image parameter value larger than a first preset image parameter value;
determining a second area of the target image, wherein the image parameter value is smaller than a first preset image parameter value;
and adjusting the image parameter value of the first area to be a second preset image parameter value, and adjusting the image parameter value of the second area to be a third preset image parameter value.
In some embodiments, before the controlling the light source to emit light at the first brightness and capture the target object to obtain the target image, the processor 380 may further execute the following instructions:
detecting the ambient light intensity of the environment where the current mobile terminal is located;
and if the ambient light intensity is smaller than a first ambient light intensity or the ambient light intensity is larger than a second ambient light intensity, controlling the light source to emit light according to a first brightness and shooting a target object to obtain a target image, wherein the second ambient light intensity is larger than the first ambient light intensity.
In some embodiments, processor 380 may also execute instructions to:
and if the ambient light intensity is greater than the first ambient light intensity and less than the second ambient light intensity, forbidding to start the light source and shooting the target object.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The above detailed description is given to a shooting method, a shooting device, a shooting storage medium, and a mobile terminal provided in the embodiments of the present application, and a specific example is applied in the detailed description to explain the principles and implementations of the present application, and the description of the above embodiments is only used to help understanding the technical solutions and core ideas of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.
Claims (7)
1. A shooting method is applied to a mobile terminal, the mobile terminal comprises a light source exposed outside the mobile terminal, and the shooting method is characterized by comprising the following steps:
receiving a shooting instruction;
controlling a light source to emit light according to a preset first brightness according to the shooting instruction so as to illuminate a target object, and controlling a camera to shoot the illuminated target object after the camera focuses on the target object to obtain a target image;
determining a first area of the target image with the image parameter value larger than a first preset image parameter value;
determining a second area of the target image, wherein the image parameter value is smaller than a first preset image parameter value;
and adjusting the image parameter value of the first area to a second preset image parameter value, and adjusting the image parameter value of the second area to a third preset image parameter value to obtain a processed image, wherein the processed image is an image obtained by simulating the light source to emit light according to a second brightness and shooting a target object, the second brightness is greater than the first brightness, and the light source emits light at a higher brightness when shooting is simulated by performing post-processing on the target image, so that the problems of light source loss and excessive power consumption of the mobile terminal are avoided.
2. The photographing method according to claim 1, wherein the image parameter value includes:
one or more of an image grayscale parameter value, an image lightness parameter value, and an image saturation parameter value.
3. The shooting method according to claim 1, wherein before controlling the camera to shoot the illuminated target object to obtain the target image after controlling the light source to emit light at a preset first brightness to illuminate the target object and waiting for the camera to be focused, the method further comprises:
detecting the ambient light intensity of the environment where the current mobile terminal is located;
and if the ambient light intensity is smaller than a first ambient light intensity or the ambient light intensity is larger than a second ambient light intensity, controlling the light source to emit light according to a first brightness and shooting a target object to obtain a target image, wherein the second ambient light intensity is larger than the first ambient light intensity.
4. The photographing method according to claim 3, wherein the method further comprises:
and if the ambient light intensity is greater than the first ambient light intensity and less than the second ambient light intensity, forbidding to start the light source and shooting the target object.
5. A shooting device is applied to a mobile terminal, the mobile terminal comprises a light source exposed outside the mobile terminal, and the shooting device is characterized by comprising:
the receiving module is used for receiving a shooting instruction;
the shooting module is used for controlling the light source to emit light according to a preset first brightness according to the shooting instruction so as to illuminate the target object, and controlling the camera to shoot the illuminated target object after the camera focuses on the target object so as to obtain a target image;
the processing module is used for determining a first area of the target image, wherein the image parameter value of the first area is larger than a first preset image parameter value;
determining a second area of the target image, wherein the image parameter value is smaller than a first preset image parameter value;
and adjusting the image parameter value of the first area to a second preset image parameter value, and adjusting the image parameter value of the second area to a third preset image parameter value to obtain a processed image, wherein the processed image is an image obtained by simulating the light source to emit light according to a second brightness and shooting a target object, the second brightness is greater than the first brightness, and the light source emits light at a higher brightness when shooting is simulated by performing post-processing on the target image, so that the problems of light source loss and excessive power consumption of the mobile terminal are avoided.
6. A storage medium on which a computer program is stored, the computer program realizing the photographing method according to any one of claims 1 to 4 when executed by a processor.
7. A mobile terminal, characterized in that the mobile terminal comprises a memory, a processor, characterized in that the processor is adapted to execute the photographing method according to any of claims 1 to 4 by calling a computer program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010188258.4A CN111314618B (en) | 2020-03-17 | 2020-03-17 | Shooting method, shooting device, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010188258.4A CN111314618B (en) | 2020-03-17 | 2020-03-17 | Shooting method, shooting device, storage medium and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111314618A CN111314618A (en) | 2020-06-19 |
CN111314618B true CN111314618B (en) | 2021-09-28 |
Family
ID=71147945
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010188258.4A Active CN111314618B (en) | 2020-03-17 | 2020-03-17 | Shooting method, shooting device, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111314618B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117119625B (en) * | 2023-10-16 | 2024-01-19 | 深圳市正远科技有限公司 | LED control method and LED control system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101082755A (en) * | 2006-06-01 | 2007-12-05 | 普立尔科技股份有限公司 | Flashlamps exciting method |
CN103685964A (en) * | 2012-09-11 | 2014-03-26 | 联想(北京)有限公司 | Control method and device and electronic equipment |
CN109242794A (en) * | 2018-08-29 | 2019-01-18 | Oppo广东移动通信有限公司 | Image processing method, device, electronic equipment and computer readable storage medium |
CN110149471A (en) * | 2019-06-28 | 2019-08-20 | Oppo广东移动通信有限公司 | Control method, imaging device, electronic equipment, computer equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI320132B (en) * | 2006-05-30 | 2010-02-01 | Method for triggering strobe of image-capturing device | |
CN101516002A (en) * | 2008-02-18 | 2009-08-26 | 佛山普立华科技有限公司 | Camera and method for adjusting flash |
US8730384B2 (en) * | 2010-06-03 | 2014-05-20 | Apple Inc. | Systems, methods, and devices for flash exposure control using preflash statistics |
CN106412457B (en) * | 2016-10-31 | 2019-03-05 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN107770454A (en) * | 2017-09-05 | 2018-03-06 | 努比亚技术有限公司 | A kind of image processing method, terminal and computer-readable recording medium |
-
2020
- 2020-03-17 CN CN202010188258.4A patent/CN111314618B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101082755A (en) * | 2006-06-01 | 2007-12-05 | 普立尔科技股份有限公司 | Flashlamps exciting method |
CN103685964A (en) * | 2012-09-11 | 2014-03-26 | 联想(北京)有限公司 | Control method and device and electronic equipment |
CN109242794A (en) * | 2018-08-29 | 2019-01-18 | Oppo广东移动通信有限公司 | Image processing method, device, electronic equipment and computer readable storage medium |
CN110149471A (en) * | 2019-06-28 | 2019-08-20 | Oppo广东移动通信有限公司 | Control method, imaging device, electronic equipment, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111314618A (en) | 2020-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110381197B (en) | Method, device and system for processing audio data in many-to-one screen projection | |
CN108307125B (en) | Image acquisition method, device and storage medium | |
CN103488939B (en) | Method, device and terminal for prompting user | |
CN107124555B (en) | Method and device for controlling focusing, computer equipment and computer readable storage medium | |
CN109391762A (en) | A kind of method and apparatus of track up | |
WO2019091486A1 (en) | Photographing processing method and device, terminal, and storage medium | |
CN106371086B (en) | A kind of method and apparatus of ranging | |
CN108040209B (en) | Shooting method and mobile terminal | |
CN108574778A (en) | Throw screen brightness adjusting method and Related product | |
CN110290331B (en) | Screen control method and terminal | |
CN110969056A (en) | Document layout analysis method and device for document image and storage medium | |
CN110930964B (en) | Display screen brightness adjusting method and device, storage medium and terminal | |
CN105635553B (en) | Image shooting method and device | |
CN109561255B (en) | Terminal photographing method and device and storage medium | |
CN111857793B (en) | Training method, device, equipment and storage medium of network model | |
CN111459466A (en) | Code generation method, device, equipment and storage medium | |
CN111314618B (en) | Shooting method, shooting device, storage medium and mobile terminal | |
CN111556248B (en) | Shooting method, shooting device, storage medium and mobile terminal | |
CN108259773A (en) | A kind of image pickup method and device | |
CN105657280B (en) | A kind of quick focusing method, device and mobile terminal | |
CN109640075B (en) | Camera detection device and method and mobile terminal | |
CN113038019B (en) | Camera adjusting method and device, electronic equipment and readable storage medium | |
CN112312032B (en) | Method and device for shooting by using off-screen camera, storage medium and mobile terminal | |
CN108550182A (en) | A kind of three-dimensional modeling method and terminal | |
CN111064886B (en) | Shooting method of terminal equipment, terminal 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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240102 Address after: 518000, 109-111, Building 17, Maker Town, No. 4109 Liuxian Avenue, Pingshan Community, Taoyuan Street, Nanshan District, Shenzhen, Guangdong Province Patentee after: Yuanyuan (Shenzhen) Technology Transfer Co.,Ltd. Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd. |
|
TR01 | Transfer of patent right |