Photographing method and device and electronic equipment

By using multiple flash modules matching different focal lengths in electronic devices to automatically adjust the fill light, the problem of poor fill light effect of traditional flash is solved, and a more natural and uniform image light effect is achieved, and the filming rate is improved.

CN120111344APending Publication Date: 2025-06-06VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510329775.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

During shooting, the flashes of traditional electronic devices are difficult to fill up effectively due to the fixed flash distance and brightness, resulting in too dark or overexposed images, affecting the imaging effect.

Method used

The flash module is used, which includes multiple flashes that match different shooting focal lengths. The corresponding flash is automatically turned on according to the shooting focal length to ensure that the coverage angle of the fill light matches the viewing angle of the camera.

Benefits of technology

Through precise fill light, avoid the problem of over-dark or over-exposure of the image, improve the naturalness and uniformity of the image, and improve the filming rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120111344A_ABST
    Figure CN120111344A_ABST
Patent Text Reader

Abstract

The invention discloses a photographing method and device and electronic equipment, and belongs to the technical field of camera shooting. The method comprises the following steps: receiving first input; in response to the first input, controlling the camera to shoot, controlling the light supplement flash lamp to supplement light in the shooting process, and outputting an image; wherein the light supplementing flash lamps are flash lamps matched with the shooting focal length in the flash lamp module, and the number of the light supplementing flash lamps is larger than 0.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method, device and electronic device for taking photos. Background Art

[0002] With the development of electronic technology, the photography effects of electronic devices such as smartphones have been greatly improved. Electronic devices are gradually narrowing the gap with professional equipment in photography and becoming the main shooting tool for many people in their daily lives.

[0003] Electronic devices usually use built-in flashes for fill light when shooting. However, the flash distance and brightness of traditional flashes are relatively fixed. When the subject is far away from the flash, the flash does not significantly improve the imaging effect, and the picture is likely to be too dark. When the subject is close to the flash, the image is likely to be overexposed, making the photo look unnatural, thereby reducing the success rate of the photo. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a photographing method, device, electronic device, storage medium and program product, which can automatically turn on the flash corresponding to the shooting focal length for fill light when shooting, so that the coverage angle of the fill light can match the viewing angle of the camera, so that the light can be accurately projected to the area that needs to be illuminated, effectively avoiding the problem of image being too dark or overexposed, making the overall lighting effect of the image more natural and uniform, thereby improving the success rate of filming.

[0005] In a first aspect, an embodiment of the present application provides a photographing method, comprising:

[0006] receiving a first input;

[0007] In response to the first input, the camera is controlled to shoot, and during the shooting process, a fill-in flash is controlled to fill in light, and an image is output;

[0008] Among them, the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0.

[0009] In a second aspect, an embodiment of the present application provides a photographing device, including:

[0010] A receiving module, configured to receive a first input;

[0011] A processing module, for controlling the camera to shoot in response to the first input, and controlling the fill-in flash to fill in light during the shooting process, and outputting an image;

[0012] Among them, the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a flash module, a processor and a memory, the memory storing a program or instruction that can be run on the processor, and the program or instruction when executed by the processor implements the steps of the method of the first aspect;

[0014] The flash module includes at least two flashes with corresponding different zoom focal lengths.

[0015] 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.

[0016] 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.

[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0018] In the embodiment of the present application, a first input is received; in response to the first input, the camera is controlled to shoot, and during the shooting process, the fill-in flash is controlled to perform fill-in light, and an image is output; wherein the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0. According to this embodiment, when shooting, the flash corresponding to the shooting focal length is automatically turned on for fill-in light, so that the coverage angle of the fill-in light can match the viewing angle of the camera, so that the light is accurately projected to the area that needs to be illuminated, effectively avoiding the problem of the image being too dark or overexposed, and making the overall light effect of the image more natural and uniform, thereby improving the filming rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flowchart of a photographing method provided by some embodiments of the present application;

[0020] Figure 2 is a schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0021] Figure 3 is a schematic diagram of capturing images provided by some embodiments of the present application;

[0022] Figure 4 is a schematic diagram of capturing images provided by some embodiments of the present application;

[0023] Figure 5 is a schematic diagram of capturing images provided by some embodiments of the present application;

[0024] Fig. 6A is a schematic diagram of a vertical arrangement of flash lamps provided in some embodiments of the present application;

[0025] Figure 6B is a schematic diagram of a horizontal arrangement of flashlights provided in some embodiments of the present application;

[0026] Figure 6C is a schematic diagram of a flashlight matrix arrangement provided by some embodiments of the present application;

[0027] Figure 7 is a flowchart of a photographing method provided by some embodiments of the present application;

[0028] Figure 8 is a flowchart of a photographing method provided by some embodiments of the present application;

[0029] Fig. 9 is a schematic diagram of a first functional relationship provided by some embodiments of the present application;

[0030] Fig.10 is a schematic diagram of a second functional relationship provided by some embodiments of the present application;

[0031] Fig.11 is a schematic diagram of a focal length setting interface provided by some embodiments of the present application;

[0032] Fig.12 is a block diagram of a photographing device provided by some embodiments of the present application;

[0033] Fig.13 is a block diagram of an electronic device provided by some embodiments of the present application;

[0034] Fig.14 It is a schematic diagram of the structure of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION

[0035] 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.

[0036] 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 data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, 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.

[0037] To facilitate understanding, the professional terms in the embodiments of the present application are explained below.

[0038] The shooting preview interface refers to the interface for displaying a preview image on the display screen of an electronic device when using the camera in the electronic device to shoot images or videos. The preview image displayed in the shooting preview interface is a real-time data stream taken from the camera. Specifically, when the camera application in the electronic device is running and entering the shooting mode, the camera of the electronic device will continuously capture the aimed scene and transmit this data to the processor of the electronic device. The processor will quickly process this data, including applying basic image processing algorithms such as denoising, color correction, and reducing resolution, and then display the processed image in real time on the screen of the electronic device.

[0039] The preview image refers to an image that is captured in real time by the camera and displayed in the shooting preview interface of the electronic device when the camera of the electronic device is used to shoot an image or video.

[0040] Zoom focal length refers to the focal length that can be adjusted by the camera of an electronic device when the camera in the electronic device is used to capture images or videos.

[0041] Zoom focal length refers to the zoom focal length range that the camera of an electronic device can continuously change within a certain range when using the camera in the electronic device to capture images or videos.

[0042] Shooting focal length refers to the zoom focal length used when using the camera in an electronic device to capture images or videos.

[0043] The foreground object refers to the main object that the photographer wants to highlight, convey core information or express a specific theme in the shot. In other words, it refers to the object that the photographer wants to shoot when taking a photo.

[0044] The current value of a flash lamp refers to the current passing through its circuit when the flash lamp is working.

[0045] The following, in conjunction with the accompanying drawings, describes in detail the photographing method, device, electronic device, storage medium and program product provided by the embodiments of the present application through specific embodiments and their application scenarios.

[0046] The photographing method provided in the embodiment of the present application can be applied to the scene of photographing by electronic devices such as smart phones. One specific application scenario is to use the electronic device to photograph a distant stage, another specific application scenario is to use the electronic device to photograph a person about two meters away from the electronic device, and another specific application scenario is to use the electronic device to photograph nearby food. Figure 1-Figure 11 The photographing method provided in the embodiment of the present application is described in detail. It should be noted that the photographing method provided in the embodiment of the present application can be performed by an electronic device having a camera and a flash, and the electronic device includes but is not limited to a smart phone, a tablet computer, a smart wearable device, etc. In the embodiment of the present application, the photographing method provided in the embodiment of the present application is described by taking an electronic device performing the photographing method as an example.

[0047] See also Figure 1 , is a flow chart of a photographing method provided in an embodiment of the present application, such as Figure 1 As shown, the method includes steps 110 to 120, which are described in detail below.

[0048] Step 110. Receive a first input.

[0049] In some embodiments of the present application, the first input is an input for instructing the electronic device to start shooting. When the user uses the electronic device to take pictures, the electronic device is controlled to perform the shooting action through the above-mentioned first input, thereby obtaining the image taken by the electronic device. Exemplarily, the above-mentioned first input includes but is not limited to: the user clicks the shooting control on the shooting preview interface displayed by the electronic device through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiments of the present invention are not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag 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 in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.

[0050] For example, the first input may be: the user touches the Figure 2The first input may also be: a user's voice command to the electronic device indicating the start of taking a photo. The first input may also be: a specific gesture input by the user, such as an OK gesture. The first input may also be: a user's finger gesture such as Figure 2 The first input may also be: the user double-clicks the shooting preview interface 200 with his finger. Figure 2 The specific track drawn on the shooting preview interface 200 is shown, for example, an S-shaped track.

[0051] Step 120. In response to the first input, control the camera to shoot, and control the fill-in flash to provide fill-in light during the shooting process, and output an image, wherein the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0.

[0052] In some embodiments of the present application, the flash module is a module used for fill light in an electronic device. The flash module includes at least one zoom flash or at least two flashes with different corresponding zoom focal lengths. Among them, the zoom flash refers to a flash that can adjust the irradiation distance and light coverage range as the shooting focal length changes. The irradiation distance and light range of the flash corresponding to each zoom focal length are fixed and cannot be adjusted, but the irradiation distance and range of the flash corresponding to different zoom focal lengths are different. For example, the zoom focal length of the electronic device includes a near focal length, a middle focal length and a far focal length, and the flash module includes a near focal length flash corresponding to the near focal length, a middle focal length flash corresponding to the middle focal length, and a far focal length flash corresponding to the far focal length, wherein the light emitted by the near focal length flash is scattered and soft, can provide a wider light coverage at a close distance, can evenly illuminate a small area where a nearby object is located, and is suitable for fill light for objects that are close to the electronic device. The light irradiation distance of a mid-focus flash is between that of a close-focus flash and that of a far-focus flash, and the light coverage range is moderate, which is suitable for providing fill light for objects that are moderately far from the electronic device. The light of a far-focus flash is focused and bright, and the light coverage range is relatively narrow. The light irradiation distance is long, and the light can be concentrated in a small area far away, so it is suitable for providing fill light for objects that are far away from the electronic device. For ease of description, the following description takes the example of a flash module including at least two corresponding flashes with different zoom focal lengths.

