CN112468725B - Photo shooting method and device, storage medium and mobile terminal - Google Patents

Photo shooting method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112468725B
CN112468725B CN202011350843.6A CN202011350843A CN112468725B CN 112468725 B CN112468725 B CN 112468725B CN 202011350843 A CN202011350843 A CN 202011350843A CN 112468725 B CN112468725 B CN 112468725B
Authority
CN
China
Prior art keywords
value
target
mobile terminal
image
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011350843.6A
Other languages
Chinese (zh)
Other versions
CN112468725A (en
Inventor
黄树伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202011350843.6A priority Critical patent/CN112468725B/en
Publication of CN112468725A publication Critical patent/CN112468725A/en
Application granted granted Critical
Publication of CN112468725B publication Critical patent/CN112468725B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Landscapes

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

Abstract

The invention provides a photo shooting method, which comprises the following steps: performing image scanning on an object to be shot and an auxiliary shooting object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shooting object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shooting object and the mobile terminal; acquiring an effect gain control value according to a first environment shooting effect value of at least one first scanning image and a second environment shooting effect value of at least one second scanning image; selecting a target scanning image from at least one first scanning image according to the effect gain control value, and setting a target environment shooting effect value of the target scanning image; and displaying the target scanning image after the target environment shooting effect value is set on a current preview interface of the mobile terminal, so that the mobile terminal can process the object to be shot and the environment between the object to be shot and the object to be shot, and the image shooting effect is improved.

Description

Photo shooting method and device, storage medium and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for taking a picture, a storage medium, and a mobile terminal.
Background
With the progress and development of science and technology, the requirements of mobile terminal users on photo imaging effects are higher and higher when taking photos, and more users are pursuing to take clearer photos with more real environmental effects.
However, in the prior art, in the process of taking a picture by using a mobile terminal, the mobile terminal often only processes a shot image according to the environment where an object to be shot is located, but ignores the processing of the environment between the object to be shot and the mobile terminal, thereby causing poor shot image effect.
Disclosure of Invention
The invention provides a photo shooting method, a photo shooting device, a storage medium and a mobile terminal, which effectively solve the problem that in the process of shooting photos, the mobile terminal only processes shot images according to the environment where an object to be shot is located, and ignores the processing of the environment between the object to be shot and the mobile terminal, so that the effect of the shot images is poor.
In order to solve the above problem, the present invention provides a photo taking method applied to a mobile terminal, the photo taking method comprising:
scanning, namely scanning images of an object to be shot and an auxiliary shot object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shot object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shot object and the mobile terminal;
an obtaining step, obtaining an effect gain control value according to a first environment shooting effect value of the at least one first scanning image and a second environment shooting effect value of the at least one second scanning image;
a selecting and setting step of selecting a target scanning image from the at least one first scanning image according to the effect gain control value and setting a target environment shooting effect value of the target scanning image;
and a display step of displaying the target scanning image after the target environment shooting effect value is set on a current preview interface of the mobile terminal.
Further preferably, the acquiring step specifically includes:
a first calculation substep, performing weighted calculation on the first environment shooting effect value according to a first preset formula to obtain a first average environment shooting effect value, and performing weighted calculation on the second environment shooting effect value according to the first preset formula to obtain a second average environment shooting effect value;
and a second calculation sub-step of dividing the first average environment shooting effect value by the second average environment shooting effect value to obtain an effect gain control value.
Further preferably, the selecting and setting step specifically includes:
a first selection substep of selecting the first scanned image corresponding to the first environmental shooting effect value with the smallest value as a target scanned image when the effect gain control value is greater than 1;
and a second selection substep of selecting the first scanned image corresponding to the first environmental photographing effect value having the largest value as a target scanned image when the effect gain control value is less than 1.
Further preferably, the selecting and setting step further includes:
a reduction setting substep of setting a target environment photographic effect value of the target scan image to be a product of the first environment photographic effect value having a minimum value and the effect gain control value;
and an enhancement setting substep of setting a target environment photographic effect value of the target scanned image to be a product of the first environment photographic effect value with the largest value and the effect gain control value.
Further preferably, after the displaying step, the method further includes:
a detection step of detecting that the position of the object to be shot changes;
and returning to the execution step, and returning to the scanning step.
On the other hand, the invention also provides a photo shooting device, which is applied to the mobile terminal and comprises:
the scanning module is used for scanning images of an object to be shot and an auxiliary shooting object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shooting object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shooting object and the mobile terminal;
an obtaining module, configured to obtain an effect gain control value according to a first environment shooting effect value of the at least one first scanned image and a second environment shooting effect value of the at least one second scanned image;
the selecting and setting module is used for selecting a target scanning image from the at least one first scanning image according to the effect gain control value and setting a target environment shooting effect value of the target scanning image;
and the display module is used for displaying the target scanning image after the target environment shooting effect value is set on a current preview interface of the mobile terminal.
Further preferably, the obtaining module specifically includes:
the first calculating subunit is configured to perform weighted calculation on the first environment shooting effect value according to a first preset formula to obtain a first average environment shooting effect value, and perform weighted calculation on the second environment shooting effect value according to the first preset formula to obtain a second average environment shooting effect value;
and the second calculating subunit is used for dividing the first average environment shooting effect value by the second average environment shooting effect value to obtain an effect gain control value.
Further preferably, the selecting and setting module specifically includes:
a first selecting subunit, configured to select, when the effect gain control value is greater than 1, the first scanned image corresponding to the first environmental shooting effect value with the smallest value as a target scanned image;
and a second selecting subunit, configured to select, as the target scanned image, the first scanned image corresponding to the first environmental shooting effect value with the largest value when the effect gain control value is smaller than 1.
Further preferably, the selecting and setting module further includes a weakening setting unit and an enhancing setting unit, wherein:
the attenuation setting unit is used for setting a target environment shooting effect value of the target scanning image to be a product of the first environment shooting effect value with the minimum value and the effect gain control value;
the enhancement setting unit is used for setting the target environment shooting effect value of the target scanning image to be the product of the first environment shooting effect value with the maximum value and the effect gain control value.
Further preferably, the photo taking apparatus further comprises a detection module, configured to:
after the target scanning image after the target environment shooting effect value is set is displayed on a current preview interface of the mobile terminal, detecting that the position of the object to be shot changes;
and returning to execute the scanning step.
In another aspect, the present invention also provides a computer-readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform any of the above-described photo taking methods.
On the other hand, the invention also provides a mobile terminal, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the photo shooting method.
The beneficial effects of the invention are as follows: the invention provides a photo shooting method, which is applied to a mobile terminal and comprises the following steps: performing image scanning on an object to be shot and an auxiliary shooting object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shooting object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shooting object and the mobile terminal; acquiring an effect gain control value according to a first environment shooting effect value of at least one first scanning image and a second environment shooting effect value of at least one second scanning image; and then, the target scanning image after the target environment shooting effect value is set is displayed on a current preview interface of the mobile terminal, so that the mobile terminal can process the image according to the environment of the object to be shot and the environment between the object to be shot and the mobile terminal in the process of shooting the picture by the mobile terminal, and the effect of the shot image is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments according to the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive effort.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is a detailed structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a photo taking method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a photo shooting apparatus according to an embodiment of the present invention.
Fig. 5 is a detailed schematic view of a photo shooting device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The embodiment of the invention is used for solving the problem that in the process of taking a picture by the mobile terminal in the prior art, the mobile terminal only processes the shot image according to the environment where the object to be shot is located, and neglects the processing of the environment between the object to be shot and the mobile terminal, so that the effect of the shot image is poor.
The embodiment of the invention provides a mobile terminal which can be a smart phone or a tablet computer and the like. As shown in fig. 1, the mobile terminal 100 includes a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102.
The processor 101 is a control center of the mobile terminal 100, 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 running or loading an application program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 101 in the mobile terminal 100 loads instructions corresponding to processes of one or more application programs into the memory 102 according to the following steps, and the processor 101 runs the application programs stored in the memory 102, so as to implement various functions, and the mobile terminal includes a first counting module, a time saving module, and a dead halt recording module, such as a photo shooting method:
performing image scanning on an object to be shot and an auxiliary shooting object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shooting object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shooting object and the mobile terminal;
acquiring an effect gain control value according to a first environment shooting effect value of at least one first scanning image and a second environment shooting effect value of at least one second scanning image;
selecting a target scanning image from at least one first scanning image according to the effect gain control value, and setting a target environment shooting effect value of the target scanning image;
and displaying the target scanning image after the target environment shooting effect value is set on a current preview interface of the mobile terminal.
The mobile terminal 100 may implement any of the steps in the photo taking method.
Fig. 2 is a block diagram illustrating a specific structure of the mobile terminal 100 according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 100 may include Radio Frequency (RF) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170 (e.g., Wireless Fidelity (WiFi), a Wireless Fidelity (wi-fi)), a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuitry 110 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11b, IEEE802.11g, and/or IEEE802.11 n standards), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access), wimax, other suitable short message protocols, and may even include those protocols that have not yet been developed.
The memory 120 may be configured to store software programs and modules, such as corresponding program instructions in the above-mentioned photo shooting method, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120, that is, functions of acquiring a frequency of an information transmission signal to be transmitted by the mobile terminal 100, generating an interference signal, and the like. 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 other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the mobile terminal 100 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
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 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 180, and can receive and execute commands sent by the processor 180. Additionally, the touch sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the mobile terminal 100, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch sensitive surface 131 may overlay display panel 141, and when touch operation is detected on or near touch sensitive surface 131, the touch operation is transmitted to processor 180 to determine the type of touch event, and then processor 180 provides a corresponding visual output on display panel 141 according to the type of touch event. Although in the figures touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. 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 generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 100, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is processed by the audio data output processor 180, and then sent to another terminal via the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 100.
The mobile terminal 100, which can assist the user in receiving requests, transmitting information, etc., through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 170 is shown in the drawing, it is understood that it does not belong to the essential constitution of the mobile terminal 100 and may be omitted entirely as needed within a scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 100 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 terminal. 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.
The mobile terminal 100 may also include 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 that may be used to manage charging, discharging, and power consumption management functions in some embodiments. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 100 further includes a camera (e.g., a front camera, a rear camera, etc.), a bluetooth module, a flashlight, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal 100 is a touch screen display, and the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
performing image scanning on an object to be shot and an auxiliary shooting object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shooting object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shooting object and the mobile terminal;
obtaining an effect gain control value according to a first environment shooting effect value of at least one first scanning image and a second environment shooting effect value of at least one second scanning image;
selecting a target scanning image from at least one first scanning image according to the effect gain control value, and setting a target environment shooting effect value of the target scanning image;
and displaying the target scanning image after the target environment shooting effect value is set on a current preview interface of the mobile terminal.
It will be understood by those skilled in the art that all or part of the steps of the above method may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps of any embodiment of the photo taking method provided by the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
In order to better use the mobile terminal 100 provided in the above embodiment, so that the mobile terminal 100 processes an image according to an environment where an object to be photographed is located and an environment between the object to be photographed and the mobile terminal in a process of photographing a picture, thereby improving an effect of the photographed image, the present invention provides a picture photographing method, which is applied to the mobile terminal 100, and a flowchart of the picture photographing method is shown in fig. 3, and the specific steps may be as follows:
and a scanning step S1O1, scanning the object to be shot and the auxiliary shot object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shot object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shot object and the mobile terminal.
It is easy to understand that, during the image scanning process of the mobile terminal, an auxiliary shooting object between the object to be shot and the mobile terminal is determined, and a second scanned image of the auxiliary shooting object is obtained through scanning, so that when the first scanned image of the object to be shot is processed subsequently, the image data of the second scanned image is used for comparison.
And an obtaining step S1O2, obtaining an effect gain control value according to a first environment shooting effect value of at least one first scanning image and a second environment shooting effect value of at least one second scanning image.
It is understood that, in the embodiment, the second scanned image is used as a reference image, and the effect gain control value indicates a deviation value between the first environmental capture effect value of the first scanned image and the second environmental capture effect value of the second scanned image used as the reference image, and the effect gain control value determines a manner of subsequent adjustment of the first scanned image by the mobile terminal.
It should be noted that, when the mobile terminal scans a plurality of first scanned images and a plurality of second scanned images, the average value is obtained by performing weighted calculation on a plurality of first environment photographic effect values of the plurality of first scanned images, the average value is obtained by performing weighted calculation on a plurality of second environment photographic effect values of the plurality of second scanned images, and then the subsequent calculation step is performed.
For example, the obtaining step S1O2 may specifically include:
a first calculation substep, performing weighted calculation on the first environment shooting effect value according to a first preset formula to obtain a first average environment shooting effect value, and performing weighted calculation on the second environment shooting effect value according to the first preset formula to obtain a second average environment shooting effect value;
and a second calculation substep of dividing the first average environmental photographic effect value by the second average environmental photographic effect value to obtain an effect gain control value.
It is easily understood that the effect gain control value is greater than 1 and less than 1, which correspond to the first environmental capture effect value of the first scanned image being higher and lower than that of the second scanned image.
And a selecting and setting step S1O3, selecting a target scanning image from at least one first scanning image according to the effect gain control value, and setting a target environment shooting effect value of the target scanning image.
It should be noted that, in order to reduce power consumption generated when the terminal performs subsequent image adjustment, when there are multiple first scanned images, the terminal selects one first scanned image with the first environmental capture effect value closest to the second environmental capture effect value of the second scanned image as a target scanned image according to the calculated effect gain control value, and then performs image adjustment.
For example, the selecting and setting step S1O3 may specifically include:
a first selection substep of selecting a first scanned image corresponding to a first environment shooting effect value with the minimum value as a target scanned image when the effect gain control value is greater than 1;
and a second selection substep of selecting the first scanned image corresponding to the first environmental shooting effect value with the largest value as the target scanned image when the effect gain control value is smaller than 1.
It is easily understood that, when the effect gain control value is greater than 1, it means that the first environmental capture effect value of the first scanned image is higher than that of the second scanned image, and therefore, of the plurality of first scanned images, the first scanned image closest to the second environmental capture effect value of the second scanned image is the image with the lowest value of the first environmental capture effect value; when the effect gain control value is smaller than 1, it means that the first environmental imaging effect value of the first scanned image is lower than that of the second scanned image, and therefore, the first scanned image closest to the second environmental imaging effect value of the second scanned image among the plurality of first scanned images is the image with the highest value of the first environmental imaging effect value.
It should be noted that, after the target scan image is selected and the magnitude relationship between the effect gain control value and 1 is determined, the target environment shooting effect value of the target scan image may be set.
For example, the selecting and setting step S1O3 may further include:
a reduction setting substep of setting a target environment photographic effect value of the target scanned image to be a product of a first environment photographic effect value with a minimum value and an effect gain control value;
and an enhancement setting substep, setting the target environment shooting effect value of the target scanning image to be the product of the first environment shooting effect value with the maximum value and the effect gain control value.
It will be readily appreciated that the reduction setting sub-step is a step subsequent to the first selection sub-step and the enhancement setting sub-step is a step subsequent to the second selection sub-step.
And a display step S1O4, displaying the target scanning image after the target environment shooting effect value is set on the current preview interface of the mobile terminal.
It is easy to understand that, when displaying an image, the mobile terminal may select to only occupy a portion of the terminal display screen to display the target scanned image after the target environment shooting effect value is set, for example, 50% of the terminal display screen is occupied for image display, and the remaining 50% of the terminal display screen is used for providing an image editing key for a user of the mobile terminal to modify and beautify the image.
It should be noted that, when the position of the object to be photographed changes, the mobile terminal needs to scan again to determine the object to be photographed, and then photograph the object.
For example, after the step S1O4 is displayed, the method further includes:
a detection step of detecting that the position of an object to be shot changes;
returning to the execution step, returning to the execution scanning step S1O1.
Different from the prior art, the invention provides a photo shooting method which is applied to a mobile terminal and comprises the following steps: performing image scanning on an object to be shot and an auxiliary shooting object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shooting object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shooting object and the mobile terminal; obtaining an effect gain control value according to a first environment shooting effect value of at least one first scanning image and a second environment shooting effect value of at least one second scanning image; and then, the target scanning image after the target environment shooting effect value is set is displayed on a current preview interface of the mobile terminal, so that the mobile terminal can process the image according to the environment of the object to be shot and the environment between the object to be shot and the mobile terminal in the process of shooting the picture by the mobile terminal, and the effect of the shot image is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a photo taking apparatus according to an embodiment of the present invention, applied to a mobile terminal 100, and the photo taking apparatus may include:
(1) scanning module 10
The scanning module 10 is configured to perform a scanning step S101, that is, perform image scanning on the object to be photographed and the auxiliary photographing object to obtain at least one first scanned image of the object to be photographed and at least one second scanned image of the auxiliary photographing object, where a distance between the object to be photographed and the mobile terminal is greater than a distance between the auxiliary photographing object and the mobile terminal.
It is easy to understand that, during the image scanning process of the mobile terminal, an auxiliary shooting object between the object to be shot and the mobile terminal is determined, and a second scanned image of the auxiliary shooting object is obtained through scanning, so that when the first scanned image of the object to be shot is processed subsequently, the image data of the second scanned image is used for comparison.
(2) Acquisition module 20
The obtaining module 20 is configured to perform an obtaining step S102, that is, obtain an effect gain control value according to a first environmental photographic effect value of at least one first scanned image and a second environmental photographic effect value of at least one second scanned image.
It is understood that, in the embodiment, the second scanned image is used as a reference image, and the effect gain control value indicates a deviation value between the first environmental capture effect value of the first scanned image and the second environmental capture effect value of the second scanned image used as the reference image, and the effect gain control value determines a manner of subsequent adjustment of the first scanned image by the mobile terminal.
It should be noted that, when the mobile terminal scans a plurality of first scanned images and a plurality of second scanned images, the average value is obtained by performing weighted calculation on a plurality of first environmental photographic effect values of the plurality of first scanned images, the average value is obtained by performing weighted calculation on a plurality of second environmental photographic effect values of the plurality of second scanned images, and then the subsequent calculation step is performed.
Further, referring to fig. 5, fig. 5 is a detailed structural schematic diagram of a photo shooting device according to an embodiment of the present invention, where the obtaining module 20 may specifically include:
the first calculating subunit 21 is configured to perform weighted calculation on the first environment shooting effect value according to a first preset formula to obtain a first average environment shooting effect value, and perform weighted calculation on the second environment shooting effect value according to the first preset formula to obtain a second average environment shooting effect value;
the second calculating subunit 22 is configured to divide the first average environmental capture effect value by the second average environmental capture effect value to obtain an effect gain control value.
It is easily understood that the effect gain control value is greater than 1 and less than 1, which respectively correspond to the first environmental capture effect value of the first scanned image being higher and lower than that of the second scanned image.
(3) Selection and setting module 30
A selecting and setting module 30, configured to perform a selecting and setting step S103, namely, selecting a target scanned image from the at least one first scanned image according to the effect gain control value, and setting a target environment shooting effect value of the target scanned image.
It should be noted that, in order to reduce power consumption generated when the terminal performs subsequent image adjustment, when there are multiple first scanned images, the terminal selects one first scanned image with the first environmental capture effect value closest to the second environmental capture effect value of the second scanned image as a target scanned image according to the calculated effect gain control value, and then performs image adjustment.
Further, referring to fig. 5, the selecting and setting module 30 may specifically include:
a first selecting subunit 31, configured to select, when the effect gain control value is greater than 1, a first scanned image corresponding to a first environmental shooting effect value with a smallest value as a target scanned image;
the second selecting sub-unit 32 is configured to select the first scanned image corresponding to the first environmental shooting effect value with the largest value as the target scanned image when the effect gain control value is smaller than 1.
It is easily understood that, when the effect gain control value is greater than 1, it means that the first environmental capture effect value of the first scanned image is higher than that of the second scanned image, and therefore, of the plurality of first scanned images, the first scanned image closest to the second environmental capture effect value of the second scanned image is the image with the lowest value of the first environmental capture effect value; when the effect gain control value is smaller than 1, it means that the first environmental imaging effect value of the first scanned image is lower than that of the second scanned image, and therefore, the first scanned image closest to the second environmental imaging effect value of the second scanned image among the plurality of first scanned images is the image with the highest value of the first environmental imaging effect value.
It should be noted that, after the target scan image is selected and the magnitude relationship between the effect gain control value and 1 is determined, the target environment shooting effect value of the target scan image may be set.
For example, the selection and setting module 30 may further include a fade setting unit and an boost setting unit, wherein:
the attenuation setting unit is used for setting a target environment shooting effect value of the target scanning image to be the product of a first environment shooting effect value with the minimum value and an effect gain control value;
the enhancement setting unit is used for setting the target environment shooting effect value of the target scanning image to be the product of the first environment shooting effect value with the maximum value and the effect gain control value.
It will be readily appreciated that the reduction setting unit is connected to the first selection subunit 31 and the enhancement setting unit is connected to the second selection subunit 32.
(4) Display module 40
And the display module 40 is configured to perform the display step S104, that is, display the target scanning image after the target environment shooting effect value is set on the current preview interface of the mobile terminal.
It is easy to understand that, when displaying an image, the mobile terminal may select to display the target scanned image after the target environment shooting effect value is set by only occupying a part of the terminal display screen, for example, the terminal display screen occupying 50% displays the image, and the remaining 50% of the terminal display screen is used to provide an image editing key for a user of the mobile terminal to modify and beautify the image.
It should be noted that, when the position of the object to be photographed changes, the mobile terminal needs to scan again to determine the object to be photographed, and then photograph the object.
For example, the photo capture device further comprises a detection module for:
after a target scanning image with a set target environment shooting effect value is displayed on a current preview interface of the mobile terminal, detecting that the position of an object to be shot changes;
the scanning step S101 is executed back.
Different from the prior art, the invention provides a photo shooting device, which is applied to a mobile terminal and comprises: the scanning module 10 is used for scanning images of the object to be shot and the auxiliary shooting object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shooting object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shooting object and the mobile terminal; an obtaining module 20 for obtaining an effect gain control value according to a first environment shooting effect value of at least one first scanned image and a second environment shooting effect value of at least one second scanned image; the method comprises the steps of selecting a target scanning image from at least one first scanning image according to an effect gain control value, carrying out a set selection and setting module 30 on a target environment shooting effect value of the target scanning image, and then displaying a display module 40 of the target scanning image after the target environment shooting effect value is set on a current preview interface of the mobile terminal, so that the mobile terminal can process the image according to the environment of an object to be shot and the environment between the object to be shot and the mobile terminal in the process of shooting the picture by the mobile terminal, and the effect of the shot image is improved.
In addition to the above embodiments, the present invention may have other embodiments. All technical solutions formed by using equivalents or equivalent substitutions fall within the protection scope of the claims of the present invention.
In summary, although the preferred embodiments of the present invention have been described above, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (8)

