CN109120863B - Shooting method, shooting device, storage medium and mobile terminal - Google Patents

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

Info

Publication number
CN109120863B
CN109120863B CN201811236946.2A CN201811236946A CN109120863B CN 109120863 B CN109120863 B CN 109120863B CN 201811236946 A CN201811236946 A CN 201811236946A CN 109120863 B CN109120863 B CN 109120863B
Authority
CN
China
Prior art keywords
light source
shooting
flicker
color
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811236946.2A
Other languages
Chinese (zh)
Other versions
CN109120863A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811236946.2A priority Critical patent/CN109120863B/en
Publication of CN109120863A publication Critical patent/CN109120863A/en
Application granted granted Critical
Publication of CN109120863B publication Critical patent/CN109120863B/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/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • 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/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Landscapes

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

Abstract

The embodiment of the application discloses a shooting method, a shooting device, a storage medium and a mobile terminal. The method comprises the following steps: when the situation that a flicker light source exists in a shooting preview picture is monitored, measuring and calculating the flicker frequency of the flicker light source in real time; calculating and generating a first target exposure time according to the flicker frequency; and shooting an image based on the first target exposure time to obtain a target shooting image. By adopting the technical scheme, the target exposure time can be reasonably determined according to the flicker frequency of the flicker light source, and the shooting main body containing the flicker light source is shot based on the target exposure time, so that the problems of brightness and color distortion of a shot picture caused by flicker of the flicker light source are effectively solved, the space texture in the shot picture caused by the flicker light source can be avoided, and the quality of the shot image can be effectively improved.

Description

Shooting method, shooting device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of photographing, in particular to a photographing method, a photographing device, a storage medium and a mobile terminal.
Background
At present, the photographing function becomes a standard configuration of most mobile terminals, and a user can easily and quickly realize photographing operation through a portable mobile terminal.
When a user uses a mobile terminal to take a picture, if a flickering light source exists in a shot picture, an indelible texture exists in the shot picture due to the flickering frequency of the light source, and the quality of the shot picture is poor. Therefore, it becomes important to improve the quality of the captured image.
Disclosure of Invention
The embodiment of the application provides a shooting method, a shooting device, a storage medium and a mobile terminal, which can effectively improve the quality of shot images.
In a first aspect, an embodiment of the present application provides a shooting method, including:
when the situation that a flicker light source exists in a shooting preview picture is monitored, measuring and calculating the flicker frequency of the flicker light source in real time;
calculating and generating a first target exposure time according to the flicker frequency;
and shooting an image based on the first target exposure time to obtain a target shooting image. In a second aspect, an embodiment of the present application provides a shooting apparatus, including:
the flicker frequency measuring and calculating module is used for measuring and calculating the flicker frequency of the flicker light source in real time when the flicker light source is monitored to exist in the shooting preview picture;
the exposure time generation module is used for calculating and generating a first target exposure time according to the flicker frequency;
and the image shooting module is used for shooting an image based on the first target exposure time to obtain a target shooting image.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the program, when executed by a processor, implements a shooting method according to the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the shooting method according to the embodiment of the present application.
According to the shooting scheme provided by the embodiment of the application, when the situation that the flicker light source exists in the shooting preview picture is monitored, the flicker frequency of the flicker light source is measured and calculated in real time, the first target exposure time is generated according to the flicker frequency, and then image shooting is carried out based on the first target exposure time to obtain the target shooting image. By adopting the technical scheme, the target exposure time can be reasonably determined according to the flicker frequency of the flicker light source, and the shooting main body containing the flicker light source is shot based on the target exposure time, so that the problems of brightness and color distortion of a shot picture caused by flicker of the flicker light source are effectively solved, the space texture in the shot picture caused by the flicker light source can be avoided, and the quality of the shot image can be effectively improved.
Drawings
Fig. 1 is a schematic flowchart of a shooting method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another shooting method provided in the embodiment of the present application;
fig. 3 is a block diagram of a shooting device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart illustrating a shooting method according to an embodiment of the present disclosure, where the method may be executed by a shooting device, where the device may be implemented by software and/or hardware, and may be generally integrated in a mobile terminal. As shown in fig. 1, the method includes:
step 101, when a flicker light source exists in a shooting preview picture, calculating flicker frequency of the flicker light source in real time.
For example, the mobile terminal in the embodiment of the present application may include a mobile device with a photographing function, such as a mobile phone, a tablet computer, and a camera.
In the embodiment of the application, when a user needs to take a picture, a shooting function of the mobile terminal is opened, for example, a camera application in the mobile terminal is opened, a shooting preview interface is entered, and an image in the shooting preview interface is acquired, that is, a shooting preview picture is obtained. It is understood that the photographing preview screen may include an image presented in the photographing preview interface of the contents (such as persons, scenery, etc.) that the user wants to photograph.
In the embodiment of the present application, the flicker light source may be understood as a light source that changes rapidly and repeatedly with time, and generally the flicker light source may be turned on and off continuously, so that the flicker light source may continuously bounce and be unstable. For example, the flashing light source may include a screen or a projection or the like, and may also include a neon light, a roadside tree decoration lamp or the like. Optionally, the flashing light source includes a brightness flashing light source, and a color flashing light source mixes the brightness and the color of the flashing light source. It can be understood that the brightness flicker light source includes a flicker light source which is switched between the light source lighting and the light source extinguishing regularly or irregularly; the color flashing light source comprises a plurality of flashing light sources which are switched on and off according to a certain rule or frequency among colors, for example, a certain flashing light source is switched from red to green, then from green to yellow, then from yellow to blue, and finally from blue to red, and the flashing light sources can be called as color flashing light sources by repeating the rule; the brightness and color mixed flash light source comprises a plurality of flash light sources which are switched on and off according to a certain rule or frequency among colors, and the flash light sources are switched off along with the light sources in the switching process, for example, when a certain flash light source is switched on and off according to a rule of red-off-green-blue-off-yellow-red, the flash light source can be called as the brightness and color mixed flash light source. It should be noted that, in the embodiments of the present application, specific categories of the flicker light sources are not limited.
The flicker frequency of the flicker light source is different, and the sensitivity of human eyes to the flicker of the light source is different. Generally, human eyes can detect the flicker of the flicker light source when the flicker frequency is below 50Hz, and the human eyes are most sensitive to the flicker light source with the flicker frequency of 8.8 Hz. Meanwhile, the maximum flicker frequency (critical flicker frequency) of the flicker light source which can be perceived by human eyes is not fixed but changes along with the light intensity emitted by the flicker light source, the critical flicker frequency is continuously increased along with the increase of the light intensity, and the critical frequency is correspondingly reduced after the light intensity is gradually reduced after reaching the maximum. Typically, the human eye is not aware of the flicker of fluorescent lamps with a flicker frequency of 100 Hz. However, regardless of the flicker frequency of the flicker light source, if the flicker light source exists in the captured image, the generation of the indelible texture information in the captured image is likely to occur. Therefore, when the flicker light source exists in the shooting picture, the flicker frequency of the flicker light source is measured and calculated in real time, and the exposure time of the shot subject containing the flicker light source is determined according to the flicker frequency.
The real-time measurement and calculation of the flicker frequency of the flicker light source may include: and acquiring the flicker times of the flicker light source in a preset time period, and taking the ratio of the flicker times to the time length corresponding to the preset time period as the flicker frequency. For example: if a flashing light source flashes 1000 times in 10 seconds, the flashing light source can be calculated to flash 100 (1000/10) times per second, and the flashing frequency of the flashing light source can be determined to be 100 Hz. If a flashing light source flashes 1500 times in 30 seconds, the flashing light source can be calculated to flash 50(1500 ÷ 30) times per second, and the flashing frequency of the flashing light source can be determined to be 50 Hz. The embodiment of the present application is not limited to the manner of measuring the flicker frequency of the flicker light source.
Optionally, when it is monitored that a flicker light source exists in the shooting preview picture, continuously shooting at least two image frames, including: acquiring a shooting preview picture, and acquiring the fuzziness of the shooting preview picture; when the fuzziness is larger than a preset threshold value, carrying out flicker light source detection on the shooting preview picture; and when the flash light source is detected to exist in the shooting preview picture, measuring and calculating the flash frequency of the flash light source in real time. The advantage of this setting is that whether the flicker light source exists in the shooting preview picture can be accurately and quickly judged. For example, when a flickering light source exists in the shooting preview picture, the mobile terminal can capture the shooting preview picture from the moment when the flickering light source is turned on to the moment when the flickering light source is turned off or from the moment when the flickering light source is turned off to the moment when the shooting preview picture is turned on, and at the moment, the shooting preview picture is not clear due to the on-off switching of the flickering light source. Therefore, the blur degree of the shooting preview picture is obtained, wherein the blur degree of the shooting preview picture can be evaluated based on the image histogram concentration degree, and the blur degree of the shooting preview picture can also be measured based on the step edge width. Optionally, when the blur degree is greater than a preset threshold, it may be determined that a flicker light source is detected in the shooting preview picture. Optionally, in order to further accurately determine whether a flicker light source exists in the captured preview image, when it is determined that the blur degree of the captured preview image is greater than the preset threshold, the flicker light source detection may be further performed on the captured preview image, so as to avoid a misjudgment operation on whether the flicker light source exists in the captured preview image when the captured preview image is not clear due to shake of the mobile terminal or movement of the captured object. Optionally, if brightness information of at least two continuous frames of images in the shooting preview picture changes, it is monitored that a flicker light source exists in the shooting preview picture. It can be understood that if a flicker light source exists in the shooting preview picture, the brightness information of the shooting preview picture is different due to on/off switching of the flicker light source, for example, when the flicker light source is turned on, the corresponding shooting preview picture is usually brighter, and when the flicker light source is turned off, the corresponding shooting preview picture is usually darker, therefore, when the brightness information of at least two frames of images in the shooting preview picture changes, or the difference value of the brightness of at least two frames of images in the shooting preview picture is greater than the threshold brightness threshold, it can be determined that the flicker light source exists in the shooting preview picture.
And 102, calculating and generating a first target exposure time according to the flicker frequency.
Optionally, the greater the flicker frequency of the flicker light source, the shorter the exposure time. Illustratively, generating the first target exposure time from the flicker frequency calculation comprises: the first target exposure time is inversely proportional to the flicker frequency, e.g.,
Figure BDA0001838412110000051
wherein e is1Representing a first target exposure time, f representing a flicker frequency, k representing a scaling factor; alternatively, the first target exposure time is subtracted from a constant value and inversely proportional to the flicker frequency, e.g.,
Figure BDA0001838412110000052
wherein e is1Representing a first target exposure time, f representing a flicker frequency, k tableScale factor is shown, and b represents some constant value. It should be noted that, in the embodiment of the present application, a specific calculation manner for generating the first target exposure time according to the flicker frequency calculation is not limited.
And 103, shooting an image based on the first target exposure time to obtain a target shooting image.
In the embodiment of the present application, the photographic subject including the flicker light source is subjected to image shooting based on the first target exposure time to obtain a target photographic image, that is, a target photographic object is obtained within the first target exposure time. It can be understood that, in the embodiment of the present application, when acquiring a captured image of a target, a start time of a first target exposure time is taken as an exposure start time, and an end time of the first target exposure time is taken as an exposure stop time, where a time interval duration between the exposure start time and the exposure stop time is a duration corresponding to the first target exposure time.
According to the shooting method provided by the embodiment of the application, when the situation that the flicker light source exists in the shooting preview picture is monitored, the flicker frequency of the flicker light source is measured and calculated in real time, the first target exposure time is generated according to the flicker frequency, and then image shooting is carried out based on the first target exposure time to obtain the target shooting image. By adopting the technical scheme, the target exposure time can be reasonably determined according to the flicker frequency of the flicker light source, and the shooting main body containing the flicker light source is shot based on the target exposure time, so that the problems of brightness and color distortion of a shot picture caused by flicker of the flicker light source can be effectively solved, the space texture in the shot picture caused by the flicker light source can be avoided, and the quality of the shot image can be effectively improved.
Fig. 2 is a schematic flowchart of a shooting method provided in an embodiment of the present application, where the method includes the following steps:
step 201, when it is monitored that a color flashing light source exists in a shooting preview picture, if the color of the color flashing light source is repeated, measuring and calculating the color repetition frequency of the color flashing light source in real time to serve as the flashing frequency of the color flashing light source.
In the embodiment of the application, when it is monitored that a flicker light source exists in a shooting preview picture, whether the flicker light source is a color flicker light source is further judged, wherein the color flicker light source comprises a plurality of flicker light sources which are switched to be turned on according to a certain rule or frequency among colors, for example, a certain flicker light source is switched from red to green, then from green to yellow, then from yellow to blue, and finally from blue to red, and the process is repeated continuously according to the rule, so that the flicker light source can be called as the color flicker light source. Alternatively, a blinking light source in which a plurality of colors are irregularly switched may also be referred to as a color blinking light source. If the color flicker light source exists in the shot preview picture and the color of the color flicker light source is repeated, the color flicker light source can be considered as the color flicker light source which is continuously repeated at a certain rule. And measuring the color repetition frequency of the color flashing light source in real time, and taking the frequency as the flashing frequency of the color flashing light source. For example, a flashing light source of a certain color performs switching between colors according to the rule of red-green-yellow-blue-red-green-yellow-blue, so that the frequency of repetition of the same color can be measured in real time, for example, the frequency of repetition of the color of red can be calculated and used as the flashing frequency of the flashing light source of the color; as another example, the color repetition frequency of the color yellow can be calculated and used as the flashing frequency of the flashing light source of the color; as another example, the color repetition frequency of the color green may be calculated and used as the blinking frequency of the blinking light source for that color. Optionally, the color repetition frequency of each of the red, green, yellow and blue colors can be calculated separately, and the average value of the color repetition frequencies of the four colors can be used as the flicker frequency of the color flicker light source.
And 202, calculating and generating a first target exposure time according to the flicker frequency.
And 203, calculating the switching duration between two adjacent colors in the color repetition period of the color flashing light source.
In the embodiment of the present application, the color repetition period of the color flashing light source can be regarded as the inverse number of the color repetition frequency of the color flashing light source. For example, the color repetition frequency may be understood as the number of times that a color in the color flashing light source flashes repeatedly per second, and if red repeats 10 times per second, the color repetition frequency of red may be considered as 10Hz, that is, the flashing frequency of the color flashing light source is 10 Hz; the color repetition period may be understood as a duration of an interval in which a certain color in the color flashing light source repeats once, and if red repeats once every 0.1 second, the color repetition period of red may be considered to be 0.1 second, that is, the color repetition period of the color flashing light source is 0.1 s.
Illustratively, the switching time length between two adjacent colors in the color repetition period of the color flashing light source is calculated. For example, a flashing light source of a certain color performs switching between colors according to the rule of red-green-yellow-blue-red-green-yellow-blue, and then, in the red color repetition period, the switching duration for switching red to green, the switching duration for switching green to yellow, the switching duration for switching yellow to blue, and the switching duration for switching blue to red are calculated respectively. Illustratively, the red color repetition period is 0.1 second, the switching duration for red to green is 0.025 second, the switching duration for green to yellow is 0.03 second, the switching duration for yellow to blue is 0.015 second, and the switching duration for blue to red is 0.03 second.
And 204, calculating a second target exposure time between the two corresponding adjacent colors according to the switching duration.
In the embodiment of the present application, the second target exposure time between two adjacent colors is calculated according to the switching duration between two adjacent colors. Illustratively, the second target exposure time is proportional to the corresponding switching duration, e.g. e2At, wherein e2Denotes a second target exposure time, t denotes a switching time period, a denotes a scaling factor, and optionally, a is 1, that is, the second target exposure time is equal to the switching time period.
And step 205, performing image shooting based on the first target exposure time and the second target exposure time to obtain a plurality of target shooting images.
In the embodiment of the application, the shooting subject including the color flashing light source is subjected to image shooting based on the first target exposure time and the second target exposure time respectively, so that a plurality of target shooting images are obtained. Illustratively, the first target exposure time is a red color repetition corresponding exposure time, and the second target exposure time includes exposure times corresponding to red-green (i.e., red is switched to green), green-yellow (i.e., green is switched to yellow), yellow-blue (i.e., yellow is switched to blue), and blue-red (i.e., blue is switched to red), respectively, so that a total of 5 target captured images can be captured.
Step 206, displaying the plurality of target shooting images according to a preset mode; or at least two target shooting images in the plurality of target shooting images are fused, and the fused images are displayed.
In the embodiment of the application, a plurality of target shooting images are displayed according to a preset mode, so that a user can enjoy different target shooting images, and the user can select the most satisfactory target image according to a display result. The plurality of target shot images can be displayed in the form of thumbnails or lists, and the display mode of the plurality of target shot images is not limited in the embodiment of the application.
In the embodiment of the application, at least two target shooting images in a plurality of target shooting images are fused, and the fused images are displayed. The fusion of the at least two target images is to cooperatively utilize the image information of the at least two target images in the same scene (the same shooting scene containing the color flicker light source), and output a high-quality target image without picture texture caused by the existence of the color flicker light source. In addition, at least two target shot images in the multiple target shot images are fused, a fused effect image of the shot images when different colors flicker in the color flicker light source can be obtained, and the fused image is displayed, so that a user can experience target images with more effects.
Optionally, fusing at least two target captured images of the plurality of target captured images, including: and fusing at least two target shooting images in the multiple target shooting images based on a pixel level fusion algorithm and/or a feature level fusion algorithm to obtain a fused target image. In the embodiment of the application, the at least two target shot images are fused based on the pixel-level fusion algorithm, and the obtained fused target image can effectively retain more detail information, especially for shot objects containing more texture information or edge information. When the at least two target shot images are fused based on a feature level fusion algorithm, common image feature information is extracted from the at least two target shot images and is respectively used as the interested areas of the at least two target shot images, and then the feature information of the interested areas in the at least two target shot images is respectively analyzed, processed and integrated, so that the fused target image is obtained. The target images obtained by fusing the at least two target shooting images based on the feature level fusion algorithm contain more feature information of the interested region, and when the fused target images are subjected to target identification, the identification accuracy is higher than the accuracy of the at least two target shooting images.
It should be noted that, in the embodiment of the present application, the execution sequence of step 202 and steps 203 to 204 is not limited, and step 202 may be executed first, and then steps 203 to 204 may be executed; step 203-step 204 can be executed first, and then step 202 can be executed; step 202 and steps 203-204 may also be performed simultaneously.
According to the shooting scheme provided by the embodiment of the application, when the situation that a color flashing light source exists in a shooting preview picture is monitored, if the color of the color flashing light source is repeated, measuring and calculating the color repetition frequency of the color flashing light source in real time as the flashing frequency of the color flashing light source, calculating to generate a first target exposure time according to the flicker frequency, calculating the switching time length between two adjacent colors in the color repetition period of the color flicker light source, calculating a second target exposure time between two corresponding adjacent colors according to the switching time length, then, image shooting is carried out based on the first target exposure time and the second target exposure time to obtain a plurality of target shooting images, and finally, the plurality of target shooting images are displayed according to a preset mode, or at least two target shooting images in the plurality of target shooting images are fused, and the fused images are displayed. By adopting the technical scheme, the first target exposure time can be reasonably determined according to the color repetition frequency of the color flashing light source, the second target exposure time corresponding to the switching time length between the two adjacent colors in the color repetition period is calculated, then the shooting main body containing the color flashing light source is shot based on the first target exposure time and the second target exposure time respectively, the problems of brightness and color distortion of a shot picture caused by flashing of the color flashing light source can be effectively solved, the space texture in the shot picture caused by the color flashing light source can be avoided, the quality of the shot image can be effectively improved, the fused effect image of the shot images in the color flashing light source when different colors flash can be obtained, the user experience can be further improved, and the user requirements can be met.
Fig. 3 is a block diagram of a shooting device according to an embodiment of the present disclosure, where the shooting device may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may improve quality of a shot image by performing a shooting method. As shown in fig. 3, the apparatus includes:
the flicker frequency measuring and calculating module 301 is configured to measure and calculate the flicker frequency of the flicker light source in real time when it is monitored that the flicker light source exists in the shooting preview picture;
an exposure time generation module 302, configured to calculate and generate a first target exposure time according to the flicker frequency;
and an image shooting module 303, configured to perform image shooting based on the first target exposure time to obtain a target shooting image.
According to the shooting device provided by the embodiment of the application, when the situation that the flicker light source exists in the shooting preview picture is monitored, the flicker frequency of the flicker light source is measured and calculated in real time, the first target exposure time is generated according to the flicker frequency, and then image shooting is carried out based on the first target exposure time to obtain the target shooting image. By adopting the technical scheme, the target exposure time can be reasonably determined according to the flicker frequency of the flicker light source, and the shooting main body containing the flicker light source is shot based on the target exposure time, so that the problems of brightness and color distortion of a shot picture caused by flicker of the flicker light source are effectively solved, the space texture in the shot picture caused by the flicker light source can be avoided, and the quality of the shot image can be effectively improved.
Optionally, the flashing light source includes a brightness flashing light source, a color flashing light source, and a brightness and color mixed flashing light source.
Optionally, the flashing light source comprises a color flashing light source;
the flicker frequency measuring and calculating module is used for:
and when the colors of the color flashing light source are repeated, measuring and calculating the color repetition frequency of the color flashing light source in real time to serve as the flashing frequency of the color flashing light source.
Optionally, the apparatus further comprises:
the switching duration calculation module is used for calculating the switching duration between two adjacent colors in the color repetition period of the color flicker light source when the colors of the color flicker light source are repeated;
the exposure time calculation module is used for calculating the second target exposure time between the two corresponding adjacent colors according to the switching duration;
the image shooting module is used for:
and shooting images based on the first target exposure time and the second target exposure time to obtain a plurality of target shooting images.
Optionally, the apparatus further comprises:
the image display module is used for carrying out image shooting based on the first target exposure time and the second target exposure time to obtain a plurality of target shooting images, and then displaying the plurality of target shooting images according to a preset mode; or
And the image fusion module is used for carrying out image shooting based on the first target exposure time and the second target exposure time to obtain a plurality of target shooting images, fusing at least two target shooting images in the plurality of target shooting images, and displaying the fused images.
Optionally, the flicker frequency measuring and calculating module is configured to:
acquiring a shooting preview picture, and acquiring the fuzziness of the shooting preview picture;
when the fuzziness is larger than a preset threshold value, carrying out flicker light source detection on the shooting preview picture;
and when the flash light source is detected to exist in the shooting preview picture, measuring and calculating the flash frequency of the flash light source in real time.
Optionally, the monitoring that a flicker light source exists in the shooting preview picture includes:
if the brightness information of at least two continuous frames of images in the shooting preview picture changes, a flicker light source is monitored to exist in the shooting preview picture.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a photographing method, the method including:
when the situation that a flicker light source exists in a shooting preview picture is monitored, measuring and calculating the flicker frequency of the flicker light source in real time;
calculating and generating a first target exposure time according to the flicker frequency;
and shooting an image based on the first target exposure time to obtain a target shooting image.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application and containing the computer-executable instructions is not limited to the shooting operation described above, and may also perform related operations in the shooting method provided in any embodiments of the present application.
The embodiment of the application provides a mobile terminal, and the shooting device provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 400 may include: the system comprises a memory 401, a processor 402 and a computer program stored on the memory and executable on the processor, wherein the processor 402 executes the computer program to realize the shooting method according to the embodiment of the application.
The mobile terminal provided by the embodiment of the application can reasonably determine the target exposure time according to the flicker frequency of the flicker light source, and shoots the shooting main body containing the flicker light source based on the target exposure time, so that the problems of brightness and color distortion of the shot picture caused by flicker of the flicker light source are effectively solved, the space texture in the shot picture caused by the flicker light source can be avoided, and the quality of the shot image can be effectively improved.
Fig. 5 is a schematic structural diagram of another mobile terminal provided in an embodiment of the present application, where the mobile terminal may include: a housing (not shown), a memory 501, a Central Processing Unit (CPU) 502 (also called processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU502 and the memory 501 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 501 is used for storing executable program codes; the CPU502 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 501 to implement the steps of:
when the situation that a flicker light source exists in a shooting preview picture is monitored, measuring and calculating the flicker frequency of the flicker light source in real time;
calculating and generating a first target exposure time according to the flicker frequency;
and shooting an image based on the first target exposure time to obtain a target shooting image.
The mobile terminal further includes: peripheral interface 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, power management chip 508, input/output (I/O) subsystem 509, other input/control devices 510, touch screen 512, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.
It should be understood that the illustrated mobile terminal 500 is merely one example of a mobile terminal and that the mobile terminal 500 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes the mobile terminal for shooting provided in this embodiment in detail, and the mobile terminal is a mobile phone as an example.
A memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 512, which is an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
The shooting device, the storage medium and the mobile terminal provided in the above embodiments can execute the shooting method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to the photographing method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (8)

1. A photographing method, characterized by comprising:
when the situation that a flicker light source exists in a shooting preview picture is monitored, measuring and calculating the flicker frequency of the flicker light source in real time; the flickering light source comprises a brightness flickering light source, a color flickering light source and a brightness and color mixed flickering light source;
calculating and generating a first target exposure time according to the flicker frequency;
shooting an image based on the first target exposure time to obtain a target shooting image;
wherein when the flashing light source comprises a color flashing light source; correspondingly, the real-time measurement and calculation of the flicker frequency of the flicker light source comprises the following steps:
and when the colors of the color flashing light source are repeated, measuring and calculating the color repetition frequency of the color flashing light source in real time to serve as the flashing frequency of the color flashing light source.
2. The method of claim 1, further comprising:
when the colors of the color flashing light source are repeated, calculating the switching duration between two adjacent colors in the color repetition period of the color flashing light source;
calculating a second target exposure time between two corresponding adjacent colors according to the switching duration;
shooting an image based on the first target exposure time to obtain a target shooting image, comprising:
and shooting images based on the first target exposure time and the second target exposure time to obtain a plurality of target shooting images.
3. The method according to claim 2, wherein after performing image capturing based on the first target exposure time and the second target exposure time to obtain a plurality of target captured images, further comprising:
displaying the plurality of target shooting images according to a preset mode; or
And fusing at least two target shooting images in the plurality of target shooting images, and displaying the fused images.
4. The method of claim 1, wherein when it is monitored that a flicker light source exists in a shooting preview picture, the real-time measurement of the flicker frequency of the flicker light source comprises:
acquiring a shooting preview picture, and acquiring the fuzziness of the shooting preview picture;
when the fuzziness is larger than a preset threshold value, carrying out flicker light source detection on the shooting preview picture;
and when the flash light source is detected to exist in the shooting preview picture, measuring and calculating the flash frequency of the flash light source in real time.
5. The method of claim 1, wherein the monitoring of the presence of a flickering light source in the captured preview image comprises:
if the brightness information of at least two continuous frames of images in the shooting preview picture changes, a flicker light source is monitored to exist in the shooting preview picture.
6. A camera, comprising:
the flicker frequency measuring and calculating module is used for measuring and calculating the flicker frequency of the flicker light source in real time when the flicker light source is monitored to exist in the shooting preview picture; the flickering light source comprises a brightness flickering light source, a color flickering light source and a brightness and color mixed flickering light source;
the exposure time generation module is used for calculating and generating a first target exposure time according to the flicker frequency;
the image shooting module is used for shooting an image based on the first target exposure time to obtain a target shooting image;
wherein the flashing light source comprises a color flashing light source; correspondingly, the flicker frequency estimation module is used for:
and when the colors of the color flashing light source are repeated, measuring and calculating the color repetition frequency of the color flashing light source in real time to serve as the flashing frequency of the color flashing light source.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the photographing method according to any one of claims 1-5.
8. A mobile terminal, characterized in that it comprises a memory, a processor and a computer program stored on the memory and executable on the processor, said processor implementing the shooting method according to any one of claims 1 to 5 when executing said computer program.
CN201811236946.2A 2018-10-23 2018-10-23 Shooting method, shooting device, storage medium and mobile terminal Active CN109120863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811236946.2A CN109120863B (en) 2018-10-23 2018-10-23 Shooting method, shooting device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811236946.2A CN109120863B (en) 2018-10-23 2018-10-23 Shooting method, shooting device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN109120863A CN109120863A (en) 2019-01-01
CN109120863B true CN109120863B (en) 2021-01-01

Family

ID=64854356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811236946.2A Active CN109120863B (en) 2018-10-23 2018-10-23 Shooting method, shooting device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN109120863B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618034B (en) * 2019-01-29 2023-12-26 努比亚技术有限公司 Shooting method, mobile terminal and readable storage medium
CN110248110B (en) * 2019-06-28 2021-03-26 Oppo广东移动通信有限公司 Shooting parameter setting method, setting device, terminal equipment and readable storage medium
CN111355864B (en) * 2020-04-16 2022-06-14 浙江大华技术股份有限公司 Image flicker elimination method and device
CN114422714A (en) * 2020-10-28 2022-04-29 北京小米移动软件有限公司 Switching method and switching device between flash frequency light source and non-flash frequency light source
CN113688820A (en) * 2021-08-25 2021-11-23 维沃移动通信有限公司 Stroboscopic stripe information identification method and device and electronic equipment
CN114245026B (en) * 2021-12-15 2023-10-13 惠州Tcl移动通信有限公司 Shooting method, shooting device, computer equipment and storage medium
CN117676114A (en) * 2022-08-24 2024-03-08 万有引力(宁波)电子科技有限公司 MR device and method for eliminating image flicker of MR device
WO2024041245A1 (en) * 2022-08-24 2024-02-29 万有引力(宁波)电子科技有限公司 Mr apparatus, and method for eliminating image flicker of mr apparatus
CN116055894B (en) * 2023-01-28 2023-08-15 荣耀终端有限公司 Image stroboscopic removing method and device based on neural network
CN116996777B (en) * 2023-09-26 2024-04-05 荣耀终端有限公司 Shooting method, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105518555A (en) * 2014-07-30 2016-04-20 深圳市大疆创新科技有限公司 Systems and methods for target tracking

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1677216A (en) * 2004-03-29 2005-10-05 天瀚科技股份有限公司 Method for judging main light source in multiple light source environment
JP5072431B2 (en) * 2007-05-15 2012-11-14 キヤノン株式会社 Imaging apparatus and control method thereof
JP2009077057A (en) * 2007-09-19 2009-04-09 Olympus Imaging Corp Imaging apparatus, and control method for imaging apparatus
JP5598029B2 (en) * 2010-03-10 2014-10-01 ソニー株式会社 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
CN102192729B (en) * 2011-02-01 2015-11-25 深圳市中钞科信金融科技有限公司 Imaging system and formation method
JP2013219708A (en) * 2012-04-12 2013-10-24 Sony Corp Image processing device, image processing method and program
CN102957810B (en) * 2012-11-30 2014-12-17 广东欧珀移动通信有限公司 Call and message reminding method and device of mobile terminal
JP6108946B2 (en) * 2013-05-10 2017-04-05 キヤノン株式会社 Imaging apparatus, control method, program, and storage medium
JP6220225B2 (en) * 2013-10-30 2017-10-25 キヤノン株式会社 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
US9648249B2 (en) * 2013-11-20 2017-05-09 Canon Kabushiki Kaisha Image capturing apparatus, method of controlling the same, and storage medium
JP6537224B2 (en) * 2014-04-23 2019-07-03 キヤノン株式会社 Imaging device, control method, program, and storage medium
JP6566737B2 (en) * 2015-06-18 2019-08-28 キヤノン株式会社 Information processing apparatus, information processing method, and program
CN105847705A (en) * 2016-04-07 2016-08-10 广东欧珀移动通信有限公司 Method and device for adjusting camera exposure time
US10602111B2 (en) * 2016-09-06 2020-03-24 Apple Inc. Auto white balance control algorithm based upon flicker frequency detection
JP6827801B2 (en) * 2016-12-26 2021-02-10 キヤノン株式会社 Imaging device and control method
CN108462837B (en) * 2018-03-13 2022-06-21 中兴通讯股份有限公司 Shooting method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105518555A (en) * 2014-07-30 2016-04-20 深圳市大疆创新科技有限公司 Systems and methods for target tracking

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种高清网络摄像机自动曝光方法;晁目力;《桂林电子科技大学学报》;20121031;全文 *

Also Published As

Publication number Publication date
CN109120863A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN109120863B (en) Shooting method, shooting device, storage medium and mobile terminal
CN109547701B (en) Image shooting method and device, storage medium and electronic equipment
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
CN108566516B (en) Image processing method, device, storage medium and mobile terminal
CN108986199B (en) Virtual model processing method and device, electronic equipment and storage medium
CN109413563B (en) Video sound effect processing method and related product
CN109741288B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112449120B (en) High dynamic range video generation method and device
CN109218621B (en) Image processing method, device, storage medium and mobile terminal
CN109685746A (en) Brightness of image method of adjustment, device, storage medium and terminal
CN109327691B (en) Image shooting method and device, storage medium and mobile terminal
CN109089043B (en) Shot image preprocessing method and device, storage medium and mobile terminal
CN110569822A (en) image processing method and device, electronic equipment and storage medium
CN108551552B (en) Image processing method, device, storage medium and mobile terminal
WO2016192325A1 (en) Method and device for processing logo on video file
CN109040523B (en) Artifact eliminating method and device, storage medium and terminal
CN108712606A (en) Reminding method, device, storage medium and mobile terminal
CN106961558B (en) Photographing processing method and device
CN108494996B (en) Image processing method, device, storage medium and mobile terminal
CN106331487A (en) Screen light supplementing method and device and mobile terminal
CN112219224A (en) Image processing method and device, electronic equipment and storage medium
CN108665510B (en) Rendering method and device of continuous shooting image, storage medium and terminal
WO2020233201A1 (en) Icon position determination method and device
CN108683858A (en) It takes pictures optimization method, device, storage medium and terminal device
CN108683845A (en) Image processing method, device, storage medium and mobile terminal

Legal Events

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