CN111246114A - Photographing processing method and device, terminal equipment and storage medium - Google Patents
Photographing processing method and device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN111246114A CN111246114A CN202010170966.5A CN202010170966A CN111246114A CN 111246114 A CN111246114 A CN 111246114A CN 202010170966 A CN202010170966 A CN 202010170966A CN 111246114 A CN111246114 A CN 111246114A
- Authority
- CN
- China
- Prior art keywords
- white balance
- image
- target
- balance adjustment
- camera
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Color Television Image Signal Generators (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The application provides a photographing processing method, a photographing processing device, terminal equipment and a storage medium, wherein the method comprises the following steps: judging whether a first image acquired by a current target camera meets a preset condition or not; if yes, starting N auxiliary cameras to acquire N second images by using the N auxiliary cameras; respectively carrying out statistical analysis on the first image and the N second images to determine target white balance adjustment parameters; and performing white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter to generate a target image. According to the method, when the image acquired by the target camera meets the preset condition, the auxiliary camera is started, the white balance of the image acquired by the target camera is adjusted by using the image acquired by the target camera and the image acquired by the auxiliary camera together, so that the white balance of the image acquired by the target camera is adjusted in an auxiliary manner through the image information acquired by the auxiliary camera, the accuracy of the white balance is improved, and the shooting effect is improved.
Description
Technical Field
The present application relates to the field of terminal device technologies, and in particular, to a photographing processing method and apparatus, a terminal device, and a storage medium.
Background
White balance refers to the ability to return white objects to white under any light source that captures a scene. The white balance control of the camera is a process for preventing the color cast of the photograph. At present, in the prior art, when white balance processing is performed, it is common to perform white balance determination based on light reflected from a photographed object to a camera by statistically analyzing color characteristics of the light, and perform photographing according to a determination result.
For monochromatic scenes, such as two scenes, namely a red wall and white light, and a white wall and red light, human eyes can restore the two scenes to a certain extent, but the two scenes cannot be distinguished by the white balance processing method, the white balance judgment accuracy is low, the color cast is serious, and the shooting effect is not ideal.
Disclosure of Invention
The application provides a photographing processing method and device, terminal equipment and a storage medium.
An embodiment of an aspect of the present application provides a photographing processing method, including:
judging whether a first image acquired by a current target camera meets a preset condition or not;
if so, starting N auxiliary cameras to acquire N second images by using the N auxiliary cameras, wherein N is an integer greater than zero;
respectively carrying out statistical analysis on the first image and the N second images to determine target white balance adjustment parameters;
and performing white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter to generate a target image.
According to the photographing processing method, whether a first image acquired by a current target camera meets a preset condition is judged; if yes, starting N auxiliary cameras to acquire N second images by using the N auxiliary cameras; respectively carrying out statistical analysis on the first image and the N second images to determine target white balance adjustment parameters; and performing white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter to generate a target image. In this embodiment, when the image that the target camera gathered satisfies the predetermined condition, start supplementary camera, utilize the image that the target camera gathered and the image that supplementary camera gathered, adjust the white balance of the image that the target camera gathered jointly, from this through the image information that supplementary camera gathered, the image white balance of supplementary adjustment target camera gathering to improve the accuracy of white balance, promoted the shooting effect.
Another embodiment of the present application provides a photographing processing apparatus, including:
the judging module is used for judging whether a first image acquired by the current target camera meets a preset condition or not;
the control module is used for starting N auxiliary cameras when a first image acquired by a current target camera meets a preset condition so as to acquire N second images by utilizing the N auxiliary cameras, wherein N is an integer larger than zero;
the first determining module is used for respectively carrying out statistical analysis on the first image and the N second images and determining a target white balance adjusting parameter;
and the generating module is used for carrying out white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter to generate a target image.
The device of the embodiment of the application judges whether a first image acquired by a current target camera meets a preset condition; if yes, starting N auxiliary cameras to acquire N second images by using the N auxiliary cameras; respectively carrying out statistical analysis on the first image and the N second images to determine target white balance adjustment parameters; and performing white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter to generate a target image. In this embodiment, when the image that the target camera gathered satisfies the predetermined condition, start supplementary camera, utilize the image that the target camera gathered and the image that supplementary camera gathered, adjust the white balance of the image that the target camera gathered jointly, from this through the image information that supplementary camera gathered, the image white balance of supplementary adjustment target camera gathering to improve the accuracy of white balance, promoted the shooting effect.
Another embodiment of the present application provides a terminal device, including a processor and a memory;
wherein, the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the photographing processing method according to the above embodiment.
Another embodiment of the present application provides a non-transitory computer-readable storage medium, and the program is executed by a processor to implement the photographing processing method according to the above embodiment.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a photographing processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another photographing processing method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a photographing processing apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The photographing processing method, apparatus, terminal device, and storage medium according to the embodiments of the present application are described below with reference to the accompanying drawings.
The embodiment of the application provides a photographing processing method aiming at the problems of low accuracy of white balance judgment, serious color cast and unsatisfactory photographing effect of the existing white balance processing method.
According to the photographing processing method, when the image collected by the target camera meets the preset condition, the auxiliary camera is started, the white balance of the image collected by the target camera is adjusted by utilizing the image collected by the target camera and the image collected by the auxiliary camera, and therefore the white balance of the image collected by the target camera is adjusted in an auxiliary mode through the image information collected by the auxiliary camera, the accuracy of the white balance is improved, and the photographing effect is improved.
Fig. 1 is a schematic flowchart of a photographing processing method according to an embodiment of the present application.
The photographing processing method provided by the embodiment of the application is executed by the photographing processing device provided by the embodiment of the application, and the device can be configured on terminal equipment with a plurality of cameras, such as a mobile phone, a PAD and the like, so that the white balance of images acquired by a target camera is adjusted in an auxiliary manner by utilizing the images acquired by an auxiliary camera, the accuracy of the white balance is improved, and the photographing effect is improved.
As shown in fig. 1, the photographing processing method includes:
In this embodiment, the terminal device has a plurality of cameras, such as a front camera and a rear camera. Wherein, leading camera and rear camera all include but not limited to: a main camera, a wide-angle camera, a super wide-angle camera, and the like.
For the convenience of distinguishing, a camera currently used for shooting an image is called a target camera, that is, a camera corresponding to a preview image. For example, when the main camera is used for shooting, the preview image on the screen is an image collected by the main camera, and the main camera is a target camera.
In this embodiment, after the target camera collects the first image, whether the first image collected by the current target camera meets a preset condition may be determined. For example, it is determined whether the color type of the first image is less than the preset number, or whether the number of objects in the first image is less than the preset number.
And 102, if the first image acquired by the current target camera meets a preset condition, starting N auxiliary cameras to acquire N second images by using the N auxiliary cameras.
In the conventional white balance processing method, white balance is determined based on light reflected by a shot object to a target camera, and then the white balance of an image collected by the target camera is adjusted to generate a final image. For some scenes, the white balance judgment is carried out only by using the image collected by the target camera, so that the accuracy is low and the shooting effect is poor.
Based on this, in this embodiment, if the first image acquired by the current target camera satisfies the preset condition, it may be considered that the white balance is determined based on only the first image acquired by the current target camera, and the accuracy is low, N auxiliary cameras may be started, and N second images are acquired by using the N auxiliary cameras. Here, N is an integer greater than zero, i.e., each auxiliary camera captures a second image.
For example, 2 auxiliary cameras are started and are respectively a front-mounted super-wide-angle camera and a rear-mounted super-wide-angle camera, and then the front-mounted super-wide-angle camera and the rear-mounted super-wide-angle camera respectively acquire one image to obtain two second images.
The image information of the second image is different from the image information of the first image, the image information of the second image may be a supplement to the image information of the first image, the second image may include the content of the first screen, the second screen may partially overlap the first screen, the second screen may completely differ from the content of the first screen, and the like.
As an example, when the color statistics information is less, such as a large block of a solid object and an object with a single color, which are both difficult to determine, the auxiliary camera may be activated.
As another example, the auxiliary camera may also be activated when the light source is complex, such as a multi-color light mixing scene.
In this embodiment, when the auxiliary camera is determined, if shooting is performed by using the rear camera, the front camera may be used as the auxiliary camera.
For example, when a rear camera is directed to a scene such as a solid grass or a wall, it is difficult to confirm whether the scene is a white light + color object or a color light + white object because all objects are of the same color in the field of view. However, at this time, the front-facing camera may capture a human face, the sky, or other backgrounds, and may obtain the color of the current light source, thereby calculating the color of the object, and then the front-facing camera may be used as the auxiliary camera.
Or, the auxiliary cameras can be determined according to the visual angles of the cameras, wherein the larger the visual angle is, the richer the color of the collected image is, and the more the white balance judgment is facilitated. For example, when shooting with a rear wide-angle camera, the front wide-angle camera can be used as an auxiliary camera. For another example, when shooting with the rear main camera, the rear wide-angle camera can be used as the auxiliary camera.
Or, the auxiliary camera is determined according to the brightness of the shooting scene. For example, when shooting is performed in a dark place, the auxiliary camera with a large light-entering amount can be selected.
Or, the terminal device provides a combination of multiple preset target cameras and auxiliary cameras, for example, a front camera + a rear camera, a rear main camera + a rear wide-angle camera, a rear tele camera + a rear wide-angle camera, and the like, and the user can select a combination mode according to the shooting requirement.
For example, the user selects a combination of the rear telephoto camera and the rear wide-angle camera, and it is described that the rear telephoto camera is the target camera and the rear wide-angle camera is the auxiliary camera, and when an image collected by the rear telephoto camera meets a preset condition, the rear wide-angle camera is started to collect the image by using the rear wide-angle camera.
And 103, respectively carrying out statistical analysis on the first image and the N second images to determine target white balance adjustment parameters.
In this embodiment, the first image and the N second images are respectively subjected to statistical analysis, specifically, the colors in the images are subjected to statistical analysis to obtain corresponding statistical results, and the target white balance adjustment parameter is determined according to the statistical results respectively corresponding to the first image and the N second images. The target white balance adjustment parameter is represented by a color temperature value, and may be an adjustment amount of white balance, and a color temperature value that is increased or decreased based on the current white balance.
Or, if the color in the first image is single, the target white balance adjustment parameter may be directly determined according to the N statistical results corresponding to the N second images.
In the prior art, white balance judgment is performed only on the basis of light reflected by a shot object to a target camera, so that the accuracy is low and the shooting effect is poor. In this embodiment, the white balance adjustment parameter is determined jointly by using the first image acquired by the target camera and the images acquired by the N auxiliary cameras, so that the target white balance adjustment parameter corresponding to the target camera is determined in an auxiliary manner by using the image information acquired by the N auxiliary cameras, and the white balance accuracy is improved.
And 104, performing white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter to generate a target image.
After the target white balance adjustment parameter is obtained, the target white balance is determined according to the target white balance adjustment parameter and the current white balance of the first image, and then corresponding color tones are added into the first image according to the target white balance to generate a target image.
For example, when sunset is shot, the determined color temperature value of the target white balance is high, the camera considers that the color temperature of the picture is too high at the moment, so that red is added to neutralize the picture, and the picture becomes redder instead, so that a good shooting effect is achieved.
The photographing processing method can be applied to scenes containing pure colors, also can be applied to mixed colors, complex scenes and the like, can avoid color cast caused by the fact that a single camera aligns to a single color scene to shoot by starting the auxiliary camera and utilizing the auxiliary camera to assist the white balance processing of the target camera, thereby solving the problem of serious color cast caused by the white balance of the pure color scene and also improving the color accuracy of the mixed colors and the complex scenes.
According to the photographing processing method, whether a first image acquired by a current target camera meets a preset condition is judged; if yes, starting N auxiliary cameras to acquire N second images by using the N auxiliary cameras; respectively carrying out statistical analysis on the first image and the N second images to determine target white balance adjustment parameters; and performing white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter to generate a target image. In this embodiment, when the image that the target camera gathered satisfies the predetermined condition, start supplementary camera, utilize the image that the target camera gathered and the image that supplementary camera gathered, adjust the white balance of the image that the target camera gathered jointly, from this through the image information that supplementary camera gathered, the image white balance of supplementary adjustment target camera gathering to improve the accuracy of white balance, promoted the shooting effect.
In practical applications, the more uniform the color, the more difficult it is to judge the white balance. In an embodiment of the application, when determining whether the first image acquired by the current target camera meets the preset condition, the statistical analysis may be performed on the first image to obtain a color statistical characteristic of the first image, and then it is determined whether the color statistical characteristic corresponding to the first image meets the preset condition. The color statistical characteristics may be, among others, color histograms, gray world characteristics, light source color temperature estimates, and so on.
As an example, the first image may be statistically analyzed, a one-dimensional and two-dimensional color histogram of the first image is obtained, and then whether the frequency of occurrence of each color point in the color histogram satisfies a preset condition is determined. For example, the abscissa of the color histogram is a color space, the ordinate is the number of pixels of the color, and the preset condition may be that the color histogram is distributed in a color, or is evenly distributed in several confusable colors.
As another example, a statistical analysis is performed on the first image, a gray world characteristic of the first image is obtained, then a color mean value of the first image is determined according to the gray world characteristic, and whether the color mean value satisfies a preset condition is determined. For example, the preset condition is that the color mean is greater than a preset first color value or less than a preset second color value, where the first color value is greater than the second color value.
According to the photographing processing method, when whether the first image acquired by the current target camera meets the preset condition is judged, whether the color statistical characteristic corresponding to the first image meets the preset condition is judged, and the accuracy of judgment is improved.
In practical application, energy is consumed when the camera works, and if the residual energy of the terminal is small, the auxiliary camera is continuously started, which may cause that the terminal cannot complete shooting.
Based on this, in order to improve and ensure that the terminal device can shoot by using the shooting processing method, in an embodiment of the present application, before starting the N auxiliary cameras to acquire N second images by using the N auxiliary cameras, it is determined that the current remaining power of the terminal where the target camera is located is greater than the first threshold. The first threshold value can be set according to actual needs.
When the terminal camera is used for the first time, the terminal initializes the camera, and can prompt the user whether to start the function of starting the auxiliary camera or not so as to confirm whether to start the auxiliary camera or not when the user subsequently uses the camera. If the user confirms not to use the function, the auxiliary camera is not started when the subsequent user uses the camera. If the user confirms to use the function, the user can be prompted to set the corresponding relation between the terminal residual capacity and the number of the started auxiliary cameras, and the corresponding relation between the terminal residual capacity set by the user and the number of the started cameras can also be directly provided.
For example, when the remaining power of the terminal is greater than 70%, 2 auxiliary cameras can be started; when the residual electric quantity of the terminal is less than or equal to 70% and more than 40%, 1 auxiliary camera can be started; and when the residual electric quantity of the terminal is less than 40%, the auxiliary camera is not started.
Then, after determining that the first image acquired by the current target camera meets the preset condition, judging whether the residual electric quantity of the terminal where the target camera is located is larger than a first threshold value according to the corresponding relation between the set residual electric quantity of the terminal and the number of the started auxiliary cameras, and if determining that the current residual electric quantity of the terminal where the target camera is located is larger than the first threshold value, starting N auxiliary cameras to acquire N second images by utilizing the N auxiliary cameras, so that the terminal can be ensured to finish shooting.
According to the photographing processing method, before the N auxiliary cameras are started to acquire the N second images by using the N auxiliary cameras, the terminal can be ensured to complete white balance processing to generate the target image by determining that the current residual electric quantity of the terminal where the target camera is located is larger than the first threshold value.
Because the auxiliary camera is started, negative influences such as electric quantity consumption, heating and the like can be brought, and then in order to improve the personalized requirements of the user, in one embodiment of the application, before the auxiliary camera is started, the user can be prompted whether to start the auxiliary camera. If the user confirms that the auxiliary cameras are started, the terminal can acquire a control instruction which is sent by the user and used for indicating the N auxiliary cameras, and the terminal starts the N auxiliary cameras according to the acquired control instruction for starting the auxiliary cameras, so that the N auxiliary cameras can acquire images.
According to the photographing processing method, before the N auxiliary cameras are started to acquire the N second images by using the N auxiliary cameras, the control instruction sent by the user and used for instructing to start the N auxiliary cameras is acquired. Therefore, before the auxiliary camera is started, the user is prompted whether to start the auxiliary camera, and the user determines whether to start the auxiliary camera, so that the individual requirements of the user are improved.
In practical applications, a terminal may have multiple cameras, and different types of cameras may have different energy consumptions. Based on this, the current remaining power of the terminal may be used as a basis for determining the auxiliary cameras, and in order to ensure that the terminal can complete white balance processing to generate a target image, in an embodiment of the present application, before starting the N auxiliary cameras to acquire N second images by using the N auxiliary cameras, the type and number of the auxiliary cameras to be started may be determined according to the current remaining power of the terminal where the target camera is located.
Specifically, the terminal stores energy consumption conditions of each camera in advance, and determines the types and the number of the cameras which can enable the terminal to complete the photographing processing method under the current remaining electric quantity according to the current remaining electric quantity and the energy consumption conditions of each camera.
More specifically, if the current remaining power is greater than the first power threshold, the current remaining power is considered to be sufficient, and the auxiliary cameras to be started may be determined according to the viewing angles of the cameras.
For example, current residual capacity 80% is greater than first electric quantity threshold value 60%, and residual capacity is sufficient, and current target camera is rearmounted main camera, because wide angle camera visual angle is wider, so can be with rearmounted wide angle camera and leading wide angle camera, these two cameras as the supplementary camera of waiting to start.
If the current residual capacity is smaller than the second capacity threshold value, the current residual capacity is considered to be less, and the auxiliary cameras to be started can be determined according to the energy consumption condition of each camera. Wherein the first power threshold is greater than the second power threshold.
For example, when the current remaining power is 40%, a camera which has lower energy consumption and whose shot image information is different from the first image information may be used as an auxiliary camera to be started, and white balance adjustment may be performed while saving power. If the current remaining capacity is 20%, the auxiliary camera may not be started.
According to the photographing processing method, before the N auxiliary cameras are started to acquire the N second images by using the N auxiliary cameras, the type and the number of the auxiliary cameras to be started are determined according to the current residual electric quantity of the terminal where the target camera is located. Therefore, the type and the number of the auxiliary cameras to be started are determined according to the current residual capacity of the terminal, so that the terminal can ensure white balance processing under the residual capacity, and a target image is generated.
The first image and the second image are respectively subjected to statistical analysis, and when the target white balance adjustment parameter is determined, the corresponding white balance adjustment parameter can be determined according to the color statistical characteristics of the images, so that the white balance adjustment parameter is obtained according to the two images, and the final white balance adjustment parameter is determined. Fig. 2 is a schematic flow chart of another photographing processing method provided in the embodiment of the present application.
As shown in fig. 2, the above-mentioned performing statistical analysis on the first image and the second image respectively to determine the target white balance adjustment parameter includes:
In this embodiment, the number of pixels corresponding to each color in the first image acquired by the current target camera is counted to obtain a color statistical characteristic, which is referred to as a first color statistical characteristic for convenience of distinction. Similarly, a second image acquired by the auxiliary camera is also subjected to statistical analysis to obtain a second color statistical characteristic. Wherein the color statistics may be color histograms, gray world characteristics, light source color temperature estimates, and the like.
As an example, the statistical analysis may be performed on the first image, a one-dimensional and two-dimensional color histogram of the first image is obtained, and then the color of the ambient light is estimated according to the frequency of occurrence of each color point in the color histogram, so as to determine the color temperature of the ambient light according to the color of the ambient light, and further determine the first white balance adjustment parameter according to the current white balance and the white balance corresponding to the color temperature of the ambient light.
As another example, the statistical analysis is performed on the first image to obtain a gray world characteristic of the first image, then the offset between the color mean value and the gray of the first image is determined according to the gray world characteristic to confirm the color of the light source, then the color temperature is determined according to the color of the light source, and then the first white balance adjustment parameter is determined according to the current white balance and the white balance corresponding to the color temperature of the light source.
As another example, the color temperature of the light source may be estimated for the first image, for example, the brightest region may be the light source and the light source reflection region, and the surrounding color of the image may be regarded as the color of the light source, so that the color temperature may be determined according to the color of the light source, and then the first white balance adjustment parameter may be determined according to the current white balance and the white balance corresponding to the color temperature of the light source.
In this embodiment, a method the same as the method for determining the first white balance adjustment parameter may be adopted, and the N second white balance adjustment parameters are determined according to the N second color statistical characteristics, that is, one second white balance adjustment parameter is determined according to each second color statistical characteristic, and the specific process is not described again.
And 204, determining a target white balance adjustment parameter according to the first white balance adjustment parameter and the N second white balance adjustment parameters by adopting a preset rule.
In this embodiment, an average value of the first white balance adjustment parameter and the N second white balance adjustment parameters may be calculated, and the average value may be used as the target white balance adjustment parameter. Alternatively, if the number of colors included in the first image is smaller than that of each of the second images, the average of the N second white balance adjustment parameters may be directly used as the target white balance adjustment parameter.
After the target white balance parameter is obtained, the white balance of the first image may be adjusted to the target white balance based on the current white balance of the first image according to the target white balance adjustment parameter, and the white balance processing may be performed on the first image according to the target white balance to generate the target image.
The photographing processing method of the embodiment of the application determines a first color statistical characteristic corresponding to the first image and N second color statistical characteristics corresponding to the N second images by performing statistical analysis on the first image and the N second images respectively when determining the target white balance adjustment parameter, then determines a first white balance adjustment parameter according to the first color statistical characteristic, determines N second white balance adjustment parameters according to the second color statistical characteristic, and then determines the target white balance adjustment parameter according to the first white balance adjustment parameter and the N second white balance adjustment parameters by using a preset rule. Therefore, the white balance adjustment parameters determined based on the auxiliary camera are used for determining the target white balance adjustment parameters of the first image, the white balance accuracy is improved, and the shooting effect is improved.
In practical application, image information acquired by different cameras may be different, so that the accuracy of white balance judgment is different. Based on this, in one embodiment of the present application, weights of the target camera and the auxiliary camera may be determined, and the target white balance adjustment parameter is calculated according to the weights.
Specifically, before the target white balance adjustment parameter is determined, a first weight of the target camera is determined according to the first color statistical characteristic, and N second weights of N auxiliary cameras are determined according to the N second color statistical characteristics, that is, the second weight of each auxiliary camera is determined according to the second color statistical characteristic obtained by each auxiliary camera, so that N second weights can be obtained.
The weight is used to indicate the weight occupied by the camera in calculating the target white balance adjustment parameter, for example, the distribution of pixel points in the color histogram is concentrated in one color, and the smaller the weight, the more unique the color, and the smaller the weight.
When the target white balance adjustment parameter is determined according to the first white balance adjustment parameter and the N second white balance adjustment parameters, weighted summation may be performed according to the first weight, the first white balance adjustment parameter, the N second weights, and the N second white balance adjustment parameters, and an obtained result is used as the target white balance adjustment parameter.
In the photographing processing method according to the embodiment of the application, before determining the target white balance adjustment parameter, the first weight of the target camera and the N second weights of the N auxiliary cameras may be determined according to the first color statistical characteristic and the second color statistical characteristic, and when determining the target white balance adjustment parameter according to the first white balance adjustment parameter and the N second white balance adjustment parameters, the target white balance adjustment parameter may be determined according to the first weight, the first white balance adjustment parameter, the N second weights and the N second white balance adjustment parameters. Therefore, the target white balance adjustment parameters are calculated according to the weight of the camera, and the white balance accuracy is improved.
In order to implement the foregoing embodiment, an embodiment of the present application further provides a photographing processing apparatus. Fig. 3 is a schematic structural diagram of a photographing processing apparatus according to an embodiment of the present application.
As shown in fig. 3, the photographing processing apparatus includes: a judging module 310, a control module 320, a first determining module 330, and a generating module 340.
The judging module 310 is configured to judge whether a first image acquired by a current target camera meets a preset condition;
the control module 320 is configured to start N auxiliary cameras when a first image acquired by a current target camera meets a preset condition, so as to acquire N second images by using the N auxiliary cameras, where N is an integer greater than zero;
the first determining module 330 is configured to perform statistical analysis on the first image and the N second images, respectively, and determine a target white balance adjustment parameter;
the generating module 340 is configured to perform white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter, so as to generate a target image.
In a possible implementation manner of the embodiment of the present application, the determining module 310 is specifically configured to:
and judging whether the color statistical characteristics corresponding to the first image meet preset conditions.
In a possible implementation manner of the embodiment of the present application, the apparatus may further include:
and the second determining module is used for determining that the current residual electric quantity of the terminal where the target camera is located is greater than the first threshold value.
In a possible implementation manner of the embodiment of the present application, the apparatus may further include:
and the acquisition module is used for acquiring a control instruction which is sent by a user and used for instructing to start the N auxiliary cameras.
In a possible implementation manner of the embodiment of the present application, the apparatus may further include:
and the third determining module is used for determining the type and the number of the auxiliary cameras to be started according to the current residual electric quantity of the terminal where the target camera is located.
In a possible implementation manner of this embodiment of the present application, the first determining module 330 may include:
the first determining unit is used for respectively carrying out statistical analysis on the first image and the N second images and determining a first color statistical characteristic corresponding to the first image and N second color statistical characteristics corresponding to the N second images;
a second determining unit, configured to determine a first white balance adjustment parameter according to the first color statistical characteristic;
a third determining unit, configured to determine N second white balance adjustment parameters according to the N second color statistical characteristics;
and the fourth determining unit is used for determining the target white balance adjusting parameter according to the first white balance adjusting parameter and the N second white balance adjusting parameters by adopting a preset rule.
In a possible implementation manner of this embodiment of the application, the first determining module 330 further includes:
a fifth determining unit, configured to determine a first weight of the target camera and N second weights of the N auxiliary cameras according to the first color statistical characteristic and the N second color statistical characteristics;
the fourth determining unit is specifically configured to: and determining the target white balance adjustment parameter according to the first weight, the first white balance adjustment parameter, the N second weights and the N second white balance adjustment parameters.
It should be noted that the above explanation of the embodiment of the photographing processing method is also applicable to the photographing processing apparatus of the embodiment, and therefore is not repeated herein.
The photographing processing device of the embodiment of the application judges whether a first image acquired by a current target camera meets a preset condition; if yes, starting N auxiliary cameras to acquire N second images by using the N auxiliary cameras; respectively carrying out statistical analysis on the first image and the N second images to determine target white balance adjustment parameters; and performing white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter to generate a target image. In this embodiment, when the image that the target camera gathered satisfies the predetermined condition, start supplementary camera, utilize the image that the target camera gathered and the image that supplementary camera gathered, adjust the white balance of the image that the target camera gathered jointly, from this through the image information that supplementary camera gathered, the image white balance of supplementary adjustment target camera gathering to improve the accuracy of white balance, promoted the shooting effect.
In order to implement the foregoing embodiments, an embodiment of the present application further provides a terminal device, including a processor and a memory;
wherein, the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the photographing processing method according to the above embodiment.
In order to implement the foregoing embodiments, the present application further proposes a non-transitory computer-readable storage medium, which when executed by a processor implements the photographing processing method according to the foregoing embodiments.
In the description of the present specification, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (16)
1. A photographing processing method, comprising:
judging whether a first image acquired by a current target camera meets a preset condition or not;
if so, starting N auxiliary cameras to acquire N second images by using the N auxiliary cameras, wherein N is an integer greater than zero;
respectively carrying out statistical analysis on the first image and the N second images to determine target white balance adjustment parameters;
and performing white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter to generate a target image.
2. The method of claim 1, wherein the determining whether the first image captured by the current target camera satisfies a predetermined condition includes:
and judging whether the color statistical characteristics corresponding to the first image meet preset conditions.
3. The method of claim 1, wherein prior to activating the N secondary cameras to capture N second images with the N secondary cameras, further comprising:
and determining that the current residual capacity of the terminal where the target camera is located is greater than a first threshold value.
4. The method of claim 1, wherein prior to activating the N secondary cameras to capture N second images with the N secondary cameras, further comprising:
and acquiring a control instruction which is sent by a user and used for instructing to start the N auxiliary cameras.
5. The method of claim 1, wherein prior to activating the N secondary cameras to capture N second images with the N secondary cameras, further comprising:
and determining the type and the number of the auxiliary cameras to be started according to the current residual electric quantity of the terminal where the target camera is located.
6. The method according to any one of claims 1-5, wherein said performing a statistical analysis on said first image and said N second images, respectively, to determine a target white balance adjustment parameter comprises:
respectively carrying out statistical analysis on the first image and the N second images to determine a first color statistical characteristic corresponding to the first image and N second color statistical characteristics corresponding to the N second images;
determining a first white balance adjustment parameter according to the first color statistical characteristic;
determining N second white balance adjustment parameters according to the N second color statistical characteristics;
and determining the target white balance adjustment parameter according to the first white balance adjustment parameter and the N second white balance adjustment parameters by adopting a preset rule.
7. The method of claim 6, wherein prior to determining the target white balance adjustment parameter, further comprising:
determining a first weight of the target camera and N second weights of the N auxiliary cameras according to the first color statistical characteristics and the N second color statistical characteristics;
the determining the target white balance adjustment parameter includes:
and determining the target white balance adjustment parameter according to the first weight, the first white balance adjustment parameter, the N second weights and the N second white balance adjustment parameters.
8. A photographing processing apparatus, comprising:
the judging module is used for judging whether a first image acquired by the current target camera meets a preset condition or not;
the control module is used for starting N auxiliary cameras when a first image acquired by a current target camera meets a preset condition so as to acquire N second images by utilizing the N auxiliary cameras, wherein N is an integer greater than zero;
the first determining module is used for respectively carrying out statistical analysis on the first image and the N second images and determining a target white balance adjusting parameter;
and the generating module is used for carrying out white balance adjustment on the first image acquired by the target camera according to the target white balance adjustment parameter to generate a target image.
9. The apparatus of claim 8, wherein the determining module is specifically configured to:
and judging whether the color statistical characteristics corresponding to the first image meet preset conditions.
10. The apparatus of claim 8, further comprising:
and the second determining module is used for determining that the current residual electric quantity of the terminal where the target camera is located is greater than the first threshold value.
11. The method of claim 8, further comprising:
and the acquisition module is used for acquiring a control instruction which is sent by a user and used for instructing to start the N auxiliary cameras.
12. The apparatus of claim 8, further comprising:
and the third determining module is used for determining the type and the number of the auxiliary cameras to be started according to the current residual electric quantity of the terminal where the target camera is located.
13. The apparatus of any of claims 8-12, wherein the first determining module comprises:
a first determining unit, configured to perform statistical analysis on the first image and the N second images, respectively, and determine a first color statistical characteristic corresponding to the first image and N second color statistical characteristics corresponding to the N second images;
a second determining unit, configured to determine a first white balance adjustment parameter according to the first color statistical characteristic;
a third determining unit, configured to determine N second white balance adjustment parameters according to the N second color statistical characteristics;
a fourth determining unit, configured to determine the target white balance adjustment parameter according to the first white balance adjustment parameter and the N second white balance adjustment parameters by using a preset rule.
14. The apparatus of claim 13, wherein the first determining module further comprises:
a fifth determining unit, configured to determine a first weight of the target camera and N second weights of the N auxiliary cameras according to the first color statistical characteristic and the N second color statistical characteristics;
the fourth determining unit is specifically configured to: and determining the target white balance adjustment parameter according to the first weight, the first white balance adjustment parameter, the N second weights and the N second white balance adjustment parameters.
15. A terminal device comprising a processor and a memory;
wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the photographing processing method according to any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the photographing processing method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010170966.5A CN111246114B (en) | 2020-03-12 | 2020-03-12 | Photographing processing method and device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010170966.5A CN111246114B (en) | 2020-03-12 | 2020-03-12 | Photographing processing method and device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111246114A true CN111246114A (en) | 2020-06-05 |
CN111246114B CN111246114B (en) | 2021-09-24 |
Family
ID=70865870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010170966.5A Active CN111246114B (en) | 2020-03-12 | 2020-03-12 | Photographing processing method and device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111246114B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113177886A (en) * | 2021-04-14 | 2021-07-27 | RealMe重庆移动通信有限公司 | Image processing method, image processing device, computer equipment and readable storage medium |
CN113573037A (en) * | 2021-06-24 | 2021-10-29 | 维沃移动通信(杭州)有限公司 | Image processing method and device and electronic equipment |
CN113766141A (en) * | 2021-09-29 | 2021-12-07 | 维沃移动通信有限公司 | Image information processing method and device |
CN113873211A (en) * | 2020-06-30 | 2021-12-31 | 北京小米移动软件有限公司 | Photographing method and device, electronic equipment and storage medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103402102A (en) * | 2013-07-17 | 2013-11-20 | 广东欧珀移动通信有限公司 | Double-camera picture pick-up system and white balance adjustment method and device thereof |
CN105163028A (en) * | 2015-09-11 | 2015-12-16 | 青岛海信移动通信技术股份有限公司 | Method and device for controlling two cameras |
US20170111587A1 (en) * | 2015-10-14 | 2017-04-20 | Garmin Switzerland Gmbh | Navigation device wirelessly coupled with auxiliary camera unit |
CN106851111A (en) * | 2017-03-20 | 2017-06-13 | 惠州Tcl移动通信有限公司 | Dual camera method for controlling power supply, system and mobile terminal based on mobile terminal |
CN107343190A (en) * | 2017-07-25 | 2017-11-10 | 广东欧珀移动通信有限公司 | White balance adjusting method, apparatus and terminal device |
CN107613198A (en) * | 2017-09-08 | 2018-01-19 | 上海创功通讯技术有限公司 | The image pickup method and device of dual camera |
US10200623B1 (en) * | 2017-10-17 | 2019-02-05 | Qualcomm Incorporated | Image capture setting determination in flash photography operations |
CN109788268A (en) * | 2018-12-25 | 2019-05-21 | 努比亚技术有限公司 | Terminal and its white balance correction control method and computer readable storage medium |
US20190335150A1 (en) * | 2018-04-26 | 2019-10-31 | Qualcomm Incorporated | Systems and methods for color balancing |
CN110398870A (en) * | 2019-07-23 | 2019-11-01 | 武汉大势智慧科技有限公司 | A kind of multiphase aircrew cooperation acquisition holder and its control system |
CN110460826A (en) * | 2019-08-12 | 2019-11-15 | Oppo广东移动通信有限公司 | White balancing treatment method, processing unit and mobile terminal |
CN110798615A (en) * | 2019-10-14 | 2020-02-14 | 深圳酷派技术有限公司 | Shooting method, shooting device, storage medium and terminal |
-
2020
- 2020-03-12 CN CN202010170966.5A patent/CN111246114B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103402102A (en) * | 2013-07-17 | 2013-11-20 | 广东欧珀移动通信有限公司 | Double-camera picture pick-up system and white balance adjustment method and device thereof |
CN105163028A (en) * | 2015-09-11 | 2015-12-16 | 青岛海信移动通信技术股份有限公司 | Method and device for controlling two cameras |
US20170111587A1 (en) * | 2015-10-14 | 2017-04-20 | Garmin Switzerland Gmbh | Navigation device wirelessly coupled with auxiliary camera unit |
CN106851111A (en) * | 2017-03-20 | 2017-06-13 | 惠州Tcl移动通信有限公司 | Dual camera method for controlling power supply, system and mobile terminal based on mobile terminal |
CN107343190A (en) * | 2017-07-25 | 2017-11-10 | 广东欧珀移动通信有限公司 | White balance adjusting method, apparatus and terminal device |
CN107613198A (en) * | 2017-09-08 | 2018-01-19 | 上海创功通讯技术有限公司 | The image pickup method and device of dual camera |
US10200623B1 (en) * | 2017-10-17 | 2019-02-05 | Qualcomm Incorporated | Image capture setting determination in flash photography operations |
US20190335150A1 (en) * | 2018-04-26 | 2019-10-31 | Qualcomm Incorporated | Systems and methods for color balancing |
CN109788268A (en) * | 2018-12-25 | 2019-05-21 | 努比亚技术有限公司 | Terminal and its white balance correction control method and computer readable storage medium |
CN110398870A (en) * | 2019-07-23 | 2019-11-01 | 武汉大势智慧科技有限公司 | A kind of multiphase aircrew cooperation acquisition holder and its control system |
CN110460826A (en) * | 2019-08-12 | 2019-11-15 | Oppo广东移动通信有限公司 | White balancing treatment method, processing unit and mobile terminal |
CN110798615A (en) * | 2019-10-14 | 2020-02-14 | 深圳酷派技术有限公司 | Shooting method, shooting device, storage medium and terminal |
Non-Patent Citations (1)
Title |
---|
THENEA: "5款热门拍照手机 盲测实拍大比拼", 《摄影之友》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113873211A (en) * | 2020-06-30 | 2021-12-31 | 北京小米移动软件有限公司 | Photographing method and device, electronic equipment and storage medium |
CN113177886A (en) * | 2021-04-14 | 2021-07-27 | RealMe重庆移动通信有限公司 | Image processing method, image processing device, computer equipment and readable storage medium |
CN113573037A (en) * | 2021-06-24 | 2021-10-29 | 维沃移动通信(杭州)有限公司 | Image processing method and device and electronic equipment |
WO2022268132A1 (en) * | 2021-06-24 | 2022-12-29 | 维沃移动通信(杭州)有限公司 | Image processing method and apparatus, and electronic device |
CN113766141A (en) * | 2021-09-29 | 2021-12-07 | 维沃移动通信有限公司 | Image information processing method and device |
CN113766141B (en) * | 2021-09-29 | 2023-06-16 | 维沃移动通信有限公司 | Image information processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111246114B (en) | 2021-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111246114B (en) | Photographing processing method and device, terminal equipment and storage medium | |
CN100565319C (en) | Exposure-control device and image-pickup device | |
US8977073B2 (en) | Apparatus and method for blending multiple images | |
US7995116B2 (en) | Varying camera self-determination based on subject motion | |
US7903168B2 (en) | Camera and method with additional evaluation image capture based on scene brightness changes | |
CN101237530B (en) | Photographing apparatus, method for controlling photographing apparatus | |
CN109862282B (en) | Method and device for processing person image | |
CN110213494B (en) | Photographing method and device, electronic equipment and computer readable storage medium | |
CN110445988A (en) | Image processing method, device, storage medium and electronic equipment | |
CN107948538B (en) | Imaging method, imaging device, mobile terminal and storage medium | |
JP6218389B2 (en) | Image processing apparatus and image processing method | |
CN109862269B (en) | Image acquisition method and device, electronic equipment and computer readable storage medium | |
US20070237514A1 (en) | Varying camera self-determination based on subject motion | |
CN108616689B (en) | Portrait-based high dynamic range image acquisition method, device and equipment | |
CN110493539B (en) | Automatic exposure processing method, processing device and electronic equipment | |
CN101365070A (en) | Imaging apparatus | |
CN111447372B (en) | Control method, device, equipment and medium for brightness parameter adjustment | |
US20020008771A1 (en) | Digital camera and image processing apparatus | |
CN104052933A (en) | Method for determining dynamic range mode, and image obtaining apparatus | |
CN108989689A (en) | A kind of method and apparatus of adjust automatically exposure gain | |
CN106791451B (en) | Photographing method of intelligent terminal | |
CN111698493A (en) | White balance processing method and device | |
JP5862071B2 (en) | Image processing apparatus, imaging apparatus, and program | |
CN112261292A (en) | Image acquisition method, terminal, chip and storage medium | |
US10235745B2 (en) | Image processing method, computer storage medium, apparatus and 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 |