[0053] In some embodiments of the present application, the shooting focal length refers to the zoom focal length used when the electronic device controls the camera to shoot. Different zoom focal lengths correspond to different zoom focal lengths. For example, the zoom focal length of the near focal length is 0.6x-1.499x, the zoom focal length of the medium focal length is 1.5x-3.699x, and the zoom focal length of the far focal length is 3.7x-100x, where x represents the magnification of the object distance. Based on this, the electronic device can determine the shooting focal length according to the zoom focal length used during shooting. For example, if the zoom focal length used by the electronic device during shooting is 1.3x, it is determined that the shooting focal length currently used is the near focal length. If the zoom focal length used by the electronic device during shooting is 1.7x, it is determined that the shooting focal length currently used is the medium focal length. If the zoom focal length used by the electronic device during shooting is 4.5x, it is determined that the shooting focal length currently used is the far focal length.

[0054] In some embodiments of the present application, different shooting focal lengths may be used in different shooting scenes. For example, when shooting an object that is far away from the electronic device, a far focal length may be used as the shooting focal length. When shooting an object that is at a moderate distance from the electronic device, a medium focal length may be used as the shooting focal length. When shooting an object that is close to the electronic device, a near focal length may be used as the shooting focal length. Among them, the objects shot include but are not limited to stages, food, portraits, scenery, vehicles, etc., which are not specifically limited in this embodiment.

[0055] For example, the zoom focal length of the electronic device includes a near focal length, a middle focal length, and a far focal length. The zoom focal length of the near focal length is 0.6x-1.499x, the zoom focal length of the middle focal length is 1.5x-3.699x, and the zoom focal length of the far focal length is 3.7x-100x. When the electronic device uses a 4.5x zoom focal length to shoot a distant stage, it is determined that the currently used shooting focal length is the far focal length. In the shooting process, the far focal length flash corresponding to the near focal length, which has a long irradiation distance and a small light coverage range, can be used to fill in the light of the stage to be shot, thereby obtaining the following: Figure 3 When the electronic device uses a 1.7x zoom focal length to shoot a person about 2 meters away from the electronic device, it is determined that the current shooting focal length is a medium focal length. During the shooting process, the person to be shot can be supplemented with light by a medium focal length flash with a moderate irradiation distance and light coverage range, so as to obtain the following image: Figure 4 When the electronic device uses a 1.3x zoom focal length to shoot a bowl of noodles at a close distance, it is determined that the current shooting focal length is a close focal length. In the shooting process, a close-focus flash with a short irradiation distance and a large light coverage range can be used to fill in the light for the bowl of noodles to be shot, so as to obtain the following image: Figure 5 Noodle image 500 is shown including a bowl of noodles.

[0056] The photographing method provided in this embodiment receives a first input; in response to the first input, controls the camera to shoot, and controls the fill-in flash to perform fill-in light during the shooting process, and outputs an image; wherein the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0. According to this embodiment, when shooting, different fill-in flashes can be automatically used for shooting fill-in light according to different shooting focal lengths. Since different shooting focal lengths correspond to different viewing angles, by using the flash corresponding to the shooting focal length for fill-in light, the coverage angle of the fill-in light can match the viewing angle of the camera, so that the light can be accurately projected to the object that needs to be illuminated, effectively avoiding dark corners or bright spots in the shooting picture, and making the overall light effect of the picture more natural and uniform, thereby helping to improve the imaging effect of shooting scenes such as stage, food, and portraits, and improve the success rate.

[0057] In some embodiments, when the ambient light cannot meet the user's shooting needs, the flash module is used for fill light. When the ambient light is sufficient to meet the user's shooting needs, there is no need to use the flash module for fill light. Therefore, the flash module can include two states, namely, an on state and an off state. Based on this, in the above step 120, the electronic device responds to the first input, and when it is determined that the flash module is in the on state, it executes the step of controlling the fill light flash to perform fill light during the shooting process.

[0058] In some embodiments of the present application, the user can switch the state of the flash module according to actual needs. When the user uses an electronic device to take a photo, open the corresponding application in the electronic device and enter the state of the flash module. Figure 2 In the shooting preview interface 200 shown, when the user determines that the flash module is needed for fill light, the state of the flash module in the electronic device can be switched to the on state by clicking the first control 210 for switching the state of the flash module in the shooting preview interface 200. Similarly, when the user determines that the flash module is not needed for fill light, the state of the flash module in the electronic device can also be switched to the off state by clicking the first control 210.

[0059] In some embodiments, the flash module includes at least two flashes corresponding to different zoom focal lengths, wherein different flashes correspond to different zoom focal lengths, and the zoom focal lengths corresponding to the flashes are used to indicate the zoom focal length range corresponding to the flashes, that is, the camera focal length range.

[0060] In some embodiments of the present application, corresponding flashes with different zoom focal lengths may be implemented using at least one of the following structures:

[0061] By changing the spin coating thickness of the lampshade coating and the density of the threads, the brightness of the flash can be changed to simulate different focal lengths. A low lampshade coating thickness or sparse thread density can make the flash more light-transmitting, brighter, and able to illuminate farther.

[0062] By changing the opening and closing angle of the lampshade, the degree of light concentration can be changed to achieve a change in the focal length of the light.

[0063] Using polymer dispersed liquid crystal (PDLC) materials, PDLC liquid crystal molecules have polarity and are subjected to force in an electric field. By applying voltage to the upper and lower surfaces of PDLC, the liquid crystal distribution tends to be arranged in an orderly and regular manner. Light passes through the orderly and regular liquid crystal molecules, maintaining the same characteristics of the exit angle and the incident angle. By adjusting the voltage, the arrangement of liquid crystal molecules is changed to achieve different focal lengths.

[0064] In some embodiments of the present application, the arrangement of at least two flashes corresponding to different zoom focal lengths on the electronic device includes but is not limited to horizontal arrangement, vertical arrangement, matrix arrangement, etc. For example, taking the flash module including three flashes, namely, a near focal length flash, a mid focal length flash, and a far focal length flash, as an example, Fig. 6A As shown, the near-focus flash 610, the mid-focus flash 620, and the far-focus flash 630 can be arranged vertically. Figure 6B As shown, the near-focus flashlight 610, the mid-focus flashlight 620, and the far-focus flashlight 630 may be arranged horizontally. Figure 6C As shown, the near-focus flash 610, the middle-focus flash 620 and the far-focus flash 630 may also be arranged in a matrix.

[0065] In the case where the flash module includes at least two flashes corresponding to different zoom focal lengths, before the above step 120, the following steps 210 to 220 may be performed:

[0066] Step 210: Get preview zoom focal length.

[0067] Here, the preview zoom focal length is the zoom focal length currently selected in the shooting preview interface, that is, the zoom focal length used in this shooting.

[0068] In some embodiments of the present application, during this shooting, the zoom focal length currently selected in the shooting preview interface may be a default zoom focal length pre-set in the electronic device, based on which the electronic device may directly obtain the pre-set default zoom focal length as the preview zoom focal length. For example, if the default zoom focal length of the electronic device is 1.7x, 1.7x is determined as the preview zoom focal length.

[0069] In other embodiments of the present application, during this shooting, the zoom focal length currently selected in the shooting preview interface may be the zoom focal length used by the electronic device in the previous shooting. Therefore, the electronic device may obtain the zoom focal length used in the previous shooting as the preview zoom focal length. For example, if the zoom focal length used by the electronic device in the previous shooting was 4.5x, 4.5x is used as the preview zoom focal length.

[0070] In other embodiments of the present application, before shooting, when the user determines through the shooting preview interface that the image effect shot using the zoom focal length currently selected in the shooting preview interface is not good and cannot meet the user's shooting needs, the user can adjust the zoom focal length selected in the shooting preview interface according to actual needs, and the electronic device determines the preview zoom focal length based on the user's adjustment. Based on this, the electronic device can also obtain the preview zoom focal length in the following manner:

[0071] Receiving a second input for previewing the zoom focal length in the shooting preview interface;

[0072] In response to the second input, the focal length value of the preview zoom focal length is updated.

[0073] Here, the second input refers to an input for adjusting the zoom focal length to be used when taking pictures. Before inputting the first input to the electronic device, the user can adjust the zoom focal length used when shooting through the second input according to actual needs, that is, adjust the zoom focal length selected in the shooting preview interface. In response to the second input, the electronic device adjusts the zoom focal length selected in the shooting preview interface, and determines the adjusted selected zoom focal length as the preview zoom focal length. For example, the zoom focal length previously selected in the shooting preview interface is 1.4x, and the user adjusts the zoom focal length selected in the shooting preview interface from 1.4x to 4.5x through the second input, then the electronic device determines 4.5x as the preview zoom focal length.

[0074] Exemplarily, the second input includes but is not limited to: the user sliding or clicking the focus control in the shooting preview interface through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined according to actual usage requirements and is not limited in the embodiment of the present invention. The specific gesture in the embodiment of the present application can 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 in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the second input can be: the user sliding or clicking the focus control in the shooting preview interface through a finger. Figure 2The second input may also be: a voice command issued by the user to the electronic device indicating that a certain zoom focal length is used for shooting. The second input may also be: when the electronic device displays a Figure 2 In the shooting preview interface 200 shown, a user inputs a specific gesture, such as a left swipe gesture or a right swipe gesture.

[0075] Step 220: Determine at least one flash in the flash module whose corresponding zoom focal length matches the preview zoom focal length as a fill flash.

[0076] Through the above solution, it is possible to determine whether to turn on the flash at different zoom focal lengths according to the current preview zoom focal length during shooting.

[0077] In some embodiments, in the above step 220, the preview zoom focal length can be compared with the zoom focal length corresponding to each flash to determine the zoom focal length including the preview zoom focal length, and the flash corresponding to the zoom focal length including the preview zoom focal length can be determined as the fill flash for shooting fill light.

[0078] As shown above, each flash in the flash module corresponds to a zoom focal length, and different flashes correspond to different zoom focal lengths. After obtaining the preview zoom focal length, the preview zoom focal length can be compared with the upper limit value and the lower limit value of the zoom focal length corresponding to each flash, and the zoom focal length whose upper limit value is greater than or equal to the preview zoom focal length and whose lower limit value is less than or equal to the preview zoom angle is determined as the zoom focal length including the preview zoom focal length, thereby determining the flash corresponding to the zoom focal length including the preview zoom focal length as the fill flash. For example, assume that the flash module includes a close-focus flash, a mid-focus flash, and a far-focus flash, wherein the zoom focal length corresponding to the close-focus flash is 0.6x–1.499x, the zoom focal length corresponding to the mid-focus flash is 1.5x-3.699x, and the zoom focal length corresponding to the far-focus flash is 3.7x-100x. If the preview zoom focal length is 1.5x, the zoom focal length including the preview zoom focal length is determined to be the middle focal length, and then the middle focal length flash corresponding to the middle focal length is determined to be the fill flash.

[0079] In some embodiments, see Figure 7 In the above step 220, the fill flash can also be determined through the following steps 2201-2203.

[0080] Step 2201: Compare the previewed zoom focal length with the zoom focal length corresponding to each flash in the flash module, and determine the flash corresponding to the zoom focal length including the zoom focal length as the candidate flash.

[0081] Here, the method of determining the zoom focal length including the preview zoom focal length is consistent with the method of determining the fill light flash mentioned above, and will not be described again here to avoid repetition.

[0082] Different from the previous method of determining the fill flash, here the flash corresponding to the zoom focal length including the preview zoom focal length is no longer directly determined as the fill flash, but is used as a candidate flash. Further analysis is required through steps 2202-2203 to finally determine the fill flash.

[0083] Step 2202. Based on the zoom focal length including the preview zoom focal length and the preview zoom focal length, determine the fill light weight of the candidate flash, the fill light weight is used to indicate the ratio of a first difference to a second difference, the first difference being the difference between the preview zoom focal length and the lower limit value of the zoom focal length including the preview zoom focal length, and the second difference being the difference between the upper limit value and the lower limit value of the zoom focal length including the preview zoom focal length.

[0084] In some embodiments of the present application, after the candidate flash is determined, a first difference between the preview zoom focal length and the lower limit value of the zoom focal length corresponding to the candidate flash and a second difference between the upper limit value and the lower limit value in the zoom focal length corresponding to the candidate flash are calculated respectively, and the ratio of the first difference to the second difference is determined as the fill light weight of the candidate flash.

[0085] For example, taking the preview zoom focal length as α, it is determined through step 2201 that the zoom focal length 0.6x-1.499x corresponding to the close-focus flash includes α, and the close-focus flash is determined as the candidate flash. At this time, the fill light weight w1 of the candidate flash is calculated by the following formula (1):

[0086] w1=(α-0.6x) / (1.499x-0.6x) (1)

[0087] Step 2203: Based on the fill light weight, determine at least one fill light flash in the flash module for shooting fill light, and the at least one fill light flash includes a candidate flash.

[0088] In some embodiments of the present application, the fill light weight of the candidate flash calculated in step 2202 can characterize the relative position of the preview zoom focal length in the zoom focal segment corresponding to the candidate flash. When the fill light weight is greater than 0.5, it means that the preview zoom focal length is closer to the upper limit value of the zoom focal segment corresponding to the candidate flash. When the weight is less than 0.5, it means that the preview zoom focal length is closer to the lower limit value of the zoom focal segment corresponding to the candidate flash. When the weight is equal to 0.5, it means that the preview zoom focal length is located in the middle of the zoom focal segment corresponding to the candidate flash. When the preview zoom focal length is closer to the upper limit value of the zoom focal segment corresponding to the candidate flash, it means that the distance between the foreground object and the electronic device is relatively far. At this time, the fill light of the flash with a longer irradiation distance is better. When the preview zoom focal length is closer to the lower limit value of the zoom focal segment corresponding to the candidate flash, it means that the distance between the foreground object and the electronic device is relatively close. At this time, the use of a flash with a smaller irradiation distance is more inclined to use the corresponding smaller zoom focal segment for fill light. Based on this, in order to make the fill light effect more in line with the actual needs of users, the fill light flash in the flash module used for fill light in this shooting is determined based on the fill light weights of the candidate flash lights.

[0089] In some embodiments of the present application, when determining the fill light flash in the flash module used for fill light for current shooting based on the fill light weight of the candidate flashes, the fill light weight is compared with the weight threshold to obtain a comparison result; based on the comparison result, at least one fill light flash in the flash module used for fill light for shooting is determined.

[0090] Among them, the comparison result between the fill light weight and the weight threshold is used to indicate the size relationship between the fill light weight and the weight threshold. The weight threshold is a value greater than 0 and less than 1 set according to demand, and the preferred weight threshold is 0.5. It can be seen from the foregoing that the size relationship between the fill light weight and 0.5 can reflect the relative position of the preview zoom focal length in the zoom focal length corresponding to the candidate flash, and then reflect the relative size of the distance between the foreground object and the electronic device. Therefore, in this embodiment, the comparison result between the fill light weight and the weight threshold is also used to indicate the relative size of the distance between the foreground object and the electronic device, so that, based on the comparison result, a fill light flash that better suits the shooting scene is determined from the flash module.

[0091] In some embodiments of the present application, when the comparison result indicates that the fill light weight of the candidate flash is less than the weight threshold, it means that the distance between the foreground object and the electronic device is relatively close. At this time, it is suitable to use a flash with a shorter illumination distance for fill light. Therefore, if the flash module includes a flash whose corresponding zoom focal length is smaller than the zoom focal length corresponding to the candidate flash, the candidate flash and the flash whose corresponding zoom focal length is smaller than the zoom focal length corresponding to the candidate flash are determined as fill light flashes. If the flash module does not include a flash whose corresponding zoom focal length is smaller than the zoom focal length corresponding to the candidate flash, the candidate flash is determined as the fill light flash.

[0092] In some embodiments of the present application, when the comparison result indicates that the fill light weight of the candidate flash is greater than the weight threshold, it means that the distance between the foreground object and the electronic device is relatively far. At this time, it is suitable to use a flash with a longer illumination distance for fill light. Therefore, if the flash module includes a flash with a corresponding zoom focal length greater than the zoom focal length corresponding to the candidate flash, the candidate flash and the flash with a corresponding zoom focal length greater than the zoom focal length corresponding to the candidate flash are determined as fill light flashes. If the flash module does not include a flash with a corresponding zoom focal length greater than the zoom focal length corresponding to the candidate flash, the candidate flash is determined as the fill light flash.

[0093] In some embodiments of the present application, when the comparison result indicates that the fill light weight of the candidate flash is equal to the weight threshold, it means that the distance between the foreground object and the electronic device matches the illumination distance of the candidate flash. At this time, the candidate flash can be directly determined as the fill light flash.

[0094] For example, assuming that the flash module includes a close-focus flash, a mid-focus flash, and a far-focus flash, the zoom focal length corresponding to the close-focus flash is 0.6x-1.499x, the zoom focal length corresponding to the mid-focus flash is 1.5x-3.699x, and the zoom focal length corresponding to the far-focus flash is 3.7x-100x, and the weight threshold is 0.5 and the preview zoom focal length is α. When α falls within the interval of 0.6x-1.499x, the close-focus flash is determined as a candidate flash, and the fill-in weight w1 of the candidate flash is (α-0.6x) / (1.499x-0.6x). At this time, if w1 is greater than 0.5, the close-focus flash and the mid-focus flash are determined as fill-in flashes, and if w1 is less than or equal to 0.5, only the close-focus flash is determined as the fill-in flash. When α falls within the interval of 1.5x-3.699x, the mid-focus flash is determined as the candidate flash, and the weight w1 of the candidate flash is (α-1.5x) / (3.699x-1.5x). At this time, if w1 is greater than 0.5, the mid-focus flash and the close-focus flash are determined as fill flashes; if w1 is less than 0.5, the close-focus flash and the mid-focus flash are determined as fill flashes; if w1 is equal to 0.5, only the mid-focus flash is determined as the fill flash. When α falls within the range of 3.7x-100x, the far-focus flash is determined as the candidate flash, and the weight w1 of the candidate flash is (α-3.7x) / (100x-3.7x). At this time, if w1 is greater than or equal to 0.5, only the far-focus flash is determined as the fill flash. If w1 is less than 0.5, the mid-focus flash and the far-focus flash are determined as the fill flash.

[0095] Through the above solution, the determined irradiation distance of the fill-light flash is more matched with the distance between the foreground object and the electronic device, so that the final fill-light effect is more in line with the actual needs of the user.

[0096] In addition, through the above scheme, when shooting, when the preview zoom focal length used changes, the flash module switch will transitionally control the flash according to the change of the preview zoom focal length. In the process of the preview zoom focal length gradually changing from the lower limit value of the near focus segment to the upper limit value of the far focus segment, as the preview zoom focal length increases, the flash is turned on in the following order: first turn on only the near focus flash, then turn on the near focus flash and the middle focus flash at the same time, then turn on only the middle focus flash, then turn on the middle focus flash and the far focus flash at the same time, and finally turn on only the far focus flash. Exemplarily, the zoom focal length of the electronic device includes the near focus segment, the middle focus segment and the far focus segment, the zoom focal length of the near focus segment is 0.6x-1.499x, the zoom focal length of the middle focus segment is 1.5x-3.699x, and the zoom focal length of the far focus segment is 3.7x-100x. Taking the weight threshold of 0.5 as an example, in a scenario where a user uses an electronic device to shoot multiple images of a road from near to far, when shooting the first image, the preview zoom focal length used is 0.9x. At this time, the candidate flash is a near-focus flash, and its fill light weight is less than the weight threshold. Therefore, only the near-focus flash is used for fill light. When shooting the second image, the preview zoom focal length used is 1.05x. At this time, the candidate flash is still a near-focus flash, and its fill light weight is approximately equal to the weight threshold. Therefore, only the near-focus flash is used for fill light. When shooting the third image, the preview zoom focal length used is 1.3x. At this time, the candidate flash is still a near-focus flash, and its fill light weight is greater than the weight threshold. Therefore, the near-focus flash and the mid-focus flash are used for fill light at the same time. When shooting the fourth image, the preview zoom focal length used is 1.7x. At this time, the candidate flash is a mid-focus flash, and its fill light weight is less than the weight threshold. Therefore, the near-focus flash and the mid-focus flash are used for fill light at the same time. When shooting the fifth image, the preview zoom focal length used is 2.599x. At this time, the candidate flash is a mid-focus flash, and its fill light weight is approximately equal to the weight threshold. Therefore, only the mid-focus flash is used for fill light. When shooting the sixth image, the preview zoom focal length used is 3.0x. At this time, the candidate flash is a mid-focus flash, and its fill light weight is greater than the weight threshold. Therefore, the mid-focus flash and the far-focus flash are used for fill light at the same time. When shooting the seventh image, the preview zoom focal length used is 35x. At this time, the candidate flash is a far-focus flash, and its fill light weight is approximately less than the weight threshold. Therefore, the mid-focus flash and the far-focus flash are used for fill light at the same time. When shooting the eighth image, the preview zoom focal length used is 51.85x. At this time, the candidate flash is a far-focus flash, and its fill light weight is equal to the weight threshold. Therefore, only the far-focus flash is used for fill light. When shooting the ninth image, the preview zoom focal length used is 65x. At this time, the candidate flash is a far-focus flash, and its fill light weight is greater than the weight threshold. Therefore, only the far-focus flash is used for fill light.Similarly, in the process of the preview zoom focal length gradually changing from the upper limit value of the telephoto range to the lower limit value of the near focus range, as the preview zoom focal length decreases, the flash activation order is: first, only the telephoto flash is activated, then the telephoto flash and the medium-focus flash are activated at the same time, then only the medium-focus flash is activated, then the medium-focus flash and the near-focus flash are activated at the same time, and finally only the near-focus flash is activated.

[0097] Compared to using only the flash corresponding to the zoom focal length that includes the preview zoom focal length for fill light each time, the above scheme can meet more diverse shooting needs, thereby adapting to more shooting scenes. Moreover, the above scheme can realize the use of multiple flashes with different zoom focal lengths for fill light at the same time. The fill light emitted by the flashes with different zoom focal lengths has different irradiation distances and coverage ranges, and different fill light effects can be used. For example, a flash with a long focal length can produce a more concentrated and narrower light beam, which is suitable for highlighting a certain part of the subject, creating highlights or emphasizing details, while the light of a flash with a short focal length is wider and scattered, which can be used to illuminate a large area of ​​the background or provide overall basic lighting. In this way, by combining flashes with different zoom focal lengths, a rich layer of light and shadow can be created for the picture, increasing the three-dimensional and artistic sense of the picture.

[0098] In some embodiments, in order to further improve the fill light effect, before the above step 120, the current value of the fill light flash can be adjusted based on the ambient brightness of the shooting environment and the brightness value of each pixel in the image brightness of the preview image captured by the camera.

[0099] Here, the shooting environment refers to the environment in which the electronic device is located when taking a photo through the electronic device. The ambient brightness of the shooting environment refers to the brightness of the environment in which the electronic device is located.

[0100] As mentioned above, the preview image refers to the image displayed in the shooting preview interface of the electronic device when the camera of the electronic device is used to shoot an image or video. When the user uses the camera of the electronic device to shoot an image or video, he opens the camera application in the electronic device and enters the shooting preview interface. The electronic device captures the real-time image of the current shooting environment through the image sensor of the camera, and displays the captured real-time image through the shooting preview interface. At this time, the real-time image displayed on the shooting preview interface is the preview image.

[0101] In some embodiments of the present application, the current value of the flash in the flash module is adjustable. By adjusting the current value of the flash, the light intensity, color temperature and other parameters of the flash can be changed, thereby achieving control of the light intensity, color temperature and other parameters of the flash.

[0102] The ambient brightness and the brightness value of the pixels in the preview image are two important factors that affect the fill light. Dynamically adjusting the current value of the fill light flash based on the ambient brightness and the brightness value of each pixel in the preview image can make the light emitted by the fill light flash better adapt to the shooting scene, thereby improving the fill light effect.

[0103] In some embodiments, see Figure 8 , the current value of the fill flash can be adjusted through the following steps 810 to 840.

[0104] Step 810: Determine an initial current value of the fill flash based on the ambient brightness of the shooting environment.

[0105] In some embodiments of the present application, the brightness of the flash is positively correlated with the current value of the flash, that is, for each flash, the greater the current value of the flash, the greater the brightness of the flash. The ambient brightness is negatively correlated with the brightness that needs to be supplemented during shooting, that is, the greater the ambient brightness, the smaller the brightness that needs to be supplemented during shooting. Therefore, the ambient brightness is negatively correlated with the initial current value of the flash, that is, the greater the ambient brightness, the smaller the initial current value of the fill flash.

[0106] In some embodiments of the present application, a first functional relationship between the ambient brightness and the initial current value of the flash can be set in advance based on the corresponding relationship between the ambient brightness and the initial current value of the flash, so that the initial current value of the fill flash can be determined based on the acquired ambient brightness and the first functional relationship in the above step 810. The first functional relationship can be a mathematical expression, a corresponding relationship table, a graph, etc.

[0107] In some embodiments of the present application, when setting the first functional relationship, the lower limit current value y1 and the upper limit current value y2 of the flash can be set according to actual conditions, and the ambient brightness x1 corresponding to the lower limit current value y1 and the ambient brightness x2 corresponding to the upper limit current value y2 can be set, and then a linear function is constructed according to the above (x1, y1) and (x2, y2), and the linear function is used as the first functional relationship. In this way, in the above step 810, the initial current value of the fill flash can be determined by linear interpolation based on the first functional relationship.

[0108] For example, assuming that the lower limit current value y1 of the flashlight is 100mA, the upper limit current value y2 is 500mA, the ambient brightness x1 corresponding to the lower limit current value y1 is 100, and the ambient brightness x2 corresponding to the upper limit current value y2 is 200, based on this, we can get the following: Fig. 9 The linear function shown in FIG. 1 is used as the first functional relationship. If the ambient brightness obtained at this time is 200, then based on Fig. 9 From the first functional relationship shown, it can be obtained that the initial current value of the fill flash is 400mA.

[0109] Step 820: Based on the brightness value of each pixel in the preview image, determine the average image brightness of the preview image and the average foreground object brightness of the foreground objects in the preview image.

[0110] In some embodiments of the present application, the average brightness of the preview image refers to the average brightness of all pixels in the preview image. Based on this, the average brightness of the preview image can be obtained by calculating the average brightness of all pixels in the preview image.

[0111] In some embodiments of the present application, the foreground object refers to the main object that the photographer wants to highlight, convey core information, or express a specific theme in the captured image. Figure 3 , where the stage is the foreground object, see Figure 4 , where the person is the foreground object, see Figure 5 , where the food is the foreground object. The average brightness of the foreground object refers to the average brightness of all pixels in the image area where the foreground object is located in the preview image. Based on this, the average brightness of the foreground object can be obtained by calculating the average brightness of all pixels in the image area where the foreground object is located in the preview image.

[0112] In some embodiments of the present application, the image region where the foreground object in the preview image is located may be determined by performing image segmentation on the preview image.

[0113] Step 830: Adjust the initial current value based on the brightness ratio between the average brightness of the image and the average brightness of the foreground object to obtain a fill light current value.

[0114] In some embodiments of the present application, when taking photos through an electronic device, the current value of the fill-in flash is positively correlated with the brightness of the fill-in flash, that is, the larger the current value of the fill-in flash, the larger the brightness of the fill-in flash, and the smaller the current value of the fill-in flash, the smaller the brightness of the fill-in flash. The brightness of the fill-in flash is negatively correlated with the exposure time of the photo, that is, the larger the brightness of the fill-in flash, the shorter the exposure time of the photo, and the smaller the brightness of the fill-in flash, the longer the exposure time of the photo. Since the light intensity of the shooting background is relatively weak in the shooting scene where fill-in light is required, if the exposure time is shortened, the background's already limited light-receiving time is further reduced, resulting in a reduction in the amount of light received by the background, making the background appear darker, and further resulting in the problem of too dark background in the final captured image. Therefore, in order to further improve the filming rate, this embodiment adjusts the initial current value to enhance the image background brightness, thereby avoiding the image background being too dark.

[0115] In some embodiments of the present application, the brightness ratio of the average brightness of the image to the average brightness of the foreground object is positively correlated with the background brightness. When the brightness ratio is large, it means that the overall brightness of the image is high, and the foreground object is relatively not so bright in it. At this time, the background brightness contributes more to the overall brightness of the image, so the background is relatively bright. For example, when shooting a large-scale city night scene, the picture contains a large number of bright street lights, neon lights and building lights, and a pedestrian in the picture is a foreground object. Assuming that the average brightness of the entire image is 70 and the average brightness of the pedestrian is 30, the brightness ratio is 7:3. It can be clearly seen that the rich lights in the background make the overall image brightness higher, the background appears very bright in the image, and the pedestrian, the foreground object, is relatively dark and not very prominent. When the brightness ratio is smaller, it means that the overall brightness of the image is mainly contributed by the foreground object, the foreground object is very bright, and the background accounts for a small proportion of the overall brightness of the image, so the background is relatively dark. For example, when shooting jewelry in a dark studio, a strong spotlight is used to shine on the jewelry. The jewelry as a foreground object is illuminated very brightly, and the surrounding background is a black light-absorbing material. Assume that the brightness value of the jewelry is 80 and the average brightness of the image is 40, then the ratio is 1:2. It can be found that the high brightness of the jewelry dominates the overall image, while the black background hardly contributes to the brightness and looks very dark.

[0116] In view of this, after obtaining the initial current value of the fill-in flash, the initial current value of the fill-in flash is adjusted based on the brightness ratio of the average brightness of the image to the average brightness of the foreground object, so that the adjusted current value does not cause the background in the picture to be too dark. The adjusted current value is used as the fill-in current value used when the fill-in flash performs fill-in.

[0117] In some embodiments of the present application, in the above step 830, the adjustment ratio can be determined based on the brightness ratio of the average brightness of the image to the average brightness of the foreground object, and the initial current value of the fill-in flash can be adjusted based on the adjustment ratio, thereby obtaining the fill-in current value of the fill-in flash. The brightness ratio of the average brightness of the image to the average brightness of the foreground object is positively correlated with the adjustment ratio, that is, the larger the brightness ratio, the larger the adjustment ratio.

[0118] In some embodiments of the present application, the adjustment ratio refers to a multiple of the initial current value, and the fill light current value can be obtained by multiplying the initial current value by the adjustment ratio.

[0119] As shown above, when the brightness ratio of the average brightness of the image to the average brightness of the foreground object is smaller, it means that the background of the current image is darker, and a longer exposure time is required to brighten the background. Therefore, at this time, the initial current value can be adjusted by an adjustment ratio less than 1, so that the fill current value of the fill flash is smaller, thereby increasing the exposure time and enhancing the background brightness. Conversely, when the brightness ratio of the average brightness of the image to the average brightness of the foreground object is larger, it means that the background of the image is brighter. At this time, the initial current value can be adjusted by an adjustment ratio greater than 1, so that the fill current value of the fill flash is larger, thereby making the brightness of the foreground object reach the target value faster.

[0120] In some embodiments of the present application, a second functional relationship between the brightness ratio of the average brightness of the image and the average brightness of the foreground object and the adjustment ratio is set in advance based on the correspondence between the brightness ratio of the average brightness of the image and the average brightness of the foreground object and the adjustment ratio. In this way, in the above step 830, the adjustment ratio can be determined based on the brightness ratio of the average brightness of the image and the average brightness of the foreground object and the second functional relationship, and then the initial current value is adjusted based on the adjustment ratio. The second functional relationship can be a mathematical expression, a correspondence table, a graph, etc.

[0121] In some embodiments of the present application, when setting the second functional relationship, the lower limit value ratio1 and the upper limit value ratio2 of the adjustment ratio can be set according to actual conditions, and the brightness ratio luma1 corresponding to the lower limit value ratio1 and the brightness ratio luma2 corresponding to the upper limit value ratio2 are set. A linear function is constructed according to the above (ratio1, luma1) and (ratio2, luma2), and the linear function is used as the second functional relationship. In this way, in the above step 830, the adjustment ratio can be determined by linear interpolation based on the brightness wallpaper and the second functional relationship.

[0122] For example, the lower limit value ratio1 of the adjustment ratio is 0.5, the upper limit value ratio2 is 1.5, the brightness ratio luma1 corresponding to the lower limit value ratio1 is 0.5, and the brightness ratio luma2 corresponding to the upper limit value ratio2 is 2.5. Based on this, the following can be obtained: Fig.10 The linear function shown is used as the second functional relationship. Taking the initial current value of the fill flash as 400mA, if the average brightness of the image is 25 and the average brightness of the foreground object is 50, the calculated brightness ratio luma is 0.5. This brightness ratio is small, indicating that the background is dark. Based on Fig.10From the second function relationship shown in the figure, we can get the adjustment ratio ratio of 0.5. Based on the adjustment ratio, the initial current value is adjusted to obtain the fill light current value of 400×0.5=200mA. 200mA is less than 400mA. It can be seen that the current value of the fill light is reduced through the above adjustment. After the current value of the fill light is reduced, the exposure time will increase, thereby improving the background brightness. If the average brightness of the image is 60 and the average brightness of the foreground object is 30, the calculated brightness ratio luma is 2. This brightness ratio is large, indicating that the background is brighter and there is no need to increase the background brightness. Based on Fig.10 From the second function relationship shown, it can be obtained that the adjustment ratio ratio at this time is 1.25. The initial current value is adjusted based on the adjustment ratio, and the obtained fill light current value is 400×1.25=500mA. 500mA is greater than 400mA. It can be seen that the current value of the fill light is increased through the above adjustment. After the current value of the fill light is increased, the brightness of the foreground object can reach the target value faster.

[0123] Step 840: Based on the fill light current value, adjust the current value of the fill light flash.

[0124] In some embodiments of the present application, when there is only one fill-light flash, when adjusting the current value of the fill-light flash based on the fill-light current value, the current value of the fill-light flash may be directly adjusted to the fill-light current value.

[0125] In some embodiments of the present application, when the number of fill flashes is at least two, for example, a close-focus flash and a mid-focus flash are simultaneously determined as fill flashes, when adjusting the current value of the fill flash based on the fill current value, the fill weight of each fill flash is first determined, and based on the fill weight and the fill current value, the fill current value of each fill flash is determined, and the current value of each fill flash is updated to the fill current value corresponding to each fill flash.

[0126] In some embodiments of the present application, when there are two fill-in flashes, the two fill-in flashes include a candidate flash, wherein the fill-in weight w1 of the candidate flash has been determined when the fill-in flash is determined, and in this case, (1-w1) can be directly used as the fill-in weight of another fill-in flash. In this way, the weight of each fill-in flash can be obtained.

[0127] In some embodiments of the present application, when the number of fill flashes is two, and the two fill flashes are respectively a candidate flash and a flash whose corresponding zoom focal length is smaller than the zoom focal length corresponding to the candidate flash, when determining the fill current value of each fill flash, the product of the fill current value and w1 is determined as the fill current value of the candidate flash, and the product of the fill current value and (1-w1) is determined as the fill current value of the flash whose corresponding zoom focal length is smaller than the zoom focal length corresponding to the candidate flash.

[0128] In some embodiments of the present application, when the number of fill flashes is two, and the two fill flashes are respectively a candidate flash and a flash whose corresponding zoom focal length is greater than the zoom focal length corresponding to the candidate flash, when determining the fill current value of each fill flash, the product of the fill current value and w1 is determined as the fill current value of the flash whose corresponding zoom focal length is greater than the zoom focal length corresponding to the candidate flash, and the product of the fill current value and (1-w1) is determined as the fill current value of the candidate flash.

[0129] For example, assuming that the flash module includes a near-focus flash, a mid-focus flash, and a far-focus flash, and the fill current value is β. When the candidate flash is a near-focus flash, the weight w1 of the candidate flash is (α-0.6x) / (1.499x-0.6x). When w1 is greater than 0.5, the fill flash includes a near-focus flash and a mid-focus flash. At this time, the fill current value of the near-focus flash is determined to be (1-w1)*β, and the fill current value of the mid-focus flash is determined to be w1*β. When the candidate flash is a mid-focus flash, the weight w1 of the candidate flash is (α-1.5x) / (3.699x-1.5x). When w1 is greater than 0.5, the fill flash includes the mid-focus flash and the far-focus flash. At this time, the fill current value of the mid-focus flash is determined to be (1-w1)*β, and the fill current value of the far-focus flash is w1*β; when w1 is less than 0.5, the fill flash includes the mid-focus flash and the near-focus flash. At this time, the fill current value of the near-focus flash is determined to be (1-w1)*β, and the fill current value of the mid-focus flash is w1*β. When the candidate flash is a telefocus flash, the weight w1 of the candidate flash is (α-3.7x) / (100x-3.7x). When w1 is less than 0.5, the fill flash includes a telefocus flash and a mid-focus flash. At this time, the fill current value of the mid-focus flash is determined to be (1-w1)*β, and the fill current value of the telefocus flash is w1*β.

[0130] In the above manner, when there are multiple fill-in flashes, corresponding fill-in current values ​​can be allocated to the multiple fill-in flashes based on the fill-in weights of the multiple fill-in flashes, so that fill-in is performed simultaneously by the multiple fill-in flashes. In addition, according to the above description of step 2203, when there are multiple fill-in flashes, other fill-in flashes other than the standby flashes can better meet the actual fill-in demand. Therefore, when current allocation is performed, more current is allocated to other fill-in flashes, so that the fill-in effect is better.

[0131] In some embodiments, the electronic device supports the user to customize the zoom focal length corresponding to each flash in the flash module, and the user can adjust the zoom focal length corresponding to any flash according to actual conditions. Based on this, before the above step 120, the electronic device can also perform the following steps:

[0132] receiving a third input of a focus segment setting interface, wherein the focus segment setting interface includes a zoom focus segment corresponding to each flash in the flash module;

[0133] In response to the third input, the zoom focal length corresponding to the flash set by the third input is updated.

[0134] Here, the third input is an input for adjusting the zoom focal length corresponding to the flash. When the user needs to adjust the zoom focal length of any flash in the flash module, he can enter the setting function of the camera application as shown in the figure. Fig.11 The focal length setting interface 1100 shown in the figure adjusts the zoom focal length corresponding to the flash light whose zoom focal length needs to be adjusted in the focal length setting interface 1100 through the third input. Exemplarily, the third input includes but is not limited to: the user inputs the zoom focal length boundary value corresponding to the flash light whose zoom focal length needs to be adjusted in the light focal length setting interface 1100 through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and are not limited in the embodiment of the present invention. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag 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 in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long-press input or a short-press input. For example, the third input can be: the user inputs the zoom focal length lower limit value corresponding to the near-focus flash light in the focal length setting interface 1100 through a finger. The third input mentioned above may also be: a voice instruction issued by the user to the electronic device, indicating that the upper limit value and / or the lower limit value of the zoom focal length corresponding to a certain flash light is set to a certain value.

[0135] In some embodiments of the present application, the flash set by the third input refers to the flash whose corresponding zoom focal length is updated in response to the third input. Fig.11 , the user sets the zoom focal length corresponding to the close-focus flash to 0.6x-1.499x, the zoom focal length corresponding to the mid-focus flash to 1.5x-3.699x, and the zoom focal length corresponding to the telephoto flash to 3.7x-100x through the third input, then the close-focus flash, the mid-focus flash, and the telephoto flash are all flashes set by the third input.

[0136] Through the above method, the user can customize the zoom focal length corresponding to the flash according to his or her actual needs, thereby meeting the user's personalized needs for the fill light effect presented during shooting.

[0137] The photographing method provided in the embodiment of the present application can be executed by a photographing device. In the embodiment of the present application, the photographing device provided in the embodiment of the present application is described by taking the photographing method executed by the photographing device as an example.

[0138] See also Fig.12 , is a schematic diagram of a photographing device provided in an embodiment of the present application, such as Fig.12 As shown, the device 1200 includes the following modules:

[0139] The receiving module 1210 is used to receive a first input;

[0140] The processing module 1220 is used to control the camera to shoot in response to the first input, and control the fill-in flash to fill in light during the shooting process, and output an image;

[0141] Among them, the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0.

[0142] The photographing device provided in this embodiment receives a first input; in response to the first input, controls the camera to shoot, and controls the fill-in flash to perform fill-in light during the shooting process, and outputs an image; wherein the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0. According to this embodiment, when shooting, the flash corresponding to the shooting focal length is automatically turned on for fill-in light, so that the coverage angle of the fill-in light can match the viewing angle of the camera, so that the light is accurately projected to the area that needs to be illuminated, effectively avoiding the problem of the image being too dark or overexposed, and making the overall light effect of the image more natural and uniform, thereby improving the filming rate.

[0143] In some embodiments, the flash module includes at least two flashes corresponding to different zoom focal lengths;

[0144] The processing module 1220 is further configured to:

[0145] In response to the first input, the camera is controlled to shoot, and during the shooting process, a fill-in flash is controlled to perform fill-in light, and before outputting the image, a preview zoom focal length is obtained;

[0146] At least one flash in the flash module whose corresponding zoom focal length matches the preview zoom focal length is determined as a fill flash.

[0147] In some embodiments, the receiving module 1210 is further configured to receive a second input for previewing the zoom focal length in the shooting preview interface;

[0148] The processing module 1220 is further configured to update the focal length value of the preview zoom focal length in response to the second input.

[0149] In some embodiments, the processing module 1220 is specifically configured to:

[0150] The preview zoom focal length is compared with the zoom focal length corresponding to each flash in the flash module, and the flash corresponding to the zoom focal length including the preview zoom focal length is determined as the fill flash for shooting fill light.

[0151] In some embodiments, the processing module 1220 is specifically configured to:

[0152] Compare the preview zoom focal length with the zoom focal length corresponding to each flash in the flash module, and determine the flash corresponding to the zoom focal length including the preview zoom focal length as a candidate flash;

[0153] Determine a fill light weight of the candidate flash based on the zoom focal length including the preview zoom focal length and the preview zoom focal length, the fill light weight being used to indicate a ratio of a first difference value to a second difference value, the first difference value being a difference between the preview zoom focal length and a lower limit value of the zoom focal length including the preview zoom focal length, and the second difference value being a difference between an upper limit value and a lower limit value of the zoom focal length including the preview zoom focal length;

[0154] Based on the fill light weight, at least one fill light flash in the flash module for shooting fill light is determined, and the at least one fill light flash includes a candidate flash.

[0155] In some embodiments, the processing module 1220 is specifically configured to:

[0156] Compare the fill light weight with the weight threshold to obtain a comparison result;

[0157] Based on the comparison result, at least one fill-light flash in the flash module for shooting fill-light is determined.

[0158] In some embodiments, the receiving module 1210 is further used to control the camera to shoot in response to the first input, and control the fill-in flash to fill in light during the shooting process, and before outputting the image, receive a third input of the focus segment setting interface, the focus segment setting interface including the zoom focal segment corresponding to each flash in the flash module;

[0159] The processing module 1220 is further configured to update, in response to the third input, the zoom focal length corresponding to the flash set by the third input.

[0160] In some embodiments, the processing module 1220 is further configured to:

[0161] In response to the first input, the camera is controlled to shoot, and during the shooting process, the fill flash is controlled to provide fill light. Before outputting the image, the current value of the fill flash is adjusted based on the ambient brightness of the shooting environment and the brightness value of each pixel in the preview image shot by the camera.

[0162] In some embodiments, the processing module 1220 is specifically configured to:

[0163] Determine the initial current value of the fill flash based on the ambient brightness of the shooting environment;

[0164] Determining an average image brightness of the preview image and an average foreground object brightness of the foreground object in the preview image based on the brightness value of each pixel in the preview image;

[0165] Based on the brightness ratio of the average brightness of the image and the average brightness of the foreground object, the initial current value is adjusted to obtain the fill light current value;

[0166] Based on the fill light current value, adjust the current value of the fill light flash.

[0167] In some embodiments, the processing module 1220 is specifically configured to:

[0168] Based on the brightness ratio of the image average brightness and the foreground object average brightness, the adjustment ratio of the initial current value is determined, and the brightness ratio is positively correlated with the adjustment ratio;

[0169] Based on the adjustment ratio, the initial current value is adjusted to obtain the light-filling current value.

[0170] In some embodiments, the number of fill flashes is greater than 1;

[0171] The processing module 1220 is specifically configured to:

[0172] Determine the fill light weight of each fill flash;

[0173] Based on the fill light weight and the fill light current value, determining the fill light current value corresponding to each fill light flash;

[0174] The current value of each fill-in flash lamp is updated to the fill-in current value corresponding to each fill-in flash lamp.

[0175] The photographing device in the embodiment of the present application may be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than a terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It may also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0176] The photographing 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.

[0177] The photographing device provided in the embodiment of the present application can achieve Figures 1 to 11 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0178] Alternatively, if Fig.13 As shown, an embodiment of the present application further provides an electronic device 1300, including a processor 1301 and a memory 1302, wherein the memory 1302 stores programs or instructions that can be executed on the processor 1301, and when the program or instructions are executed by the processor 1301, the various steps of the above-mentioned photographing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0179] In addition, the electronic device 1300 also includes a flash module ( Fig.10 (not shown), the flash module includes at least two flashes with different corresponding zoom focal lengths.

[0180] In some embodiments, the flash in the flash module includes a lampshade, on which a coating having a thickness or thread density corresponding to the zoom focal length of the flash is spin-coated.

[0181] In some embodiments of the present application, the material of the coating includes but is not limited to acrylic resin, silicone resin, and polyurethane.

[0182] In some embodiments of the present application, the thickness of the coating applied on the lampshades of different flashlights is different. The thicker the coating, the worse the light transmittance of the lampshade, the lower the brightness of the flashlight, and the shorter the irradiation distance. Therefore, the thickness of the coating applied on the flashlight with a smaller zoom focal length is greater. For example, the thickness of the coating applied on the close-focus flashlight is 25 μm, the thickness of the coating applied on the mid-focus flashlight is 20 μm, and the thickness of the coating applied on the far-focus flashlight is 10 μm.

[0183] In some embodiments of the present application, the thread density of the paint spun on the lampshades of different flashlights is different. The greater the thread density, the worse the light transmittance of the lampshade, the lower the brightness of the flashlight, and the shorter the irradiation distance. Therefore, the spiral density of the paint spun on the flashlight with a smaller zoom focal length is greater. For example, the thread density of the paint spun on the close-focus flashlight is 20 threads / mm, the thread density of the paint spun on the mid-focus flashlight is 15 threads / mm, and the thread density of the paint spun on the far-focus flashlight is 10 threads / mm.

[0184] In some embodiments, the flash in the flash module includes a lampshade, and the opening and closing angle of the lampshade corresponds to the focal length of the flash.

[0185] In some embodiments of the present application, the opening and closing angles of the lampshades of different flashes are different. The smaller the opening and closing angle of the lampshade, the greater the degree of convergence of the flash and the longer the irradiation distance. Therefore, the opening and closing angle of the lampshade of the flash with a larger corresponding zoom focal length is smaller. For example, the opening and closing angle of the lampshade of a near-focus flash is 114°, the opening and closing angle of the lampshade of a mid-focus flash is 46°, and the opening and closing angle of the lampshade of a far-focus flash is 18°.

[0186] In some embodiments, the flash lamp in the flash lamp module includes a polymer dispersed liquid crystal, and a voltage corresponding to the focal length of the flash lamp is applied to the upper surface and the lower surface of the polymer dispersed liquid crystal.

[0187] In some embodiments of the present application, the voltages applied to the upper and lower surfaces of the polymer dispersed liquid crystal in different flashlights are different. The greater the voltage applied to the upper and lower surfaces of the polymer dispersed liquid crystal, the faster and more fully the liquid crystal molecules therein can be arranged along the direction of the electric field, the higher the degree of match between the ordinary refractive index of the liquid crystal particles and the refractive index of the matrix, the higher the light transmittance, the more transparent the polymer dispersed liquid crystal PDLC will become, and the higher its light transmittance will be. The more light is emitted through the PDLC, the brighter the flashlight is, and the longer the irradiation distance is. Therefore, the larger the corresponding zoom focal length, the greater the voltage applied to the upper and lower surfaces of the polymer dispersed liquid crystal. For example, the voltage applied to the upper and lower surfaces of the PDLC in the close-focus flashlight is 5V, the voltage applied to the upper and lower surfaces of the PDLC in the mid-focus flashlight is 7V, and the voltage applied to the upper and lower surfaces of the PDLC in the far-focus flashlight is 10V.

[0188] 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.

[0189] Fig.14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0190] The electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409, and a processor 1410 and other components.

[0191] Those skilled in the art will appreciate that the electronic device 1400 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 1410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.14 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.

[0192] The input unit 1404 and / or the user input unit 1407 are used to receive a first input;

[0193] The processor 1410 is used to control the camera to shoot in response to the first input, and control the fill-in flash to fill in light during the shooting process, and output an image;

[0194] Among them, the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0.

[0195] The photographing device provided in this embodiment receives a first input; in response to the first input, controls the camera to shoot, and controls the fill-in flash to perform fill-in light during the shooting process, and outputs an image; wherein the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0. According to this embodiment, when shooting, the flash corresponding to the shooting focal length is automatically turned on for fill-in light, so that the coverage angle of the fill-in light can match the viewing angle of the camera, so that the light is accurately projected to the area that needs to be illuminated, effectively avoiding the problem of the image being too dark or overexposed, and making the overall light effect of the image more natural and uniform, thereby improving the filming rate.

[0196] In some embodiments, the flash module includes at least two flashes corresponding to different zoom focal lengths;

[0197] The processor 1410 is further configured to:

[0198] In response to the first input, the camera is controlled to shoot, and during the shooting process, a fill-in flash is controlled to perform fill-in light, and before outputting the image, a preview zoom focal length is obtained;

[0199] At least one flash in the flash module whose corresponding zoom focal length matches the preview zoom focal length is determined as a fill flash.

[0200] In some embodiments, the input unit 1404 and / or the user input unit 1407 is further used to receive a second input for previewing the zoom focal length in the shooting preview interface;

[0201] The processor 1410 is further configured to update the focal length value of the preview zoom focal length in response to a second input.

[0202] In some embodiments, the processor 1410 is specifically configured to:

[0203] The preview zoom focal length is compared with the zoom focal length corresponding to each flash in the flash module, and the flash corresponding to the zoom focal length including the preview zoom focal length is determined as the fill flash for shooting fill light.

[0204] In some embodiments, the processor 1410 is specifically configured to:

[0205] Compare the previewed zoom focal length with the zoom focal segments corresponding to each flash in the flash module, and determine the flash corresponding to the zoom focal segment including the zoom focal length as a candidate flash;

[0206] Determine a fill light weight of the candidate flash based on the zoom focal length including the preview zoom focal length and the preview zoom focal length, the fill light weight being used to indicate a ratio of a first difference value to a second difference value, the first difference value being a difference between the preview zoom focal length and a lower limit value of the zoom focal length including the preview zoom focal length, and the second difference value being a difference between an upper limit value and a lower limit value of the zoom focal length including the preview zoom focal length;

[0207] Based on the fill light weight, at least one fill light flash in the flash module for shooting fill light is determined, and the at least one fill light flash includes a candidate flash.

[0208] In some embodiments, the processor 1410 is specifically configured to:

[0209] Compare the fill light weight with the weight threshold to obtain a comparison result;

[0210] Based on the comparison result, at least one fill-light flash in the flash module for shooting fill-light is determined.

[0211] In some embodiments, the input unit 1404 and / or the user input unit 1407 is further used to control the camera to shoot in response to the first input, and control the fill-in flash to fill in light during the shooting process, and before outputting the image, receive a third input of the focus segment setting interface, where the focus segment setting interface includes the zoom focal segment corresponding to each flash in the flash module;

[0212] The processor 1410 is further configured to update, in response to a third input, a zoom focal length corresponding to the flash set by the third input.

[0213] In some embodiments, the processor 1410 is further configured to:

[0214] In response to the first input, the camera is controlled to shoot, and during the shooting process, the fill flash is controlled to provide fill light. Before outputting the image, the current value of the fill flash is adjusted based on the ambient brightness of the shooting environment and the brightness value of each pixel in the preview image shot by the camera.

[0215] In some embodiments, the processor 1410 is specifically configured to:

[0216] Determine the initial current value of the fill flash based on the ambient brightness of the shooting environment;

[0217] Determining an average image brightness of the preview image and an average foreground object brightness of the foreground object in the preview image based on the brightness value of each pixel in the preview image;

[0218] Based on the brightness ratio of the average brightness of the image and the average brightness of the foreground object, the initial current value is adjusted to obtain the fill light current value;

[0219] Based on the fill light current value, adjust the current value of the fill light flash.

[0220] In some embodiments, the processor 1410 is specifically configured to:

[0221] Based on the brightness ratio of the image average brightness and the foreground object average brightness, the adjustment ratio of the initial current value is determined, and the brightness ratio is positively correlated with the adjustment ratio;

[0222] Based on the adjustment ratio, the initial current value is adjusted to obtain the light-filling current value.

[0223] In some embodiments, the number of fill flashes is greater than 1;

[0224] The processor 1410 is specifically configured to:

[0225] Determine the fill light weight of each fill flash;

[0226] Based on the fill light weight and the fill light current value, determining the fill light current value corresponding to each fill light flash;

[0227] The current value of each fill-in flash lamp is updated to the fill-in current value corresponding to each fill-in flash lamp.

[0228] Processor 1410, used to obtain the brightness of the preview image and the ambient brightness of the shooting environment;

[0229] The processor 1410 is further used to adjust the current value of the fill light flash in the flash module for shooting fill light based on the ambient brightness and the preview image brightness;

[0230] The processor 1410 is further configured to respond to a first input and perform fill-in lighting for shooting by using a fill-in flash to obtain a captured image, wherein the first input is used to instruct to start shooting.

[0231] The electronic device provided in this embodiment obtains the brightness of the preview image and the ambient brightness of the shooting environment; adjusts the current value of the fill light flash used for shooting fill light in the flash module based on the ambient brightness and the preview image brightness; and in response to a first input, shoots fill light through the fill light flash to obtain a shot image, and the first input is used to indicate the start of shooting. According to this embodiment, when taking pictures, the ambient brightness and the preview image brightness can be automatically sensed, and the current value of the fill light flash can be dynamically adjusted based on the ambient brightness and the preview image brightness, so that the light of the fill light flash can better adapt to the shooting scene, avoid the situation of too high or too low brightness, and improve the filming rate.

[0232] In some embodiments, the processor 1410 is specifically configured to:

[0233] Determine the initial current value of the fill flash based on the ambient brightness;

[0234] Determining an average image brightness of the preview image and an average foreground object brightness of a subject in the preview image based on the brightness of the preview image;

[0235] The initial current value is adjusted based on the ratio of the average brightness of the image to the average brightness of the foreground object to obtain the fill light current value;

[0236] The current value of the fill light flash is adjusted based on the fill light current value.

[0237] In some embodiments, the processor 1410 is specifically configured to:

[0238] The adjustment ratio of the initial current value is determined based on the ratio, and the larger the ratio is, the larger the adjustment ratio is;

[0239] The initial current value is adjusted based on the adjustment ratio to obtain the light-filling current value.

[0240] In some embodiments, the flash module includes at least two flashes with different focal lengths, and the flashes with different focal lengths correspond to different focal length intervals. The processor 1410 is further configured to:

[0241] Before adjusting the current value of the fill light flash in the flash module for fill light based on the ambient brightness and the preview image brightness, determining the preview zoom focal length in response to a second input, the second input being used to set the flash focal length used for taking pictures;

[0242] Based on the preview zoom focal length, a fill flash in the flash module for shooting fill light is determined.

[0243] In some embodiments, the processor 1410 is specifically configured to:

[0244] Determine, in the flash module, the flash whose corresponding focal length interval includes the preview zoom focal length as a candidate flash;

[0245] Determine a weight of the candidate flash based on the first focal length interval and the preview zoom focal length corresponding to the candidate flash, the weight being used to indicate a ratio of a first distance between the preview zoom focal length and a lower limit value of the first focal length interval and a second distance between an upper limit value and a lower limit value of the first focal length interval;

[0246] Based on the weight, a fill light flash in the flash module for shooting fill light is determined.

[0247] In some embodiments, the processor 1410 is specifically configured to:

[0248] Determine a current target value of each flash in the fill-light flash based on the weights of the candidate flashes and the fill-light current value;

[0249] The current value of each flash lamp in the fill flash lamp is set to the corresponding current target value respectively.

[0250] In some embodiments, the processor 1410 is further configured to:

[0251] Before determining the fill flash in the flash module for fill light based on the preview zoom focal length, in response to the third input, the focal length interval of the flash in the flash module is set.

[0252] It should be understood that in the embodiment of the present application, the input unit 1404 may include a graphics processor (Graphics Processing Unit, GPU) 14041 and a microphone 14042, and the graphics processor 14041 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 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1407 includes a touch panel 14071 and at least one of other input devices 14072. The touch panel 14071 is also called a touch screen. The touch panel 14071 may include two parts: a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0253] The memory 1409 can be used to store software programs and various data. The memory 1409 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1409 may include a volatile memory or a non-volatile memory, or the memory 1409 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0254] The processor 1410 may include one or more processing units; optionally, the processor 1410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1410.

[0255] 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 photographing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0256] The processor is the 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.

[0257] 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 photographing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0258] 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.

[0259] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned photographing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0260] 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.

[0261] 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), and includes a number of instructions for 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.

[0262] 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 photographing method, characterized in that: include: receiving a first input; In response to the first input, the camera is controlled to shoot, and during the shooting process, a fill-in flash is controlled to fill in light and output an image; Among them, the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0.

2. The method according to claim 1, characterized in that The flash module includes at least two flashes corresponding to different zoom focal lengths; In response to the first input, the camera is controlled to shoot, and during the shooting process, a fill-in flash is controlled to perform fill-in light, and before outputting the image, the method further includes: Get preview zoom focal length; At least one flash in the flash module whose corresponding zoom focal length matches the preview zoom focal length is determined as a fill flash.

3. The method according to claim 2, characterized in that Before obtaining the preview zoom focal length, the method further includes: Receiving a second input for previewing the zoom focal length in the shooting preview interface; In response to the second input, a focal length value of the preview zoom focal length is updated.

4. The method according to claim 2, characterized in that: The step of determining at least one flash light in the flash light module whose corresponding zoom focal length matches the preview zoom focal length as a fill-in flash light comprises: The preview zoom focal length is compared with the zoom focal length corresponding to each flash in the flash module, and the flash corresponding to the zoom focal length including the preview zoom focal length is determined as the fill flash for shooting fill light.

5. The method according to claim 2, characterized in that: The step of determining at least one flash light in the flash light module whose corresponding zoom focal length matches the preview zoom focal length as a fill-in flash light comprises: Comparing the preview zoom focal length with the zoom focal length corresponding to each flash in the flash module, and determining the flash corresponding to the zoom focal length including the preview zoom focal length as a candidate flash; Determining a fill light weight of the candidate flash based on the zoom focal length including the preview zoom focal length and the preview zoom focal length, the fill light weight being used to indicate a ratio of a first difference value to a second difference value, the first difference value being a difference between the preview zoom focal length and a lower limit value of the zoom focal length including the preview zoom focal length, and the second difference value being a difference between an upper limit value and a lower limit value of the zoom focal length including the preview zoom focal length; Based on the fill light weight, at least one fill light flash in the flash module for shooting fill light is determined, and the at least one fill light flash includes the candidate flash.

6. The method according to claim 5, characterized in that The step of determining at least one fill light flash in the flash module for shooting fill light based on the fill light weight includes: Comparing the fill light weight with a weight threshold to obtain a comparison result; Based on the comparison result, at least one fill-light flash in the flash module for shooting fill-light is determined.

7. The method according to any one of claims 1 to 6, characterized in that: In response to the first input, the camera is controlled to shoot, and during the shooting process, a fill-in flash is controlled to perform fill-in light, and before outputting the image, the method further includes: receiving a third input of a focus segment setting interface, wherein the focus segment setting interface includes a zoom focus segment corresponding to each flash in the flash module; In response to the third input, the zoom focal length corresponding to the flash set by the third input is updated.

8. The method according to any one of claims 1 to 6, characterized in that: In response to the first input, the camera is controlled to shoot, and during the shooting process, a fill-in flash is controlled to perform fill-in light, and before outputting the image, the method further includes: The current value of the fill flash is adjusted based on the ambient brightness of the shooting environment and the brightness value of each pixel in the preview image shot by the camera.

9. The method according to claim 8, characterized in that The step of adjusting the current value of the fill flash lamp based on the ambient brightness of the shooting environment and the brightness value of each pixel in the preview image shot by the camera comprises: Determining an initial current value of the fill-light flash based on the ambient brightness of the shooting environment; Determining an average image brightness of the preview image and an average foreground object brightness of the foreground object in the preview image based on a brightness value of each pixel in the preview image; Based on the brightness ratio of the average brightness of the image to the average brightness of the foreground object, adjusting the initial current value to obtain a fill light current value; Based on the fill light current value, the current value of the fill light flash is adjusted.

10. The method according to claim 9, characterized in that The step of adjusting the initial current value based on the brightness ratio of the image average brightness to the foreground object average brightness to obtain the fill light current value includes: Determining an adjustment ratio of the initial current value based on a brightness ratio of the average brightness of the image to the average brightness of the foreground object, wherein the brightness ratio is positively correlated with the adjustment ratio; Based on the adjustment ratio, the initial current value is adjusted to obtain a fill light current value.

11. The method according to claim 9, characterized in that The number of the fill flash lamps is greater than 1; The adjusting the current value of the fill light flash lamp based on the fill light current value includes: Determine the fill light weight of each fill flash; Based on the fill light weight and the fill light current value, determining a fill light current value corresponding to each fill light flash; The current value of each fill-in flash lamp is updated to the fill-in current value corresponding to each fill-in flash lamp.

12. A photographing device, characterized in that: include: A receiving module, configured to receive a first input; A processing module, configured to control the camera to shoot in response to the first input, and control the fill-in flash to fill in light during the shooting process, and output an image; Among them, the fill-in flash is a flash in the flash module that matches the shooting focal length, and the number of the fill-in flash is greater than 0.

13. The device according to claim 12, characterized in that The flash module includes at least two flashes corresponding to different zoom focal lengths; The processing module is further used for: In response to the first input, the camera is controlled to shoot, and during the shooting process, a fill-in flash is controlled to perform fill-in light, and before outputting the image, a preview zoom focal length is obtained; At least one flash in the flash module whose corresponding zoom focal length matches the preview zoom focal length is determined as a fill flash.

14. The device according to claim 13, characterized in that The processing module is specifically used for: The preview zoom focal length is compared with the zoom focal length corresponding to each flash in the flash module, and the flash corresponding to the zoom focal length including the preview zoom focal length is determined as the fill flash for shooting fill light.

15. The device according to claim 13, characterized in that The processing module is specifically used for: Comparing the preview zoom focal length with the zoom focal length corresponding to each flash in the flash module, and determining the flash corresponding to the zoom focal length including the preview zoom focal length as a candidate flash; Determining a fill light weight of the candidate flash based on the zoom focal length including the preview zoom focal length and the preview zoom focal length, the fill light weight being used to indicate a ratio of a first difference value to a second difference value, the first difference value being a difference between the preview zoom focal length and a lower limit value of the zoom focal length including the preview zoom focal length, and the second difference value being a difference between an upper limit value and a lower limit value of the zoom focal length including the preview zoom focal length; Based on the fill light weight, at least one fill light flash in the flash module for shooting fill light is determined, and the at least one fill light flash includes the candidate flash.

16. The device according to claim 15, characterized in that The processing module is specifically used for: Comparing the fill light weight with a weight threshold to obtain a comparison result; Based on the comparison result, at least one fill-light flash in the flash module for shooting fill-light is determined.

17. The device according to any one of claims 12 to 16, characterized in that: The receiving module is further configured to control the camera to shoot in response to the first input, and control the fill-in flash to fill in light during the shooting process, and before outputting the image, receive a third input of a focus segment setting interface, wherein the focus segment setting interface includes a zoom focal segment corresponding to each flash in the flash module; The processing module is further configured to update, in response to a third input, a zoom focal length corresponding to the flash set by the third input.

18. The device according to any one of claims 12 to 16, characterized in that: The processing module is further used for: In response to the first input, the camera is controlled to shoot, and the fill-in flash is controlled to provide fill-in light during the shooting process. Before outputting the image, the current value of the fill-in flash is adjusted based on the ambient brightness of the shooting environment and the brightness value of each pixel in the preview image taken by the camera.

19. The device according to claim 18, characterized in that The processing module is specifically used for: Determining an initial current value of the fill-light flash based on the ambient brightness of the shooting environment; Determining an average image brightness of the preview image and an average foreground object brightness of the foreground object in the preview image based on a brightness value of each pixel in the preview image; Based on the brightness ratio of the average brightness of the image to the average brightness of the foreground object, adjusting the initial current value to obtain a fill light current value; Based on the fill light current value, the current value of the fill light flash is adjusted.

20. The device according to claim 19, characterized in that The processing module is specifically used for: Determining an adjustment ratio of the initial current value based on a brightness ratio of the average brightness of the image to the average brightness of the foreground object, wherein the brightness ratio is positively correlated with the adjustment ratio; Based on the adjustment ratio, the initial current value is adjusted to obtain a fill light current value.

21. The device according to claim 19, characterized in that The number of the fill flash lamps is greater than 1; The processing module is specifically used for: Determine the fill light weight of each fill flash; Based on the fill light weight and the fill light current value, determining a fill light current value corresponding to each fill light flash; The current value of each fill-in flash lamp is updated to the fill-in current value corresponding to each fill-in flash lamp.

22. An electronic device, characterized in that: A flash module, a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the photographing method according to any one of claims 1 to 11 are implemented; The flash module includes at least two flashes with corresponding different zoom focal lengths.

23. The electronic device according to claim 22, characterized in that: The flashlight in the flashlight module comprises a lampshade, on which a coating having a thickness or thread density corresponding to the zoom focal length of the flashlight is spin-coated.

24. The electronic device according to claim 22, characterized in that: The flashlight in the flashlight module comprises a lampshade, and the opening and closing angle of the lampshade corresponds to the zoom focal length of the flashlight.

25. The electronic device according to claim 22, characterized in that: The flash lamp in the flash lamp module comprises a polymer dispersed liquid crystal, and a voltage corresponding to the zoom focal length of the flash lamp is applied to the upper surface and the lower surface of the polymer dispersed liquid crystal.