Shooting method and device
By detecting the color temperature of the target scene and adjusting the color temperature of the soft light, the problem of poor color effect of the image taken by electronic devices is solved, and the correct white balance and good color effect of the image is achieved.
Patent Information
- Application Number
- CN202310080582.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-03
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2043-02-03
AI Technical Summary
When shooting existing electronic devices, the color effect of the images is poor and cannot meet the user's requirements for image quality.
By detecting the color temperature of the target scene, determine the correct color temperature value of the soft light, and control the soft light to emit light according to the correct color temperature value during shooting to ensure that the image has correct white balance.
The captured images have correct white balance, the image color effect is good, and it can meet the user's requirements for image quality.
Smart Images

Figure CN116095510B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a shooting method and a device thereof. Background Art
[0002] In recent years, with the continuous development of electronic technology, electronic devices such as mobile phones and tablet computers have become indispensable tools in people's daily lives. At the same time, people have higher and higher requirements for electronic devices, especially the shooting function of electronic devices. However, in the related art, when users use electronic devices to shoot, the color effect of the captured images is relatively poor, which cannot meet the user's requirements for image quality. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a photographing method and a device thereof, which can solve the problem of poor color effect of photographed images existing in the related art.
[0004] In a first aspect, an embodiment of the present application provides a shooting method, the method comprising:
[0005] Detect the color temperature of the target scene and obtain a color temperature detection result;
[0006] Determining a corrected color temperature value of the soft light according to the color temperature detection result, wherein the corrected color temperature value is used to correct the color temperature of the target scene during shooting;
[0007] During shooting, the soft light is controlled to emit light according to the corrected color temperature value, and a first image is captured.
[0008] In a second aspect, an embodiment of the present application provides a photographing device, the device comprising:
[0009] A detection module is used to detect the color temperature of the target scene and obtain a color temperature detection result;
[0010] A determination module, used to determine a correction color temperature value of the soft light according to the color temperature detection result, wherein the correction color temperature value is used to correct the color temperature of the target scene during shooting;
[0011] The shooting module is used to control the soft light to emit light according to the corrected color temperature value during shooting, so as to shoot and obtain a first image.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0014] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0015] In the embodiment of the present application, the color temperature of the target scene is detected to obtain a color temperature detection result; based on the color temperature detection result, the corrected color temperature value of the soft light is determined; when shooting, the soft light is controlled to emit light according to the corrected color temperature value to obtain a first image. It can be seen that in the embodiment of the present application, before using an electronic device to shoot the target scene, the color temperature of the target scene can be detected first, and the fill light color temperature (i.e., the corrected color temperature value) suitable for shooting in the target scene can be determined based on the color temperature of the target scene. The soft light of the electronic device converts the determined fill light color temperature into current demand, emits light of a color temperature suitable for shooting, and helps the user to automatically correct the color temperature of the target scene, so that the image captured in the target scene has a correct white balance, the image color effect is better, and can meet the user's requirements for image quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is one of the flow charts of a shooting method provided in an embodiment of the present application;
[0017] Figure 2 This is the second flowchart of a shooting method provided in an embodiment of the present application;
[0018] Figure 3 It is one of the example diagrams of the shooting method provided in the embodiment of the present application;
[0019] Figure 4 This is the second example diagram of the shooting method provided in the embodiment of the present application;
[0020] Figure 5 This is the third example diagram of the shooting method provided in the embodiment of the present application;
[0021] Figure 6 This is the fourth example diagram of the shooting method provided in the embodiment of the present application;
[0022] Figure 7 This is the fifth example diagram of the shooting method provided in the embodiment of the present application;
[0023] Figure 8 This is the sixth example diagram of the shooting method provided in the embodiment of the present application;
[0024] Fig. 9is a structural block diagram of a photographing device provided in an embodiment of the present application;
[0025] Fig.10 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0026] Fig.11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0028] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0029] The embodiment of the present application provides a shooting method and a device thereof, so as to achieve the purpose of shooting a target scene, so that the captured image has a correct white balance and a good image color effect, and can meet the user's requirements for image quality.
[0030] To facilitate understanding, the application scenarios and concepts involved in the embodiments of the present application are first introduced.
[0031] Multispectral technology: It is a spectrum detection technology based on the simultaneous acquisition of multiple optical spectrum bands (usually more than 3), and expanding to infrared and ultraviolet light based on visible light. By expanding the visible light band through imaging chips, the utilization rate of light energy can be improved, and more accurate color and color temperature recognition can be achieved.
[0032] Color temperature: It is a temperature measurement method, usually used in the fields of physics and astronomy. This concept is based on a fictitious black object that emits different colors of light when heated to different temperatures, and the object appears in different colors. Just like when a piece of iron is heated, it first turns red, then yellow, and finally turns white. The color temperature calibrated using this method is exactly the opposite of what the general public thinks of as "warm" and "cold". For example, people usually feel that red, orange and yellow are warmer, and white and blue are colder, but in fact red has the lowest color temperature, followed by orange, yellow, white and blue, and blue has the highest color temperature. When shooting with natural light, the color temperature of the light is different at different times, so the color of the image taken is also different. For example, when shooting under a clear blue sky, the image will be cold because the color temperature of the light is higher; if it is shot at dusk, the image will be warm because the color temperature of the light is lower. When shooting with artificial light, the color tones of the image taken will also be different due to different light source types.
[0033] Soft light: refers to a photography light that has soft light without obvious shadows, is suitable for reflecting the shape and color of objects, and gives people a soft and delicate feeling. Electronic equipment equipped with a soft light can turn on the soft light to provide real-time fill light when shooting.
[0034] In the related art, an electronic device is equipped with a soft light, which can only emit light of one color temperature. When a user uses the soft light of the electronic device to take pictures, he or she will encounter the following color temperature problems, resulting in the color effect of the captured image being relatively poor and failing to meet the user's requirements for image quality: for example, when shooting in a dark environment and turning on the soft light, the captured image cannot restore the original color temperature of the scene seen by the naked eye, but will be cooler (high color temperature) or warmer (low color temperature), and the white balance of the image will be incorrect; for another example, when shooting in a dark environment and turning on the soft light, if the main subject of the picture is a portrait, and there is a difference in color temperature between the foreground portrait and the background, the color of the captured image will be inconsistent and have a sense of cutout.
[0035] In the embodiment of the present application, the electronic device is equipped with a soft light, which has a multi-color temperature function, that is, it can emit light of multiple different color temperatures. When the user uses the electronic device to shoot the target scene, the color temperature of the target scene can be detected, and the fill light color temperature suitable for shooting the target scene can be determined according to the color temperature of the target scene. The soft light emits light according to the fill light color temperature and automatically emits light of a suitable color temperature to help the user correct the color temperature of the target scene so that the captured image has a correct white balance. In addition, the foreground and background in the target scene can be identified, the color temperature of the foreground and the color temperature of the background in the target scene can be detected, and the fill light color temperature suitable for shooting the foreground and background in the target scene can be determined according to the color temperature of the foreground and the color temperature of the background. The soft light emits light according to the fill light color temperature and automatically emits light of a suitable color temperature to help the user correct the color temperature difference between the foreground and the background in the target scene, so that the color temperature of the foreground and the background of the image captured in the target scene is coordinated and unified, without a sense of clipping, and the image color effect is good, which can meet the user's requirements for image quality.
[0036] Next, in conjunction with the accompanying drawings, the shooting method provided in the embodiment of the present application is described in detail through specific embodiments and their application scenarios.
[0037] It should be noted that the shooting method provided in the embodiment of the present application is applicable to electronic devices. In practical applications, the electronic devices may include: mobile terminals such as smart phones, tablet computers, personal digital assistants, etc., and the embodiment of the present application does not limit this.
[0038] Figure 1 This is one of the flow charts of a shooting method provided in an embodiment of the present application, such as Figure 1 As shown, the method may include the following steps: step 101, step 102 and step 103;
[0039] In step 101, the color temperature of the target scene is detected to obtain a color temperature detection result.
[0040] In the embodiment of the present application, the target scene is the scene in which the electronic device is currently located. The target scene can be any scene, for example, a scene in a dark environment, a scene in a bright environment, etc.
[0041] In the embodiment of the present application, when the user wants to shoot the target scene, the color temperature detection of the target scene can be triggered by operating the color temperature detection control of the electronic device. Alternatively, the color temperature detection of the target scene can be automatically triggered when the camera of the electronic device is detected to be turned on.
[0042] In an embodiment of the present application, the electronic device may be configured with hardware for color temperature detection, for example, a multi-spectral color temperature sensor, and the multi-spectral color temperature sensor may be used to perform color temperature detection on a target scene.
[0043] In the embodiments of the present application, different multispectral color temperature sensors are considered to have different detection accuracy. For example, some multispectral color temperature sensors can detect color temperature scenes, wherein the color temperature scenes may include: warm light (tungsten lamp), warm white light (daylight), white with yellow (sunrise), completely white light (noon daylight), completely white light with a slight blue (daylight), white light with a bluish tint (clear daylight), light with a bluish tint (sunny daylight), and blue light (white light on a cloudy day, blue sky) and other light scenes. For another example, other multispectral color temperature sensors can detect scene color temperature values, wherein the scene color temperature values may include: color temperature values below 3000K, 3000K-3999K, 4000K-4999K, 5000K-5999K, 6000K-6499K, 6500K-6999K, 7000K-7999K, and above 8000K.
[0044] Among them, the color temperature scene and the scene color temperature value may have a mapping relationship as shown in Table 1.
[0045] Color temperature scene The color temperature of the scene Warm light (tungsten lamp) Below 3000k Warm white light (daylight) 3000k-3999k White with yellow (sunrise) 4000k-4999k Completely white light (midday sunlight) 5000k-5999k Completely white light with a slight bluish tint (daylight) 6000k-6499k White light tends to be bluish (sunny daylight) 6500k-6999k Light is bluish (sunny daylight) 7000k-7999k Blue light (white light on cloudy days, blue sky) 8000k and above
[0046] Table 1
[0047] In the embodiments of the present application, for multispectral color temperature sensors with different detection accuracy, the representation forms of the color temperature detection results of the target scene are also different. For example, for a multispectral color temperature sensor that detects color temperature scenes, the color temperature detection results of the target scene include: the color temperature scene to which the target scene belongs. For a multispectral color temperature sensor that detects the color temperature value of a scene, the color temperature detection results of the target scene include: the color temperature value of the target scene. In addition, for a multispectral color temperature sensor that detects color temperature scenes, the color temperature detection results of the target scene can also be converted from the color temperature scene to which the target scene belongs to the color temperature value of the target scene through the mapping relationship shown in Table 1 above.
[0048] In step 102, a correction color temperature value of the soft light is determined according to the color temperature detection result, wherein the correction color temperature value is used to correct the color temperature of the target scene during shooting.
[0049] In the embodiment of the present application, the corrected color temperature value is a color temperature value of a fill light color temperature suitable for shooting in the target scene. When using an electronic device to shoot the target scene, the soft light emits light according to the above fill light color temperature. Under the above color temperature light emitted by the soft light, the image of the target scene captured has a better effect.
[0050] In the embodiment of the present application, there is a mapping relationship between the color temperature detection result and the corrected color temperature value, and the corrected color temperature value of the soft light in the current target scene can be determined based on the mapping relationship.
[0051] In some embodiments, the color temperature detection result includes a color temperature scene, and different color temperature scenes correspond to different corrected color temperature values. That is, there is a mapping relationship between the color temperature scene and the corrected color temperature value.
[0052] For example, the following Table 2 shows the mapping relationship between the color temperature scene and the corrected color temperature value.
[0053] Color temperature scene Corrected color temperature value corresponding to soft light Warm light (tungsten lamp) 9000k Warm white light (daylight) 8000k White with yellow (sunrise) 7000k Completely white light (midday sunlight) / Completely white light with a slight bluish tint (daylight) 4000k White light tends to be bluish (sunny daylight) 3500k Light is bluish (sunny daylight) 3000k Blue light (white light on cloudy days, blue sky) 2000k
[0054] Table 2
[0055] In the embodiment of the present application, when the color temperature detection result includes the color temperature scene to which the target scene belongs, the corrected color temperature value of the soft light under the target scene can be determined according to the mapping relationship shown in Table 2.
[0056] In some embodiments, the color temperature detection result includes a scene color temperature value, and scene color temperature values in different intervals correspond to different corrected color temperature values, that is, there is a mapping relationship between the scene color temperature value and the corrected color temperature value.
[0057] For example, the following Table 3 shows the mapping relationship between the scene color temperature value and the correction color temperature value.
[0058]
[0059]
[0060] Table 3
[0061] In the embodiment of the present application, when the color temperature detection result includes the color temperature value of the target scene, the corrected color temperature value of the soft light in the target scene can be determined according to the mapping relationship shown in Table 3.
[0062] According to Table 2 and Table 3, the mapping relationship between the color temperature scene, the scene color temperature value and the correction color temperature value shown in Table 4 below can be obtained.
[0063] Color temperature scene The color temperature of the scene Corrected color temperature value corresponding to soft light Warm light (tungsten lamp) Below 3000k 9000k Warm white light (daylight) 3000k-3999k 8000k White with yellow (sunrise) 4000k-4999k 7000k Completely white light (midday sunlight) 5000k-5999k / Completely white light with a slight bluish tint (daylight) 6000k-6499k 4000k White light tends to be bluish (sunny daylight) 6500k-6999k 3500k Light is bluish (sunny daylight) 7000k-7999k 3000k Blue light (white light on cloudy days, blue sky) 8000k and above 2000k
[0064] Table 4
[0065] It can be seen that in the embodiments of the present application, various types of multi-spectral color temperature sensors can be supported. For different types of multi-spectral color temperature sensors, a mapping relationship between different types of color temperature detection results and the corrected color temperature values of the soft light is preset, which can be applicable to electronic devices with different configurations and has a wide range of application scenarios.
[0066] In step 103, during shooting, the soft light is controlled to emit light according to the calibrated color temperature value, and the first image is captured.
[0067] In the embodiment of the present application, the soft light configured for the electronic device can emit lights of various color temperatures. According to different scenes, it can emit lights of color temperatures matching different scenes to achieve differentiated fill light for different scenes, and can adapt to various shooting scenes.
[0068] In an embodiment of the present application, the electronic device may be configured with a front soft light and a rear soft light, wherein the front soft light is arranged on the front side of the electronic device, and the rear soft light is arranged on the back side of the electronic device.
[0069] In the embodiment of the present application, it is possible to select which soft light to turn on for fill light according to the camera used for shooting. For example, when shooting with the front camera of the electronic device, the front soft light is controlled to emit light according to the calibrated color temperature value. When shooting with the rear camera of the electronic device, the rear soft light is controlled to emit light according to the calibrated color temperature value.
[0070] In the embodiment of the present application, after receiving the calibrated color temperature value, the soft light can be converted into current demand and automatically emit light of appropriate color temperature to help the user calibrate the color temperature of the target scene.
[0071] In the embodiment of the present application, the soft light emits light according to the corrected color temperature value, emitting light of appropriate color temperature so that the color temperature of the target scene is corrected. At this time, the camera of the electronic device shoots the target scene to obtain a first image, which has a correct white balance.
[0072] As can be seen from the above embodiments, in this embodiment, the color temperature of the target scene is detected to obtain a color temperature detection result; based on the color temperature detection result, the corrected color temperature value of the soft light is determined; when shooting, the soft light is controlled to emit light according to the corrected color temperature value to obtain a first image. It can be seen that in the embodiment of the present application, before using an electronic device to shoot the target scene, the color temperature of the target scene can be detected first, and the fill light color temperature (i.e., the corrected color temperature value) suitable for shooting in the target scene can be determined based on the color temperature of the target scene. The soft light of the electronic device converts the determined fill light color temperature into current demand, emits light of a color temperature suitable for shooting, and helps the user to automatically correct the color temperature of the target scene, so that the image captured in the target scene has a correct white balance, and the image color effect is better, which can meet the user's requirements for image quality.
[0073] Figure 2 This is a second flow chart of a shooting method provided in an embodiment of the present application, such as Figure 2 As shown, the method may include the following steps: step 201, step 202 and step 203;
[0074] In step 201, color temperature detection is performed on both the foreground object and the background object in the target scene to obtain a scene color temperature value corresponding to the foreground object and a scene color temperature value corresponding to the background object.
[0075] Considering that if the color temperature of the foreground object in the target scene is significantly different from that of the background object, the captured image will have inconsistent colors and a cutout feel, in response to the above problem, in an embodiment of the present application, the foreground object and the background object in the target scene can be identified, and then the color temperature of the foreground object and the background object can be detected respectively. According to the scene color temperature value corresponding to the foreground object and the scene color temperature value corresponding to the background object, the color temperature difference between the foreground object and the background object is determined. If the color temperature difference is large, a correction color temperature value is determined that can be used to balance the color temperature difference between the foreground object and the background object.
[0076] In an example, Figure 3 As shown, the target scene includes a foreground object 31 and a background object 32, and the scene color temperature value corresponding to the foreground object 31 and the scene color temperature value corresponding to the background object 32 are detected respectively.
[0077] In step 202, the intermediate color temperature value between the scene color temperature value corresponding to the foreground object and the scene color temperature value corresponding to the background object is calculated; and the corrected color temperature value of the soft light is determined according to the intermediate color temperature value.
[0078] In an embodiment of the present application, if the difference between the scene color temperature value of the foreground object and the scene color temperature value of the background object is greater than a certain threshold (for example, 2000K), it is considered that the color temperature difference between the foreground object and the background object is large. At this time, the intermediate color temperature value of the foreground object and the background object is calculated as the color temperature value of the target scene. Then, based on the mapping relationship between the color temperature value of the scene and the corrected color temperature value, the corrected color temperature value of the soft light in the target scene is determined.
[0079] In step 203, during shooting, the soft light is controlled to emit light according to the calibrated color temperature value, and the first image is captured.
[0080] In the embodiment of the present application, the soft light emits light according to the corrected color temperature value and emits light of appropriate color temperature, so that the color temperature difference between the foreground object and the background object in the target scene is corrected. At this time, the camera of the electronic device shoots the target scene to obtain a first image. The first image has a correct white balance, and the color temperature of the image of the foreground object and the image of the background object in the image are coordinated and unified, without a sense of clipping.
[0081] As can be seen from the above embodiments, in this embodiment, color temperature detection is performed on both the foreground object and the background object in the target scene to obtain the scene color temperature value corresponding to the foreground object and the scene color temperature value corresponding to the background object; the intermediate color temperature value of the scene color temperature value corresponding to the foreground object and the scene color temperature value corresponding to the background object is calculated; based on the intermediate color temperature value, the corrected color temperature value of the soft light is determined, wherein the corrected color temperature value is used to correct the color temperature of the target scene during shooting; during shooting, the soft light is controlled to emit light according to the corrected color temperature value to capture a first image. It can be seen that in the embodiment of the present application, before using the electronic device to shoot the target scene, the foreground and background in the target scene can be identified first, the color temperature of the foreground and the background can be detected, and the fill light color temperature (i.e., the corrected color temperature value) suitable for shooting the foreground and background in the target scene can be determined according to the color temperature of the foreground and the background. The soft light of the electronic device converts the determined fill light color temperature into current demand, and emits light of a color temperature suitable for shooting, so as to help the user automatically correct the color temperature difference between the foreground and the background in the target scene, so that the color temperature of the foreground and the background of the image captured in the target scene is coordinated and unified, without a sense of clipping, and the image color effect is better, which can meet the user's requirements for image quality.
[0082] In another embodiment provided in the present application, the provided shooting method can also be Figure 1 or Figure 2 On the basis of the embodiment shown, the following steps are added: step 401, step 402, step 403 and step 404;
[0083] In step 401, N second images of different color temperature styles are generated based on the first image, where N is a positive integer.
[0084] In an embodiment of the present application, the color temperature styles may include: cold color temperature 1, cold color temperature 2, cold color temperature 3, warm color temperature 3, warm color temperature 2 and warm color temperature 1, wherein the image color temperature value corresponding to cold color temperature 1 is about 3000K, the image color temperature value corresponding to cold color temperature 2 is about 4000K, the image color temperature value corresponding to cold color temperature 3 is about 5000K, the image color temperature value corresponding to warm color temperature 3 is about 6000K, the image color temperature value corresponding to warm color temperature 2 is about 7000K, and the image color temperature value corresponding to warm color temperature 1 is about 8000K.
[0085] In one example, if the color temperature style of the first image is cold color temperature 1, five images with different color temperature styles from cold to warm can be generated based on the first image, and the corresponding color temperature values cover 3000k-5000k, for example, Figure 4 As shown, the first image is Figure 1, then five other color temperature style images are generated, namely: image 2 with cold color temperature 2 style, image 3 with cold color temperature 3 style, image 4 with warm color temperature 3 style, image 5 with warm color temperature 2 style, and image 6 with warm color temperature 1 style.
[0086] In an embodiment of the present application, the first image and N second images can be stored in an album. That is to say, for the original image taken by the user, multiple images with different color temperatures from cold to warm can be automatically generated in the album based on the original image for the user to choose from, so as to meet the user's diverse needs for image color temperature effects.
[0087] In step 402, a first input is received, and in response to the first input, a first editing area and a second editing area are displayed, wherein a first image is displayed in the first editing area, and a third image is displayed in the second editing area, and the third image is an image of the N second images having a color temperature style opposite to that of the first image.
[0088] In the embodiment of the present application, if the user is not satisfied with the color temperature effect of the first image or the automatically generated second image, the color temperature effect of the above image can be edited and adjusted.
[0089] In the embodiment of the present application, when the first input is received, two editing areas can be displayed simultaneously, and the user can customize the color temperature of the image displayed in each editing area.
[0090] In the embodiment of the present application, the first input may be: a click input of the user on the album, or a voice command input by the user, or a specific gesture input by the user, wherein the specific gesture may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input may be a single-click input, a double-click input, or any number of click inputs, etc., and may also be a long-press input or a short-press input. The specific input may be determined according to actual use requirements, and the embodiment of the present application does not limit this.
[0091] In an embodiment of the present application, when displaying the first editing area and the second editing area, the first editing area and the second editing area can be displayed side by side, for example, the first editing area is displayed on the left side of the electronic device screen, and the second editing area is displayed on the right side; or, the first editing area and the second editing area can be displayed vertically, for example, the first editing area is displayed in the upper half of the electronic device screen, and the second editing area is displayed in the lower half.
[0092] In an embodiment of the present application, the captured first image (that is, the image with the color temperature value closest to that visible to the naked eye) can be automatically placed in the first editing area, and the generated image with the opposite color temperature style to the first image can be automatically placed in the second editing area.
[0093] In step 403, a second input to the first editing area is received, and in response to the second input, a color temperature adjustment control is displayed.
[0094] In the embodiment of the present application, the second input may be a click input of the user on the first editing area, or a voice command input by the user, or a specific gesture input by the user, etc.
[0095] In the embodiment of the present application, the color temperature adjustment control may be a wheel-type control or a slide bar-type control, wherein when the color temperature adjustment control is a wheel-type control, the wheel-type control may correspond to multiple scales, each scale corresponds to an image color temperature value, and the user may adjust the color temperature of the image by sliding the wheel-type control to a specified scale. When the color temperature adjustment control is a slide bar-type control, the slide bar-type control may correspond to multiple scales, each scale corresponds to an image color temperature value, and the user may adjust the color temperature of the image by sliding the slide bar-type control left and right to a specified scale.
[0096] In one example, combining Figure 4 In the example shown, after clicking on the album, Figure 5 As shown, a first editing area 51, a second editing area 52, an image selection area 53 and a wheel-type control 54 are displayed on the electronic device 50, wherein image 1 is displayed in the first editing area 51, and image 6 with a color temperature style opposite to that of image 1 is displayed in the second editing area 52, wherein multiple images of other color temperature styles generated based on image 1 are displayed in the image selection area 53.
[0097] In another example, still combined with Figure 4 In the example shown, after clicking on the album, Figure 6 As shown, a first editing area 61, a second editing area 62, an image selection area 63 and a wheel-type control 64 are displayed on the electronic device 60, wherein image 1 is displayed in the first editing area 61, image 6 with a color temperature style opposite to that of image 1 is displayed in the second editing area 62, and multiple images of other color temperature styles generated based on image 1 are displayed in the image selection area 63.
[0098] In step 404, a third input to the color temperature adjustment control is received, and in response to the third input, the image color temperature is adjusted for at least the first image in the first editing area.
[0099] In some embodiments, the image color temperature may be adjusted only for the image in the first editing area. Accordingly, the above step 404 includes the following steps:
[0100] The image color temperature of the first image in the first editing area is adjusted according to the color temperature value of the first image selected by the third input, and the color temperature of the second image in the second editing area does not change.
[0101] In some embodiments, the image color temperature can be adjusted for the images in the two editing areas at the same time. Accordingly, the above step 404 includes the following steps: step 4041 and step 4042;
[0102] In step 4041, the image color temperature of the first image in the first editing area is adjusted according to the first image color temperature value selected by the third input.
[0103] In step 4042, the image color temperature of the third image in the second editing area is adjusted according to the second image color temperature value, wherein the second image color temperature value is an image color temperature value having a color temperature value opposite to the first image color temperature value.
[0104] In the embodiment of the present application, when the color temperature of the image in the first editing area changes, the color temperature of the image in the second editing area changes in the opposite direction, so as to adjust the color temperature of the two images at the same time.
[0105] In an embodiment of the present application, different types of third inputs can be set, corresponding to different numbers of image adjustments. For example, when the third input is a single-finger sliding input, the image color temperature is adjusted only for the image in one editing area; when the third input is a two-finger sliding input, the image color temperature is adjusted for the images in two editing areas at the same time, but the directions of the color temperature adjustments are opposite.
[0106] In the embodiment of the present application, after completing the color temperature adjustment of the image, click the Save button. At this time, the two images adjusted in the positive direction and the reverse direction can be synthesized and saved separately, and the user obtains two images with special effects.
[0107] It can be seen that in the embodiments of the present application, in terms of image post-editing, a new image editing interaction method is proposed, which can support users to adjust the color temperature with a wheel control or a slider control, support one-click dual-image color temperature adjustment, and complete two opposite special color temperature style adjustments with one click, thereby meeting the user's needs for customizing special effects in more scenarios.
[0108] In another embodiment provided by the present application, in addition to adjusting the color temperature of the captured original image and an image with a color temperature style opposite to the original image, it is also possible to support color temperature adjustment of other images to meet the editing needs of the user. Accordingly, the provided shooting method can also add the following steps on the basis of the previous embodiment: step 405 and step 406;
[0109] In step 405, a fourth input of the first editing area and a fourth image is received, wherein the fourth image is an image other than the third image among the N second images.
[0110] In the embodiment of the present application, the fourth input may be a drag input, for example, dragging the fourth image in the album to the first editing area.
[0111] In step 406, in response to the fourth input, the image in the first editing area is replaced with a fourth image, and the image in the second editing area is replaced with a fifth image, wherein the fifth image is an image of the N second images having a color temperature style opposite to that of the fourth image.
[0112] In one example, combining Figure 5 The example shown is Figure 7 As shown, the user can click on "Image 2" in the image selection area 53 and drag "Image 2" to the first editing area 51, and the image displayed in the first editing area 51 becomes "Image 2". At the same time, the image displayed in the second editing area 52 becomes "Image 5", where Image 2 has opposite color temperature styles to Image 5.
[0113] In another example, combining Figure 6 The example shown is Figure 8 As shown, the user can click on "Image 2" in the image selection area 63 and drag "Image 2" to the first editing area 61. The image displayed in the first editing area 61 becomes "Image 2". At the same time, the image displayed in the second editing area 62 becomes "Image 5", where Image 2 has opposite color temperature styles to Image 5.
[0114] In an embodiment of the present application, after replacing the image in the first editing area with the fourth image, and replacing the image in the second editing area with the fifth image, the user can perform a wheel-type / slide-bar type adjustment of the warm or cold color temperature of the image in one editing area, while the image in the other editing area will undergo an opposite color temperature change.
[0115] It can be seen that in the embodiment of the present application, the user can be supported to adjust the color temperature of images other than the original image to meet the user's editing needs.
[0116] Fig. 9 is a structural block diagram of a photographing device provided in an embodiment of the present application, such as Fig. 9 As shown, the photographing device 900 may include: a detection module 901, a determination module 902 and a photographing module 903;
[0117] The detection module 901 is used to detect the color temperature of the target scene and obtain a color temperature detection result;
[0118] A determination module 902 is used to determine a correction color temperature value of the soft light according to the color temperature detection result, wherein the correction color temperature value is used to correct the color temperature of the target scene during shooting;
[0119] The shooting module 903 is used to control the soft light to emit light according to the corrected color temperature value during shooting, so as to shoot and obtain a first image.
[0120] As can be seen from the above embodiments, in this embodiment, the color temperature of the target scene is detected to obtain a color temperature detection result; based on the color temperature detection result, the corrected color temperature value of the soft light is determined; when shooting, the soft light is controlled to emit light according to the corrected color temperature value to obtain a first image. It can be seen that in the embodiment of the present application, before using an electronic device to shoot the target scene, the color temperature of the target scene can be detected first, and the fill light color temperature (i.e., the corrected color temperature value) suitable for shooting in the target scene can be determined based on the color temperature of the target scene. The soft light of the electronic device converts the determined fill light color temperature into current demand, emits light of a color temperature suitable for shooting, and helps the user to automatically correct the color temperature of the target scene, so that the image captured in the target scene has a correct white balance, and the image color effect is better, which can meet the user's requirements for image quality.
[0121] Optionally, as an embodiment, the detection module 901 may include:
[0122] A detection submodule, used to perform color temperature detection on both the foreground object and the background object in the target scene, and obtain a scene color temperature value corresponding to the foreground object and a scene color temperature value corresponding to the background object;
[0123] The determining module 902 may include:
[0124] A calculation submodule, used to calculate an intermediate color temperature value between a scene color temperature value corresponding to the foreground object and a scene color temperature value corresponding to the background object;
[0125] The determination submodule is used to determine the corrected color temperature value of the soft light according to the intermediate color temperature value.
[0126] Optionally, as an embodiment, the photographing device 900 may further include:
[0127] A generating module, configured to generate N second images of different color temperature styles based on the first image, where N is a positive integer;
[0128] A first receiving module, configured to receive a first input;
[0129] A first display module, configured to display a first editing area and a second editing area in response to the first input, wherein the first image is displayed in the first editing area, and a third image is displayed in the second editing area, and the third image is an image of the N second images having a color temperature style opposite to that of the first image;
[0130] A second receiving module, used for receiving a second input to the first editing area;
[0131] a second display module, configured to display a color temperature adjustment control in response to the second input;
[0132] A third receiving module, used for receiving a third input to the color temperature adjustment control;
[0133] An adjustment module is used to adjust the image color temperature of at least the first image in the first editing area in response to the third input.
[0134] Optionally, as an embodiment, the adjustment module may include:
[0135] A first adjustment submodule, configured to adjust the image color temperature of the first image in the first editing area according to the first image color temperature value selected by the third input;
[0136] The second adjustment submodule is used to adjust the image color temperature of the third image in the second editing area according to a second image color temperature value, wherein the second image color temperature value is an image color temperature value opposite to the first image color temperature value.
[0137] Optionally, as an embodiment, the photographing device 900 may further include:
[0138] a fourth receiving module, configured to receive a fourth input of the first editing area and a fourth image, wherein the fourth image is an image other than the third image among the N second images;
[0139] A replacement module is used to replace the image in the first editing area with the fourth image in response to the fourth input, and to replace the image in the second editing area with the fifth image, wherein the fifth image is an image among the N second images having a color temperature style opposite to that of the fourth image.
[0140] The photographing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0141] The shooting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0142] The shooting device provided in the embodiment of the present application can achieve Figure 1 or Figure 2 To avoid repetition, the various processes implemented in the method embodiment will not be described again here.
[0143] Alternatively, if Fig.10 As shown, an embodiment of the present application also provides an electronic device 1000, including a processor 1001, a memory 1002, and a program or instruction stored in the memory 1002 and executable on the processor 1001. When the program or instruction is executed by the processor 1001, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0144] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0145] Fig.11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0146] The electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110 and other components.
[0147] Those skilled in the art will appreciate that the electronic device 1100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.11 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0148] Among them, the processor 1110 is used to detect the color temperature of the target scene and obtain a color temperature detection result; determine the corrected color temperature value of the soft light according to the color temperature detection result, wherein the corrected color temperature value is used to correct the color temperature of the target scene during shooting; when shooting, the soft light is controlled to emit light according to the corrected color temperature value to capture a first image.
[0149] It can be seen that in the embodiment of the present application, before using the electronic device to shoot the target scene, the color temperature of the target scene can be detected first, and the fill light color temperature suitable for shooting in the target scene can be determined according to the color temperature of the target scene. The soft light of the electronic device converts the determined fill light color temperature into current demand, and emits light of a color temperature suitable for shooting, so as to help the user automatically correct the color temperature of the target scene, so that the image captured in the target scene has the correct white balance and the image color effect is better, which can meet the user's requirements for image quality.
[0150] Optionally, as an embodiment, the processor 1110 is further used to perform color temperature detection on both the foreground object and the background object in the target scene to obtain a scene color temperature value corresponding to the foreground object and a scene color temperature value corresponding to the background object; calculate an intermediate color temperature value between the scene color temperature value corresponding to the foreground object and the scene color temperature value corresponding to the background object; and determine a corrected color temperature value of the soft light based on the intermediate color temperature value.
[0151] Optionally, as an embodiment, the processor 1110 is further configured to generate N second images of different color temperature styles based on the first image, where N is a positive integer;
[0152] A user input unit 1107, configured to receive a first input;
[0153] The processor 1110 is further configured to, in response to the first input, instruct the display unit 1106 to display a first editing area and a second editing area, wherein the first image is displayed in the first editing area, and a third image is displayed in the second editing area, and the third image is an image having a color temperature style opposite to that of the first image among the N second images;
[0154] The user input unit 1107 is further used to receive a second input to the first editing area;
[0155] The processor 1110 is further configured to instruct the display unit 1106 to display a color temperature adjustment control in response to the second input;
[0156] The user input unit 1107 is further used to receive a third input to the color temperature adjustment control;
[0157] The processor 1110 is further configured to adjust the color temperature of at least the first image in the first editing area in response to the third input.
[0158] Optionally, as an embodiment, the processor 1110 is further used to adjust the image color temperature of the first image in the first editing area according to the first image color temperature value selected by the third input; and to adjust the image color temperature of the third image in the second editing area according to the second image color temperature value, wherein the second image color temperature value is an image color temperature value having a color temperature value opposite to the first image color temperature value.
[0159] Optionally, as an embodiment, the user input unit 1107 is further used to receive a fourth input on the first editing area and a fourth image, wherein the fourth image is an image other than the third image among the N second images;
[0160] Processor 1110 is also used to replace the image in the first editing area with the fourth image in response to the fourth input, and replace the image in the second editing area with the fifth image, wherein the fifth image is an image among the N second images having a color temperature style opposite to that of the fourth image.
[0161] It should be understood that in the embodiment of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1107 includes a touch panel 11071 and other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include two parts: a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1110.
[0162] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0163] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0164] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned shooting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0165] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0166] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0167] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), including instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0168] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A shooting method, characterized in that: The method comprises: Detect the color temperature of the target scene and obtain a color temperature detection result; Determining a corrected color temperature value of the soft light according to the color temperature detection result, wherein the corrected color temperature value is used to correct the color temperature of the target scene during shooting; During shooting, the soft light is controlled to emit light according to the corrected color temperature value, and a first image is captured; The method further comprises: Based on the first image, generate N second images with different color temperature styles, where N is a positive integer; Receive a first input, and in response to the first input, display a first editing area and a second editing area, wherein the first image is displayed in the first editing area, and a third image is displayed in the second editing area, and the third image is an image of the N second images having a color temperature style opposite to that of the first image; receiving a second input to the first editing area, and displaying a color temperature adjustment control in response to the second input; A third input to the color temperature adjustment control is received, and in response to the third input, the image color temperature is adjusted for at least the first image in the first editing area; when the third input is a two-finger sliding input, the image color temperature is adjusted for the first image in the first editing area and the third image in the second editing area at the same time, but in opposite directions.
2. The method according to claim 1, characterized in that The detecting the color temperature of the target scene to obtain a color temperature detection result includes: Performing color temperature detection on both the foreground object and the background object in the target scene to obtain a scene color temperature value corresponding to the foreground object and a scene color temperature value corresponding to the background object; Determining the corrected color temperature value of the soft light according to the color temperature detection result includes: Calculate an intermediate color temperature value between the scene color temperature value corresponding to the foreground object and the scene color temperature value corresponding to the background object; According to the intermediate color temperature value, a correction color temperature value of the soft light is determined.
3. The method according to claim 1, characterized in that The step of adjusting the color temperature of at least the first image in the first editing area includes: According to the first image color temperature value selected by the third input, adjusting the image color temperature of the first image in the first editing area; The image color temperature of the third image in the second editing area is adjusted according to a second image color temperature value, wherein the second image color temperature value is an image color temperature value opposite to the first image color temperature value.
4. The method according to claim 1, characterized in that After displaying the first editing area and the second editing area, the method further includes: receiving a fourth input of the first editing area and a fourth image, wherein the fourth image is an image other than the third image among the N second images; In response to the fourth input, the image in the first editing area is replaced with the fourth image, and the image in the second editing area is replaced with the fifth image, wherein the fifth image is an image among the N second images having a color temperature style opposite to that of the fourth image.
5. A photographing device, characterized in that: The device comprises: A detection module is used to detect the color temperature of the target scene and obtain a color temperature detection result; A determination module, configured to determine a correction color temperature value of the soft light according to the color temperature detection result, wherein the correction color temperature value is used to correct the color temperature of the target scene during shooting; A shooting module, used for controlling the soft light to emit light according to the calibrated color temperature value during shooting, so as to shoot and obtain a first image; The device also includes: A generating module, configured to generate N second images of different color temperature styles based on the first image, where N is a positive integer; A first receiving module, configured to receive a first input; A first display module, configured to display a first editing area and a second editing area in response to the first input, wherein the first image is displayed in the first editing area, and a third image is displayed in the second editing area, and the third image is an image of the N second images having a color temperature style opposite to that of the first image; A second receiving module, used for receiving a second input to the first editing area; a second display module, configured to display a color temperature adjustment control in response to the second input; A third receiving module, used for receiving a third input to the color temperature adjustment control; An adjustment module is used to adjust the image color temperature of at least the first image in the first editing area in response to the third input. When the third input is a two-finger sliding input, the image color temperature of the first image in the first editing area and the third image in the second editing area are adjusted simultaneously, but the directions of the image color temperature adjustment are opposite.
6. The device according to claim 5, characterized in that The detection module comprises: A detection submodule, used to perform color temperature detection on both the foreground object and the background object in the target scene, and obtain a scene color temperature value corresponding to the foreground object and a scene color temperature value corresponding to the background object; The determination module comprises: A calculation submodule, used to calculate an intermediate color temperature value between the scene color temperature value corresponding to the foreground object and the scene color temperature value corresponding to the background object; The determination submodule is used to determine the corrected color temperature value of the soft light according to the intermediate color temperature value.
7. The device according to claim 5, characterized in that The adjustment module comprises: A first adjustment submodule, configured to adjust the image color temperature of the first image in the first editing area according to the first image color temperature value selected by the third input; The second adjustment submodule is used to adjust the image color temperature of the third image in the second editing area according to a second image color temperature value, wherein the second image color temperature value is an image color temperature value opposite to the first image color temperature value.
8. The device according to claim 5, characterized in that The device also includes: a fourth receiving module, configured to receive a fourth input of the first editing area and a fourth image, wherein the fourth image is an image other than the third image among the N second images; A replacement module is used to replace the image in the first editing area with the fourth image in response to the fourth input, and to replace the image in the second editing area with the fifth image, wherein the fifth image is an image among the N second images having a color temperature style opposite to that of the fourth image.
Citation Information
Patent Citations
Shooting light modulation method, light source control method of light source device and corresponding device thereof
CN105979137A
Picture adjustment parameter adjustment method and device, electronic equipment and storage medium
CN113157179A
Image Processing Method, Image Processing Apparatus and Computer Readable Storage Medium
US20200213533A1