Shooting control method and device, electronic equipment, storage medium and program product

By obtaining the control strategy of the breathing lamp in the preview mode of the electronic device and controlling the blinking of the breathing lamp in response to the shooting command, the problem of mutual exclusion of the breathing lamp and the shooting function is solved, and the flexible application of the breathing lamp and the guarantee of shooting quality is achieved.

CN119545156APending Publication Date: 2025-02-28GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411737193.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the prior art, the breathing lamp and the shooting function are mutually exclusive in electronic devices, resulting in poor application flexibility of the breathing lamp and cannot meet the use needs of the breathing lamp in shooting scenes.

Method used

A shooting control method and device are provided, by obtaining the control strategy corresponding to the breathing lamp and the preview mode in the preview mode, including the flickering frequency and the light-off time, controlling the shooting component to shoot images or videos in response to the shooting command, and synchronously controlling the blinking of the breathing lamp.

Benefits of technology

The interactive coordination between the breathing lamp and the shooting function is realized, which improves the application flexibility of the breathing lamp, and can remind events or create atmosphere through the flashing of the breathing lamp during the shooting process, and ensures that the shooting quality is not affected by the flashing of the breathing lamp.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545156A_ABST
    Figure CN119545156A_ABST
Patent Text Reader

Abstract

The invention relates to a shooting control method and device, electronic equipment, a storage medium and a program product. The method is applied to the electronic equipment, the electronic equipment comprises a shooting assembly and a breathing lamp, and the method comprises the steps that in a preview mode, a control strategy, corresponding to the preview mode, of the breathing lamp is acquired, and the control strategy comprises at least one of the flicker frequency and the turn-on and turn-off time of the breathing lamp; and in response to a shooting instruction received by the electronic equipment, controlling the shooting assembly to carry out image shooting or video shooting, and controlling the breathing lamp to flicker according to the control strategy. By adopting the method, the application flexibility of the breathing lamp can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of shooting control technology, and in particular to a shooting control method, device, electronic device, storage medium and program product. Background Art

[0002] The breathing light can serve as a notification reminder by flashing different colors. The breathing light is widely used in electronic devices such as mobile phones and Internet of Things devices.

[0003] Take the use of breathing lights in electronic devices with shooting functions as an example. Normally, the breathing lights and the shooting functions are mutually exclusive, that is, the breathing lights are usually disabled when the electronic device uses the shooting function, which makes the application flexibility of the breathing lights relatively poor. Summary of the invention

[0004] Based on this, it is necessary to provide a shooting control method, device, electronic device, storage medium and program product to address the above technical problems, which can enhance the application flexibility of the breathing light.

[0005] In a first aspect, the present application provides a shooting control method. The shooting control method is used in an electronic device, the electronic device includes a shooting component and a breathing light, and the method includes:

[0006] In the preview mode, obtaining a control strategy corresponding to the breathing light and the preview mode, the control strategy including at least one of a flashing frequency and an on / off time of the breathing light;

[0007] In response to a shooting instruction received by the electronic device, the shooting component is controlled to shoot images or videos, and the breathing light is controlled to flash according to a control strategy.

[0008] In a second aspect, the present application further provides a shooting control device. The shooting control device is used in an electronic device, the electronic device includes a shooting component and a breathing light, and the device includes:

[0009] An acquisition module, used for acquiring, in the preview mode, a control strategy corresponding to the breathing light and the preview mode, wherein the control strategy includes at least one of a flashing frequency and an on / off time of the breathing light;

[0010] The control module is used to control the shooting component to shoot images or videos in response to the shooting instruction received by the electronic device, and to control the flashing of the breathing light according to the control strategy.

[0011] In a third aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented.

[0012] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in the first aspect when the computer program is executed by a processor.

[0013] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the steps of the method described in the first aspect when the computer program is executed by a processor.

[0014] The above-mentioned shooting control method, device, electronic device, storage medium and program product, the electronic device obtains the control strategy corresponding to the breathing light in the electronic device and the preview mode in the preview mode, and the control strategy includes at least one of the flashing frequency of the breathing light and the lighting and extinguishing time. Then, in response to the shooting instruction received by the electronic device, the shooting component is controlled to perform image shooting or video shooting, and the flashing of the breathing light is controlled by the control strategy. In this way, the embodiment of the present application will pre-acquire the control strategy of the breathing light in the preview mode. When the shooting component is performing image shooting or video shooting, the electronic device can control the flashing of the breathing light based on the control strategy. For example, the flashing of the breathing light can be used to remind events such as incoming calls and new messages, so as to make full use of the breathing light to create a sense of atmosphere, realize the interactive coordination between the flashing of the breathing light and the shooting function, and improve the application flexibility of the breathing light. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0016] FIG1 is a schematic diagram of an electronic device according to an embodiment;

[0017] FIG2 is a schematic diagram of an electronic device in another embodiment;

[0018] FIG3 is a schematic diagram of a flow chart of a shooting control method in one embodiment;

[0019] FIG4 is a schematic diagram of a flow chart of determining a control strategy for a breathing light in another embodiment;

[0020] FIG5 is a schematic flow chart of a shooting control method in another embodiment;

[0021] FIG6 is a schematic diagram of a process of performing color calibration on an initial image acquired within an exposure time in another embodiment;

[0022] FIG7 is a schematic diagram of a process of performing color restoration processing on a target image in another embodiment;

[0023] FIG8 is a structural block diagram of a shooting control device in one embodiment;

[0024] FIG. 9 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0026] The breathing light can serve as a notification reminder by flashing different colors. Currently, the breathing light is used more and more on the market. For example, the breathing light has been widely used in electronic devices such as mobile phones and Internet of Things devices.

[0027] For electronic devices with a shooting function, usually, the breathing light and the shooting function are mutually exclusive, that is, the breathing light is usually disabled when the shooting function is used. However, as the demand for combining the application of the breathing light with the shooting scene becomes stronger and stronger, the above-mentioned mutually exclusive method of the breathing light and the shooting function can no longer meet the use demand, which makes the application flexibility of the breathing light relatively poor.

[0028] In view of this, the embodiments of the present application provide a shooting control method, device, electronic device, storage medium and program product, which can improve the application flexibility of the breathing light.

[0029] The shooting control method provided in the embodiment of the present application can be applied to electronic devices. The electronic devices may be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.

[0030] In the embodiment of the present application, the electronic device is equipped with a shooting component and a breathing light. The shooting component can be a conventional shooting lens, or a microscope lens for achieving high magnification (the magnification of the microscope lens is greater than the magnification of the conventional shooting lens). The shape and number of the breathing lights can be set as needed during implementation. The shape of the breathing lights can be, for example, circular, rectangular, teardrop-shaped, strip-shaped, etc., and the number of breathing lights can be, for example, one or more.

[0031] In the embodiment of the present application, the camera assembly and the breathing light are arranged on the same side of the electronic device. For example, if the camera assembly is a rear camera assembly configured in the electronic device, then the breathing light is also arranged on the back side of the electronic device (including the side of the back cover of the electronic device); for example, if the camera assembly is a front camera assembly configured in the electronic device, then the breathing light is also arranged on the front side of the electronic device (including the side of the main screen of the electronic device).

[0032] Exemplarily, referring to FIG. 1 , in the electronic device 10 shown in FIG. 1 , the shooting component 101 and the breathing light 102 are both arranged on the front side of the electronic device 10 , and the breathing light 102 is a circular breathing light.

[0033] For example, referring to FIG. 2 , in the electronic device 20 shown in FIG. 2 , a shooting component 201 and a breathing light (not shown in FIG. 2 ) are both arranged on the back of the electronic device 20, and the breathing light is a strip-shaped breathing light, which surrounds the shooting component 201. When the strip-shaped breathing light flashes, it forms an aperture to surround the shooting component 201.

[0034] It should be noted that the arrangement of the shooting component and the breathing light in the electronic device shown in Figures 1 and 2 does not constitute a restriction on the arrangement position and shape of the shooting component and the breathing light in the electronic device in the embodiment of the present application. During implementation, it can be flexibly selected as needed, and the embodiment of the present application does not impose specific restrictions on this.

[0035] In an exemplary embodiment, as shown in FIG3 , a shooting control method is provided, and the method is applied to an electronic device as an example for description. The electronic device may be, for example, the electronic device shown in FIG1 or FIG2 . The shooting control method includes the following steps 301 to 302:

[0036] Step 301: The electronic device obtains a control strategy corresponding to the breathing light and the preview mode in the preview mode.

[0037] The control strategy includes at least one of the flashing frequency and the lighting and extinguishing time of the breathing light.

[0038] An electronic device may have multiple preview modes (or so-called shooting preview modes), for example, photo preview mode, recording preview mode, portrait preview mode, etc. After the electronic device starts the shooting component, it may enter the default preview mode, and the user may select the required preview mode to switch as needed.

[0039] In the embodiment of the present application, when the electronic device is in any preview mode, the electronic device can obtain the control strategy corresponding to the breathing light and the preview mode.

[0040] Optionally, the electronic device may be pre-configured with a control strategy corresponding to the breathing light and each preview mode, so that the electronic device can directly obtain the control strategy corresponding to the breathing light and the current preview mode.

[0041] Optionally, for each preview mode, the electronic device may also pre-configure default shooting parameters corresponding to the shooting component and each preview mode. Of course, the user may also adjust the default shooting parameters as needed. After the electronic device enters any preview mode, the electronic device may determine the control strategy corresponding to the breathing light and the preview mode based on the shooting parameters corresponding to the shooting component and the current preview mode (which may be the default shooting parameters or the shooting parameters adjusted by the user as needed).

[0042] Among them, the shooting parameters may be, for example, frame rate, exposure time, etc. The frame rate refers to the number of photos taken within 1 second, and the unit is FPS (Frames Per Second), and the exposure time refers to the length of time the photosensitive element receives the light signal. Taking the shooting parameters including the frame rate and exposure time corresponding to the shooting component and the current preview mode as an example, optionally, the electronic device may use the frame rate as the flashing frequency of the breathing light, and the exposure time as the lighting time of the breathing light in a flashing cycle; optionally, the electronic device may use the frame rate as the flashing frequency of the breathing light, and the exposure time as the extinguishing time of the breathing light in a flashing cycle, and so on. The process of the electronic device determining the control strategy corresponding to the breathing light and the preview mode according to the shooting parameters will be described in the following embodiments.

[0043] It should be noted that after the electronic device determines the control strategy corresponding to the breathing light and the preview mode based on the shooting parameters corresponding to the shooting component and the current preview mode, if the user adjusts the shooting parameters such as the frame rate and exposure time of the shooting component in the current preview mode, the electronic device can re-acquire the user's latest customized shooting parameters and redetermine the control strategy of the breathing light based on the latest customized shooting parameters.

[0044] Step 302, in response to the shooting instruction received by the electronic device, the electronic device controls the shooting component to shoot an image or a video, and controls the breathing light to flash according to the control strategy.

[0045] After the electronic device determines the control strategy for the breathing light, when the electronic device receives a shooting instruction in the current preview mode and controls the shooting component to shoot an image or a video, the electronic device also synchronously controls the breathing light to flash according to the control strategy.

[0046] As described above, the control strategy includes at least one of the flashing frequency and the on-off time of the breathing light, and the on-off time may include the on-time and / or off-time of the breathing light in one flashing cycle.

[0047] Taking the control strategy including the blinking frequency of the breathing light as an example, when the electronic device controls the shooting component to shoot images or videos, the electronic device also controls the blinking of the breathing light synchronously according to the blinking frequency. Since the control strategy corresponding to the breathing light and the current preview mode obtained by the electronic device does not include the lighting time and / or extinguishing time of the breathing light in a blinking cycle, then for each blinking cycle, the electronic device can use the pre-configured universal lighting time and / or extinguishing time of the breathing light to control the lighting time and / or extinguishing time of the breathing light in each blinking cycle.

[0048] Taking the control strategy including the on-off time of the breathing light in a flashing cycle as an example, when the electronic device controls the shooting component to shoot images or videos, the electronic device also controls the flashing of the breathing light according to the on-off time, that is, for each flashing cycle, the electronic device uses the on-time and / or off-time included in the on-off time to control the lighting and extinguishing of the breathing light. Since the control strategy corresponding to the breathing light and the current preview mode obtained by the electronic device does not include the flashing frequency of the breathing light, the electronic device can use the pre-configured universal flashing frequency of the breathing light to control the flashing cycle of the breathing light.

[0049] Taking the control strategy including the flashing frequency of the breathing light and the on and off time of the breathing light within a flashing cycle as an example, when the electronic device controls the shooting component to capture images or videos, the electronic device also synchronously controls the flashing cycle of the breathing light according to the flashing frequency. For each flashing cycle, the electronic device uses the on and off time included in the on and off time to control the lighting and extinguishing of the breathing light.

[0050] Optionally, when the electronic device is in the preview mode, the electronic device can also detect whether the flash of the electronic device is in the disabled mode. If the flash is in the disabled mode, the electronic device then executes the shooting control method of the embodiment of the present application, that is, obtains the control strategy corresponding to the breathing light and the current preview mode, and controls the shooting component to shoot images or videos in response to the shooting instructions received by the electronic device, and controls the breathing light to flash according to the control strategy.

[0051] If the flash is not disabled, it means that the flash of the electronic device will be enabled during the shooting process. Since the brightness of the flash is much higher than the breathing light, when the shooting component is taking images or videos, the electronic device can control the breathing light to flash, that is, control the breathing light to turn off, thereby saving resources of the electronic device.

[0052] The above-mentioned embodiment will pre-acquire the control strategy of the breathing light in the preview mode, and can control the breathing light to flash based on the control strategy during the shooting process. For example, the flashing of the breathing light can be used to remind you of events such as incoming calls and new messages, and the breathing light can be fully utilized to create a sense of atmosphere, so that the flashing of the breathing light and the shooting function can interact with each other, thereby improving the application flexibility of the breathing light.

[0053] In addition, when the inventors of the present application were studying how to combine the application of the breathing light with the shooting scene, they found through a lot of research and experiments that: if the breathing light is simply allowed to be used when the shooting function is used, then the breathing light will easily affect the shooting picture of the shooting component when it flashes, and the breathing light may flash and the shooting picture may also flash, seriously affecting the shooting quality and the shooting experience. The reason is that when the breathing light is flashing, the flashing of the breathing light will affect the brightness of the exposure environment, that is, the brightness of the exposure environment will change with the flashing of the breathing light, and then the breathing light will flash and the shooting picture will also flash, affecting the image quality. The reason why the flashing of the breathing light causes changes in brightness during shooting and the flickering of the picture is that there is a difference in the brightness of the exposure environment within the exposure time.

[0054] In view of this, in the embodiment of the present application, the control strategy corresponding to the breathing light of the current preview mode obtained by the electronic device can also make the breathing light continuously lit or continuously extinguished during each exposure time when the shooting component performs image shooting or video shooting, that is, when the electronic device controls the shooting component to shoot an image or video, and controls the breathing light to flash by the control strategy, the breathing light is continuously lit or continuously extinguished during each exposure time of the shooting component.

[0055] The breathing light is continuously on or off during each exposure time of the shooting component, including the following three situations:

[0056] 1) For each exposure time of the shooting component, the breathing light is on during each exposure time. In this way, the brightness of the exposure environment can be kept consistent during each exposure time, that is, each image is captured within the time period when the breathing light is on.

[0057] 2) For each exposure time of the shooting component, the breathing light is off during each exposure time. In this way, the brightness of the exposure environment can be kept consistent during each exposure time, that is, the image is captured each time during the time period when the breathing light is off.

[0058] 3) For one exposure time of the shooting component, the breathing light is in the same on-off state during one exposure time, while for different exposure times of the shooting component, the on-off state of the breathing light may be different. For example, the breathing light is on during the first exposure time, off during the second exposure time, on during the third exposure time, and so on. In this way, the brightness of the exposure environment can be kept consistent during one exposure time, and the breathing light will not be on and off during the exposure time, thereby keeping the brightness of the exposure environment consistent.

[0059] It can be seen that when the breathing light is flashing, the brightness of the exposure environment of the electronic device will not change with the flashing of the breathing light, so that the situation where the breathing light flashes and the shooting screen also flashes will not occur.

[0060] In this way, the embodiment of the present application can ensure that the breathing light is continuously lit or continuously extinguished during each exposure time during the shooting process, maintain the brightness of the exposure environment consistent, and avoid flickering in the shooting picture.

[0061] Optionally, when the electronic device controls the shooting component to shoot an image or a video, the distance between the electronic device and the shooting object is less than a preset distance threshold, and the preset distance threshold may be, for example, 30 centimeters, 40 centimeters, etc.

[0062] In the preview mode, the electronic device can also detect whether the distance between the electronic device and the photographed object is less than the preset distance threshold. If the distance between the electronic device and the photographed object is less than the preset distance threshold, since the photographed object is closer to the electronic device when the electronic device is taking close-up photos, the flashing of the breathing light has a greater impact on the brightness of the photographed object. Therefore, the changes in brightness and darkness of the captured picture following the flashing of the breathing light are more obvious. The electronic device can execute the shooting control method provided in the embodiment of the present application, obtain the control strategy corresponding to the breathing light and the preview mode, and then respond to the shooting instruction, control the shooting component to shoot images or videos, and control the flashing of the breathing light with the control strategy. In this way, during each exposure time of the shooting component, the breathing light is continuously on or continuously off, avoiding the above-mentioned situation where the breathing light flashes and the picture also flashes.

[0063] If the distance between the electronic device and the photographed object is greater than or equal to the preset distance threshold, it indicates that the photographed object is far away from the electronic device, and the flashing of the breathing light has little effect on the brightness of the photographed object. The electronic device can use the default breathing light control strategy, which can save the computing resources of the electronic device. Of course, if the distance between the electronic device and the photographed object is greater than or equal to the preset distance threshold, the electronic device can also execute the shooting control method provided in the embodiment of the present application, which is not limited here.

[0064] In the embodiment of the present application, when the breathing light is controlled to flash with a control strategy, the breathing light is continuously lit or continuously off during each exposure time of the shooting component. This ensures that when the breathing light flashes, the brightness of the exposure environment of the electronic device will not change with the flashing of the breathing light, thereby preventing the breathing light from flashing and the shooting screen from flashing. The embodiment of the present application not only realizes the interactive coordination between the flashing of the breathing light and the shooting function, but also takes into account the shooting quality, further enhancing the application flexibility of the breathing light.

[0065] In one embodiment, based on the embodiment shown in FIG3 , the following is an exemplary description of the process of the electronic device obtaining the control strategy corresponding to the breathing light and the preview mode. As shown in FIG4 , the process includes the following steps 401 to 402:

[0066] Step 401: The electronic device determines the flashing frequency of the breathing light according to the frame rate corresponding to the shooting component and the preview mode.

[0067] Among them, the flashing frequency corresponds to the reminder state of the electronic device, and the reminder state can be set by the user. For example, the reminder state represents that a target event occurs in the electronic device in the preview mode, and the breathing light needs to be flashed to remind the target event. The target event can be an event that occurs in the electronic device and needs to interact with the user. For example, the target event includes an incoming call event, a new message event, etc. That is, when the electronic device is in the reminder state, the electronic device executes step 401 again.

[0068] In one possible embodiment, the flashing frequency of the breathing light can be configured to be equal to the above frame rate, for example, the frame rate is 30fps and the flashing frequency is 30Hz; in another possible embodiment, the frame rate can also be greater than the flashing frequency of the breathing light (that is, the flashing frequency of the breathing light is less than the above frame rate), and the frame rate is an integer multiple of the flashing frequency, for example, the frame rate is 30fps, the frame rate is twice the flashing frequency, then the flashing frequency is 15Hz.

[0069] It should be noted that if the user does not adjust the frame rate of the shooting component for the preview mode, the electronic device determines the flashing frequency of the breathing light according to the default frame rate corresponding to the shooting component and the preview mode; if the user adjusts the frame rate of the shooting component for the preview mode, the electronic device determines the flashing frequency of the breathing light according to the user-defined frame rate corresponding to the shooting component and the preview mode.

[0070] Step 402: The electronic device determines the blinking cycle of the breathing light according to the blinking frequency, and determines the lighting and extinguishing time of the breathing light within one blinking cycle according to the exposure time corresponding to the shooting component and the preview mode.

[0071] The electronic device can calculate the flashing cycle of the breathing light according to the flashing frequency based on the calculation formula of frequency and cycle. Then, the electronic device determines the on-off time of the breathing light in a flashing cycle according to the exposure time, wherein the on-off time includes the on time and the off time.

[0072] It should be noted that if the user does not adjust the exposure time of the shooting component for the preview mode, the electronic device determines the lighting and extinguishing time of the breathing light within one flashing cycle according to the default exposure time corresponding to the shooting component and the preview mode; if the user adjusts the exposure time of the shooting component for the preview mode, the electronic device determines the lighting and extinguishing time of the breathing light within one flashing cycle according to the user-defined exposure time corresponding to the shooting component and the preview mode.

[0073] As mentioned above, in order to ensure that the brightness of the exposure environment is consistent during the exposure time, the breathing light needs to be continuously on or off during each exposure time during the shooting process. Therefore, the on time and off time cannot switch within one exposure time.

[0074] The following distinguishes between two size relationships between the flashing frequency of the breathing light and the frame rate of the shooting component, and exemplarily introduces the process of an electronic device determining the lighting and extinguishing time of the breathing light within a flashing cycle according to the exposure time corresponding to the shooting component and the preview mode.

[0075] 1) When the flashing frequency of the breathing light is equal to the frame rate of the shooting component, the exposure period of the shooting component is the same as the flashing period of the breathing light. Optionally, the electronic device can configure the lighting time of the breathing light within a flashing period to be greater than or equal to the exposure time of the shooting component. In this way, in each flashing period (the same as the exposure period), it can be ensured that the breathing light is lit during the exposure time, so that there will be no switching between the lighting time and the off time within one exposure time.

[0076] Optionally, the electronic device can also configure the off time of the breathing light within a flashing cycle to be greater than or equal to the exposure time. In this way, in each flashing cycle (the same as the exposure cycle), it can be ensured that the breathing light is off within the exposure time, so that there will be no switching between the off time and the on time within an exposure time.

[0077] 2) When the flashing frequency of the breathing light is less than the frame rate of the shooting component, and the frame rate is an integer multiple of the flashing frequency, one flashing cycle of the breathing light will cover multiple exposure cycles of the shooting component. Optionally, the electronic device can configure the lighting time of the breathing light within one flashing cycle to be greater than or equal to the exposure time, and configure the end time of the lighting time to be within the non-exposure time of the shooting component. The non-exposure time refers to the other time except the exposure time in each exposure cycle of the shooting component. This can avoid the switching of the off time and the lighting time within one exposure time.

[0078] Optionally, the electronic device can configure the off time of the breathing light within a flashing cycle to be greater than or equal to the exposure time, and configure the end time of the off time to be within the non-exposure time of the shooting component, so as to avoid switching between the off time and the lighting time within an exposure time.

[0079] In this way, it can be ensured that the breathing light is turned on or off during each exposure time, and the end time of the off time will not be within the exposure time, so that there will be no switching between the off time and the on time within one exposure time.

[0080] After the electronic device determines the flickering frequency and the lighting time and extinguishing time in a flickering cycle through the implementation of the above embodiment, the flickering frequency and the lighting time and extinguishing time are determined as the control strategy of the breathing light. In this way, while the electronic device controls the shooting component to shoot images or videos, it can also control the blinking of the breathing light with the above control strategy.

[0081] As an implementation mode, in an embodiment of the present application, after the electronic device controls the shooting component to capture an image or a video, the shooting component outputs an exposure signal during each exposure. The electronic device obtains the exposure signal output for the first time when the shooting component captures the image or captures the video, and uses the exposure signal as a time synchronization signal. When the lighting time is configured to be greater than or equal to the exposure time, the electronic device controls the first lighting time of the breathing light to be synchronized with the first exposure time according to the exposure signal when the shooting component captures the image or captures the video. In this way, after the first lighting time is synchronized with the first exposure time, the breathing light is controlled to flash according to the above-mentioned control strategy, so that the first lighting time can be aligned with the first exposure time, ensuring that the end time of the lighting time will not be within the exposure time, thereby ensuring that the brightness of the exposure environment is consistent during the exposure time.

[0082] When the off-time is configured to be greater than or equal to the exposure time, the electronic device controls the first off-time of the breathing light to be synchronized with the first exposure time according to the exposure signal when the shooting component is performing image shooting or video shooting. In this way, after the first off-time is synchronized with the first exposure time, the breathing light is controlled to flash according to the above-mentioned control strategy, so that the first off-time can be aligned with the first exposure time, ensuring that the end time of the off-time will not be within the exposure time, thereby ensuring that the brightness of the exposure environment is consistent during the exposure time.

[0083] By synchronizing the first lighting time (or first off time) with the first exposure time, and configuring the breathing light control strategy according to the frame rate and exposure time corresponding to the shooting component and preview mode, the exposure environment brightness is consistent during the exposure time, thereby improving the consistency of the picture brightness of the captured image.

[0084] The above embodiment introduces the process of how to ensure the consistent brightness of the exposure environment during the exposure time. This ensures that when the breathing light flashes, the brightness of the exposure environment of the electronic device will not change with the flashing of the breathing light, so that the breathing light will not flash and the shooting screen will not flash.

[0085] In the embodiment of the present application, the breathing light will flash in different colors during operation. The color change of the breathing light will cause color differences in the image effect, and the color of the breathing light will interfere with the true color of the photographed object and affect the imaging quality.

[0086] In view of this, based on any of the above embodiments, taking the embodiment shown in FIG. 3 as an example, referring to FIG. 5 , in the embodiment of the present application, the shooting control method further includes step 501 shown in FIG. 5 :

[0087] Step 501, for an exposure time when the shooting component performs image shooting or video shooting, if the breathing light is continuously lit during the exposure time, the electronic device performs color calibration on the initial image collected by the electronic device during the exposure time to obtain a target image.

[0088] It is understandable that for one exposure time, the breathing light may continue to light up during the exposure time, but it may also continue to be off. If the breathing light continues to be off during the exposure time, the color of the breathing light will not affect the image effect. If the breathing light continues to be on during the exposure time, the electronic device can perform color calibration on the initial image collected during the exposure time to obtain the target image.

[0089] Several possible implementations of performing color calibration on an initial image by an electronic device to obtain a target image are exemplarily introduced below.

[0090] 1) The first implementation method

[0091] Referring to FIG. 6 , the electronic device may perform steps 601 to 603 shown in FIG. 6 to implement a process of color calibrating the initial image to obtain the target image:

[0092] Step 601: The electronic device determines the flashing color of the breathing light during the exposure time.

[0093] In the embodiment of the present application, the color of the breathing light remains unchanged within a flashing cycle. As can be seen from the above, the flashing cycle of the breathing light is an integer multiple of the shooting cycle. Therefore, within an exposure time, the color of the breathing light also remains unchanged.

[0094] For one exposure time, if the breathing light is continuously on during the exposure time, the electronic device can determine the flashing color of the breathing light during the exposure time.

[0095] Step 602: The electronic device obtains a preset AWB compensation value corresponding to the flicker color and the shooting distance according to the flicker color and the shooting distance between the electronic device and the shooting object.

[0096] In the embodiment of the present application, the electronic device may store a mapping relationship among the flicker color, the shooting distance, and the AWB compensation value, and the mapping relationship may be preset in the electronic device in advance.

[0097] Exemplarily, a group of images can be captured in advance for different shooting distances and different flashing color combinations: a first image captured when the breathing light is flashing and a second image captured when the breathing light is off. It can be understood that the first image includes the color interference of the flashing color on the photographed object at the shooting distance. Then, the first image and the second image are analyzed, specifically, the AWB (Automatic White Balance) difference in the RAW domain is analyzed to obtain the AWB compensation value, and the AWB compensation value is associated with the current shooting distance and flashing color and stored.

[0098] In this way, during the actual shooting process, the blinking color of the breathing light and the shooting distance can be used as indexes to find the AWB compensation value corresponding to the blinking color and the shooting distance in the database.

[0099] Step 603: the electronic device compensates the initial image according to the AWB compensation value to obtain a target image.

[0100] The electronic device can adjust the image color of the initial image according to the AWB compensation value to obtain a color-calibrated target image.

[0101] In this way, the embodiment of the present application performs AWB difference analysis and compensation for different breathing light colors, optimizes imaging color, and improves image quality.

[0102] 2) Second implementation method

[0103] Based on the embodiment shown in FIG. 6 , referring to FIG. 7 , on the basis of FIG. 6 , the electronic device may further perform step 701 and step 702 shown in FIG. 7 to perform color restoration processing on the target image, so as to further optimize the image color of the target image:

[0104] Step 701, when the breathing light is off, the electronic device obtains current environment color temperature information, where the current environment color temperature information includes real color information of the photographed object.

[0105] As an implementation method, a color temperature sensor may be configured in the electronic device. When the breathing light is off, the electronic device may sense the current ambient color temperature information through the color temperature sensor. The current ambient color temperature information includes the true color information of the photographed object.

[0106] Exemplarily, the real color information may include a ratio of three-channel colors of the photographed object, namely, R (Red), G (Green), and B (Blue).

[0107] Step 702: The electronic device performs color restoration processing on the target image according to the real color information.

[0108] The electronic device adjusts the ratio of the three-channel colors of each pixel in the target image according to the ratio of the three-channel colors, thereby performing color restoration processing on the target image.

[0109] Optionally, after the electronic device obtains the current ambient color temperature information, the electronic device may first detect whether the difference between the current ambient color temperature information and the historical ambient color temperature information collected at the previous moment is greater than a preset threshold. The preset threshold can be set by itself during implementation. If the difference between the current ambient color temperature information and the historical ambient color temperature information is less than the preset threshold, it indicates that there is no jump in the ambient color temperature. The electronic device then executes step 702 according to the above implementation method and performs color restoration processing on the target image according to the real color information.

[0110] If the difference between the current ambient color temperature information and the historical ambient color temperature information is greater than or equal to a preset threshold, it means that the ambient color temperature has jumped. If the real color information included in the current ambient color temperature information is directly used to perform color restoration on the target image, it may cause a relatively large color jump in the image color. Therefore, the electronic device can use the historical ambient color temperature information to smooth the current ambient color temperature information to obtain the smoothed ambient color temperature information. For example, the electronic device can perform a weighted summation of the real color information included in the current ambient color temperature information and the real color information included in the historical ambient color temperature information to obtain the smoothed color information.

[0111] Then, the electronic device performs color restoration processing on the target image according to the color information included in the smoothed ambient color temperature information (ie, the smoothed color information), thereby optimizing the image color of the target image based on the previous frame.

[0112] 3) The third implementation method

[0113] In this implementation, when the breathing light is off, after the electronic device obtains the current ambient color temperature information, the electronic device can perform color restoration processing on the initial image according to the real color information included in the current ambient color temperature information to obtain the target image.

[0114] The process of the electronic device performing color restoration processing on the initial image according to the real color information can refer to the process of the electronic device performing color restoration processing on the target image according to the real color information in the above embodiment, which will not be repeated here.

[0115] Optionally, after obtaining the current ambient color temperature information, the electronic device may also detect whether the difference between the current ambient color temperature information and the historical ambient color temperature information collected at the previous moment is greater than a preset threshold. If the difference between the current ambient color temperature information and the historical ambient color temperature information is less than the preset threshold, the electronic device performs color restoration on the initial image based on the true color information. If the difference between the current ambient color temperature information and the historical ambient color temperature information is greater than or equal to the preset threshold, the electronic device uses the historical ambient color temperature information to smooth the current ambient color temperature information to obtain the smoothed ambient color temperature information. The electronic device then performs color restoration on the initial image based on the color information included in the smoothed ambient color temperature information.

[0116] 4) The fourth implementation method

[0117] In this embodiment, based on the third embodiment, the electronic device can also determine the flashing color of the breathing light during the exposure time, and obtain the preset AWB compensation value corresponding to the flashing color and the shooting distance according to the flashing color and the shooting distance between the electronic device and the photographed object, and then compensate the target image obtained in the third embodiment according to the AWB compensation value to further optimize the color of the target image.

[0118] In the above embodiment, for one exposure time, if the breathing light is continuously on during the exposure time, the electronic device optimizes the color consistency of the image collected during the exposure time by calibrating the color, thereby improving the image quality.

[0119] In one embodiment, a shooting control method is provided, which is used in an electronic device and includes the following steps:

[0120] Step A1: In the preview mode, the electronic device determines a flickering frequency according to a frame rate corresponding to the shooting component and the preview mode, and the flickering frequency corresponds to the reminder state of the electronic device.

[0121] The frame rate is equal to the flicker frequency; or the frame rate is greater than the flicker frequency, and the frame rate is an integer multiple of the flicker frequency.

[0122] In step A2, the electronic device determines the flashing cycle of the breathing light according to the flashing frequency, and determines the lighting and extinguishing time of the breathing light within a flashing cycle according to the exposure time corresponding to the shooting component and the preview mode.

[0123] When the flashing frequency is equal to the frame rate, the lighting time of the breathing light in one flashing cycle is configured to be greater than or equal to the exposure time, or the extinguishing time of the breathing light in one flashing cycle is configured to be greater than or equal to the exposure time.

[0124] When the flashing frequency is lower than the frame rate, the lighting time of the breathing light within a flashing cycle is configured to be greater than or equal to the exposure time, and the end time of the lighting time is configured to be within the non-exposure time of the shooting component; or, the off time of the breathing light within a flashing cycle is configured to be greater than or equal to the exposure time, and the end time of the off time is configured to be within the non-exposure time of the shooting component.

[0125] In step A3, the electronic device determines the flashing frequency and the lighting and extinguishing time as a control strategy.

[0126] Step A4: the electronic device controls the shooting component to shoot images or videos in response to the shooting instruction received by the electronic device.

[0127] The distance between the electronic device and the photographed object is less than a preset distance threshold.

[0128] Step A5: When the lighting time is configured to be greater than or equal to the exposure time, the electronic device controls the first lighting time of the breathing light to be synchronized with the first exposure time according to the exposure signal.

[0129] Step A6: When the extinguishing time is configured to be greater than or equal to the exposure time, the electronic device controls the first extinguishing time of the breathing light to be synchronized with the first exposure time according to the exposure signal.

[0130] Step A7, the electronic device controls the breathing light to flash according to the control strategy, and the breathing light is continuously lit or continuously extinguished during each exposure time when the shooting component is shooting an image or a video.

[0131] Step A8: for one exposure time, if the breathing light is continuously on during the exposure time, the electronic device determines the flashing color of the breathing light during the exposure time.

[0132] Step A9: the electronic device obtains a preset AWB compensation value corresponding to the flicker color and the shooting distance according to the flicker color and the shooting distance between the electronic device and the shooting object.

[0133] In step A10, the electronic device compensates the initial image according to the AWB compensation value to obtain a target image.

[0134] Step A11, when the breathing light is off, the electronic device obtains current ambient color temperature information, where the current ambient color temperature information includes real color information of the photographed object.

[0135] Step A12: The electronic device detects whether the difference between the current ambient color temperature information and the historical ambient color temperature information collected at the last moment is greater than a preset threshold.

[0136] Step A13: if the difference between the current environment color temperature information and the historical environment color temperature information is less than a preset threshold, the electronic device performs color restoration processing on the target image according to the real color information.

[0137] Step A14: if the difference between the current ambient color temperature information and the historical ambient color temperature information is greater than or equal to a preset threshold, the electronic device uses the historical ambient color temperature information to smooth the current ambient color temperature information to obtain smoothed ambient color temperature information.

[0138] In step A15, the electronic device performs color restoration processing on the target image according to the color information included in the smoothed ambient color temperature information.

[0139] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0140] Based on the same inventive concept, the embodiment of the present application also provides a shooting control device for implementing the shooting control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more shooting control device embodiments provided below can refer to the limitations on the shooting control method above, and will not be repeated here.

[0141] In an exemplary embodiment, as shown in FIG8 , a shooting control device is provided, including:

[0142] An acquisition module 801 is used to acquire, in a preview mode, a control strategy of the breathing light corresponding to the preview mode, wherein the control strategy includes at least one of a flashing frequency and an on / off time of the breathing light;

[0143] The control module 802 is used to control the shooting component to shoot images or videos in response to the shooting instruction received by the electronic device, and control the breathing light to flash according to the control strategy.

[0144] In one embodiment, the acquisition module 801 includes:

[0145] A first determining unit, configured to determine the flickering frequency according to a frame rate corresponding to the shooting component and the preview mode, wherein the flickering frequency corresponds to a reminder state of the electronic device;

[0146] The second determining unit is used to determine the flashing cycle of the breathing light according to the flashing frequency, and determine the lighting and extinguishing time of the breathing light within one of the flashing cycles according to the exposure time of the shooting component corresponding to the preview mode.

[0147] In one of the embodiments, the first determination unit is specifically configured to configure the flickering frequency to be equal to the frame rate; or, to configure the flickering frequency to be less than the frame rate, and the frame rate is an integer multiple of the flickering frequency.

[0148] In one of the embodiments, the second determination unit is specifically used to configure the lighting time of the breathing light in one of the flashing cycles to be greater than or equal to the exposure time when the flashing frequency is equal to the frame rate, or to configure the off time of the breathing light in one of the flashing cycles to be greater than or equal to the exposure time.

[0149] In one of the embodiments, the second determination unit is specifically used to configure the lighting time of the breathing light within one of the flashing cycles to be greater than or equal to the exposure time, and to configure the end time of the lighting time to be within the non-exposure time of the shooting component when the flashing frequency is less than the frame rate; or, to configure the extinction time of the breathing light within one of the flashing cycles to be greater than or equal to the exposure time, and to configure the end time of the extinction time to be within the non-exposure time of the shooting component.

[0150] In one embodiment, the acquisition module 801 is further used to acquire an exposure signal outputted for the first time when the shooting component performs image shooting or video shooting;

[0151] The control module 802 is also used to control the first lighting time of the breathing light to be synchronized with the first exposure time according to the exposure signal when the lighting time is configured to be greater than or equal to the exposure time; and to control the first turning off time of the breathing light to be synchronized with the first exposure time according to the exposure signal when the turning off time is configured to be greater than or equal to the exposure time.

[0152] In one embodiment, the device further comprises:

[0153] The color calibration module is used for performing color calibration on the initial image captured by the shooting component during the exposure time when the shooting component is performing image shooting or video shooting to obtain a target image if the breathing light is continuously lit during the exposure time.

[0154] In one of the embodiments, the color calibration module is specifically used to determine the flashing color of the breathing light during the exposure time; obtain a preset AWB compensation value corresponding to the flashing color and the shooting distance according to the flashing color and the shooting distance between the electronic device and the photographed object; compensate the initial image according to the AWB compensation value to obtain the target image.

[0155] In one embodiment, the acquisition module is further used to acquire current environment color temperature information when the breathing light is off, and the current environment color temperature information includes real color information of the photographed object;

[0156] The device also includes:

[0157] The color restoration module is used to perform color restoration processing on the target image according to the real color information.

[0158] In one embodiment, the device further comprises:

[0159] A first detection module, configured to detect whether a difference between the current ambient color temperature information and the historical ambient color temperature information acquired at the last moment is greater than a preset threshold after the second acquisition module acquires the current ambient color temperature information;

[0160] The color restoration module is specifically configured to perform color restoration processing on the target image according to the real color information if the difference between the current ambient color temperature information and the historical ambient color temperature information is less than the preset threshold.

[0161] In one embodiment, the device further comprises:

[0162] a smoothing module, configured to, if the difference between the current ambient color temperature information and the historical ambient color temperature information is greater than or equal to the preset threshold, use the historical ambient color temperature information to smooth the current ambient color temperature information to obtain the smoothed ambient color temperature information;

[0163] The color restoration module is further used to perform color restoration processing on the target image according to the color information included in the ambient color temperature information after the smoothing processing.

[0164] In one of the embodiments, the distance between the electronic device and the photographed object is less than a preset distance threshold.

[0165] In one embodiment, the device further comprises:

[0166] A second detection module, used for detecting whether the flash is in a disabled mode;

[0167] The acquisition module 801 is specifically configured to execute the step of acquiring the control strategy corresponding to the breathing light and the preview mode if the flash light is in the disabled mode.

[0168] Each module in the above-mentioned shooting control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0169] In an exemplary embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG9. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a shooting control method is implemented. The display unit of the electronic device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device housing, or an external keyboard, touchpad or mouse.

[0170] Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0171] The embodiment of the present application further provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the shooting control method.

[0172] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the shooting control method.

[0173] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0174] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital shooting controller, a programmable logic unit, a data processing logic unit based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0175] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0176] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A shooting control method, characterized in that: Used in an electronic device, the electronic device includes a shooting component and a breathing light, and the method includes: In the preview mode, obtaining a control strategy of the breathing light corresponding to the preview mode, wherein the control strategy includes at least one of a flashing frequency and an on / off time of the breathing light; In response to a shooting instruction received by the electronic device, the shooting component is controlled to shoot images or videos, and the breathing light is controlled to flash according to the control strategy.

2. The method according to claim 1, characterized in that The obtaining of the control strategy corresponding to the breathing light and the preview mode includes: Determining the flickering frequency according to the frame rate corresponding to the shooting component and the preview mode, wherein the flickering frequency corresponds to the reminder state of the electronic device; The flashing cycle of the breathing light is determined according to the flashing frequency, and the lighting and extinguishing time of the breathing light within one of the flashing cycles is determined according to the exposure time of the shooting component corresponding to the preview mode.

3. The method according to claim 2, characterized in that The step of determining the flicker frequency according to the frame rate corresponding to the shooting component and the preview mode includes: configuring the flickering frequency to be equal to the frame rate; or, The flickering frequency is configured to be smaller than the frame rate, and the frame rate is an integer multiple of the flickering frequency.

4. The method according to claim 3, characterized in that The step of determining the lighting and extinguishing time of the breathing light within one flashing cycle according to the exposure time corresponding to the shooting component and the preview mode includes: When the flashing frequency is equal to the frame rate, the lighting time of the breathing light in one flashing cycle is configured to be greater than or equal to the exposure time, or the extinguishing time of the breathing light in one flashing cycle is configured to be greater than or equal to the exposure time.

5. The method according to claim 3, characterized in that: The step of determining the lighting and extinguishing time of the breathing light within one flashing cycle according to the exposure time corresponding to the shooting component and the preview mode includes: When the flashing frequency is less than the frame rate, the lighting time of the breathing light in one flashing cycle is configured to be greater than or equal to the exposure time, and the end time of the lighting time is configured to be within the non-exposure time of the shooting component; or The extinguishing time of the breathing light in one flashing cycle is configured to be greater than or equal to the exposure time, and the end time of the extinguishing time is configured to be within the non-exposure time of the shooting component.

6. The method according to claim 4 or 5, characterized in that: Before controlling the flashing of the breathing light by the control strategy, the method further includes: Acquire an exposure signal outputted for the first time when the shooting component is performing image shooting or video shooting; When the lighting time is configured to be greater than or equal to the exposure time, controlling the first lighting time of the breathing light to be synchronized with the first exposure time according to the exposure signal; In the case where the extinguishing time is configured to be greater than or equal to the exposure time, the first extinguishing time of the breathing light is controlled to be synchronized with the first exposure time according to the exposure signal.

7. The method according to claim 1, characterized in that The method further comprises: For an exposure time when the shooting component is performing image shooting or video shooting, if the breathing light is continuously lit during the exposure time, color calibration is performed on the initial image collected by the shooting component during the exposure time to obtain a target image.

8. The method according to claim 7, characterized in that The color calibration is performed on the initial image collected by the shooting component within the exposure time to obtain the target image, including: Determine the flashing color of the breathing light during the exposure time; According to the flicker color and the shooting distance between the electronic device and the object being shot, acquiring an AWB compensation value corresponding to the flicker color and the shooting distance; The initial image is compensated according to the AWB compensation value to obtain the target image.

9. The method according to claim 8, characterized in that The method further comprises: When the breathing light is off, obtaining current environment color temperature information, wherein the current environment color temperature information includes real color information of the photographed object; Performing color restoration processing on the target image according to the true color information.

10. The method according to claim 9, characterized in that After obtaining the current environment color temperature information, the method further includes: Detecting whether the difference between the current ambient color temperature information and the historical ambient color temperature information collected at the last moment is greater than a preset threshold; The performing color restoration processing on the target image according to the real color information comprises: If the difference between the current ambient color temperature information and the historical ambient color temperature information is less than the preset threshold, color restoration processing is performed on the target image according to the real color information.

11. The method according to claim 10, characterized in that The method further comprises: If the difference between the current ambient color temperature information and the historical ambient color temperature information is greater than or equal to the preset threshold, smoothing the current ambient color temperature information using the historical ambient color temperature information to obtain the smoothed ambient color temperature information; The target image is subjected to color restoration processing according to the color information included in the smoothed ambient color temperature information.

12. The method according to claim 1, characterized in that The distance between the electronic device and the photographed object is less than a preset distance threshold.

13. The method according to any one of claims 1 to 5, characterized in that: The electronic device further includes a flash light, and the step of obtaining a control strategy corresponding to the breathing light and the preview mode includes: detecting whether the flash is in a disabled mode; If the flashlight is in the disabled mode, the step of obtaining a control strategy corresponding to the breathing light and the preview mode is performed.

14. A shooting control device, characterized in that: Used in electronic equipment, the electronic equipment includes a shooting component and a breathing light, and the device includes: An acquisition module, used for acquiring, in a preview mode, a control strategy of the breathing light corresponding to the preview mode, wherein the control strategy includes at least one of a flashing frequency and an on / off time of the breathing light; The control module is used to control the shooting component to shoot images or videos in response to the shooting instruction received by the electronic device, and to control the flashing of the breathing light according to the control strategy.

15. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 13 are implemented.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.

17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.