Flash lamp control method, apparatus and device, and computer readable storage medium

The terminal and the external flash are matched and connected and synchronously controlled through an external device, which solves the problem of mismatch between the power and interface of the mobile phone flash and improves the image acquisition effect and fill light intensity.

CN120711298APending Publication Date: 2025-09-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410355091.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

The built-in flash of a mobile phone is limited by power and heat dissipation issues and cannot achieve the same effect as professional image acquisition equipment. It is also incompatible with the interface of an external flash, resulting in insufficient fill light intensity and synchronization difficulties.

Method used

The terminal is matched with an external flash through an external device, and the external device receives the flash trigger signal of the terminal, which controls the external flash to flash at the exposure moment of the image acquisition module. It supports multiple flash types and improves synchronization accuracy.

Benefits of technology

It achieves effective synchronization between the terminal and the external flash, enhances the fill light intensity, improves the image acquisition effect, and adapts to more types of external flashes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120711298A_ABST
    Figure CN120711298A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a flash lamp control method and device, equipment and a computer readable storage medium. The method is executed by a terminal, an interface of the terminal is not matched with an external flash lamp, the terminal is connected with an external device, the external device is connected with the external flash lamp through the matched interface, and the method comprises the following steps: determining an exposure moment when an image acquisition module on the terminal acquires an image; a flash trigger signal is sent to the external device, the flash trigger signal is used for indicating the external device to trigger the external flash lamp to flash, and the flash emitting moment of the external flash lamp is matched with the exposure moment. The problem that the terminal and the external flash lamp are not matched is solved through the external device, so that the terminal can use the external flash lamp meeting the requirement. The terminal can establish communication connection with the external device, and the external device is indicated to flash by sending the flash trigger signal to match with the exposure time, so that the image acquisition module can be synchronized with the flash lamp.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a flashlight control method, device, equipment, and computer-readable storage medium. Background Art

[0002] The flash can provide necessary lighting when the image acquisition module captures images, thereby achieving different shooting effects in different lighting environments.

[0003] In the related art, the built-in flashlights on terminals such as mobile phones are limited by power and heat dissipation issues and cannot achieve the same effect as the flashlights of professional image acquisition devices.

[0004] The flash currently matched with mobile phones has insufficient fill light intensity in dark and backlit scenes, which affects the image acquisition effect of the image acquisition module on the mobile phone.

[0005] However, the interface of the flash that meets the fill light intensity requirements is not compatible with the mobile phone, and the hardware structure of the mobile phone does not support synchronization between the mobile phone and this type of flash, so the flash cannot be accurately triggered at the exposure moment when the image acquisition module captures the image. Summary of the Invention

[0006] To overcome the problems existing in the related art, the present disclosure provides a flash control method, device, equipment and computer-readable storage medium, which can solve the above problems.

[0007] According to a first aspect of an embodiment of the present disclosure, a method for controlling a flash is provided, the method being executed by a terminal, wherein an interface of the terminal is not compatible with an external flash, the terminal is connected to an external device, and the external device is connected to the external flash via a compatible interface. The method comprises:

[0008] Determining an exposure time at which an image acquisition module on the terminal acquires an image;

[0009] A flash trigger signal is sent to the external device, where the flash trigger signal is used to instruct the external device to trigger the external flash to emit a flash, wherein the time when the external flash emits the flash matches the exposure time.

[0010] According to a second aspect of an embodiment of the present disclosure, a method for controlling a flash is provided. The method is performed by an external device, the external device being connected to the external flash via a matching interface, the external device being connected to a terminal, and the interface of the terminal being mismatched with the external flash. The method includes:

[0011] receiving a flash trigger signal sent by the terminal;

[0012] The external flash is triggered to emit a flash according to the flash trigger signal; wherein the time when the external flash emits the flash matches the exposure time when the image acquisition module on the terminal captures the image.

[0013] According to a third aspect of an embodiment of the present disclosure, a flash control device is provided. The device is configured for a terminal, wherein an interface of the terminal does not match an external flash. The terminal is connected to an external device, and the external device is connected to the external flash via a matching interface. The device includes:

[0014] a determining unit, configured to determine an exposure moment at which an image acquisition module on the terminal acquires an image;

[0015] The emitting unit is configured to emit a flash trigger signal to the external device, wherein the flash trigger signal is used to instruct the external device to trigger the external flash to emit a flash, wherein the time when the external flash emits the flash matches the exposure time.

[0016] According to a fourth aspect of an embodiment of the present disclosure, a control device for a flash is provided. The control device is configured on an external device, the external device being connected to the external flash via a matching interface, the external device being connected to a terminal, the interface of the terminal being mismatched with the external flash, the device comprising:

[0017] a receiving unit, configured to receive a flash trigger signal sent by the terminal;

[0018] The trigger unit is configured to trigger the external flash to emit a flash according to the flash trigger signal; wherein the time when the external flash emits the flash matches the exposure time when the image acquisition module on the terminal captures the image.

[0019] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including: a processor, a memory;

[0020] The memory is used to store computer programs;

[0021] The processor is used to execute the flash control method as described in the first and second aspects by calling the computer program.

[0022] According to a sixth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the control method of the flash light as described in the first and second aspects is implemented.

[0023] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0024] The present disclosure uses an external device to resolve the interface mismatch between the terminal and the external flash, allowing the terminal to use a high-power external flash that meets the requirements. Furthermore, a communication connection can be established between the external device and the terminal. The terminal sends a flash trigger signal to the external device, instructing the external device to flash at the exposure time of the image captured by the image acquisition module, thereby achieving synchronization between the image acquisition module in the terminal and the external flash.

[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0027] Figure 1 FIG. 1 is a structural diagram of a control system of a flashlight according to an exemplary embodiment of the present disclosure.

[0028] Figure 2 FIG. 1 is a schematic flow chart of a method for controlling a flashlight according to an exemplary embodiment of the present disclosure.

[0029] Figure 3 FIG. 1 is a schematic flow chart of a method for controlling a flashlight according to an exemplary embodiment of the present disclosure.

[0030] Figure 4 FIG. 1 is a schematic flow chart of a method for controlling a flashlight according to an exemplary embodiment of the present disclosure.

[0031] Figure 5 FIG. 4 is a block diagram of a device for controlling a flashlight according to an exemplary embodiment of the present disclosure.

[0032] Figure 6 FIG. 4 is a block diagram of a device for controlling a flashlight according to an exemplary embodiment of the present disclosure.

[0033] Figure 7 FIG. 1 is a schematic block diagram of a device for controlling a flashlight according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0034] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0035] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0036] It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining."

[0037] The flash can provide necessary lighting when the image acquisition module captures images, thereby achieving different shooting effects in different lighting environments.

[0038] In related technologies, built-in flashes on mobile phones and other terminals are limited by power consumption and heat dissipation, and cannot achieve the same performance as flashes on professional image capture devices. Flashes on mobile phones are primarily light-emitting diodes (LEDs), which can be categorized as single, dual, or matrix flashes. Fill lights can be divided into two types: bulk lights and flashes. Fill lights have static light properties. Flashes are short-lived, typically about one thousandth of a second, and offer high intensity, enabling them to capture instantaneous effects.

[0039] The fill lights currently available for mobile phones lack sufficient intensity in low-light and backlit scenes, affecting the image acquisition performance of the phone's image acquisition module. In low-light scenarios, the fill light and exposure times are long, which can cause blurring in images captured by the image acquisition module. In backlit scenes, the brightness of the subject in a high dynamic range scene is low, suppressing contrast.

[0040] However, external flashes that meet the fill light intensity requirements, such as xenon flashes that match SLR cameras, have interfaces that are incompatible with mobile phones. The hardware structure of mobile phones does not support synchronization between the phone and this type of flash, so the flash cannot be accurately triggered at the exposure moment when the image acquisition module captures the image.

[0041] Currently, external flash triggering methods for SLR cameras include PC sync cable (Prontor-Compur connection), light triggering, and wireless triggering. Wireless triggering uses a 2.4G wireless signal to connect the signal transmitter on the SLR camera and the signal receiver on the external flash. However, the signal receiver on the external flash cannot be programmed with the operating logic and can only passively receive control from the signal transmitter on the SLR camera. Furthermore, because mobile phones do not have the corresponding hardware structure and the synchronization mechanism is different, they cannot synchronize with mobile phones.

[0042] In order to solve the above technical problems, the present disclosure proposes a method for controlling a flashlight.

[0043] Figure 1 FIG. 1 is a schematic diagram illustrating an architecture of a flash control system according to an embodiment of the present disclosure.

[0044] like Figure 1 As shown, the flash control system includes: a terminal 110, an external device 120, and an external flash 130. Among them, the interface of the terminal 110 does not match the external flash 130, the terminal 110 is connected to the external device 120, and the external device 120 is connected to the external flash 130 through a matching interface.

[0045] The flash control system can be used to control the external flash 130 when the image acquisition module on the terminal 110 is capturing images, triggering the flash to flash, thereby meeting the image acquisition module's light requirements when capturing images. The terminal 110 includes but is not limited to mobile phones, tablet computers, wearable devices, sensors, Internet of Things devices, and other communication devices.

[0046] In some embodiments, the external flash 130 includes but is not limited to an external flash of a SLR camera.

[0047] Since the interfaces of the terminal 110 and the external flash 130 do not match, the terminal 110 cannot be directly connected to the external flash 130, or even if the hardware is connected, the flash function cannot be triggered.

[0048] The present disclosure proposes an external device 120, which can be physically connected to an external flash 130 through a matching interface, and the external device 120 can be connected to a terminal 110, wherein the connection with the terminal 110 includes a network connection and a physical wiring connection. The terminal 110 can send a flash trigger signal to the external device 120 through the connection to instruct the external device 120 to control the external flash 130 to emit a flash.

[0049] By using the external device 120, the terminal 110 whose interface does not match the external flash 130 can receive and transmit signals with the external flash 130, thereby adapting to more types of external flashes 130 and improving the synchronization accuracy between the terminal 110 and the external flash 130 whose interface does not match.

[0050] Figure 2 is a schematic flowchart of a method for controlling a flashlight according to an embodiment of the present disclosure.

[0051] like Figure 2 As shown, the flash control method can be executed by the terminal 110 in the above system, including:

[0052] In step S201, determining the exposure time at which the image acquisition module on the terminal acquires an image;

[0053] In step S202 , a flash trigger signal is sent to the external device, where the flash trigger signal is used to instruct the external device to trigger the external flash to emit a flash, wherein the time when the external flash emits the flash matches the exposure time.

[0054] In some embodiments, the terminal may be connected to the external device via wireless communication.

[0055] For example, 2.4G, Bluetooth, etc. can achieve low-latency synchronization with external devices through wireless communication, and the external device and the external flash are controlled through a wired connection, thereby providing a basis for low-latency synchronization between the terminal and the external flash.

[0056] In some embodiments, the terminal includes an image acquisition module. The image acquisition module is used to acquire images.

[0057] In some embodiments, in response to an image acquisition instruction, the image acquisition module may acquire a target image.

[0058] After the terminal issues an image acquisition command to the image acquisition module, the module processes the image and then exposes the target image. The image acquisition module only needs to compensate for the light of the target image with the help of a flash when exposing the target image.

[0059] Therefore, the time when the external flash triggers the flash is actually irrelevant to the time when the terminal issues the image acquisition instruction, but needs to match the exposure time of the image acquisition module to achieve time synchronization and logic synchronization.

[0060] In some embodiments, after determining the exposure moment, the terminal may send a flash trigger signal to the external device to instruct the external device to trigger an external flash to emit a flash when matching the exposure moment.

[0061] The terminal can send a flash trigger signal to the external device through the connection with the external device. After the external device receives the flash trigger signal, it controls the external flash through an interface that matches the external flash.

[0062] In some embodiments, the image acquisition module on the terminal exposes the target image at the exposure moment. Matching the exposure moment, the external flash also emits a flash to provide corresponding light for the target image.

[0063] The present invention adds an external device when the interface of the terminal and the external flash do not match and cannot be directly connected. The external device can directly connect to the external flash through an interface that matches the external flash, and the external device can be connected to the terminal through a network or wiring, so that the terminal can use the external device to control the external flash, thereby increasing the adaptability of the terminal to the external flash. Furthermore, the terminal determines the exposure time of the image acquisition module and sends a flash trigger signal to instruct the external device to control the external flash to emit a flash when the exposure time matches, thereby achieving synchronization between the image acquisition module on the terminal and the external flash, improving the synchronization accuracy between the flash and the external flash, and more accurately providing the required flash when the image acquisition module is exposed, thereby obtaining better image effects.

[0064] In some embodiments, the external device can implement logic control.

[0065] The external device can implement complex logic control according to the preset control logic and the received signal sent by the terminal, so that the control of the external flash by the external device complies with the control logic and realizes various flash modes.

[0066] Figure 3 is a schematic flowchart of a method for controlling a flashlight according to an embodiment of the present disclosure.

[0067] like Figure 3 As shown, before sending the flash trigger signal to the external device, the method further includes:

[0068] In step S301, the configuration parameters and / or control logic used by the external flash are determined;

[0069] In step S302, the configuration parameters and / or control logic are sent to the external device, so that the external device adjusts the external flash according to the configuration parameters and / or control logic.

[0070] It should be noted that the present disclosure does not limit the execution order of step S301 and step S201. The terminal may execute step S201 and then execute step S301 and step S302 after determining the exposure moment, or it may execute step S301 and step S302 and then execute step S201.

[0071] In this embodiment, the terminal only needs to determine the configuration parameters and / or control logic and send the configuration parameters and / or control logic to the external device before sending the flash trigger signal to the external device, that is, step S202.

[0072] Depending on the image acquisition module's requirements, the external flash must flash according to corresponding configuration parameters and / or control logic. Configuration parameters indicate the parameters required for a specific flash. When complex flash requirements are met, the control logic can be used to control the external flash to achieve the desired flash.

[0073] After the external device adjusts the external flash according to the configuration parameters and / or control logic sent by the terminal, the external device waits for the terminal to send a flash trigger signal, and when receiving the flash trigger signal, controls the external flash to flash according to the configuration parameters and / or control logic.

[0074] In some embodiments, the configuration parameters include at least one of the following: flash duration, flash interval, flash intensity, and flash angle.

[0075] In some embodiments, determining the configuration parameters used by the external flash includes: triggering a pre-flash function according to a received photo-taking instruction, and determining the configuration parameters of the external flash to be used at the exposure moment according to the preview image captured by the image acquisition module during the pre-flash process; or, receiving a configuration instruction input by a user, and obtaining the configuration parameters provided by the user according to the configuration instruction.

[0076] The pre-flash function may be a flash triggered by a flash module on the terminal, or may be a pre-flash instructing an external device to control an external flash through a command.

[0077] After the pre-flash, the image acquisition module captures a preview image and determines the configuration parameters for the main flash based on the captured preview image. The configuration parameters for the main flash can be determined based on the brightness difference between the preview image and the preset target image, as well as the configuration parameters used for the pre-flash.

[0078] In addition to the terminal autonomously determining configuration parameters through pre-flashing, configuration parameters can also be manually input by the user.

[0079] In some embodiments, a configuration instruction input by a user is received, and the configuration parameters provided by the user are acquired according to the configuration instruction.

[0080] The configuration instructions input by the user may include a preset shooting mode, and the corresponding configuration parameters are determined according to the preset shooting mode. The user may also directly input the configuration instructions corresponding to each configuration parameter to achieve the flash effect required by the user.

[0081] In some embodiments, the control logic includes: at least one control instruction to be executed; wherein each control instruction has corresponding configuration parameters, and the control instruction is used to instruct the external flash to emit a flash according to the corresponding configuration parameters.

[0082] Based on the control logic, the terminal can use external devices to achieve complex control of the external flash, such as continuous flash, interval flash, delayed flash, long exposure, etc.

[0083] In some embodiments, at least one control instruction to be executed may be independent of each other or may be related to each other.

[0084] The control instructions may be used to instruct the flashlight to flash respectively, or at least one control instruction may instruct the flashlight to flash more complexly.

[0085] In some embodiments, the terminal may send configuration parameters and / or control logic to the external device via conventional wireless communication.

[0086] Since the configuration parameters and / or control logic need to be sent to the external device before the exposure moment, the data transmission volume is large, there may be encoding and decoding processes for the transmitted data, and the demand for delay synchronization is low. Therefore, conventional non-low-latency wireless communication methods can be used for transmission.

[0087] The terminal sends a flash trigger signal to an external device, which has a small amount of data and a high requirement for delay synchronization. Therefore, low-latency communication is required to send the flash trigger signal.

[0088] In some embodiments, sending a flash trigger signal to the external device includes: if the exposure moment is determined before the exposure moment, sending the flash trigger signal to the external device before the exposure moment, and the flash trigger signal is used to instruct the external device to trigger the external flash to emit a flash at the exposure moment.

[0089] If the terminal determines the exposure time before the exposure time, it can send a flash trigger signal to the external device before the exposure time when the image acquisition module captures the image. Because the terminal already knows the exposure time when the image acquisition module captures the image in advance, the flash trigger signal is used to instruct the external device to control the external flash to flash at the upcoming exposure time.

[0090] In this embodiment, because the flash trigger signal is sent to the external device in advance of the exposure moment to instruct it to emit a flash at that moment, the communication delay requirement for sending the flash trigger signal is relatively low, and the terminal can use a conventional non-low-latency wireless communication method to send the flash trigger signal. The method of this embodiment can ensure that the external flash emits a flash at the same time as the image acquisition module is exposed, achieving time synchronization and eliminating delays.

[0091] In some embodiments, the sending of a flash trigger signal to the external device includes: if the flash trigger signal is sent at the exposure moment, the flash trigger signal is used to instruct the external device to directly trigger the external flash to emit a flash after receiving the flash trigger signal.

[0092] The terminal can also send a flash trigger signal to an external device at the moment of exposure. In this embodiment, upon receiving the flash trigger signal, the external device immediately triggers the external flash to fire. Because the external device and the external flash are physically connected via an interface, transmission latency is extremely low. In this embodiment, the terminal needs to use a low-latency communication method to send the flash trigger signal to the external device. This allows the image capture module to fire the flash as quickly as possible with minimal latency when it begins capturing images at the moment of exposure, thus meeting image capture requirements.

[0093] In this embodiment, although the flash trigger signal is issued after the image acquisition module performs exposure, since the terminal adopts low-latency wireless communication and the external device does not need to perform excessive processing on the flash trigger signal, it is directly triggered after receiving the flash trigger signal. Therefore, the external flash can emit a flash at nearly the same time as the image acquisition module is exposed, and the accuracy of time synchronization can reach the millimeter level.

[0094] In some embodiments, determining the exposure moment at which the image acquisition module on the terminal acquires the image includes: determining the moment at which the image acquisition module generates a strobe signal during exposure as the exposure moment.

[0095] The moment the image acquisition module captures an image is not the moment the image acquisition instruction is issued, but the moment the exposure is performed. The image acquisition module emits a strobe signal during exposure, so the terminal can determine the exposure time by detecting the strobe signal emitted by the image acquisition module.

[0096] In some embodiments, the terminal sends a flash trigger signal to the external device in response to the received strobe signal.

[0097] In some embodiments, the terminal may send the strobe signal emitted by the image acquisition module as a flash trigger signal to the external device.

[0098] In some embodiments, the strobe signal emitted by the image acquisition module at the exposure moment can be directly received by an external device and used as a flash trigger signal.

[0099] In some embodiments, determining the exposure moment of the image captured by the image acquisition module on the terminal includes: determining the exposure moment based on the monitoring of the start moment of the image acquisition module sending a start signal and the predetermined interval length from the image acquisition module sending the start signal to the implementation of exposure.

[0100] After the terminal issues an image acquisition command to the image acquisition module, the module processes it internally and then, upon receiving the command, performs exposure to capture the image. During this process, the module sends a Start of Frame (SOF) signal, and the duration between the SOF signal and the exposure is deterministic.

[0101] Therefore, the terminal can monitor the moment when the image acquisition module sends the SOF signal, and determine the exposure moment of the image acquisition module according to a predetermined interval duration.

[0102] In some embodiments, the terminal can further determine the communication duration required to send a flash trigger signal to an external device to control the external flash to emit a flash, and send a flash trigger signal at a moment the communication duration before the exposure moment, so that the moment when the external flash emits a flash is the exposure moment.

[0103] Corresponding to the above embodiments of the present disclosure, the present disclosure also proposes a method for controlling a flash, which is executed by an external device, wherein the external device is connected to an external flash through a matching interface, and the external device is connected to a terminal, and the interface of the terminal does not match the external flash.

[0104] Figure 4 is a schematic flowchart of a method for controlling a flashlight according to an embodiment of the present disclosure.

[0105] like Figure 4 As shown, the method includes:

[0106] In step S401, a flash trigger signal sent by the terminal is received;

[0107] In step S402, the external flash is triggered to emit a flash according to the flash trigger signal; wherein the time when the external flash emits the flash matches the exposure time when the image acquisition module on the terminal captures the image.

[0108] In some embodiments, the external device can be programmed and can adapt to different types of external flashes, thereby enabling the external flash to perform complex flash logic through different control logics.

[0109] Through complex control logic, external devices can enable low-level flashes with fewer and simpler functions to achieve complex high-level flash effects.

[0110] The implementation process of the embodiment of the method on the external device side is detailed in the corresponding embodiment of the method on the terminal side, which will not be repeated here.

[0111] Corresponding to the embodiment of the method for controlling a flashlight on the terminal side of the present disclosure, the present disclosure also provides an embodiment of a corresponding device for controlling a flashlight.

[0112] See Figure 5 , Figure 5 FIG. 1 is a block diagram of a control device for a flashlight according to an embodiment of the present disclosure. Figure 5 As shown, the control device of the flash is configured in a terminal, the interface of the terminal does not match the external flash, the terminal is connected to an external device, and the external device is connected to the external flash through a matching interface. The device includes:

[0113] The determining unit 510 is configured to determine an exposure moment at which the image acquisition module on the terminal acquires an image;

[0114] The sending unit 520 is configured to send a flash trigger signal to the external device, wherein the flash trigger signal is used to instruct the external device to trigger the external flash to emit a flash, wherein the time when the external flash emits the flash matches the exposure time.

[0115] In some embodiments, before sending a flash trigger signal to the external device, the device is further configured to: determine the configuration parameters and / or control logic adopted by the external flash; and send the configuration parameters and / or control logic to the external device so that the external device adjusts the external flash according to the configuration parameters and / or control logic.

[0116] In some embodiments, determining the configuration parameters used by the external flash includes: triggering a pre-flash function according to a received photo-taking instruction, and determining the configuration parameters of the external flash to be used at the exposure moment according to the preview image captured by the image acquisition module during the pre-flash process; or, receiving a configuration instruction input by a user, and obtaining the configuration parameters provided by the user according to the configuration instruction.

