CN113873211A - Photographing method and device, electronic equipment and storage medium - Google Patents
Photographing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113873211A CN113873211A CN202010622411.XA CN202010622411A CN113873211A CN 113873211 A CN113873211 A CN 113873211A CN 202010622411 A CN202010622411 A CN 202010622411A CN 113873211 A CN113873211 A CN 113873211A
- Authority
- CN
- China
- Prior art keywords
- image
- color
- white balance
- camera
- pixels
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000012937 correction Methods 0.000 claims abstract description 103
- 238000004891 communication Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000003384 imaging method Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 239000007787 solid Substances 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000001028 reflection method Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/73—Colour balance circuits, e.g. white balance circuits or colour temperature control
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Color Television Image Signal Generators (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The disclosure relates to a photographing method and device, an electronic device and a storage medium. The method comprises the following steps: acquiring a first image; determining whether the first image is a specific type image meeting a color single condition according to the color information of the first image; if the first image is the image of the specific type, performing white balance correction on the first image according to the color information of the first image and the color information of the environment light of the environment where the electronic equipment is located to obtain a second image after white balance correction; and outputting the second image. By the method, the correction accuracy rate of white balance correction of the specific type of image can be improved.
Description
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a photographing method and apparatus, an electronic device, and a storage medium.
Background
Photographing is a widely used function on electronic devices. In the photographing process, in order to recover the real color of the photographed target, a white balance algorithm is usually adopted to perform color adjustment on the acquired image so as to obtain an image with better image quality.
The current white balance algorithm based on images comprises a gray world method, a perfect reflection method, a white point detection method and the like. However, for a large area of solid color scenes (e.g., yellow walls), there is a problem that the true color recovery of the solid color scenes fails using the above method.
Disclosure of Invention
The disclosure provides a photographing method and device, electronic equipment and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a photographing method applied to an electronic device, including:
acquiring a first image;
determining whether the first image is a specific type image meeting a color single condition according to the color information of the first image;
if the first image is the image of the specific type, performing white balance correction on the first image according to the color information of the first image and the color information of the environment light of the environment where the electronic equipment is located to obtain a second image after white balance correction;
and outputting the second image.
Optionally, the determining whether the first image is a specific type of image satisfying a color singleness condition according to the color information of the first image includes:
acquiring color statistics of different pixels in the first image;
determining whether the color difference degree between pixels contained in the first image meets a color single condition or not according to the color statistic value;
when the degree of color difference between pixels included in the first image satisfies the color unity condition, determining that the first image is the specific type image.
Optionally, the acquiring the color statistics of different pixels in the first image includes:
determining a first ratio between a color component value of a first color and a color component value of a second color within a single pixel in the first image;
determining a second ratio between a color component value of a third color and a color component value of the second color within a single pixel in the first image;
and acquiring the total number of the target pixels in the first image, wherein the ratio difference between the first ratios of different pixels is within a first range, and the ratio difference between the second ratios of different pixels is within a second range.
Optionally, the determining, according to the color statistic, whether the degree of color difference between pixels included in the first image satisfies a color singleness condition includes:
determining whether the color difference degree between pixels contained in the first image meets the color single condition or not according to the total number and the number threshold;
the determining that the first image is the specific type image when the degree of color difference between pixels included in the first image satisfies the color single condition comprises:
when the total number is greater than the number threshold, determining that the first image is the specific type image.
Optionally, the performing white balance correction on the first image according to the color information of the first image and the color information of the ambient light of the environment where the electronic device is located to obtain a second image after white balance correction includes:
determining a color difference value between a color of the first image and the ambient light color;
if the color difference value is larger than the color difference threshold value, performing white balance correction on the first image by using white balance data corresponding to the ambient light color information to obtain a white balance corrected second image;
and if the color difference value is smaller than or equal to the color difference threshold value, performing white balance correction on the first image by using a white balance parameter corresponding to a camera which collects the first image in the electronic equipment to obtain a second image after the white balance correction.
Optionally, the method further includes:
and if the first image is not the specific type image, performing white balance correction on the first image according to a white balance parameter corresponding to a camera which collects the first image in the electronic equipment to obtain a second image after the white balance correction.
Optionally, the method further includes:
if the first image is the specific type image, obtaining the ambient light color information of the environment where the electronic equipment is located according to a sensing signal acquired by a sensor in the electronic equipment or a third image acquired by a camera in the electronic equipment; wherein an orientation of a camera that captures the third image is different from an orientation of a camera that captures the first image.
Optionally, the sensing signal acquired by the sensor in the electronic device includes at least one of:
a color temperature signal collected by a color temperature sensor in the electronic equipment;
the light signal that light sensor gathered in the electronic equipment.
According to a second aspect of the embodiments of the present disclosure, there is provided a photographing apparatus applied to an electronic device, including:
an acquisition module configured to acquire a first image;
the determining module is configured to determine whether the first image is a specific type image meeting a color single condition according to the color information of the first image;
the first correction module is configured to perform white balance correction on the first image according to color information of the first image and color information of ambient light of an environment where the electronic device is located if the first image is the specific type image, and obtain a second image after the white balance correction;
an output module configured to output the second image.
Optionally, the determining module is specifically configured to obtain color statistics of different pixels in the first image; determining whether the color difference degree between pixels contained in the first image meets a color single condition or not according to the color statistic value; when the degree of color difference between pixels included in the first image satisfies the color unity condition, determining that the first image is the specific type image.
Optionally, the color statistic includes a total number of target pixels, and the determining module is specifically configured to determine a first ratio between a color component value of a first color and a color component value of a second color in a single pixel in the first image; determining a second ratio between a color component value of a third color and a color component value of the second color within a single pixel in the first image; and acquiring the total number of the target pixels in the first image, wherein the ratio difference between the first ratios of different pixels is within a first range, and the ratio difference between the second ratios of different pixels is within a second range.
Optionally, the determining module is specifically configured to determine whether a color difference degree between pixels included in the first image satisfies the color singleness condition according to the total number and a number threshold; when the total number is greater than the number threshold, determining that the first image is the specific type image.
Optionally, the first correction module is specifically configured to determine a color difference value between a color of the first image and a color of the ambient light; if the color difference value is larger than the color difference threshold value, performing white balance correction on the first image by using white balance data corresponding to the ambient light color information to obtain a white balance corrected second image; and if the color difference value is smaller than or equal to the color difference threshold value, performing white balance correction on the first image by using a white balance parameter corresponding to a camera which collects the first image in the electronic equipment to obtain a second image after the white balance correction.
Optionally, the apparatus further comprises:
and the second correction module is configured to, if the first image is not the specific type image, perform white balance correction on the first image according to a white balance parameter corresponding to a camera which acquires the first image in the electronic device, and obtain a second image after the white balance correction.
Optionally, the apparatus further comprises:
an obtaining module configured to obtain, if the first image is the specific type image, the ambient light color information of an environment where the electronic device is located according to a sensing signal acquired by a sensor in the electronic device or a third image acquired by a camera in the electronic device; wherein an orientation of a camera that captures the third image is different from an orientation of a camera that captures the first image.
Optionally, the sensing signal acquired by the sensor in the electronic device includes at least one of:
a color temperature signal collected by a color temperature sensor in the electronic equipment;
the light signal that light sensor gathered in the electronic equipment.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the photographing method as described in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium including:
the instructions in the storage medium, when executed by a processor of the terminal, enable the terminal to perform the photographing method as described in the above first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the electronic device determines in advance whether the acquired first image is a specific type image satisfying a color single condition, and performs white balance correction on the first image according to color information of the first image and color information of ambient light of an environment where the electronic device is located when the first image is determined to be the specific type image. Because the specific type of image with single color can not distinguish whether each color component value in the image is from a light source or an object, the white balance correction can be wrong.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a photographing method according to an embodiment of the present disclosure.
Fig. 2 is an exemplary diagram of a mobile phone photographing scene.
Fig. 3 is a flowchart illustrating a photographing method according to an embodiment of the present disclosure.
Fig. 4 is a diagram illustrating a photographing apparatus according to an exemplary embodiment.
Fig. 5 is a block diagram of an electronic device shown in an embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart of a photographing method shown in an embodiment of the present disclosure, and as shown in fig. 1, the photographing method applied to an electronic device includes the following steps:
s11, acquiring a first image;
s12, determining whether the first image is a specific type image meeting a color single condition according to the color information of the first image;
s13, if the first image is the image of the specific type, performing white balance correction on the first image according to the color information of the first image and the color information of the environment light of the environment where the electronic equipment is located, and obtaining a second image after white balance correction;
and S14, outputting the second image.
In an embodiment of the present disclosure, an electronic device includes: a cell phone, a tablet, a camera, or a wearable device, etc. The electronic equipment comprises an image acquisition module, for example, a front camera or a rear camera in a mobile phone, and can acquire images.
In step S11, the electronic device may acquire a first image, for example, by the front-facing camera capturing the image.
In step S12, the electronic apparatus determines whether the first image is a specific type of image that satisfies the color singleness condition, based on the acquired color of the first image. It should be noted that, the single color means that the color difference of each pixel in the first image is small, so that the color of the whole image is almost the pure color. Such as a pure green wall, a pure yellow table, etc.
In step S13, if the first image is a specific type of image, the first image is subjected to white balance correction according to the color information of the first image and the color information of the ambient light of the environment where the electronic device is located, so as to obtain a second image after white balance correction.
In general, when an electronic device takes a picture, ambient light may affect imaging, for example, an image of a target is captured under a yellow light source, and if white balance correction is not performed, the image may be represented in a yellowish color.
In a white balance correction algorithm, white balance correction is directly performed after calculating a ratio of R to G (R/G), a ratio of B to G (B/G) from information of R, G and B components of a brightest area (white area) in a RAW format, for example, from distributions of red (R), green (G) and blue (B) in an acquired image of a RAW format. This way it is understood that the correction is directly made from the acquired first image.
However, with the above method, for a specific type of image with a single color, the brightest region in the RAW format image cannot be located, and it is difficult to distinguish whether R, G, and B statistically obtained in the RAW format image are from the light source or the object itself, so that the white balance correction is erroneous. For example, when a table of pure yellow is photographed and the ambient light is white light, it cannot be determined whether the yellow color in the image is the table itself or the ambient light is projected based on the obtained RAW data, and the yellow table is erroneously corrected to white color when the white balance correction is performed.
In the above scenario, it may be better not to perform white balance correction. However, if the imaging target is a white table (or other white object) and the ambient light is yellow, the white table appears yellow without white balance correction, which is not in accordance with reality.
In contrast, in order to improve the above problem, when it is determined that the first image is the specific type image, the white balance correction is performed on the first image according to the color information of the first image and the color information of the ambient light of the environment where the electronic device is located, so that the influence of the color of the ambient light on imaging can be determined based on the color information of the ambient light, and therefore the white balance correction can be performed on the first image better, and the accuracy of the white balance correction is improved.
In an embodiment, when performing white balance correction on the first image according to the color information of the first image and the color information of the ambient light of the environment where the electronic device is located, for example, a correction parameter may be determined according to a difference between the color of each pixel point of the first image and the color of the ambient light, and then the correction parameter is subtracted from the first image to obtain a second image.
In another implementation, a scaling factor between color components of the ambient light color may be determined according to the ambient light color information, and then, on the first image, each pixel point is correspondingly inversely scaled and multiplied by each scaling factor to obtain a white balance corrected second image.
It should be noted that the present disclosure does not limit the specific manner of performing the white balance correction according to the color information of the first image and the color information of the ambient light.
In step S14, after performing white balance correction on the first image to obtain a second image according to the color information of the first image and the color information of the ambient light of the environment where the electronic device is located, the second image may be output to present the true color image to the user.
In one embodiment, step S12 includes:
acquiring color statistics of different pixels in the first image;
determining whether the color difference degree between pixels contained in the first image meets a color single condition or not according to the color statistic value;
when the degree of color difference between pixels included in the first image satisfies the color unity condition, determining that the first image is the specific type image.
In this embodiment, the electronic device determines whether the degree of color difference between the pixels satisfies the color unity condition based on the color statistics of the pixels within the first image. When the color difference degree among the pixels in the first image meets the color single condition, the first image is determined to be the specific type image.
In an embodiment of the present disclosure, the color statistics of different pixels may refer to a difference between colors of different pixels, and correspondingly, the color singleness condition may be that the difference between colors is within a predetermined difference range. For example, the color statistic of different pixels is the difference between R, G and B color components of a certain pixel in the first image and corresponding color components of another pixel, and the difference includes the difference corresponding to 3 color components respectively; and the color singleness condition is a difference range corresponding to each of the 3 color components. In this embodiment, when the difference values of the 3 color components are within the corresponding difference value ranges, the first image is determined to be a specific type image.
In an embodiment of the present disclosure, pixels are taken as a statistical granularity, a ratio of pixels of a same color number or adjacent color numbers belonging to a same color family in an obtained image to the whole image is counted, and if the ratio is greater than a set ratio, it can be considered that the currently obtained image satisfies a single color condition.
In another embodiment of the present disclosure, the color statistics of the different pixels may also be a total number of target pixels of which the ratio difference of the different pixels is within a predetermined ratio difference range, which is determined based on the ratio between the different color components of each pixel, and correspondingly, the color singleness condition may be that the total number of the target pixels is greater than the number threshold.
Based on this embodiment, the acquiring the color statistics of different pixels in the first image includes:
determining a first ratio between a color component value of a first color and a color component value of a second color within a single pixel in the first image;
determining a second ratio between a color component value of a third color and a color component value of the second color within a single pixel in the first image;
and acquiring the total number of the target pixels in the first image, wherein the ratio difference between the first ratios of different pixels is within a first range, and the ratio difference between the second ratios of different pixels is within a second range.
In this embodiment, taking the example that the first color is R, the second color is G, and the third color is B in a single pixel, the first ratio of the single pixel in the first image refers to the ratio of R to G, and the second ratio refers to the ratio of B to G. In the first image, the ratio difference of the first ratios is the difference between R/G of different pixels in the first image; the ratio difference of the second ratio is the difference between the B/G of different pixels in the first image.
Based on the determined first ratio difference and second ratio difference, the electronic device further determines the total number of pixels that simultaneously satisfy that the ratio difference of the first ratio is within the first range and the ratio difference of the second ratio is within the second range, and takes the total number as the color statistic of different pixels.
It is understood that the smaller the difference between the ratio differences of the first ratios and the smaller the difference between the ratio differences of the second ratios, the smaller the degree of color difference between pixels in the first image, the greater the possibility that the first image is the predetermined image. Therefore, in this embodiment, when the ratio difference of the first ratio is within the first range and the ratio difference of the second ratio is within the second range, the more the number of pixels, the higher the possibility that the first image is the predetermined image is.
The method adopts the first ratio and the second ratio of different color components of each pixel to be counted, and determines the total number of pixels of which the ratio difference of the first ratio and the ratio difference of the second ratio of different pixels are respectively in the preset range.
In one embodiment, the determining whether the degree of color difference between pixels included in the first image satisfies a color unity condition according to the color statistic value includes:
determining whether the color difference degree between pixels contained in the first image meets the color single condition or not according to the total number and the number threshold;
the determining that the first image is the specific type image when the degree of color difference between pixels included in the first image satisfies the color single condition comprises:
when the total number is greater than the number threshold, determining that the first image is the specific type image.
In this embodiment, the total number of the pixels, which are counted while the ratio difference satisfying the first ratio is within the first range and the ratio difference satisfying the second ratio is within the second range, is compared with the number threshold to determine whether the degree of the color difference between the pixels included in the first image satisfies the color singleness condition.
As described above, when the ratio difference of the first ratio is within the first range and the ratio difference of the second ratio is within the second range, the more the number of pixels is, the more likely the first image is to be the predetermined image. Therefore, in this embodiment, when the total number obtained by statistics is greater than the number threshold, the first image is determined to be the specific type image.
It should be noted that, in this embodiment, the number threshold may be a preset fixed number, for example, 1000. The number threshold may be a threshold dynamically determined based on a proportion of the number of pixels, for example, a proportion of 80% of the pixels of the acquired first image may be determined as the number threshold, and if the number of pixels included in the acquired first image is different, the number threshold may be different.
In one embodiment, step S13 includes:
determining a color difference value between a color of the first image and the ambient light color;
and if the color difference value is larger than the color difference threshold value, performing white balance correction on the first image by using white balance data corresponding to the ambient light color information to obtain a white balance corrected second image.
In this embodiment, when performing white balance correction on the first image according to the color information of the first image and the color information of the ambient light, a color difference value between the color of the first image and the color of the ambient light may be determined first, and when the color difference value is greater than a color difference threshold, it indicates that the color of the ambient light has a large influence on the first image, and at this time, white balance correction needs to be performed on the first image by using white balance data corresponding to the color information of the ambient light.
It should be noted that, in the embodiment of the present disclosure, the white balance data corresponding to the ambient light color information refers to a correction parameter for performing white balance correction on the first image, which is obtained by using the ambient light color information. When the first image is corrected, aiming at each pixel point, different color component values of each pixel point are adjusted by using the correction parameters, and then the white balance corrected second image can be obtained. The environment light color is obtained by the electronic equipment in real time according to the current environment. For example, real-time acquisition is performed by a sensor or a camera built in the electronic device.
In one embodiment, the scaling factor between the color components of the ambient light color may be determined, and then the inverse of the scaling factor between the color components may be used as the correction parameter.
In another embodiment, the corresponding color temperature may be determined according to the color information of the ambient light, and the correction parameter may be determined according to the relationship between the color temperature and the white balance information. Wherein the relationship between the color temperature and the white balance information may be represented in the form of a table or a function.
In an example of the present disclosure, when determining the color difference value between the color of the first image and the color of the ambient light, the color component of each pixel point in the first image may be directly subtracted from the corresponding color component value in the color of the ambient light to determine the color difference value. In this embodiment, the color difference threshold includes a range of difference values corresponding to each color component.
In another embodiment of the present disclosure, when determining the color difference value between the color of the first image and the color of the ambient light, the color difference value may also be determined according to the aforementioned first ratio and second ratio.
For example, a first ratio and a second ratio for each pixel in the first image are determined, and a first ratio and a second ratio corresponding to the ambient light color are also determined. And subtracting the first ratio corresponding to the ambient light color from each first ratio in the first image, and subtracting the second ratio corresponding to the ambient light color from each second ratio in the first image to obtain a color difference value. In this embodiment, the color difference threshold includes a difference range corresponding to the first ratio difference and a difference range corresponding to the second ratio difference. Of course, the color difference value may also be obtained by subtracting the average value corresponding to the first ratio of each pixel in the first image from the average value corresponding to the first ratio of the ambient light color, and subtracting the average value corresponding to the second ratio of each pixel in the first image from the average value corresponding to the second ratio of the ambient light color. Correspondingly, the color difference threshold includes a difference range corresponding to the mean of the first ratio and a difference range corresponding to the mean of the second ratio.
It can be understood that, in this embodiment, when the color difference value between the color of the first image and the color of the ambient light is greater than the color difference threshold, the white balance correction is performed on the first image by using the white balance data corresponding to the color information of the ambient light, so that the accuracy of performing the white balance correction on the first image can be improved.
In one embodiment, the method further comprises:
and if the color difference value is smaller than or equal to the color difference threshold value, performing white balance correction on the first image by using a white balance parameter corresponding to a camera which collects the first image in the electronic equipment to obtain a second image after the white balance correction.
In this embodiment, when the color difference value is less than or equal to the color difference threshold, it is indicated that the influence of the color of the ambient light on the first image is small, and at this time, the white balance parameter corresponding to the camera that acquires the first image in the electronic device may be directly used to perform white balance correction on the first image.
It should be noted that the white balance parameter corresponding to the camera acquiring the first image may be a white balance correction pattern pre-stored in the electronic device, and the camera acquiring the first image may determine a white balance correction pattern based on a selection of a user. For example, the white balance parameter corresponding to the camera acquiring the first image may be any one of the following: automatic mode, sun mode, cloudy mode, daylight lamp mode, or flash lamp mode, etc. Under different white balance modes, the color styles of the white balance corrected second images are different, and a user can select a corresponding mode for a camera for collecting the first image to take a picture based on the respective favorite styles.
It can be understood that, in this embodiment, when the color difference value between the color of the first image and the color of the ambient light is less than or equal to the color difference threshold value, the white balance parameter corresponding to the camera of the first image is used to perform white balance correction on the first image, so that the user preference is taken into account while the accuracy of the white balance correction is not reduced, and the user experience is improved.
In one embodiment, the method further comprises:
and if the first image is not the specific type image, performing white balance correction on the first image according to a white balance parameter corresponding to a camera which collects the first image in the electronic equipment to obtain a second image after the white balance correction.
As described above, when the first image is a specific type of image, it is possible that the true color is changed by the influence of the color of the ambient light. And when the first image is not the image of the specific type, the influence of the color of the ambient light on the first image may not be so great, so that the white balance correction can be directly performed on the first image according to the white balance parameter corresponding to the camera for collecting the first image in the electronic equipment to obtain the second image, so that the user preference is taken into consideration, and the user experience is improved.
In one embodiment, the method further comprises:
if the first image is the specific type image, obtaining the ambient light color information of the environment where the electronic equipment is located according to a sensing signal acquired by a sensor in the electronic equipment or a third image acquired by a camera in the electronic equipment; wherein an orientation of a camera that captures the third image is different from an orientation of a camera that captures the first image.
In this embodiment, when the first image is determined to be a specific type of image, the ambient light color of the environment where the electronic device is located may be obtained according to the sensing signals collected by the sensor in the electronic device, and the ambient light color may include one or more sets R, G and B data, or may be a ratio of one or more sets of different color components, such as R/G and B/G. For example, in the operation process of the mobile phone, the sensor in the electronic device is also continuously acquiring the sensing signal, and when the mobile phone determines that the first image is the specific type image, the ambient light color information is obtained according to the sensing signal.
Furthermore, since the electronic device may include a plurality of cameras, it is also possible to acquire a third image by orienting the cameras differently from the camera that acquired the first image, and obtain an ambient light color from the third image, the ambient light color may include R, G and B data corresponding to each pixel in the third image, and may also include ratios of different color components, such as R/G and B/G, corresponding to each pixel. It should be noted that, in the embodiment of the present disclosure, when the first image is a specific type of image, the electronic device acquires the third image by using a camera with a different orientation than the camera that acquires the first image.
It should be noted that, in the embodiment of the present disclosure, the orientation of the camera acquiring the third image is different from the orientation of the camera acquiring the first image, so that the influence of the shooting target can be reduced as much as possible by the acquired third image, and thus a more accurate ambient light color can be obtained.
In an embodiment, the camera acquiring the first image may be a front camera located on a surface where a display screen of the electronic device is located or a rear camera located on an opposite surface of the display screen, and correspondingly, the camera acquiring the third image may be a camera located on an adjacent edge of the display screen, for example, a camera located on a side of a mobile phone.
In another embodiment, the orientation of the camera acquiring the third image is opposite to the orientation of the camera acquiring the first image, for example, the camera acquiring the first image is a front camera, and then the camera acquiring the third image may be a rear camera. In this way, the influence of the photographic target can be maximally reduced, thereby further obtaining a more accurate ambient light color.
It can be understood that in the embodiment of the present disclosure, the ambient light color is determined by using the existing sensor in the electronic device to determine the ambient light color, or by acquiring the third image with the orientation different from the orientation of the camera acquiring the first image to determine the ambient light color, the scheme is simple, and the cost of the electronic device is not increased additionally. In addition, when the first image is determined to be the specific type of image, the ambient light color is obtained by using the sensor or the third image is captured by using the camera to obtain the ambient light color, so that power consumption can be saved.
In one embodiment, the sensing signals collected by the sensor in the electronic device include at least one of:
a color temperature signal collected by a color temperature sensor in the electronic equipment;
the light signal that light sensor gathered in the electronic equipment.
In this embodiment, since the color temperature signal collected by the color temperature sensor and the light signal collected by the light sensor both include color information, the electronic device can obtain the color of the ambient light by using the color temperature signal and/or the light signal.
Since the color temperature sensor and the light sensor are usually built-in sensors in the electronic device, it can be understood that the scheme adopted in the disclosure does not increase the cost of the electronic device additionally, and has the characteristics of simplicity and convenience.
Taking a mobile phone as an example, fig. 2 is an exemplary diagram of a mobile phone photographing scene, as shown in fig. 2, a reference L2 denotes the mobile phone, and the mobile phone includes a front camera and a rear camera. The cell phone captures a first image of the solid table L3 with one of the cameras (e.g., the front camera) and a third image of the light source L1 with the other camera (e.g., the rear camera). When the mobile phone determines that the first image is the image of the specific type, the color of the ambient light can be obtained according to the third image, so that the mobile phone can perform white balance correction on the first image according to the color of the first image and the color of the ambient light.
Fig. 3 is a flowchart illustrating a photographing method applied to a mobile phone according to an embodiment of the present disclosure, where as shown in fig. 3, the photographing method includes the following steps:
s101, the camera 1 initializes the automatic white balance.
In this embodiment, the camera 1 refers to a camera that acquires a first image, and the camera automatic white balance initialization refers to initialization of acquiring a default white balance parameter of the camera.
And S102, counting R/G and B/G values of all pixels of the current scene of the camera 1.
In this embodiment, the R/G and B/G values of all pixels of the current scene of the camera 1 are counted, i.e. a first ratio between the color component value of the first color and the color component value of the second color and a second ratio between the color component value of the third color and the color component value of the second color within a single pixel in the first image are obtained.
S103, whether the number of pixels with the same R/G and B/G values exceeds a threshold value or not; if not, executing step S104; if yes, go to step S105.
In this embodiment, whether the number of pixels with the same R/G and B/G values exceeds the threshold means whether the ratio difference between R/gs corresponding to different pixels in the first image is within a first range, and whether the total number of pixels with the ratio difference between B/gs corresponding to different pixels within a second range exceeds the number threshold. If the total number exceeds the number threshold, the image acquired by the camera 1 is the specific type image, otherwise, the image is not the specific type image.
And S104, if the number of pixels does not exceed the threshold value, continuing to use the white balance algorithm of the camera 1 to estimate the color temperature.
In this embodiment, the color temperature estimation is continued by using the white balance algorithm of the camera 1, that is, when the first image is not the specific type of image, the white balance correction is performed on the first image according to the white balance parameters corresponding to the camera of the electronic device that acquires the first image.
And S105, if the number of pixels exceeds the threshold value, starting the camera 2, and counting R/G and B/G values of all pixels at the current position of the camera 2.
In this embodiment, as described above, if the number of pixels exceeds the threshold, it is determined that the first image is a specific type of image, the camera 2 is started, and then the R/G and B/G values of all pixels at the current position of the camera 2 are counted, that is, the ambient light color of the environment where the electronic device is located is obtained according to the third image collected by the camera in the electronic device. In this embodiment, the orientation of camera 1 and camera 2 may be reversed.
S106, judging whether the R/G and B/G difference counted by the two cameras is larger than a threshold value or not; if yes, go to step S107; if not, go to step S108.
In this embodiment, whether the R/G and B/G difference counted by the two cameras is greater than the threshold value is to determine whether the color difference value between the color of the first image and the color of the ambient light is greater than the color difference threshold value in the embodiment of the disclosure.
S107, if the difference is larger than the threshold, the camera 1 performs white balance correction using the white balance data of the camera 2.
In this embodiment, the camera 1 performs white balance correction using the white balance data of the camera 2, that is, if the color difference value is greater than the color difference threshold value, the white balance correction is performed on the first image using the white balance data corresponding to the color of the ambient light. The white balance data of the camera 2 is the ambient light color.
And S108, if the difference is smaller than or equal to the threshold value, the camera 1 continues to use the white balance data of the camera for correction.
In this embodiment, the camera 1 continues to use the white balance data of the camera to perform correction, that is, if the color difference value is less than or equal to the color difference threshold, the white balance parameter corresponding to the camera acquiring the first image in the electronic device is used to perform white balance correction on the first image. In the embodiment of the present disclosure, after the white balance correction is performed on the image acquired by the camera 1, the corrected second image can be output.
It is understood that in this embodiment, the handset determines different white balance correction modes according to the R/G and B/G values in the current camera 1 shooting scene. Specifically, when the number of pixels with the same R/G and B/G values exceeds a threshold value, namely when the image of the current shooting scene is a specific type image meeting a single color condition, the camera 2 is started to collect the image, the R/G and B/G values are obtained, namely the color of ambient light is obtained, and further based on the difference between the color of the image shot by the camera 1 and the color of the ambient light, the color of the ambient light or the white balance parameters of the camera 1 are determined to be used for white balance correction; and if the number of pixels does not exceed the threshold value, namely when the image of the current shooting scene is not the specific type image, the camera 2 is not started, and the white balance parameter of the camera 1 is directly used for correction. Through the mode, the camera except the acquisition target in the mobile phone can be used for acquiring the color of the ambient light, so that the influence of the color of the ambient light on the imaging (first image) of the acquisition target can be determined based on the color of the ambient light, the white balance correction can be better performed on the first image of a specific type, and the accuracy of the white balance correction is improved. In addition, the scheme has the characteristics of simplicity, low cost and low power consumption.
Fig. 4 is a diagram illustrating a photographing apparatus according to an exemplary embodiment. Referring to fig. 4, in an alternative embodiment, the apparatus further comprises:
an acquisition module 101 configured to acquire a first image;
a determining module 102 configured to determine whether the first image is a specific type of image satisfying a color singleness condition according to color information of the first image;
a first correction module 103, configured to, if the first image is the specific type image, perform white balance correction on the first image according to color information of the first image and color information of ambient light of an environment where the electronic device is located, to obtain a second image after white balance correction;
an output module 104 configured to output the second image.
Optionally, the determining module 102 is specifically configured to obtain color statistics of different pixels in the first image; determining whether the color difference degree between pixels contained in the first image meets a color single condition or not according to the color statistic value; when the degree of color difference between pixels included in the first image satisfies the color unity condition, determining that the first image is the specific type image.
Optionally, the color statistic includes a total number of target pixels, and the determining module 102 is specifically configured to determine a first ratio between a color component value of a first color and a color component value of a second color in a single pixel in the first image; determining a second ratio between a color component value of a third color and a color component value of the second color within a single pixel in the first image; and acquiring the total number of target pixels in the first image, wherein the ratio difference between the first ratios of different pixels is within a first range, and the ratio difference between the second ratios of different pixels is within a second range.
Optionally, the determining module 102 is specifically configured to determine whether the color difference degree between pixels included in the first image satisfies the color singleness condition according to the total number and the number threshold; when the total number is greater than the number threshold, determining that the first image is the specific type image.
Optionally, the first correction module 103 is specifically configured to determine a color difference value between the color of the first image and the color of the ambient light; if the color difference value is larger than the color difference threshold value, performing white balance correction on the first image by using white balance data corresponding to the color of the ambient light to obtain a white balance corrected second image; and if the color difference value is smaller than or equal to the color difference threshold value, performing white balance correction on the first image by using a white balance parameter corresponding to a camera which collects the first image in the electronic equipment to obtain a second image after the white balance correction.
Optionally, the apparatus further comprises:
a second correcting module 105, configured to, if the first image is not the specific type image, perform white balance correction on the first image according to a white balance parameter corresponding to a camera that acquires the first image in the electronic device, to obtain a second image after the white balance correction.
Optionally, the apparatus further comprises:
an obtaining module 106, configured to, if the first image is the specific type image, obtain the ambient light color information of an environment where the electronic device is located according to a sensing signal acquired by a sensor in the electronic device or a third image acquired by a camera in the electronic device; wherein an orientation of a camera that captures the third image is different from an orientation of a camera that captures the first image.
Optionally, the sensing signal acquired by the sensor in the electronic device includes at least one of:
a color temperature signal collected by a color temperature sensor in the electronic equipment;
the light signal that light sensor gathered in the electronic equipment.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an electronic device apparatus 800 in accordance with an example embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.
Referring to fig. 5, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of taking a picture, the method comprising:
acquiring a first image;
determining whether the first image is a specific type image meeting a color single condition according to the color information of the first image;
if the first image is the image of the specific type, performing white balance correction on the first image according to the color information of the first image and the color information of the environment light of the environment where the electronic equipment is located to obtain a second image after white balance correction;
and outputting the second image.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (16)
1. A photographing method is applied to an electronic device, and the method comprises the following steps:
acquiring a first image;
determining whether the first image is a specific type image meeting a color single condition according to the color information of the first image;
if the first image is the image of the specific type, performing white balance correction on the first image according to the color information of the first image and the color information of the environment light of the environment where the electronic equipment is located to obtain a second image after white balance correction;
and outputting the second image.
2. The method according to claim 1, wherein the determining whether the first image is a specific type of image satisfying a color singleness condition according to the color information of the first image comprises:
acquiring color statistics of different pixels in the first image;
determining whether the color difference degree between pixels contained in the first image meets a color single condition or not according to the color statistic value;
when the degree of color difference between pixels included in the first image satisfies the color unity condition, determining that the first image is the specific type image.
3. The method of claim 2, wherein the color statistics comprise a total number of target pixels, and wherein obtaining color statistics for different pixels in the first image comprises:
determining a first ratio between a color component value of a first color and a color component value of a second color within a single pixel in the first image;
determining a second ratio between a color component value of a third color and a color component value of the second color within a single pixel in the first image;
and acquiring the total number of the target pixels in the first image, wherein the ratio difference between the first ratios of different pixels is within a first range, and the ratio difference between the second ratios of different pixels is within a second range.
4. The method according to claim 3, wherein said determining whether the degree of color difference between pixels included in the first image satisfies a color unity condition according to the color statistic comprises:
determining whether the color difference degree between pixels contained in the first image meets the color single condition or not according to the total number and the number threshold;
the determining that the first image is the specific type image when the degree of color difference between pixels included in the first image satisfies the color single condition comprises:
when the total number is greater than the number threshold, determining that the first image is the specific type image.
5. The method according to claim 1, wherein performing white balance correction on the first image according to the color information of the first image and the color information of the ambient light of the environment where the electronic device is located to obtain a white balance corrected second image comprises:
determining a color difference value between a color of the first image and the ambient light color;
if the color difference value is larger than the color difference threshold value, performing white balance correction on the first image by using white balance data corresponding to the ambient light color information to obtain a white balance corrected second image;
and if the color difference value is smaller than or equal to the color difference threshold value, performing white balance correction on the first image by using a white balance parameter corresponding to a camera which collects the first image in the electronic equipment to obtain a second image after the white balance correction.
6. The method of claim 1, further comprising:
if the first image is the specific type image, obtaining the ambient light color information of the environment where the electronic equipment is located according to a sensing signal acquired by a sensor in the electronic equipment or a third image acquired by a camera in the electronic equipment; wherein an orientation of a camera that captures the third image is different from an orientation of a camera that captures the first image.
7. The method of claim 6, wherein the sensor signals collected by the sensors in the electronic device comprise at least one of:
a color temperature signal collected by a color temperature sensor in the electronic equipment;
the light signal that light sensor gathered in the electronic equipment.
8. A photographing apparatus, applied to an electronic device, the apparatus comprising:
an acquisition module configured to acquire a first image;
the determining module is configured to determine whether the first image is a specific type image meeting a color single condition according to the color information of the first image;
the first correction module is configured to perform white balance correction on the first image according to color information of the first image and color information of ambient light of an environment where the electronic device is located if the first image is the specific type image, and obtain a second image after the white balance correction;
an output module configured to output the second image.
9. The apparatus of claim 8,
the determining module is specifically configured to obtain color statistics of different pixels in the first image; determining whether the color difference degree between pixels contained in the first image meets a color single condition or not according to the color statistic value; when the degree of color difference between pixels included in the first image satisfies the color unity condition, determining that the first image is the specific type image.
10. The apparatus according to claim 9, wherein the color statistic comprises a total number of target pixels, and the determining module is specifically configured to determine a first ratio between a color component value of a first color and a color component value of a second color within a single pixel in the first image; determining a second ratio between a color component value of a third color and a color component value of the second color within a single pixel in the first image; and acquiring the total number of the target pixels in the first image, wherein the ratio difference between the first ratios of different pixels is within a first range, and the ratio difference between the second ratios of different pixels is within a second range.
11. The apparatus of claim 10,
the determining module is specifically configured to determine whether the color difference degree between the pixels included in the first image meets the color single condition according to the total number and the number threshold; when the total number is greater than the number threshold, determining that the first image is the specific type image.
12. The apparatus of claim 8,
the first correction module is specifically configured to determine a color difference value between the color of the first image and the color of the ambient light; if the color difference value is larger than the color difference threshold value, performing white balance correction on the first image by using white balance data corresponding to the ambient light color information to obtain a white balance corrected second image; and if the color difference value is smaller than or equal to the color difference threshold value, performing white balance correction on the first image by using a white balance parameter corresponding to a camera which collects the first image in the electronic equipment to obtain a second image after the white balance correction.
13. The apparatus of claim 8, further comprising:
an obtaining module configured to obtain, if the first image is the specific type image, the ambient light color information of an environment where the electronic device is located according to a sensing signal acquired by a sensor in the electronic device or a third image acquired by a camera in the electronic device; wherein an orientation of a camera that captures the third image is different from an orientation of a camera that captures the first image.
14. The apparatus of claim 13, wherein the sensor signals collected by the sensors in the electronic device comprise at least one of:
a color temperature signal collected by a color temperature sensor in the electronic equipment;
the light signal that light sensor gathered in the electronic equipment.
15. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the photographing method according to any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium, instructions in which, when executed by a processor of a terminal, enable the terminal to perform the photographing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010622411.XA CN113873211A (en) | 2020-06-30 | 2020-06-30 | Photographing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010622411.XA CN113873211A (en) | 2020-06-30 | 2020-06-30 | Photographing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113873211A true CN113873211A (en) | 2021-12-31 |
Family
ID=78981955
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010622411.XA Pending CN113873211A (en) | 2020-06-30 | 2020-06-30 | Photographing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113873211A (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350883A (en) * | 2007-07-17 | 2009-01-21 | 富士胶片株式会社 | Auto white balance correction value calculation device, method, program, and image pickup device |
CN101370151A (en) * | 2008-09-18 | 2009-02-18 | 北京中星微电子有限公司 | Automatic white balance adjustment method |
CN103402102A (en) * | 2013-07-17 | 2013-11-20 | 广东欧珀移动通信有限公司 | Double-camera picture pick-up system and white balance adjustment method and device thereof |
CN103929631A (en) * | 2013-01-15 | 2014-07-16 | 瑞昱半导体股份有限公司 | White balance adjusting method using scene detection and device thereof |
US20140240534A1 (en) * | 2013-02-26 | 2014-08-28 | Samsung Electronics Co., Ltd. | Method for image processing and an electronic device thereof |
CN107077826A (en) * | 2014-10-15 | 2017-08-18 | 英特尔公司 | Image Adjusting based on ambient light |
CN108616691A (en) * | 2018-04-28 | 2018-10-02 | 北京小米移动软件有限公司 | Photographic method, device, server based on automatic white balance and storage medium |
CN109218561A (en) * | 2018-11-30 | 2019-01-15 | 豪威科技(上海)有限公司 | The synchronous method and device of multi-cam |
CN110213556A (en) * | 2019-06-04 | 2019-09-06 | 福州瑞芯微电子股份有限公司 | Auto white balance method and system, storage medium and terminal under simple color scene |
US20190335150A1 (en) * | 2018-04-26 | 2019-10-31 | Qualcomm Incorporated | Systems and methods for color balancing |
CN110460826A (en) * | 2019-08-12 | 2019-11-15 | Oppo广东移动通信有限公司 | White balancing treatment method, processing unit and mobile terminal |
CN111246114A (en) * | 2020-03-12 | 2020-06-05 | Oppo广东移动通信有限公司 | Photographing processing method and device, terminal equipment and storage medium |
-
2020
- 2020-06-30 CN CN202010622411.XA patent/CN113873211A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350883A (en) * | 2007-07-17 | 2009-01-21 | 富士胶片株式会社 | Auto white balance correction value calculation device, method, program, and image pickup device |
CN101370151A (en) * | 2008-09-18 | 2009-02-18 | 北京中星微电子有限公司 | Automatic white balance adjustment method |
CN103929631A (en) * | 2013-01-15 | 2014-07-16 | 瑞昱半导体股份有限公司 | White balance adjusting method using scene detection and device thereof |
US20140240534A1 (en) * | 2013-02-26 | 2014-08-28 | Samsung Electronics Co., Ltd. | Method for image processing and an electronic device thereof |
CN103402102A (en) * | 2013-07-17 | 2013-11-20 | 广东欧珀移动通信有限公司 | Double-camera picture pick-up system and white balance adjustment method and device thereof |
CN107077826A (en) * | 2014-10-15 | 2017-08-18 | 英特尔公司 | Image Adjusting based on ambient light |
US20190335150A1 (en) * | 2018-04-26 | 2019-10-31 | Qualcomm Incorporated | Systems and methods for color balancing |
CN108616691A (en) * | 2018-04-28 | 2018-10-02 | 北京小米移动软件有限公司 | Photographic method, device, server based on automatic white balance and storage medium |
CN109218561A (en) * | 2018-11-30 | 2019-01-15 | 豪威科技(上海)有限公司 | The synchronous method and device of multi-cam |
CN110213556A (en) * | 2019-06-04 | 2019-09-06 | 福州瑞芯微电子股份有限公司 | Auto white balance method and system, storage medium and terminal under simple color scene |
CN110460826A (en) * | 2019-08-12 | 2019-11-15 | Oppo广东移动通信有限公司 | White balancing treatment method, processing unit and mobile terminal |
CN111246114A (en) * | 2020-03-12 | 2020-06-05 | Oppo广东移动通信有限公司 | Photographing processing method and device, terminal equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108419016B (en) | Shooting method and device and terminal | |
CN110958401B (en) | Super night scene image color correction method and device and electronic equipment | |
CN111586282B (en) | Shooting method, shooting device, terminal and readable storage medium | |
CN106484257A (en) | Camera control method, device and electronic equipment | |
CN106131441B (en) | Photographing method and device and electronic equipment | |
CN107463052B (en) | Shooting exposure method and device | |
CN108040204B (en) | Image shooting method and device based on multiple cameras and storage medium | |
CN111953904B (en) | Shooting method, shooting device, electronic equipment and storage medium | |
CN106982327B (en) | Image processing method and device | |
CN111953903A (en) | Shooting method, shooting device, electronic equipment and storage medium | |
CN110876014B (en) | Image processing method and device, electronic device and storage medium | |
US20200210682A1 (en) | Skin color identification method, skin color identification apparatus and storage medium | |
CN107820025B (en) | Method and device for photographing processing | |
EP3396940A1 (en) | Method and apparatus for sorting filter options | |
CN112188096A (en) | Photographing method and device, terminal and storage medium | |
CN111835941B (en) | Image generation method and device, electronic equipment and computer readable storage medium | |
CN111586280B (en) | Shooting method, shooting device, terminal and readable storage medium | |
CN109005360B (en) | Light supplementing method and device for shooting environment and computer readable storage medium | |
CN111277754B (en) | Mobile terminal shooting method and device | |
CN116438568A (en) | Position difference map generation method and device, electronic equipment, chip and medium | |
CN113873211A (en) | Photographing method and device, electronic equipment and storage medium | |
CN112087570B (en) | Image shooting method and device, electronic equipment and readable storage medium | |
CN111835977B (en) | Image sensor, image generation method and device, electronic device, and storage medium | |
CN107707819B (en) | Image shooting method, device and storage medium | |
CN114331852A (en) | Method and device for processing high dynamic range image and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |