On-board flash lamp control method and device, computer readable medium and electronic equipment
By detecting flash energy in the on-camera flash and calculating preset energy consumption parameters, precise control of pre-flash and main flash operations is achieved, solving the problem of inaccurate flash control in TTL mode and improving shooting quality.
Patent Information
- Application Number
- CN202510933612.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-07
- Publication Date
- 2025-11-04
AI Technical Summary
In TTL mode, the flash control of the on-camera flash is inaccurate, causing the subject to be overexposed or underexposed, affecting the image quality.
The flash energy is determined by detecting the flash command, the pre-flash parameters are calculated based on the preset energy consumption parameters, and the main flash operation is controlled based on the remaining flash energy after the pre-flash operation, including the adjustment of the number of pre-flash control pulses and the power of the main flash control pulses.
It improves the accuracy of flash control, ensures proper exposure during shooting, and enhances image quality.
Smart Images

Figure CN120897293A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of cameras, and particularly relates to a ceiling flash control method and device, a computer readable medium and an electronic device. BACKGROUND
[0002] TTL (Through The Lens) is an automatic exposure mode in which the camera and the ceiling flash work together. The TTL mode measures light through the lens in real time and adjusts the flash output, which is suitable for rapidly changing shooting scenes, such as activities, weddings, portraits, and the like. However, in the related art, the flash control is not accurate in the TTL mode, which causes the photographed object to be overexposed or underexposed, resulting in poor shooting quality. SUMMARY
[0003] The present application aims to provide a ceiling flash control method and device, a computer readable medium and an electronic device to improve the shooting quality to some extent.
[0004] Other characteristics and advantages of the present application will become apparent from the following detailed description, or will be learned by practice of the present application.
[0005] According to an aspect of an embodiment of the present application, a ceiling flash control method is provided, comprising:
[0006] When a flash instruction is detected, the flash energy provided to the flash by the current flash operation is determined;
[0007] According to the flash energy and a preset energy consumption parameter, a pre-flash parameter is determined, and the flash is controlled to perform a pre-flash operation according to the pre-flash parameter;
[0008] After a set time length of the pre-flash operation, the flash is controlled to perform a main flash operation according to the remaining flash energy.
[0009] According to an aspect of an embodiment of the present application, a ceiling flash control device is provided, comprising:
[0010] An energy detection module is configured to, when a flash instruction is detected, determine the flash energy provided to the flash by the current flash operation;
[0011] A pre-flash module is configured to, according to the flash energy and a preset energy consumption parameter, determine a pre-flash parameter, and control the flash to perform a pre-flash operation according to the pre-flash parameter;
[0012] A main flash module is configured to, after a set time length of the pre-flash operation, control the flash to perform a main flash operation according to the remaining flash energy.
[0013] In an embodiment of the present application, the pre-flash module is specifically configured to:
[0014] determine a pre-flash energy consumption corresponding to the pre-flash operation according to the flash energy and the preset energy consumption parameter, wherein the pre-flash energy consumption is energy consumed by the pre-flash operation;
[0015] calculate the pre-flash parameter according to the pre-flash energy consumption.
[0016] In an embodiment of the present application, the preset energy consumption parameter includes a proportion of energy consumed by the pre-flash operation, and the proportion is 3% to 20% of the flash energy.
[0017] In an embodiment of the present application, the pre-flash parameter at least includes a pre-flash control pulse number and a pre-flash control pulse duty cycle corresponding to the pre-flash operation, and the pre-flash control pulse number is 2 to 10.
[0018] In an embodiment of the present application, the main flash module is specifically used for:
[0019] determine a flash residual energy according to the flash energy and the energy consumed by the pre-flash operation;
[0020] generate a main flash parameter according to a shooting environment parameter and the flash residual energy;
[0021] control the flash lamp to perform a main flash operation according to the main flash parameter.
[0022] In an embodiment of the present application, the shooting environment parameter includes a shooting environment light brightness and a shooting object distance, wherein the shooting object distance represents a distance between the camera and the shooting object; the main flash parameter includes a main flash control pulse power; and the main flash module is specifically used for:
[0023] if the shooting environment light brightness is higher than a brightness threshold value and / or the shooting object distance is less than a distance threshold value, set the main flash control pulse power to a first power according to the flash residual energy;
[0024] if the shooting environment light brightness is lower than the brightness threshold value and / or the shooting object distance is greater than the distance threshold value, set the main flash control pulse power to a second power according to the flash residual energy; wherein the first power is less than the second power.
[0025] In an embodiment of the present application, the main flash control pulse power is represented by a main flash control pulse frequency and a main flash control pulse duration; and the main flash module is specifically used for:
[0026] set the main flash control pulse duration to be greater than a first preset duration and set the main flash control pulse frequency to be lower than a first preset frequency according to the flash residual energy; or
[0027] set the main flash control pulse duration to be less than a second preset duration and set the main flash control pulse frequency to be higher than a second preset frequency according to the flash remaining energy; wherein the first preset duration is greater than the second preset duration, and the first preset frequency is less than the second preset frequency.
[0028] According to an aspect of the embodiments of the present application, a computer readable medium is provided, and the computer readable medium stores a computer program. The computer program is executed by a processor to implement the set-top flash control method in the above technical solutions.
[0029] According to an aspect of the embodiments of the present application, an electronic device is provided, and the electronic device comprises: a processor; and a memory for storing executable instructions of the processor; wherein the processor executes the executable instructions to enable the electronic device to perform the set-top flash control method in the above technical solutions.
[0030] According to an aspect of the embodiments of the present application, a computer program product or a computer program is provided, and the computer program product or the computer program comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to perform the set-top flash control method in the above technical solutions.
[0031] In the technical solutions provided in the embodiments of the present application, when the flash instruction is detected, the flash energy provided to the flash lamp by the current flash operation is first determined; then, the pre-flash parameters are determined according to the flash energy and the preset energy consumption parameters, and the flash lamp is controlled to perform the pre-flash operation according to the pre-flash parameters; finally, after the set duration of the pre-flash operation, the flash lamp is controlled to perform the main flash operation according to the flash remaining energy; in this way, the pre-flash and the main flash can be controlled based on appropriate flash energy, and the energy consumption of the pre-flash is controlled based on the preset energy consumption parameters, so that accurate light measurement can be performed through the pre-flash to make the exposure suitable in the shooting process, and sufficient energy can be provided to the main flash for accurate operation of the main flash, thereby improving the accuracy of the flash lamp control, and further improving the shooting quality.
[0032] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS
[0033] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the application. It is to be understood that the drawings are designed solely for purposes of illustration to be used in conjunction with the description in
[0034] Figure 1 A schematic diagram illustrating an application scenario of the technical scheme of the present application.
[0035] Figure 2 A flow chart of a method for controlling a top flash provided by an embodiment of the present application.
[0036] Figure 3 A schematic diagram of a flash control circuit provided by an embodiment of the present application.
[0037] Figure 4 A schematic diagram of a pre-flash control pulse signal provided by an embodiment of the present application.
[0038] Figure 5 A timing diagram of a method for controlling a top flash provided by an embodiment of the present application.
[0039] Figure 6 A flow chart of a method for controlling a top flash provided by an embodiment of the present application.
[0040] Figure 7 A structural block diagram of a device for controlling a top flash provided by an embodiment of the present application.
[0041] Figure 8 A structural block diagram of a computer system suitable for implementing the technical scheme of the present application. DETAILED DESCRIPTION
[0042] Example implementations are now described with reference to the drawings. Example implementations can, however, be implemented in many different forms and should not be construed as limited to the examples set forth herein; rather, these implementations are provided so that this disclosure will be thorough and complete, and will fully convey the scope of example implementations to those skilled in the art.
[0043] Moreover, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the application can be practiced without one or more of the specific details, or with other methods, components, materials, and so forth. In other instances, well-known structures, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
[0044] The block diagrams in the drawings show only the functionality of the application and do not necessarily imply a particular arrangement of circuitry, software, or hardware.
[0045] The flow diagrams depicted in the drawings show the functionality of the application and do not necessarily imply a particular order of execution, nor that individual blocks must be separated. For example, the functions of one block can be performed in a different order from that shown or performed concurrently with functions described in other blocks. In certain circumstances, techniques from the application can be used to perform certain functions in parallel with or in other order than other functions. Also, not all of the functions shown in the individual blocks can be required, and / or not all the illustrated flows can be required, for execution of the application as described.
[0046] In embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works with other related parts to achieve a predetermined target, and can be implemented entirely or partially by using software, hardware (such as processing circuitry or memory) or a combination thereof. Similarly, one processor (or multiple processors or memory) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an overall module or unit that includes the functions of the module or unit.
[0047] It can be understood that in the specific embodiments of the present application, related data such as customer information (for example, transaction information, account data) is involved, and when the above embodiments of the present application are applied to specific products or technologies, the customer's permission or consent is required, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0048] Figure 1 A schematic diagram schematically showing an application scenario of the technical solution of the present application.
[0049] As Figure 1As shown, the application scenario can include a camera 110, a top-mounted flash 120, and a shooting object 130. The camera 110 can be a camera device specially used for shooting, or a terminal device integrated with a camera function, such as a smart phone, a tablet computer, a smart voice interaction device, etc. The top-mounted flash 120 is a portable flash device mounted on the hot shoe of the camera 110, which can be used for light compensation, light and shadow effect creation, or as a main light source. The shooting object 130 can be any object that can be recorded by the camera 110, such as a person, an animal, a landscape, a bird, a natural environment, etc.
[0050] The camera 110 includes a hot shoe 111, which is a metal interface for connecting external flash, flash guide, microphone, etc. The hot shoe 111 usually has multiple electronic contacts for transmitting control signals and power. The top-mounted flash 120 includes a hot shoe seat 121, which can be inserted into the hot shoe 111 on the camera 110, so that the top-mounted flash 120 and the camera 110 form a communication connection. Alternatively, the top-mounted flash 120 and the camera 110 can also be connected through a wireless communication module, such as Bluetooth connection, WiFi connection, NFC connection, etc.
[0051] The technical solution of the present application can be implemented by the camera 110, or by the top-mounted flash 120, or by both the camera 110 and the top-mounted flash 120.
[0052] For example, the technical solution of the present application is implemented by the top-mounted flash 120. Specifically, when the top-mounted flash 120 detects a flash instruction, it determines the flash energy provided to the flash for this flash operation; the flash instruction can be triggered based on a shooting instruction in the camera 110 and transmitted to the top-mounted flash 120 through the hot shoe 111. Then, the top-mounted flash 120 determines the pre-flash parameter according to the flash energy and the preset energy consumption parameter, and controls the flash to perform the pre-flash operation according to the pre-flash parameter; through the pre-flash operation, the camera 110 can accurately measure the light of the shooting environment, and the measurement data is transmitted to the top-mounted flash 120 through the hot shoe 111 contacts or through a wireless transmission module, wherein the measurement data can include shooting environment parameters, such as shooting environment light brightness, distance between the camera 110 and the shooting object 130, etc. Finally, after a set time of the pre-flash operation, the top-mounted flash 120 controls the flash to perform the main flash operation according to the remaining flash energy, and based on the measurement of the pre-flash operation, the top-mounted flash 120 can accurately expose in the main flash stage, so that the shooting object 130 has good clarity in the photo or video taken by the camera 110, thereby improving the shooting quality.
[0053] The control method of the top-mounted flash provided by the present application will be described in detail below in conjunction with the specific embodiments.
[0054] Figure 2 A flowchart illustrating an embodiment of the on-camera flash control method provided in this application is shown, which can be implemented by the on-camera flash. Figure 2 As shown, the on-camera flash control method provided in this embodiment includes steps 210 to 230, as detailed below:
[0055] Step 210: When a flash command is detected, determine the flash energy to be supplied to the flash unit for this flash operation.
[0056] In one embodiment, the flash command can be triggered based on a shooting command, which can be generated based on a shooting action. The shooting action can be triggering the shooting button on the camera's touchscreen, pressing the shutter button on the camera, or automatically triggering the shooting action by a preset program after a set shooting time has elapsed. When the shooting command is triggered in the camera, a flash command is sent to the on-camera flash, causing the on-camera flash to execute the technical solution of this application.
[0057] In one embodiment, the flash command can also be triggered based on a flash action, such as triggering the on-camera flash or the flash button on the camera's touchscreen, pressing the flash button on the on-camera flash or the camera, or automatically triggering the flash action by a preset program after a timed flash duration has elapsed.
[0058] In one embodiment, when a flash command is detected, the on-camera flash unit detects the flash energy that the flash operation can provide and obtains the flash energy.
[0059] For example, Figure 3 A schematic diagram of a flash control circuit is shown. (For example...) Figure 3 As shown, the flash control circuit provided in this application embodiment includes an energy storage module 310, a current path selection module 320, a control signal filtering module 330, a flash control module 340, and a flash triggering module 350.
[0060] The energy storage module 310 is a capacitor C1, which stores electrical energy to power the flash of the LD1 flash unit. Thus, the flash energy detected by the on-camera flash unit is the energy stored in the energy storage module 310 before the flash begins.
[0061] The capacitor C1 is connected with the power supply U and the current path selection module 320 respectively, and the current path selection module 320 is connected with the flash lamp LD1. The current path selection module 320 comprises a first current path and a second current path which are connected in parallel. The first current path comprises a thyristor C2, the anode 2 of the thyristor C2 is connected with the energy storage module U, the cathode 1 of the thyristor C2 is connected with the flash lamp LD1, and the gate 3 of the thyristor C2 is used for receiving a control signal which is generated according to the flash power of the flash lamp LD1. The second current path comprises an inductor L101, and the two ends of the inductor L101 are connected with the anode 2 of the thyristor C2 and the cathode 1 of the thyristor C2 respectively. Generally, the energy provided by the energy storage module 310 is provided to the flash lamp LD1 through any one of the first current path and the second current path. Optionally, when the flash power of the flash lamp LD1 is high, the first current path 121 without inductance value is selected to connect the energy storage module 310 and the flash lamp LD1. When the flash power of the flash lamp LD1 is low, the second current path 122 with inductance value is selected to connect the energy storage module 310 and the flash lamp LD1.
[0062] The control signal filtering module 330 is connected with the gate 3 of the thyristor C2, and is used for filtering the control signal of the gate 3 of the thyristor C2.
[0063] The flash control module 340 is connected with the flash lamp LD1, and is used for controlling the conduction and disconnection of the loop in which the flash lamp LD1 is located according to the flash power of the flash lamp LD1. The flash control module 340 comprises a switch tube T1, a second capacitor C2 and a third resistor R1, the first end of the switch tube T1 is connected with the flash lamp LD1, the second end of the switch tube T1 is grounded, the third end of the switch tube T1 is used for receiving a control pulse signal PWM which is generated according to the flash power of the flash lamp LD1, one end of the second capacitor C2 is connected with the third end of the switch tube T1, and the other end of the second capacitor C2 is grounded, one end of the third resistor R1 is connected with the third end of the switch tube T1, and the other end of the third resistor R1 is grounded. The control pulse signal received by the third end of the switch tube T1 is a PWM (Pulse Width Modulation, pulse width modulation) signal, the PWM signal is used for controlling the conduction time and the disconnection time of the switch tube T1 in a period, which is equivalent to controlling the light-emitting frequency of the flash lamp LD1, and therefore, the PWM signal is generated based on the flash power. Generally, the conduction of the switch tube T1 corresponds to the PWM high level signal, the disconnection of the switch tube T1 corresponds to the PWM low level signal, and the proportion of the high level signal in a period is called the duty cycle of the PWM signal. When the flash power is low, the duty cycle of the PWM signal is low, and when the flash power is high, the duty cycle of the PWM signal is high.
[0064] The flash trigger module 350 is connected with the flash lamp LD1 and the power supply U respectively, and is used for boosting the voltage provided by the power supply U to the trigger voltage of the flash lamp LD1, and the trigger voltage is used for ionizing the medium in the flash lamp LD1. In the embodiment, the voltage provided by the power supply U is 320V, and the voltage received by the trigger end of the flash lamp LD1 can reach thousands of volts after the boosting of the flash trigger module 350. The high voltage makes the medium in the flash lamp LD1 ionized by electric shock, and the medium can emit light after being electrified.
[0065] In step 220, the pre-flash parameter is determined according to the flash energy and the preset energy consumption parameter, and the flash lamp is controlled to perform the pre-flash operation according to the pre-flash parameter.
[0066] In an embodiment, the set-top flash lamp works in a TTL (Through The Lens) mode, in which the flash operation is divided into two parts: pre-flash operation and main flash operation. The pre-flash operation refers to a fast flash (which may be difficult for the human eye to perceive), in which the light emitted by the light source is reflected to the camera from the shooting object, and the camera measures the light of the shooting environment through the emitted light to determine the exposure data in the formal shooting process, which is also called the light measurement process. The main flash operation is the formal flash process in the shooting process.
[0067] In an embodiment, the set-top flash lamp determines the pre-flash parameter according to the flash energy and the preset energy consumption parameter. The preset energy consumption parameter is mainly used to represent the energy consumed by the pre-flash operation. The pre-flash parameter is used to control the pre-flash operation. In other words, the set-top flash lamp calculates the pre-flash parameter according to the flash energy currently stored in the energy storage module 310 and the energy consumed by the pre-flash operation, and then controls the flash lamp to perform the pre-flash operation.
[0068] In an embodiment, the preset energy consumption parameter represents the proportion of the energy consumed by the pre-flash operation in the total energy, where the total energy refers to the total flash energy. Therefore, when calculating the pre-flash parameter, the set-top flash lamp first calculates the pre-flash energy consumption corresponding to the pre-flash operation according to the flash energy and the preset energy consumption parameter, that is, calculates the energy consumed by the pre-flash operation; and then calculates the pre-flash parameter according to the pre-flash energy consumption.
[0069] In an embodiment, the proportion of the energy consumed by the pre-flash operation is 3% to 20% of the flash energy. Controlling the energy consumed by the pre-flash operation within a certain range can not only ensure that the set-top flash lamp can emit sufficient brightness in the pre-flash operation to ensure the accuracy of the light measurement of the camera, but also can reserve sufficient energy for the main flash operation to ensure the effective performance of the main flash operation.
[0070] In one embodiment, the pre-flash parameters include at least the number of pre-flash control pulses and the duty cycle of the pre-flash control pulses corresponding to the pre-flash operation. These parameters can be generated by the main control module of the on-camera flash. (Referring to...) Figure 3 The pre-flash control pulse is the PWM signal input to the third terminal of the switching transistor T1 during the pre-flash operation. The duty cycle of the pre-flash control pulse is the same as the duty cycle of the PWM signal, which is the proportion of the high-level duration to the total duration of one cycle. The high-level duration can be considered as the pulse width. In this embodiment, the number of pre-flash control pulses is 2 to 10, thus achieving multi-wave pre-flash. Preferably, the duty cycle of the pre-flash control pulse is 50%. For example, if the total duration of one pulse cycle is 42 microseconds, then the high-level duration is 21 microseconds (i.e., the pulse width is 21 microseconds). An exemplary pre-flash control pulse signal is as follows: Figure 4 As shown, a high level and its adjacent low level constitute a pulse cycle, and the signal corresponding to one pulse cycle is also called a pulse, such as... Figure 4 As shown, the preset number of control pulses is 4, which means there are 4 pulses.
[0071] Step 230: After the pre-flash operation has been set for a certain duration, control the flash to perform the main flash operation based on the remaining flash energy.
[0072] In one embodiment, after the pre-flash operation has been completed for a set duration, the on-camera flash controls the main flash operation based on the remaining flash energy. The remaining flash energy refers to the energy remaining after the pre-flash operation. During the main flash phase, the flash unit emits a precise and intense flash to ensure proper exposure of the subject.
[0073] In the technical solution provided in this application embodiment, when a flash command is detected, the flash energy provided to the flash unit for this flash operation is first determined; then, based on the flash energy and preset energy consumption parameters, pre-flash parameters are determined, and the flash unit is controlled to perform a pre-flash operation according to the pre-flash parameters; finally, after the set duration of the pre-flash operation, the flash unit is controlled to perform a main flash operation based on the remaining flash energy; thus, the pre-flash and main flash can be controlled based on appropriate flash energy, and the energy consumption of the pre-flash can be controlled based on preset energy consumption parameters, so that accurate metering can be performed through the pre-flash to ensure proper exposure during the shooting process, and sufficient energy can be provided to the main flash for accurate operation, thereby improving the accuracy of flash unit control and thus improving the shooting quality.
[0074] In an embodiment, the process of controlling the flash lamp to perform the main flash operation according to the remaining flash energy includes: determining the remaining flash energy according to the flash energy and the energy consumed by the pre-flash operation; generating the main flash parameter according to the shooting environment parameter and the remaining flash energy; and controlling the flash lamp to perform the main flash operation according to the main flash parameter.
[0075] That is, the top flash lamp calculates the remaining flash energy according to the flash energy and the energy consumed by the pre-flash operation. Optionally, the flash energy is subtracted by the energy consumed by the pre-flash operation, and the result is the remaining flash energy. Optionally, the top flash lamp can detect the energy stored in the energy storage module 110 in real time to determine the remaining flash energy.
[0076] Next, the top flash lamp generates the main flash parameter according to the shooting environment parameter and the remaining flash energy. The shooting environment parameter is used to represent the shooting environment where the camera is located. The shooting object is also in the shooting environment where the camera is located, so the shooting environment parameter can include information of the shooting object. The shooting environment parameter can be obtained based on the light measurement process of the camera in the pre-flash stage.
[0077] Finally, the top flash lamp controls the flash lamp to perform the main flash operation according to the main flash parameter.
[0078] In an embodiment, the shooting environment parameter includes the shooting environment light brightness and the shooting object distance. The shooting environment light brightness can be determined based on the light measurement process of the camera in the pre-flash stage, that is, the camera can calculate the shooting environment light brightness according to the reflected light of the flash lamp in the pre-flash process. The shooting object distance represents the distance between the camera and the shooting object. In some cases, considering that there can be multiple objects in the shooting environment, the camera can take the focusing object as the shooting object and then calculate the distance between the camera and the focusing object. The camera can transmit these parameters to the top flash lamp through the hot shoe.
[0079] In an embodiment, the camera can also calculate the energy consumed by the main flash operation according to the shooting environment light brightness, the shooting object distance, and other shooting parameters such as ISO, aperture, shutter speed, etc., and send the energy to the top flash lamp. The top flash lamp generates the main flash parameter according to the energy consumed by the main flash operation and the remaining flash energy, and controls the flash lamp to perform the main flash operation according to the main flash parameter. For example, when the energy consumed by the main flash operation is greater than or equal to the remaining flash energy, the main flash parameter is generated based on the remaining flash energy, so that the main flash operation is performed based on the current maximum available energy; when the energy consumed by the main flash operation is less than the remaining flash energy, the main flash parameter is generated based on the energy consumed by the main flash operation.
[0080] In an embodiment, the main flash parameter includes the main flash control pulse power, wherein the referenceFigure 3 The main flash control pulse is a PWM signal input to the third terminal of the switch tube T1 in the main flash operation. The main flash control pulse power can control the light intensity of the flash lamp in the main flash stage.
[0081] In an embodiment, when generating the main flash parameter, if the brightness of the shooting environment is higher than the brightness threshold value, and / or the distance of the shooting object is less than the distance threshold value, the set-top flash lamp sets the main flash control pulse power to a first power according to the remaining energy of the flash; if the brightness of the shooting environment is lower than the brightness threshold value, and / or the distance of the shooting object is greater than the distance threshold value, the set-top flash lamp sets the main flash control pulse power to a second power according to the remaining energy of the flash; wherein the first power is less than the second power.
[0082] That is, when the ambient light is sufficient or close-range shooting, the main flash power is small, that is, the light intensity of the flash lamp in the main flash stage can be appropriately reduced to avoid overexposure; when the ambient light is dark or long-distance shooting, the main flash power is large, that is, the light intensity of the flash lamp in the main flash stage can be appropriately increased to avoid underexposure.
[0083] In an embodiment, the main flash control pulse power is represented by the main flash control pulse frequency and the main flash control pulse duration, that is, the main flash parameter includes the main flash control pulse frequency and the main flash control pulse duration. The main flash control pulse frequency actually reflects the number of main flash control pulses during the main flash, if the main flash control pulse frequency is large, it means that the number of main flash control pulses during the main flash is large, on the contrary, if the main flash control pulse frequency is small, it means that the number of main flash control pulses during the main flash is small. The main flash control pulse duration represents the duration of the high level in the main flash control pulse during the main flash, also known as the single pulse width, wherein the longer the main flash control pulse duration, the greater the main flash control pulse power.
[0084] In an embodiment, when the main flash control pulse power is set to the second power, that is, in the case of dark ambient light or long-distance shooting, the main flash works at high power, the set-top flash lamp can set the main flash control pulse duration to be greater than a first preset duration and set the main flash control pulse frequency to be lower than a first preset frequency according to the remaining energy of the flash; or the set-top flash lamp sets the main flash control pulse duration to be less than a second preset duration and sets the main flash control pulse frequency to be higher than a second preset frequency according to the remaining energy of the flash; wherein the first preset duration is greater than the second preset duration, and the first preset frequency is less than the second preset frequency.
[0085] That is, the set-top flash lamp can increase the main flash power by using a longer main flash control pulse duration but a lower pulse frequency, and the set-top flash lamp can also increase the main flash power by using a shorter main flash control pulse duration but a higher pulse frequency.
[0086] Exemplary, Figure 5 A timing diagram of the method of controlling the top flash is shown schematically. As shown in Figure 5 (a), the signal can represent a flash instruction signal Xf, and detecting the flash instruction signal Xf is detecting the flash instruction, which can trigger the flash operation. The flash operation of the top flash includes two stages: pre-flash and main-flash. In the pre-flash stage, multi-wave pre-flash is adopted, Figure 5 (b), Figure 5 (d) shows four-pulse pre-flash, each pulse period is 42 microseconds, and the single pulse width is 21 microseconds (i.e. the duty cycle is 50%). The number of pulses and the single pulse width are determined based on the flash energy and the preset energy consumption parameter. A set time length is set between the pre-flash and the main-flash, which can be between 400-800 microseconds, for example, 600 microseconds.
[0087] When the ambient light is sufficient or the shooting distance is short, the main-flash power is small, and at this time, the main-flash control pulse duration is short, and the main-flash control pulse frequency is low, as shown in Figure 5 (b). When the ambient light is dark or the shooting distance is long, the main-flash power is large, for example, the main-flash control pulse duration can be set to be long but the pulse frequency is low, as shown in Figure 5 (c), and for example, the main-flash control pulse duration can be set to be short but the pulse frequency is high, as shown in Figure 5 (d).
[0088] In an embodiment, the flash instruction signal Xf can be transmitted by the camera to the top flash through the hot shoe, so that the top flash performs pre-flash and main-flash based on the TTL mode respectively. If the top flash itself does not have the TTL mode, but the flash trigger has the TTL mode, and the top flash supports the TTL protocol, at this time, the TTL mode of the top flash can be triggered by the flash trigger.
[0089] Figure 6 A flowchart of the method of controlling the top flash is shown schematically. As shown in Figure 6 , the method of controlling the top flash includes the following steps:
[0090] S1, the camera sends a pre-flash instruction to the flash. The pre-flash instruction is generated based on the determination of the pre-flash parameters based on the flash energy and the preset energy consumption parameter, and the pre-flash instruction includes the pre-flash parameters. The flash can be a super small top flash, which has a TTL mode.
[0091] S2, the flash emits a low-power pre-flash to the shooting object.
[0092] S3, the reflected light on the shooting object enters the sensor in the camera.
[0093] S4, the camera analyzes the light distribution and the position data of the shooting object according to the reflected light, such as calculating the distance of the shooting object.
[0094] S5, the camera calculates the main flash parameter for the flash. The camera calculates the main flash parameter according to the brightness of the shooting environment light and the distance of the shooting object, such as calculating the main flash control pulse frequency and the main flash control pulse duration.
[0095] S6, the flash formally exposes the flash to irradiate the light on the shooting object.
[0096] It should be noted that although the steps of the method in the present application are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired result. In addition or alternatively, some steps can be omitted, a plurality of steps can be combined into one step, and / or one step can be divided into a plurality of steps, etc.
[0097] The device embodiment of the present application is introduced below, which can be used to execute the set-top flash control method in the above-mentioned embodiments of the present application. Figure 7 The structural block diagram of the set-top flash control device provided by the embodiments of the present application is schematically shown. As shown in the figure, Figure 7 The set-top flash control device provided by the embodiments of the present application comprises:
[0098] The energy detection module 710 is configured to determine the flash energy provided to the flash by the current flash operation when detecting the flash instruction;
[0099] The pre-flash module 720 is configured to determine the pre-flash parameter according to the flash energy and the preset energy consumption parameter, and control the flash to perform the pre-flash operation according to the pre-flash parameter;
[0100] The main flash module 730 is configured to control the flash to perform the main flash operation according to the remaining flash energy after the set duration of the pre-flash operation.
[0101] In an embodiment of the present application, the pre-flash module 720 is specifically configured to:
[0102] determine the pre-flash energy consumption corresponding to the pre-flash operation according to the flash energy and the preset energy consumption parameter; wherein the pre-flash energy consumption is the energy required to be consumed by the pre-flash operation;
[0103] calculate the pre-flash parameter according to the pre-flash energy consumption.
[0104] In an embodiment of the present application, the preset energy consumption parameter comprises a proportion of energy consumed by the pre-flash operation, and the proportion is 3% to 20% of the flash energy.
[0105] In an embodiment of the present application, the pre-flash parameter at least comprises a pre-flash control pulse number and a pre-flash control pulse duty cycle corresponding to the pre-flash operation, and the pre-flash control pulse number is 2 to 10.
[0106] In an embodiment of the present application, the main flash module 730 is specifically used for:
[0107] determining the flash residual energy according to the flash energy and the energy consumed by the pre-flash operation;
[0108] generating a main flash parameter according to a shooting environment parameter and the flash residual energy;
[0109] controlling the flash lamp to perform a main flash operation according to the main flash parameter.
[0110] In an embodiment of the present application, the shooting environment parameter comprises a shooting environment light brightness and a shooting object distance, wherein the shooting object distance represents a distance between the camera and the shooting object; the main flash parameter comprises a main flash control pulse power; and the main flash module 730 is specifically used for:
[0111] if the shooting environment light brightness is higher than a brightness threshold value and / or the shooting object distance is less than a distance threshold value, setting the main flash control pulse power to a first power according to the flash residual energy;
[0112] if the shooting environment light brightness is lower than a brightness threshold value and / or the shooting object distance is greater than a distance threshold value, setting the main flash control pulse power to a second power according to the flash residual energy; wherein the first power is less than the second power.
[0113] In an embodiment of the present application, the main flash control pulse power is represented by a main flash control pulse frequency and a main flash control pulse duration; and the main flash module 730 is specifically used for:
[0114] setting the main flash control pulse duration to be greater than a first preset duration and setting the main flash control pulse frequency to be lower than a first preset frequency according to the flash residual energy; or
[0115] setting the main flash control pulse duration to be less than a second preset duration and setting the main flash control pulse frequency to be higher than a second preset frequency according to the flash residual energy; wherein the first preset duration is greater than the second preset duration, and the first preset frequency is less than the second preset frequency.
[0116] The specific details of the set-top flash control device provided in the embodiments of the present application have been described in detail in the corresponding method embodiments, and will not be repeated here.
[0117] Figure 8 The structure block diagram of a computer system for implementing the technical solution of the present application is schematically shown.
[0118] It should be noted that, Figure 8 The computer system 800 shown is merely an example, and should not bring any limitation to the function and use range of the embodiments of the present application.
[0119] As Figure 8 shown, the computer system 800 includes a central processing unit 801 (CPU), which can perform various appropriate actions and processes according to programs stored in a read-only memory 802 (ROM) or loaded from a storage portion 808 into a random access memory 803 (RAM). Various programs and data required for system operation are also stored in the random access memory 803. The central processing unit 801, the read-only memory 802, and the random access memory 803 are connected to each other through a bus 804. An input / output interface 805 (I / O interface) is also connected to the bus 804.
[0120] The following components are connected to the input / output interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output portion 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker, and the like; a storage portion 808 including a hard disk, and the like; and a communication portion 809 including a network interface card such as a local area network card, a modem, and the like. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as necessary. A removable recording medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like is attached to the drive 810 as necessary, so that a computer program read therefrom is installed in the storage portion 808 as necessary.
[0121] In particular, in accordance with the embodiments of the present application, the processes described in the various method flow diagrams can be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for executing the methods illustrated in the flow diagrams. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 809, and / or installed from the removable media 811. When the computer program is executed by the central processing unit 801, the various functions defined in the system of the present application are performed.
[0122] It should be noted that the computer readable medium shown in the embodiments of the present application can be a computer readable signal medium or a computer readable storage medium or any combination thereof. The computer readable storage medium may, for example, be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination thereof. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this application, the computer readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus, or device. In this application, the computer readable signal medium can include a data signal carried in a baseband or as part of a carrier wave, in which the computer readable program code is carried. Such a propagated data signal can take any of a variety of forms, including but not limited to electro-magnetic, optical, or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, optical, or any suitable combination thereof.
[0123] The computer program product of the present application can be a storage medium or a computer program product storing computer instructions. This storage medium or computer program product can be realized in many ways, such as one or more computer programs including one or more one or more software codes, one or more application programs, one or more operating systems, one or more computer programs, one or more databases, one or more program modules, one or more scripts, and / or one or more executable instructions. The computer program product can be stored in one or more memories of one or more computers. The computer program product can be realized in many ways, such as one or more computer programs including one or more one or more software codes, one or more application programs, one or more operating systems, one or more computer programs, one or more databases, one or more program modules, one or more scripts, and / or one or more executable instructions. The computer program product can be stored in one or more memories of one or more computers. The computer program product can be realized in many ways, such as one or more computer programs including one or more one or more software codes, one or more application programs, one or more operating systems, one or more computer programs, one or more databases, one or more program modules, one or more scripts, and / or one or more executable instructions. The computer program product can be stored in one or more memories of one or more computers.
[0124] It should be noted that although several modules or units of the device for action execution are mentioned in the foregoing detailed description, such a division is not mandatory. Indeed, according to an embodiment of the application, the features and functionalities of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functionalities of one module or unit described above can be further divided into embodied by a plurality of modules or units.
[0125] From the above description of the embodiments, those skilled in the art will readily perceive that the example embodiments described herein can be implemented by software and / or by software in combination with the necessary hardware. Accordingly, the technical solutions according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or network, and includes a number of instructions to make a computing device (which can be a personal computer, server, touch terminal, or network device, etc.) execute the methods according to the embodiments of the present application.
[0126] Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the present application cover any and all variations of the application that come within the scope of the present application, along with all of the equivalents thereof. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the application being indicated by the following claims.
[0127] It should be understood that the present application is not limited to the precise construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present application. The scope of the present application is limited only by the appended claims.
Claims
1. A method for controlling an on-camera flash, characterized in that, include: When a flash command is detected, determine the flash energy to be supplied to the flash unit for this flash operation; Based on the flash energy and preset energy consumption parameters, pre-flash parameters are determined, and the flash unit is controlled to perform pre-flash operation according to the pre-flash parameters; After the set duration of the pre-flash operation, the flash unit is controlled to perform the main flash operation based on the remaining flash energy.
2. The on-camera flash control method according to claim 1, characterized in that, Based on the flash energy and preset energy consumption parameters, the pre-flash parameters are determined, including: Based on the flash energy and the preset energy consumption parameters, the pre-flash energy consumption corresponding to the pre-flash operation is determined; wherein, the pre-flash energy consumption is the energy required for the pre-flash operation; The pre-flash parameters are calculated based on the pre-flash energy consumption.
3. The on-camera flash control method according to claim 1 or 2, characterized in that, The preset energy consumption parameter includes the proportion of energy consumed by the pre-flash operation, which is 3% to 20% of the flash energy.
4. The on-camera flash control method according to claim 1 or 2, characterized in that, The pre-flash parameters include at least the number of pre-flash control pulses and the duty cycle of the pre-flash control pulses corresponding to the pre-flash operation, wherein the number of pre-flash control pulses is 2 to 10.
5. The on-camera flash control method according to claim 1, characterized in that, Controlling the flash unit to perform the main flash operation based on the remaining flash energy includes: The remaining flash energy is determined based on the flash energy and the energy consumed by the pre-flash operation; The main flash parameters are generated based on the shooting environment parameters and the remaining flash energy. The flash unit is controlled to perform the main flash operation according to the main flash parameters.
6. The on-camera flash control method according to claim 5, characterized in that, The shooting environment parameters include ambient light intensity and subject distance, wherein the subject distance represents the distance between the camera and the subject; the main flash parameters include the main flash control pulse power; the main flash parameters are generated based on the shooting environment parameters and the remaining flash energy, including: If the ambient light brightness is higher than a brightness threshold, and / or the distance to the subject is less than a distance threshold, then the power of the main flash control pulse is set to a first power based on the remaining flash energy. If the ambient light intensity is lower than a brightness threshold, and / or the distance to the subject is greater than a distance threshold, then the main flash control pulse power is set to a second power based on the remaining flash energy; wherein the first power is less than the second power.
7. The on-camera flash control method according to claim 6, characterized in that, The power of the main flash control pulse is represented by the main flash control pulse frequency and the main flash control pulse duration. Setting the main flash control pulse power to a second power based on the remaining flash energy includes: Based on the remaining flash energy, the duration of the main flash control pulse is set to be greater than a first preset duration, and the frequency of the main flash control pulse is set to be lower than a first preset frequency; or Based on the remaining flash energy, the duration of the main flash control pulse is set to be less than the second preset duration, and the frequency of the main flash control pulse is set to be higher than the second preset frequency; wherein, the first preset duration is longer than the second preset duration, and the first preset frequency is less than the second preset frequency.
8. A control device for an on-camera flash, characterized in that, include: The energy detection module is used to determine the flash energy provided to the flash unit for this flash operation when a flash command is detected. The pre-flash module is used to determine the pre-flash parameters based on the flash energy and preset energy consumption parameters, and to control the flash unit to perform a pre-flash operation based on the pre-flash parameters; The main flash module is used to control the flash unit to perform the main flash operation based on the remaining flash energy after the pre-flash operation has been set for a set duration.
9. A computer-readable medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the on-camera flash control method according to any one of claims 1-7.
10. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor executes the executable instructions to cause the electronic device to perform the on-camera flash control method according to any one of claims 1-7.