[0117] In some embodiments, the configuration parameters include at least one of the following: flash duration, flash interval, flash intensity, and flash angle.

[0118] In some embodiments, the control logic includes: at least one control instruction to be executed; wherein each control instruction has corresponding configuration parameters, and the control instruction is used to instruct the external flash to emit a flash according to the corresponding configuration parameters.

[0119] In some embodiments, the sending of a flash trigger signal to the external device includes at least one of the following: if the exposure moment is determined before the exposure moment, sending the flash trigger signal to the external device before the exposure moment, the flash trigger signal being used to instruct the external device to trigger the external flash to emit a flash at the exposure moment; if the flash trigger signal is sent at the exposure moment, the flash trigger signal being used to instruct the external device to directly trigger the external flash to emit a flash after receiving the flash trigger signal.

[0120] In some embodiments, determining the exposure moment when the image acquisition module on the terminal captures the image includes at least one of the following: determining the moment when the image acquisition module generates a strobe signal during exposure as the exposure moment; or determining the exposure moment based on monitoring the starting moment when the image acquisition module sends a start signal and a predetermined interval from the image acquisition module sending the start signal to the implementation of exposure.

[0121] Corresponding to the embodiment of the method for controlling a flashlight on the external device side of the present disclosure, the present disclosure also provides an embodiment of a corresponding device for controlling a flashlight.

[0122] See Figure 6 , Figure 6 FIG. 1 is a block diagram of a control device for a flashlight according to an embodiment of the present disclosure. Figure 6 As shown, the control device of the flash is configured in an external device, the external device is connected to the external flash via a matching interface, the external device is connected to a terminal, the interface of the terminal is not matched with the external flash, and the device includes:

[0123] The receiving unit 610 is configured to receive a flash trigger signal sent by the terminal;

[0124] The trigger unit 620 is configured to trigger the external flash to emit a flash according to the flash trigger signal; wherein the time when the external flash emits a flash matches the exposure time when the image acquisition module on the terminal captures an image.

[0125] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0126] An embodiment of the present disclosure further provides an electronic device, comprising: a processor and a memory; the memory is used to store a computer program; and the processor is used to execute the flash control method of any of the above embodiments by calling the computer program.

[0127] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for controlling a flashlight as described in any of the above embodiments is implemented.

[0128] Figure 7 FIG2 is a schematic block diagram of a flashlight control device 700 according to an embodiment of the present disclosure. For example, the device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0129] Reference Figure 7 , the device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .

[0130] The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the information receiving method described above. In addition, the processing component 702 may include one or more modules to facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.

[0131] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0132] The power supply component 706 provides power to the various components of the device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 700.

[0133] The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0134] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), which is configured to receive external audio signals when the device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0135] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to, a home button, volume buttons, a start button, and a lock button.

[0136] The sensor assembly 714 includes one or more sensors for providing various aspects of the status assessment of the device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700. The sensor assembly 714 can also detect changes in the position of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, the orientation or acceleration / deceleration of the device 700, and temperature changes of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0137] The communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices. The device 700 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0138] In an exemplary embodiment, the apparatus 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned information receiving method.

[0139] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions. The instructions can be executed by the processor 720 of the apparatus 700 to perform the above-mentioned information receiving method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0140] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0141] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

[0142] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a..." does not exclude the presence of other identical elements in the process, method, article or device that includes the element.

[0143] The above is a detailed introduction to the methods and devices provided in the embodiments of the present disclosure. Specific examples are used herein to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the methods and core ideas of the present disclosure. At the same time, for those skilled in the art, according to the ideas of the present disclosure, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present disclosure.

Claims

1. A method for controlling a flashlight, characterized in that: The method is executed by a terminal, the interface of the terminal is not compatible with the external flash, the terminal is connected to an external device, and the external device is connected to the external flash via a compatible interface, and the method includes: Determining an exposure time at which an image acquisition module on the terminal acquires an image; A flash trigger signal is sent to the external device, where the flash trigger signal is used to instruct the external device to trigger the external flash to emit a flash, wherein the time when the external flash emits the flash matches the exposure time.

2. The method according to claim 1, characterized in that Before sending the flash trigger signal to the external device, the method further includes: Determining configuration parameters and / or control logic adopted by the external flash; The configuration parameters and / or control logic are sent to the external device, so that the external device adjusts the external flash according to the configuration parameters and / or control logic.

3. The method according to claim 2, characterized in that The determining of the configuration parameters used by the external flash includes: triggering a pre-flash function according to a received photographing instruction, and determining the configuration parameters of the external flash to be used at the exposure moment according to the preview image captured by the image capture module during the pre-flash process; or Receive a configuration instruction input by a user, and obtain the configuration parameters provided by the user according to the configuration instruction.

4. The method according to claim 2, characterized in that The configuration parameters include at least one of the following: Flash duration, flash interval, flash intensity, flash angle.

5. The method according to claim 2, characterized in that The control logic includes: At least one control instruction to be executed; wherein each control instruction has corresponding configuration parameters, and the control instruction is used to instruct the external flash to emit a flash according to the corresponding configuration parameters.

6. The method according to claim 1, characterized in that The sending of a flash trigger signal to the external device includes at least one of the following: If the exposure time is determined before the exposure time, the flash trigger signal is sent to the external device before the exposure time, wherein the flash trigger signal is used to instruct the external device to trigger the external flash to emit a flash at the exposure time; If the flash trigger signal is sent at the exposure moment, the flash trigger signal is used to instruct the external device to directly trigger the external flash to emit a flash after receiving the flash trigger signal.

7. The method according to claim 1, characterized in that Determining the exposure moment at which the image acquisition module on the terminal acquires an image includes at least one of the following: Determine the moment when the image acquisition module generates a strobe signal during exposure as the exposure moment; or The exposure time is determined according to the monitored start time of the image acquisition module sending the start signal and the predetermined interval length from the image acquisition module sending the start signal to the implementation of exposure.

8. A method for controlling a flashlight, characterized in that: The method is performed by an external device, the external device is connected to an external flash via a matching interface, the external device is connected to a terminal, and the interface of the terminal is not compatible with the external flash, and the method includes: receiving a flash trigger signal sent by the terminal; The external flash is triggered to emit a flash according to the flash trigger signal; wherein the time when the external flash emits the flash matches the exposure time when the image acquisition module on the terminal captures the image.

9. A flashlight control device, characterized in that: A device configured for a terminal, wherein the interface of the terminal does not match the external flash, the terminal is connected to an external device, and the external device is connected to the external flash via a matching interface, the device comprising: a determining unit, configured to determine an exposure moment at which an image acquisition module on the terminal acquires an image; The emitting unit is configured to emit a flash trigger signal to the external device, wherein the flash trigger signal is used to instruct the external device to trigger the external flash to emit a flash, wherein the time when the external flash emits the flash matches the exposure time.

10. A flashlight control device, characterized in that: The device is configured to be connected to an external device, the external device is connected to an external flash via a matching interface, the external device is connected to a terminal, the interface of the terminal is not compatible with the external flash, and the device includes: a receiving unit, configured to receive a flash trigger signal sent by the terminal; The trigger unit is configured to trigger the external flash to emit a flash according to the flash trigger signal; wherein the time when the external flash emits the flash matches the exposure time when the image acquisition module on the terminal captures the image.

11. An electronic device, characterized in that: include: Processor, memory; The memory is used to store computer programs; The processor is configured to execute the flash control method according to any one of claims 1 to 8 by calling the computer program.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for controlling the flashlight according to any one of claims 1 to 8 is implemented.