[go: up one dir, main page]

CN109327691B - Image shooting method and device, storage medium and mobile terminal - Google Patents

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

Info

Publication number
CN109327691B
CN109327691B CN201811236736.3A CN201811236736A CN109327691B CN 109327691 B CN109327691 B CN 109327691B CN 201811236736 A CN201811236736 A CN 201811236736A CN 109327691 B CN109327691 B CN 109327691B
Authority
CN
China
Prior art keywords
color temperature
image
temperature interval
target
shooting
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
CN201811236736.3A
Other languages
Chinese (zh)
Other versions
CN109327691A (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 CN201811236736.3A priority Critical patent/CN109327691B/en
Publication of CN109327691A publication Critical patent/CN109327691A/en
Application granted granted Critical
Publication of CN109327691B publication Critical patent/CN109327691B/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
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Studio Devices (AREA)

Abstract

本申请实施例公开了一种图像拍摄方法、装置、存储介质及终端,该方法包括:如果检测到预览画面中存在色温变化,则连续拍摄至少两个图像帧;如果所述至少两个图像帧的色温值属于不同色温区间,则确定目标色温区间;根据所述目标色温区间,对所述至少两个图像帧进行处理,生成目标拍摄图像。能够避免环境色温变化对拍摄图像色温准确度的影响,提高拍摄质量。

Figure 201811236736

The embodiment of the present application discloses an image capturing method, device, storage medium and terminal. The method includes: if it is detected that there is a color temperature change in a preview image, continuously capturing at least two image frames; if the at least two image frames If the color temperature value belongs to a different color temperature interval, a target color temperature interval is determined; according to the target color temperature interval, the at least two image frames are processed to generate a target photographed image. It can avoid the influence of the environmental color temperature change on the color temperature accuracy of the shot image, and improve the shooting quality.

Figure 201811236736

Description

Image shooting method and device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of mobile terminals, in particular to an image shooting method, an image shooting device, a storage medium and a mobile terminal.
Background
At present, the photographing function becomes a standard configuration of most mobile terminals, and a terminal user can easily and quickly realize photographing operation through a portable mobile terminal.
When a terminal user uses the mobile terminal to take a picture, if the ambient color temperature changes, the color temperature of the taken picture will be inaccurate, which affects the quality of the taken picture.
Disclosure of Invention
The embodiment of the application provides an image shooting method, an image shooting device, a storage medium and a mobile terminal, which can improve shooting quality.
In a first aspect, an embodiment of the present application provides an image capturing method, including:
if the color temperature change in the preview picture is detected, continuously shooting at least two image frames;
if the color temperature values of the at least two image frames belong to different color temperature intervals, determining a target color temperature interval;
and processing the at least two image frames according to the target color temperature interval to generate a target shooting image.
In a second aspect, an embodiment of the present application provides an image capturing apparatus, including:
the image shooting module is used for continuously shooting at least two image frames if the color temperature change in the preview picture is detected;
the color temperature interval determining module is used for determining a target color temperature interval if the color temperature values of at least two image frames continuously shot by the image shooting module belong to different color temperature intervals;
and the image processing module is used for processing the at least two image frames according to the target color temperature interval determined by the color temperature interval determination module to generate a target shooting image.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements an image capturing method as described in the embodiments of 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 image capturing method according to the embodiment of the present application.
According to the image shooting scheme provided by the embodiment of the application, firstly, if the color temperature change in a preview picture is detected, at least two image frames are continuously shot; secondly, if the color temperature values of the at least two image frames belong to different color temperature intervals, determining a target color temperature interval; and finally, processing the at least two image frames according to the target color temperature interval to generate a target shooting image. By adopting the technical scheme, the influence of the environmental color temperature change on the color temperature accuracy of the shot image can be avoided, and the shooting quality is improved.
Drawings
Fig. 1 is a schematic flowchart of an image capturing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another image capturing method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another image capturing method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another image capturing method provided in the embodiment of the present application;
fig. 5 is a block diagram of an image capturing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the invention 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 invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention 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.
At present, the photographing function becomes a standard configuration of most mobile terminals, and a terminal user can easily and quickly realize photographing operation through a portable mobile terminal.
When a terminal user uses the mobile terminal to take a picture, if the ambient color temperature changes, the color temperature of the taken picture will be inaccurate, which affects the quality of the taken picture.
The embodiment of the application provides an image shooting method, which can continuously shoot a plurality of image frames to determine a target color temperature interval when color temperature change exists in a preview picture, so that the shot image frames are processed according to the target color temperature interval to obtain a target shooting image, further the influence of environment color temperature change on the color temperature accuracy of the shooting image is avoided, and the shooting quality is improved. The specific scheme is as follows:
fig. 1 is a schematic flowchart of an image shooting method according to an embodiment of the present application, where the method is suitable for shooting when an ambient color temperature changes. The method can be executed by a mobile terminal with a photographing function, the mobile terminal can be a smart phone, a tablet computer, wearable equipment (a smart watch or smart glasses) and the like, and the method specifically comprises the following steps:
step 101, if the color temperature change in the preview picture is detected, continuously shooting at least two image frames.
The preview screen may be a screen displayed on a display screen of the mobile terminal after the shooting function is started. The picture can be an image which is displayed in real time by the camera after the shooting function is started. The color temperature may be a physical quantity defining the color of the light source in the illumination optics, and there is a color temperature value corresponding to each image frame in the preview picture.
For example, in the embodiment of the present application, detecting whether there is a color temperature change in the preview picture may be that a real-time image is collected by a shooting parameter of a camera of the fixed terminal (including a shooting color temperature parameter of the camera) to obtain the preview picture, and when the color temperature in the preview picture changes, it indicates that the preview picture is not caused by the shooting color temperature change of the camera, but is caused by the change of the ambient color temperature. When judging whether color temperature change exists in the preview picture, the color temperature of each frame of picture in the preview picture can be obtained, and the color temperature values of all the frames of pictures are compared to judge whether the change occurs; or, the specific color temperature value of each frame of picture is not calculated, and whether the color temperature changes between frames of pictures is simply compared through a preset method. For example, a difference in color temperature affects the color tone of a captured image, and if the color tone of an image on a preview screen changes while the imaging parameters are not changed, this indicates that the ambient color temperature has changed.
Optionally, in order to improve the image capturing efficiency, the image capturing method according to the embodiment of the present application may be executed again when the color temperature in the preview picture changes significantly. Specifically, if it is detected that a change value of the color temperature value of the preview picture within a preset time period exceeds a preset threshold, a color temperature change exists in the preview picture. The preset threshold value can be preset according to the sensitivity of human eyes to color temperature change, and the size of the preset threshold value can be fixed and can also be adjusted along with the change of a shooting scene or a shooting mode. Similarly, the duration of the preset time period may be a preset fixed duration; or the adjustment may be performed in real time based on the frequency of the color temperature change in the scene being shot at that time, for example, when the frequency of the color temperature change is fast, the preset time period may be set to be relatively short; if the color temperature change frequency is large, the preset time period can be set to be relatively long. And detecting whether the change of the color temperature value of the preview picture exceeds a corresponding preset threshold value at the moment in a preset time period, if so, indicating that the color temperature change exists in the preview picture and at least two image frames need to be continuously shot. If the color temperature does not exceed the preset threshold, the preview interface has no color temperature change, or the color temperature change is not obvious and can be ignored, and shooting is carried out according to a conventional shooting mode.
Optionally, detecting whether a color temperature change exists in the preview picture, where the detection may be performed in real time after a shooting function of the mobile terminal is started or at preset time intervals (e.g., 1 second), and updating a detection result in real time; or when the terminal user clicks a trigger to take a picture (such as clicking a shooting button trigger, voice trigger, gesture or expression trigger, etc.), the system starts to detect whether there is a color temperature change in the preview picture.
Illustratively, if a color temperature change is detected in the preview picture, which indicates that the ambient color temperature is changed at the moment, the multi-frame continuous shooting mode can be started, and a plurality of image frames at different ambient color temperatures are continuously shot in the exposure time. Optionally, the shooting frequency when at least two image frames are continuously shot may be a sampling frequency of a camera configured in the mobile terminal, or may also be a color temperature change frequency, for example, if the ambient color temperature change is caused by the flickering of a neon lamp on a road, images at different color temperatures may be collected according to the flickering frequency of the neon lamp, so that the obtained images may be distributed at different ambient color temperatures; and can be preset according to requirements. This application is not limited thereto.
And 102, if the color temperature values of at least two image frames belong to different color temperature intervals, determining a target color temperature interval.
The color temperature interval may be preset according to effects or functions corresponding to different color temperatures, for example, the color temperature interval in the standard photographing mode may be divided into: warm white with color temperature value in the range of 2850K-3500K; natural white with a color temperature value in the range of 3500K-4500K; the cool white class has a color temperature value within the range of 4500K-10000K. Optionally, the color temperature interval dividing method may also be adjusted according to actual situations, for example, different color temperature interval dividing standards may be set for different shooting scenes or shooting modes. For example, in daytime shooting, the light source is mainly natural light (such as sunlight), when the division standard can be finely divided according to the color temperature of the natural light, in night scene shooting, the light source is mainly artificial light (such as various lamplights), when the division standard can be finely divided according to the color temperature of the artificial light.
Optionally, in this embodiment of the application, determining whether the color temperature values of the at least two image frames belong to different color temperature intervals may include obtaining the color temperature value corresponding to each of the captured image frames, and then determining the color temperature interval corresponding to the color temperature value of each of the captured image frames, where if there is a difference between the color temperature intervals to which any two of the captured image frames belong, it is determined that the obtained color temperature values of the at least two image frames belong to different color temperature intervals.
Optionally, if the color temperature interval is divided in advance, the color temperature value is divided into different intervals according to different division methods, so as to obtain a plurality of different color temperature interval division results. Before determining whether the color temperature values of at least two image frames belong to different color temperature intervals, a color temperature interval division result corresponding to the shooting scene or the shooting mode can be selected from a plurality of different color temperature interval division results and used as a basis for the determination, and then the determination of which color temperature interval of the color temperature interval division result the color temperature value of the acquired image belongs to is performed. For example, the mode of the current shooting is a normal shooting mode, the color temperature interval result in the standard shooting mode (i.e., the color temperature is divided into three intervals of a warm white class, a natural white class and a cold white class) can be selected from a plurality of different color temperature division results, and then it is determined to which one of the three color temperature intervals the acquired color temperature value of each image frame belongs.
Alternatively, the target color temperature section may be a standard color temperature section for reference in the later stage for performing the captured image processing. In the embodiment of the present application, there are many ways to determine the target color temperature interval, and the embodiment of the present application is not limited thereto. For example, a color temperature interval with more color temperature values corresponding to the shot image may be selected as the target color temperature interval, and if the warm white color temperature interval corresponds to 6 color temperature values and the natural white color temperature interval corresponds to 4 color temperature values, the warm white color temperature interval is used as the target color temperature interval; or analyzing at least two color temperature intervals corresponding to each image frame, and re-determining a new color temperature interval suitable for the shot image; in combination with a shooting scene or a shooting mode, a color temperature section suitable for the shooting scene or the shooting mode may be set as the target color temperature section. The target color temperature interval may also be determined by combining the shooting scene or the shooting mode with at least two color temperature intervals corresponding to the acquired image frames, for example, a color temperature interval most matched with the current shooting scene is selected as the target color temperature interval from the at least two color temperature intervals corresponding to the acquired image frames.
And 103, processing at least two image frames according to the target color temperature interval to generate a target shooting image.
Wherein the target photographic image may be a photographic image finally generated to be presented to the user.
For example, there are many methods for processing at least two image frames according to a target color temperature interval to generate a target captured image, which is not limited in the embodiments of the present application. The color temperatures of at least two shot image frames are adjusted to the target color temperature interval according to the target color temperature interval, and then the at least two image frames after the color temperatures are adjusted are subjected to fusion processing to generate a target shot image; or screening partial images with more accurate color temperature values from the at least two image frames according to the target color temperature interval, and processing the partial images to generate a target shooting image, so that the accuracy of finally determining the color temperature values of the target shooting image can be improved while the image processing efficiency is improved. Alternatively, an image in a target color temperature interval may be selected from at least two image frames; and processing the selected image in the target color temperature interval to generate a target shooting image.
Specifically, the color temperature value of each of the at least two acquired image frames may be compared with the target color temperature interval, whether the image is in the target color temperature interval is determined, all the captured images in the target color temperature interval are selected, and then the selected captured images are further processed to determine an accurate color temperature value, so as to generate the target captured image. Optionally, the number of the selected shot images may be one or multiple, and different image processing methods may be selected for different numbers, for example, when the number of the acquired images belonging to the target color temperature interval is one, the target shot image may be generated after performing a correlated post-processing (such as color temperature adjustment, denoising, sharpening, and the like) operation on the image; when the number of the acquired images belonging to the target color temperature interval is multiple, the multiple shot images can be subjected to image fusion to obtain the generated shot image, and optionally, the generated shot image can be generated after the multiple shot images are fused and the generated image is subjected to related post-processing operation.
Optionally, when a plurality of image frames are fused, at least two processed image frames may be fused based on a pixel level fusion algorithm and/or a feature level fusion algorithm to generate a target shot image. The pixel-level fusion is also called data-level fusion, and may be a process of directly processing collected image data with a changed color temperature to obtain a fused image. Specifically, the pixel level fusion algorithm may include a spatial domain algorithm, a transform domain algorithm, and the like, and the spatial domain algorithm may further include a plurality of fusion rule methods, such as a logic filtering method, a gray-scale weighted average method, a contrast modulation method, and the like; the transform domain algorithm may also include a pyramid decomposition fusion method, a wavelet transform method, and the like. The pixel level fusion algorithm has the advantage that the detailed information in the image, such as the extraction of edges and textures, can be restored as much as possible. The characteristics of shooting content, color temperature, color and the like can be well restored. The feature level image fusion algorithm can extract color temperature and color feature information in the collected image, and then analyze, process and integrate the feature information to obtain fused image features. The method has the advantages that the accuracy of the color temperature and the color of the fused image is greatly improved by adopting the feature level fusion algorithm, the image information is compressed by the feature level fusion and is analyzed and processed by a computer, the consumed memory and time are relatively small, and the real-time performance of the image shooting processing is improved.
According to the image shooting method provided by the embodiment of the application, firstly, if the color temperature change in the preview picture is detected, at least two image frames are continuously shot; secondly, if the color temperature values of at least two image frames belong to different color temperature intervals, determining a target color temperature interval; and finally, processing at least two image frames according to the target color temperature interval to generate a target shooting image. Compared with the shooting in the correlation technology when the environmental color temperature changes, the color temperature error of the image is large, the quality is poor, the image shooting method and the image shooting device can continuously shoot a plurality of image frames to determine the target color temperature interval when the color temperature changes in the preview image, so that the shot image can be obtained by processing the plurality of image frames according to the target color temperature interval, further the influence of the environmental color temperature change on the color temperature accuracy of the shot image is avoided, and the shooting quality is improved.
Fig. 2 is a schematic flow chart of another image capturing method provided in an embodiment of the present application, which, as a further description of the foregoing embodiment, includes the following steps:
step 201, if the color temperature change in the preview picture is detected, determining the color temperature change frequency.
Here, the color temperature change frequency may be the number of times the color temperature in the preview screen changes in a unit time, such as once per second.
For example, the present embodiment is applicable to a scene in which the color temperature in the preview screen changes regularly, and if it is detected that there is a color temperature change in the preview screen and the color temperature change is regular, the frequency of the color temperature change is determined. For example, if the photographed image is a flickering neon lamp, the flickering of the neon lamp is generally regular, the color temperatures corresponding to the neon lamps with different colors are different, the color temperature of the preview screen is changed due to the flickering of the neon lamp, and the frequency of the flickering of the neon lamp can be obtained as the color temperature change frequency.
Optionally, in this embodiment, the determining of the color temperature change frequency may be estimating the ambient color temperature change frequency with reference to a sampling frequency of the camera itself when acquiring the preview screen. Specifically, it may be determined that the color temperature in the preview image changes once every several image frames, and the ambient color temperature change frequency may be estimated by knowing the sampling frequency when the camera acquires the preview image. For example, by detecting that the color temperature of each 10 image frames in the preview picture changes once, and knowing that the sampling frequency of the camera is 10 image frames per second, the change frequency of the environmental color temperature can be determined to be changed once per second.
If the color temperature change frequency in the preview screen is not fixed, the frequency that changes most during the color temperature change may be set as the color temperature change frequency. If the difference between the first color temperature and the second color temperature is 1 second, the difference between the second color temperature and the third color temperature is 3 seconds, and the difference between the third color temperature and the fourth color temperature is 2 seconds, then in order to ensure that images corresponding to all color temperatures can be shot, the color temperature change frequency can be set to change once per second. Or, the color temperature change frequency set may be formed by respectively obtaining sub-change frequency sets between every two color temperatures, and for example, if a difference between a first color temperature and a second color temperature is 1 second, a difference between the second color temperature and a third color temperature is 3 seconds, and a difference between the third color temperature and a fourth color temperature is 2 seconds, the generated color temperature change frequency set may be {1, 3, 2 }.
Step 202, continuously shooting at least two image frames according to the color temperature change frequency.
For example, according to the color temperature change frequency, when at least two image frames are continuously shot, the sampling frequency of the terminal camera may be set to be less than or equal to the color temperature change frequency, so as to ensure that an image corresponding to each color temperature can be acquired. Optionally, when at least two image frames are continuously photographed, if the photographing time is short, the situation that images corresponding to all color temperatures are not photographed may occur, and if the photographing time is long, the situation that repeated photographing is performed and the power consumption of the system is increased may occur. Therefore, if the color temperature of the preview image changes periodically, the color temperature change period can be obtained when the color temperature change frequency is determined in step 201, when at least two image frames are continuously shot, the shooting frequency can be set according to the color temperature change frequency, and the continuous shooting period can be set according to the color temperature change period, so that images under various color temperatures can be obtained as completely as possible, and the times of repeatedly shooting images with the same color temperature are reduced. The acquiring of the color temperature change period may be detecting a time difference between image frames with the same color temperature in the preview image, and taking the time difference as the color temperature change period.
Optionally, if the color temperature change frequency determined in step 202 is a frequency set, at least two image frames may be continuously captured according to each sub-change frequency in the color temperature frequency set, for example, the color temperature change frequency set is {1, 3, 2}, then the camera may be set to capture a second frame every 1 second, a third frame every 3 seconds, and a fourth frame every 2 seconds after the first capture.
Step 203, if the color temperature values of at least two image frames belong to different color temperature intervals, determining a target color temperature interval.
And 204, processing at least two image frames according to the target color temperature interval to generate a target shooting image.
The image shooting method provided by the embodiment of the application can continuously shoot at least two image frames according to the change frequency of the environmental color temperature, further determine the target color temperature interval, process the shot image frames to obtain the target shooting image, can ensure that the at least two continuously shot image frames cover various color temperatures, and further improve the accuracy of the color temperature of the finally generated target shooting image.
Fig. 3 is a schematic flow chart of another image capturing method provided in an embodiment of the present application, which, as a further description of the foregoing embodiment, includes the following steps:
step 301, if it is detected that there is a color temperature change in the preview picture, continuously shooting at least two image frames.
And step 302, acquiring color temperature values corresponding to the image frames.
Optionally, in this embodiment of the present application, there are many methods for obtaining a color temperature value corresponding to each image frame, and specifically, the method may include: a curve simulation approximation method of a black body locus, an isotherm intersection method, a comparative distance method, and the like. Optionally, when actually determining the color temperature value corresponding to each image frame, the calculation accuracy of the above calculation methods is different for different types of light sources, and meanwhile, the calculation errors of various algorithms are different in different measurement ranges, so that when obtaining the color temperature value corresponding to each image frame, a corresponding prediction method can be reasonably selected according to the light source type and the color temperature range corresponding to the light source type in the shooting scene, and the color temperature prediction advantages of various algorithms are fully exerted, thereby improving the accuracy of the obtained color temperature value of each image frame.
Optionally, when the color temperature value of the image is calculated again, if the color temperature values of different areas in the image are different, for example, the shot image includes LED light and candle light, and the color temperature values of the two light sources are different, so that the LED light area and the candle light area in the image have different color temperature values. In this case, the color temperature value of the large region may be used as the color temperature value of the image, or the color temperature value of the image may be obtained by calculating the color temperature values of different regions, for example, performing an average value calculation or a weight value calculation, for example, setting a weight value for each region to the area of each region, and calculating the weight color temperature value of the image as the color temperature value of the image.
For example, if 10 image frames are continuously captured in step 301, the color temperature values corresponding to the 10 image frames are respectively calculated as: 2900K, 2980K, 3010K, 3011K, 3204K, 3489K, 3509K, 3653K, 3983K, and 3883K.
And step 303, determining the color temperature interval to which each color temperature value belongs.
For example, after the color temperature value of each image frame is obtained in step 302, the color temperature range to which each color temperature value belongs is determined, however, the color temperature value is compared with a predetermined color temperature range, and it is determined in which predetermined color temperature range each color temperature value is in. For example, the preset color temperature interval is classified into three categories: warm white with color temperature value in the range of 2850K-3500K; natural white with a color temperature value in the range of 3500K-4500K; the cool white class has a color temperature value within the range of 4500K-10000K. Comparing the color temperature values of 10 determined in step 302 with the three color temperature intervals, and determining the color temperature interval corresponding to each color temperature value, for example, the color temperature values 2900K, 2980K, 3010K, 3011K, 3204K and 3489K belong to warm white color temperature intervals, and the color temperature values 3509K, 3653K, 3983K and 3883K belong to natural white color temperature intervals.
And 304, if the number of the determined color temperature intervals is at least two, forming a candidate color temperature interval set by the at least two color temperature intervals.
The candidate color temperature interval set may be composed of at least two color temperature intervals to which the color temperature values belong. Specifically, step 303 determines that the color temperature interval to which each color temperature value belongs may be the same color temperature interval or different color temperature intervals, and if the color temperature intervals are different, the different color temperature intervals corresponding to each color temperature value constitute a candidate color temperature interval set. For example, the color temperature intervals determined in step 303 are divided into two color temperature intervals, namely a warm white color temperature interval and a natural white color temperature interval, and then the candidate color temperature interval set includes the warm white color temperature interval and the natural white color temperature interval, that is { (2850K, 3500K), (3500K, 4500K) }.
Optionally, if the color temperature intervals are the same, determining a candidate color temperature interval set after further sub-interval division is performed on the color temperature intervals; the color temperature change may not reach the extent of the span, and the acquired images may be directly fused to generate the target captured image, or an image with the best capturing quality may be selected from the acquired at least two image frames as the target captured image by ignoring the color temperature change at that time.
And 305, according to the current shooting scene, determining a target color temperature interval from the candidate color temperature interval set.
Optionally, the target color temperature interval is determined from the candidate color temperature intervals in a centralized manner according to the current shooting scene, and a color temperature interval which is most matched with the shooting scene is selected from the candidate color temperature intervals in a centralized manner as the target color temperature interval according to the current shooting scene, for example, a flashing neon lamp is shot in the scene, and in a normal case, the neon lamp belongs to a warm tone, so that a warm white color temperature interval is selected from the candidate color temperature intervals in a centralized manner as the target color temperature interval.
Optionally, the target color temperature interval is determined from the candidate color temperature intervals in a centralized manner according to the current shooting scene, and the following steps may also be performed: determining a shooting atmosphere corresponding to a current shooting scene; acquiring a reference color temperature interval corresponding to the shooting atmosphere according to the shooting atmosphere; and respectively matching each candidate color temperature interval in the candidate color temperature interval set with the reference color temperature interval, and selecting the candidate color temperature interval with the highest matching degree as the target color temperature interval.
The shooting atmosphere can be rendered through color temperature, for example, the color temperature is below 3000K, and a steady and warm atmosphere exists; the color temperature is intermediate between 3000K and 5000K, and the color temperature has refreshing and relaxing atmosphere; the color temperature is above 5000K, and the atmosphere of cold and sadness exists. Therefore, the target color temperature section is selected by determining the atmosphere of the shooting scene.
Optionally, when determining the shooting atmosphere corresponding to the current shooting scene, different modes may be selected to determine the shooting atmosphere of the shooting scene according to different shooting scenes, for example, if a person is shot, the expression of the person may be analyzed to determine the shooting atmosphere of the shooting scene. If a scene is shot, the type of the shot scene can be analyzed to determine the shooting atmosphere of the shot scene.
Optionally, the reference color temperature interval corresponding to the shooting atmosphere is obtained according to the shooting atmosphere, and may be a reference color temperature interval corresponding to a commonly used shooting atmosphere (such as cheerful, warm, sad, cool, relaxed, etc.) set in advance. And after the shooting atmosphere is determined, directly acquiring a reference color temperature interval corresponding to the shooting atmosphere. For example, a mapping relationship between a common shooting atmosphere and a color temperature interval may be established in advance, the mapping relationship is stored in a preset storage unit, and after the shooting atmosphere of this time is determined, a reference color temperature interval corresponding to the shooting atmosphere of this time is acquired in the preset storage unit according to the mapping relationship between the shooting atmosphere and the color temperature interval.
Optionally, each candidate color temperature interval in the candidate color temperature interval set is respectively matched with the reference color temperature interval, and the candidate color temperature interval with the highest matching degree is selected as the target color temperature interval, specifically, the candidate color temperature interval closest to the reference color temperature interval in the candidate color temperature interval set may be selected as the target color temperature interval, where the greater the coincidence degree of the candidate color temperature interval and the reference color temperature interval is, the higher the matching degree is, for example, when the candidate color temperature interval is included in the reference color temperature interval, the highest matching degree is.
For example, if the shooting scene is a flashing neon light, the shooting atmosphere is a warm atmosphere, the reference color temperature interval corresponding to the warm atmosphere is 3000K or less, and then each color temperature interval in the candidate color temperature interval set is compared with the reference color temperature interval, which is closer to the warm white color temperature interval (2850K, 3500K), so that the warm white color temperature interval in the candidate color temperature interval set is taken as the target color temperature interval.
Step 306, processing at least two image frames according to the target color temperature interval to generate a target shooting image.
According to the image shooting method provided by the embodiment of the application, the target color temperature interval can be determined according to the color temperature intervals of the plurality of continuously shot image frames and the current shooting scene, the shot image frames are processed to obtain the target shooting image, the accuracy of determining the target color temperature interval can be improved, and the target color temperature interval is a key for processing the shooting image, so that the image shooting quality is improved due to the improvement of the accuracy of the target color temperature interval.
Fig. 4 is a schematic flow chart of another image capturing method provided in the embodiments of the present application, which is a preferred example of the above embodiments, and is applicable to a case where a light source for capturing an image is a mixed light source. The method comprises the following steps:
step 401, if it is detected that there is a color temperature change in the preview picture, continuously shooting at least two image frames.
Step 402, if the light source in the shot image is a mixed light source, determining a main light source in the mixed light source.
Wherein, the mixed light source may refer to a plurality of different light sources existing in the photographing field of view, for example, a street at night, and the light sources include: the mixed light source consists of moonlight, neon light, vehicle light and other light sources.
Because the color temperature values corresponding to different light sources are different, whether the light source in the shot image is a mixed light source can be judged by judging the difference of the color temperature values of different areas in the shot image. For example, in the shooting process, a vehicle is driven from a distance, the shot image comprises a mixed light source consisting of a flashing neon lamp and a lamp of the vehicle driven from the head side, color temperature values of all regions in the image are analyzed, and the color temperature value of most regions in the image is between 2865K and 2898K, and the color temperature value of a small region is more than 4300K, so that the light source in the shot image is the mixed light source.
Optionally, there are many methods for determining the main light source in the hybrid light source, and this is not limited in this embodiment of the application. The light source with a large coverage area in the image may be determined as the main light source, for example, if the color temperature value of most areas in the image is between 2865K and 2898K, and the color temperature value of a small area is above 4300K, the light source with the color temperature value between 2865K and 2898K may be used as the main light source. In the process of shooting a flashing neon light, for example, a vehicle runs from a distance, and the color temperature value corresponding to the vehicle light source region does not exist in at least two shot image frames at first and then appears, and at this time, the neon light source corresponding to the color temperature region which exists at all times can be used as the main light source. The main light source can be selected manually by the user according to the self requirement, for example, the shot image can be displayed, the areas corresponding to different color temperatures in the image are selected in a frame mode for the user to select, the user clicks the area which is to be used as the main light source, and the terminal can determine the main light source in the mixed light source according to the selection of the user.
And step 403, taking the color temperature interval corresponding to the main light source as a target color temperature interval.
The different light sources have their corresponding color temperature ranges, for example, the color temperature value of a standard daytime running light is about 430OK, the color temperature value of a neon light is about 2800K-2900K, the light color temperature value of a cloudy day is about 6800K-7000K, and the like.
For example, when the color temperature interval corresponding to the main light source is taken as the target color temperature interval, the specific light source type of the main light source may be determined according to the color temperature value of the area where the main light source is located, the prestored different light sources and the color temperature intervals corresponding to the different light sources, and then the color temperature interval corresponding to the light source type is taken as the target color temperature interval, for example, the color temperature value of most areas in the image is 2865K-2898K, and the light source type with the color temperature value of 2800K-2900K is a neon lamp, and then the color temperature interval 2800K-2900K corresponding to the neon lamp type is obtained as the target color temperature interval.
And step 404, processing at least two image frames according to the target color temperature interval to generate a target shooting image.
The image shooting method provided by the embodiment of the application can determine the main light source when the shot image light source is the mixed light source, the color temperature interval of the main light source is used as the target color temperature interval, the shot multiple image frames are processed to obtain the target shot image, the optimal target color temperature interval can be determined when the shot light source is not unique, and the shooting quality is improved.
Fig. 5 is a block diagram of an image capturing apparatus, which may be implemented by software and/or hardware, and is generally integrated in a mobile terminal having a photographing function, and may execute the image capturing methods according to the foregoing embodiments. As shown in fig. 5, the apparatus includes: an image capturing module 501, a color temperature interval determining module 502 and an image processing module 503.
An image capturing module 501, configured to capture at least two image frames continuously if it is detected that a color temperature change exists in the preview image;
a color temperature interval determining module 502, configured to determine a target color temperature interval if color temperature values of at least two image frames continuously captured by the image capturing module belong to different color temperature intervals;
an image processing module 503, configured to process the at least two image frames according to the target color temperature interval determined by the color temperature interval determining module, so as to generate a target shooting image.
Further, the image capturing module 501 is configured to detect that there is a color temperature change in the preview screen, and includes:
and if the change value of the color temperature value of the preview picture in the preset time period is detected to exceed the preset threshold value, the color temperature change exists in the preview picture.
Further, the image capturing module 501 is configured to:
if the color temperature change exists in the preview picture, determining the color temperature change frequency;
and continuously shooting at least two image frames according to the color temperature change frequency.
Further, the color temperature interval determination module 502 is configured to:
acquiring a color temperature value corresponding to each image frame;
determining a color temperature interval to which each color temperature value belongs;
if the determined number of the color temperature intervals is at least two, forming the at least two color temperature intervals into a candidate color temperature interval set;
and according to the current shooting scene, determining a target color temperature interval from the candidate color temperature interval set.
Further, the color temperature interval determining module 502 is configured to determine a target color temperature interval from the candidate color temperature intervals in a centralized manner according to the current shooting scene, and includes:
determining a shooting atmosphere corresponding to a current shooting scene;
acquiring a reference color temperature interval corresponding to the shooting atmosphere according to the shooting atmosphere;
and respectively matching each candidate color temperature interval in the candidate color temperature interval set with the reference color temperature interval, and selecting the candidate color temperature interval with the highest matching degree as a target color temperature interval.
Further, the color temperature interval determination module 502 is configured to:
if the light source in the shot image is a mixed light source, determining a main light source in the mixed light source;
and taking the color temperature interval corresponding to the main light source as a target color temperature interval.
Further, the image processing module 503 is configured to:
selecting an image in the target color temperature interval from the at least two image frames;
and processing the selected image in the target color temperature interval to generate a target shooting image.
In the image capturing apparatus provided in the embodiment of the present application, first, if the image capturing module 501 detects that there is a color temperature change in the preview image, at least two image frames are continuously captured; secondly, the color temperature interval determination module 502 determines a target color temperature interval if the color temperature values of at least two image frames belong to different color temperature intervals; finally, the image processing module 503 processes at least two image frames according to the target color temperature interval, and generates a target shooting image. Compared with the shooting in the correlation technology when the environmental color temperature changes, the color temperature error of the image is large, the quality is poor, the image shooting method and the image shooting device can continuously shoot a plurality of image frames to determine the target color temperature interval when the color temperature changes in the preview image, so that the shot image can be obtained by processing the plurality of image frames according to the target color temperature interval, further the influence of the environmental color temperature change on the color temperature accuracy of the shot image is avoided, and the shooting quality is improved.
The device can execute the methods provided by all the embodiments of the application, and has corresponding functional modules and beneficial effects for executing the methods. For details of the technology not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal may include: a housing (not shown), a memory 601, a Central Processing Unit (CPU) 602 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 601 and operable on the processor 602, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU602 and the memory 601 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 601 is used for storing executable program codes; the CPU602 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 601.
The terminal further comprises: peripheral interfaces 603, RF (Radio Frequency) circuitry 605, audio circuitry 606, speakers 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other input/control devices 610, and external ports 604, which communicate via one or more communication buses or signal lines 607.
It should be understood that the illustrated terminal apparatus 600 is only one example of a terminal, and the terminal apparatus 600 may have more or less components than shown in the drawings, 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 in detail a terminal device provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 601, the memory 601 being accessible by the CPU602, the peripheral interface 603, and the like, the memory 601 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 603, said peripheral interface 603 may connect input and output peripherals of the device to the CPU602 and the memory 601.
An I/O subsystem 609, the I/O subsystem 609 may connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610, to the peripheral interface 603. The I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610. Where one or more input controllers 6092 receive electrical signals from or transmit electrical signals to other input/control devices 610, the other input/control devices 610 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 6092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 612 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. Classified by the installation method, the touch screen 612 may be: external hanging, internal or integral. Classified according to technical principles, the touch screen 612 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 612, which touch screen 612 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 612 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the processor 602.
The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch screen 612 or transmits electrical signals to the touch screen 612. The touch screen 612 detects a contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 612, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 612 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 605 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electric signal, and transmit the electric signal to the speaker 611.
The speaker 611 is used to restore the voice signal received by the smart speaker from the wireless network through the RF circuit 605 to sound and play the sound to the user.
And a power management chip 608 for supplying power and managing power to the hardware connected to the CPU602, the I/O subsystem, and the peripheral interface.
In this embodiment, the central processor 602 is configured to:
if the color temperature change in the preview picture is detected, continuously shooting at least two image frames;
if the color temperature values of the at least two image frames belong to different color temperature intervals, determining a target color temperature interval;
and processing the at least two image frames according to the target color temperature interval to generate a target shooting image.
Further, the detecting that there is a color temperature change in the preview screen includes:
and if the change value of the color temperature value of the preview picture in the preset time period is detected to exceed the preset threshold value, the color temperature change exists in the preview picture.
Further, if it is detected that there is a color temperature change in the preview screen, continuously capturing at least two image frames, including:
if the color temperature change exists in the preview picture, determining the color temperature change frequency;
and continuously shooting at least two image frames according to the color temperature change frequency.
Further, the determining a target color temperature interval if the color temperature values of the at least two image frames belong to different color temperature intervals comprises:
acquiring a color temperature value corresponding to each image frame;
determining a color temperature interval to which each color temperature value belongs;
if the determined number of the color temperature intervals is at least two, forming the at least two color temperature intervals into a candidate color temperature interval set;
and according to the current shooting scene, determining a target color temperature interval from the candidate color temperature interval set.
Further, the determining a target color temperature interval from the candidate color temperature interval set according to the current shooting scene includes:
determining a shooting atmosphere corresponding to a current shooting scene;
acquiring a reference color temperature interval corresponding to the shooting atmosphere according to the shooting atmosphere;
and respectively matching each candidate color temperature interval in the candidate color temperature interval set with the reference color temperature interval, and selecting the candidate color temperature interval with the highest matching degree as a target color temperature interval.
Further, if the color temperature values of the at least two image frames belong to different color temperature intervals, determining a target color temperature interval, including:
if the light source in the shot image is a mixed light source, determining a main light source in the mixed light source;
and taking the color temperature interval corresponding to the main light source as a target color temperature interval.
Further, the processing the at least two image frames according to the target color temperature interval to generate a target shooting image includes:
selecting an image in the target color temperature interval from the at least two image frames;
and processing the selected image in the target color temperature interval to generate a target shooting image.
Embodiments of the present application further provide a storage medium containing terminal device-executable instructions, which when executed by a terminal device processor, are configured to perform an image capturing method, including:
if the color temperature change in the preview picture is detected, continuously shooting at least two image frames;
if the color temperature values of the at least two image frames belong to different color temperature intervals, determining a target color temperature interval;
and processing the at least two image frames according to the target color temperature interval to generate a target shooting image.
Further, the detecting that there is a color temperature change in the preview screen includes:
and if the change value of the color temperature value of the preview picture in the preset time period is detected to exceed the preset threshold value, the color temperature change exists in the preview picture.
Further, if it is detected that there is a color temperature change in the preview screen, continuously capturing at least two image frames, including:
if the color temperature change exists in the preview picture, determining the color temperature change frequency;
and continuously shooting at least two image frames according to the color temperature change frequency.
Further, the determining a target color temperature interval if the color temperature values of the at least two image frames belong to different color temperature intervals comprises:
acquiring a color temperature value corresponding to each image frame;
determining a color temperature interval to which each color temperature value belongs;
if the determined number of the color temperature intervals is at least two, forming the at least two color temperature intervals into a candidate color temperature interval set;
and according to the current shooting scene, determining a target color temperature interval from the candidate color temperature interval set.
Further, the determining a target color temperature interval from the candidate color temperature interval set according to the current shooting scene includes:
determining a shooting atmosphere corresponding to a current shooting scene;
acquiring a reference color temperature interval corresponding to the shooting atmosphere according to the shooting atmosphere;
and respectively matching each candidate color temperature interval in the candidate color temperature interval set with the reference color temperature interval, and selecting the candidate color temperature interval with the highest matching degree as a target color temperature interval.
Further, if the color temperature values of the at least two image frames belong to different color temperature intervals, determining a target color temperature interval, including:
if the light source in the shot image is a mixed light source, determining a main light source in the mixed light source;
and taking the color temperature interval corresponding to the main light source as a target color temperature interval.
Further, the processing the at least two image frames according to the target color temperature interval to generate a target shooting image includes:
selecting an image in the target color temperature interval from the at least two image frames;
and processing the selected image in the target color temperature interval to generate a target shooting image.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the application recommendation operation described above, and may also perform related operations in the image capturing 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 (9)

1. An image capturing method, characterized by comprising:
if the color temperature change in the preview picture is detected, continuously shooting at least two image frames;
if the color temperature values of the at least two image frames belong to different color temperature intervals, determining a target color temperature interval;
selecting an image in the target color temperature interval from the at least two image frames, and processing the selected image in the target color temperature interval to generate a target shot image, wherein the target shot image is a finally generated shot image displayed to a user;
when the number of the selected images in the target color temperature interval is one, performing relevant post-processing operation on the selected images to generate a target shooting image; when the number of the selected images in the target color temperature interval is multiple, carrying out image fusion on the multiple selected images to obtain a generated shot image, and carrying out related post-processing operation on the generated shot image to generate a target shot image; the correlated post-processing operation includes at least one of a color-toning, a denoising, and a sharpening processing operation.
2. The method of claim 1, wherein the detecting a change in color temperature in the preview screen comprises:
and if the change value of the color temperature value of the preview picture in the preset time period is detected to exceed the preset threshold value, the color temperature change exists in the preview picture.
3. The method of claim 1, wherein the continuously capturing at least two image frames if a color temperature change in the preview screen is detected comprises:
if the color temperature change exists in the preview picture, determining the color temperature change frequency;
and continuously shooting at least two image frames according to the color temperature change frequency.
4. The method of claim 1, wherein determining a target color temperature interval if the color temperature values of the at least two image frames belong to different color temperature intervals comprises:
acquiring a color temperature value corresponding to each image frame;
determining a color temperature interval to which each color temperature value belongs;
if the determined number of the color temperature intervals is at least two, forming the at least two color temperature intervals into a candidate color temperature interval set;
and according to the current shooting scene, determining a target color temperature interval from the candidate color temperature interval set.
5. The method of claim 4, wherein determining a target color temperature interval from the set of candidate color temperature intervals according to the current shooting scene comprises:
determining a shooting atmosphere corresponding to a current shooting scene;
acquiring a reference color temperature interval corresponding to the shooting atmosphere according to the shooting atmosphere;
and respectively matching each candidate color temperature interval in the candidate color temperature interval set with the reference color temperature interval, and selecting the candidate color temperature interval with the highest matching degree as a target color temperature interval.
6. The method of claim 1, wherein determining a target color temperature interval if the color temperature values of the at least two image frames belong to different color temperature intervals comprises:
if the light source in the shot image is a mixed light source, determining a main light source in the mixed light source;
and taking the color temperature interval corresponding to the main light source as a target color temperature interval.
7. An image capturing apparatus, characterized by comprising:
the image shooting module is used for continuously shooting at least two image frames if the color temperature change in the preview picture is detected;
the color temperature interval determining module is used for determining a target color temperature interval if the color temperature values of at least two image frames continuously shot by the image shooting module belong to different color temperature intervals;
the image processing module is used for selecting an image in the target color temperature interval from the at least two image frames according to the target color temperature interval determined by the color temperature interval determining module, processing the selected image in the target color temperature interval and generating a target shot image, wherein the target shot image is a finally generated shot image displayed to a user;
when the number of the selected images in the target color temperature interval is one, performing relevant post-processing operation on the selected images to generate a target shooting image; when the number of the selected images in the target color temperature interval is multiple, carrying out image fusion on the multiple selected images to obtain a generated shot image, and carrying out related post-processing operation on the generated shot image to generate a target shot image; the correlated post-processing operation includes at least one of a color-toning, a denoising, and a sharpening processing operation.
8. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the image capturing method as claimed in any one of claims 1 to 6.
9. 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 image capturing method according to any one of claims 1 to 6 when executing said computer program.
CN201811236736.3A 2018-10-23 2018-10-23 Image shooting method and device, storage medium and mobile terminal Active CN109327691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811236736.3A CN109327691B (en) 2018-10-23 2018-10-23 Image shooting method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811236736.3A CN109327691B (en) 2018-10-23 2018-10-23 Image shooting method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN109327691A CN109327691A (en) 2019-02-12
CN109327691B true CN109327691B (en) 2021-05-04

Family

ID=65262449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811236736.3A Active CN109327691B (en) 2018-10-23 2018-10-23 Image shooting method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN109327691B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677635B (en) * 2019-10-07 2020-10-30 董磊 Data parameter field setting system
CN113029363B (en) * 2019-12-24 2022-08-16 Oppo广东移动通信有限公司 Detection method, device and equipment of mixed light source and storage medium
CN113542711B (en) * 2020-04-14 2024-08-27 青岛海信移动通信技术有限公司 Image display method and terminal
CN112601063A (en) * 2020-12-07 2021-04-02 深圳市福日中诺电子科技有限公司 Mixed color temperature white balance method
CN112791396B (en) * 2020-12-31 2023-05-30 上海米哈游天命科技有限公司 Shooting picture generation method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338383A (en) * 2013-06-25 2013-10-02 深圳市中兴移动通信有限公司 White balance calibrating method and device
CN105208364A (en) * 2014-06-27 2015-12-30 联想(北京)有限公司 Image white balance control method, device and electronic apparatus
CN107682685A (en) * 2017-10-30 2018-02-09 广东欧珀移动通信有限公司 White balance processing method and device, electronic device, and computer-readable storage medium
CN107872663A (en) * 2017-12-25 2018-04-03 广东欧珀移动通信有限公司 Image processing method and device, computer readable storage medium and computer equipment
CN107959851A (en) * 2017-12-25 2018-04-24 广东欧珀移动通信有限公司 Color temperature detection method and device, computer readable storage medium and computer equipment
CN108063934A (en) * 2017-12-25 2018-05-22 广东欧珀移动通信有限公司 Image processing method and device, computer readable storage medium and computer device
CN108111831A (en) * 2017-12-25 2018-06-01 广东欧珀移动通信有限公司 Photographing method, imaging apparatus, computer-readable storage medium, and computer device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338383A (en) * 2013-06-25 2013-10-02 深圳市中兴移动通信有限公司 White balance calibrating method and device
CN105208364A (en) * 2014-06-27 2015-12-30 联想(北京)有限公司 Image white balance control method, device and electronic apparatus
CN107682685A (en) * 2017-10-30 2018-02-09 广东欧珀移动通信有限公司 White balance processing method and device, electronic device, and computer-readable storage medium
CN107872663A (en) * 2017-12-25 2018-04-03 广东欧珀移动通信有限公司 Image processing method and device, computer readable storage medium and computer equipment
CN107959851A (en) * 2017-12-25 2018-04-24 广东欧珀移动通信有限公司 Color temperature detection method and device, computer readable storage medium and computer equipment
CN108063934A (en) * 2017-12-25 2018-05-22 广东欧珀移动通信有限公司 Image processing method and device, computer readable storage medium and computer device
CN108111831A (en) * 2017-12-25 2018-06-01 广东欧珀移动通信有限公司 Photographing method, imaging apparatus, computer-readable storage medium, and computer device

Also Published As

Publication number Publication date
CN109327691A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN109327691B (en) Image shooting method and device, storage medium and mobile terminal
CN107992794B (en) A kind of biopsy method, device and storage medium
CN109523485B (en) Image color correction method, device, storage medium and mobile terminal
CN109547701B (en) Image capturing method, device, storage medium and electronic device
CN107205125B (en) An image processing method, device, terminal and computer-readable storage medium
CN109120863B (en) Shooting method, shooting device, storage medium and mobile terminal
CN109040524B (en) Artifact removal method, device, storage medium and terminal
CN114641982B (en) System for performing ambient light image correction
CN108881875B (en) Image white balance processing method and device, storage medium and terminal
CN109951627A (en) Image processing method, device, storage medium and electronic device
CN109218621B (en) Image processing method, device, storage medium and mobile terminal
KR20200117695A (en) Electronic device and method for controlling camera using external electronic device
CN109167893B (en) Shot image processing method and device, storage medium and mobile terminal
CN112672069B (en) Exposure method and apparatus
CN107025441B (en) Skin color detection method and device
CN109348206A (en) Image white balance processing method and device, storage medium and mobile terminal
CN109040729B (en) Image white balance correction method and device, storage medium and terminal
CN109120864B (en) Filling light processing method, device, storage medium and mobile terminal
CN113596344A (en) Shooting processing method and device, electronic equipment and readable storage medium
CN108665510B (en) Rendering method and device of continuous shooting image, storage medium and terminal
CN115330610B (en) Image processing method, device, electronic device and storage medium
CN110225331B (en) Selectively applying color to an image
CN116055712A (en) Method, device, chip, electronic equipment, and medium for determining film yield
CN109218620B (en) Photographing method and device based on ambient brightness, storage medium and mobile terminal
CN109561291A (en) Color temperature compensation method and 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