1. A photo shooting method is applied to a mobile terminal and is characterized by comprising the following steps:
scanning, namely scanning an object to be shot and an auxiliary shot object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shot object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shot object and the mobile terminal;
an obtaining step, obtaining an effect gain control value according to a first environment shooting effect value of the at least one first scanning image and a second environment shooting effect value of the at least one second scanning image;
a selection and setting step comprising:
a first selection substep, when the effect gain control value is greater than 1, selecting the first scanning image corresponding to the first environment shooting effect value with the minimum value as a target scanning image, and setting the target environment shooting effect value of the target scanning image;
a second selection substep, when the effect gain control value is smaller than 1, selecting the first scanning image corresponding to the first environment shooting effect value with the largest numerical value as a target scanning image, and setting the target environment shooting effect value of the target scanning image;
and a display step of displaying the target scanning image after the target environment shooting effect value is set on a current preview interface of the mobile terminal.
2. The picture taking method according to claim 1, wherein the acquiring step specifically comprises:
a first calculation substep, performing weighted calculation on the first environment shooting effect value according to a first preset formula to obtain a first average environment shooting effect value, and performing weighted calculation on the second environment shooting effect value according to the first preset formula to obtain a second average environment shooting effect value;
and a second calculation substep of dividing the first average environmental photographic effect value by the second average environmental photographic effect value to obtain an effect gain control value.
3. A photograph taking method according to claim 1, wherein said selecting and setting step further comprises:
a reduction setting substep of setting a target environment photographic effect value of the target scan image to be a product of the first environment photographic effect value having a minimum value and the effect gain control value when the effect gain control value is greater than 1;
and an enhancement setting substep, setting the target environment shooting effect value of the target scanned image to be the product of the first environment shooting effect value with the maximum value and the effect gain control value when the effect gain control value is less than 1.
4. The picture taking method according to claim 1, further comprising, after the displaying step:
a detection step of detecting that the position of the object to be shot changes;
and returning to the execution step, and returning to execute the scanning step.
5. A photo shooting device applied to a mobile terminal is characterized by comprising:
the scanning module is used for scanning images of an object to be shot and an auxiliary shooting object to obtain at least one first scanning image of the object to be shot and at least one second scanning image of the auxiliary shooting object, wherein the distance between the object to be shot and the mobile terminal is greater than the distance between the auxiliary shooting object and the mobile terminal;
an obtaining module, configured to obtain an effect gain control value according to a first environment shooting effect value of the at least one first scanned image and a second environment shooting effect value of the at least one second scanned image;
a selection and setup module comprising:
a first selecting subunit, configured to select, when the effect gain control value is greater than 1, the first scanned image corresponding to the first environmental shooting effect value with the smallest value as a target scanned image, and set a target environmental shooting effect value of the target scanned image;
a second selecting subunit, configured to select, when the effect gain control value is smaller than 1, the first scanned image corresponding to the first environmental shooting effect value with the largest numerical value as a target scanned image, and set a target environmental shooting effect value of the target scanned image;
and the display module is used for displaying the target scanning image after the target environment shooting effect value is set on a current preview interface of the mobile terminal.
6. The picture taking device according to claim 5, wherein the acquiring module specifically comprises:
the first calculating subunit is configured to perform weighted calculation on the first environment shooting effect value according to a first preset formula to obtain a first average environment shooting effect value, and perform weighted calculation on the second environment shooting effect value according to the first preset formula to obtain a second average environment shooting effect value;
and the second calculating subunit is used for dividing the first average environment shooting effect value by the second average environment shooting effect value to obtain an effect gain control value.
7. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the photo taking method of any of claims 1 to 4.
8. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the photo taking method of any one of claims 1 to 4.
CN202011350843.6A 2020-11-26 2020-11-26 Photo shooting method and device, storage medium and mobile terminal Active CN112468725B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011350843.6A CN112468725B (en) 2020-11-26 2020-11-26 Photo shooting method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011350843.6A CN112468725B (en) 2020-11-26 2020-11-26 Photo shooting method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112468725A CN112468725A (en) 2021-03-09
CN112468725B true CN112468725B (en) 2022-08-30

Family

ID=74808793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011350843.6A Active CN112468725B (en) 2020-11-26 2020-11-26 Photo shooting method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112468725B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458190A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Photographing method, photographing device and terminal device
KR20170016215A (en) * 2015-08-03 2017-02-13 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN107635101B (en) * 2017-10-27 2020-07-03 Oppo广东移动通信有限公司 Shooting method, shooting device, storage medium and electronic equipment
CN107948511B (en) * 2017-11-28 2019-10-25 Oppo广东移动通信有限公司 Brightness of image processing method, device, storage medium and brightness of image processing equipment
CN110113538B (en) * 2019-06-12 2021-07-16 北京百度网讯科技有限公司 Intelligent shooting equipment, intelligent control method and device
CN111355892B (en) * 2020-03-19 2021-11-16 Tcl移动通信科技(宁波)有限公司 Picture shooting method and device, storage medium and electronic terminal

Also Published As

Publication number Publication date
CN112468725A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN107241552B (en) Image acquisition method, device, storage medium and terminal
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
CN105989572B (en) Picture processing method and device
CN107749046B (en) Image processing method and mobile terminal
CN110913139A (en) Photographing method and electronic equipment
CN111182236A (en) Image synthesis method and device, storage medium and terminal equipment
CN117116203A (en) Screen brightness adjustment method and device, storage medium and electronic equipment
CN110944114B (en) Photographing method and electronic equipment
CN109561255B (en) Terminal photographing method and device and storage medium
CN109104573B (en) Method for determining focusing point and terminal equipment
CN111556248B (en) Shooting method, shooting device, storage medium and mobile terminal
CN106454083B (en) Image acquisition method and device of mobile terminal and mobile terminal
CN110855896A (en) Shooting method and device, storage medium and terminal equipment
CN111343335B (en) Image display processing method, system, storage medium and mobile terminal
CN112468725B (en) Photo shooting method and device, storage medium and mobile terminal
CN111355892B (en) Picture shooting method and device, storage medium and electronic terminal
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
EP4123574A1 (en) Image fusion method and apparatus, storage medium and mobile terminal
US11108950B2 (en) Method for generating blurred photograph, and storage device and mobile terminal
CN111787228A (en) Shooting method, shooting device, storage medium and mobile terminal
CN110958392A (en) Shooting method of terminal equipment, terminal equipment and storage medium
CN112181266A (en) Graphic code identification method, device, terminal and storage medium
CN111917982B (en) Camera selection method and device, storage medium and mobile terminal
CN110990606B (en) Picture storage method and device, storage medium and electronic equipment

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