CN110187591B - Flash lamp control method and device, electronic equipment and storage medium - Google Patents
Flash lamp control method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110187591B CN110187591B CN201910376511.6A CN201910376511A CN110187591B CN 110187591 B CN110187591 B CN 110187591B CN 201910376511 A CN201910376511 A CN 201910376511A CN 110187591 B CN110187591 B CN 110187591B
- Authority
- CN
- China
- Prior art keywords
- flash
- flash lamp
- infrared
- imaging
- controlling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B15/00—Special procedures for taking photographs; Apparatus therefor
- G03B15/02—Illuminating scene
- G03B15/03—Combinations of cameras with lighting apparatus; Flash units
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Abstract
The application provides a flash lamp control method, a flash lamp control device, electronic equipment and a storage medium, which are applied to an imaging process, wherein the flash lamp comprises a visible flash lamp and an infrared flash lamp; controlling the main flash of a visible light flash lamp, and starting a shutter to image in the main flash process; and controlling the visible light flash lamp to be turned off. The method and the device can effectively avoid the influence on the eyes of the user and effectively guarantee the imaging effect.
Description
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for controlling a flash lamp, an electronic device, and a storage medium.
Background
In the related art, when imaging is performed by using an electronic device, the pre-capture of the ambient light brightness is generally performed by pre-flashing before the main flash of the flash lamp.
In this way, in some application scenarios, if the user is currently imaged, the light source of the flash lamp is often dazzling in a dark environment, and the user to be photographed may blink to avoid such discomfort, which may affect the imaging effect.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present application is to provide a flash lamp control method, an apparatus, an electronic device, and a storage medium, which can effectively avoid the influence on the eyes of a user and effectively ensure an imaging effect.
In order to achieve the above object, a flash lamp control method provided in an embodiment of the first aspect of the present application is applied to an imaging process, where the flash lamp includes a visible flash lamp and an infrared flash lamp, and the method includes: when an imaging instruction is received, controlling the infrared flash lamp to pre-flash; controlling the visible light flash lamp to carry out main flash, and starting a shutter to image in the main flash process; and controlling the visible light flash lamp to be turned off.
According to the flash lamp control method provided by the embodiment of the first aspect of the application, the flash lamp is configured to comprise the visible light flash lamp and the infrared flash lamp, when an imaging instruction is received, the infrared flash lamp is controlled to preflash, the visible light flash lamp is controlled to mainly flash, the shutter is started to image in the main flash process, the visible light flash lamp is controlled to close, and the infrared flash lamp adopts an infrared light source when flashing, so that the influence on eyes of a user can be effectively avoided, and the imaging effect is effectively guaranteed.
In order to achieve the above object, a flash control device provided in an embodiment of a second aspect of the present application is applied to an imaging process, where the flash includes a visible flash and an infrared flash, and includes: the pre-flashing control module is used for controlling the infrared flash lamp to pre-flash when receiving an imaging instruction; and the main flash control module is used for controlling the main flash of the visible light flash lamp, starting shutter imaging in the main flash process and controlling the closing of the visible light flash lamp.
The flash lamp controlling means that this application second aspect embodiment provided, through with the flash lamp configuration to include visible light flash lamp and infrared flash lamp, when receiving the formation of image instruction, control infrared flash lamp preflash, and control visible light flash lamp owner and dodge, start the shutter formation of image at the main in-process that dodges, and control visible light flash lamp and close, because infrared flash lamp adopts infrared light source when flashing, can effectively avoid the influence to user's eye, effectively ensure the formation of image effect.
In order to achieve the above object, a third aspect of the present application further provides an electronic device, which includes a housing, a processor, a memory, a circuit board, a power circuit, and a flash lamp, where the flash lamp includes a visible flash lamp and an infrared flash lamp, where the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: when an imaging instruction is received, controlling the infrared flash lamp to pre-flash; controlling the visible light flash lamp to carry out main flash, and starting a shutter to image in the main flash process; and controlling the visible light flash lamp to be turned off.
The electronic equipment that this application third aspect embodiment provided, through with the flash light configuration to including visible light flash and infrared flash, when receiving the formation of image instruction, control infrared flash preflashes to control visible light flash owner and dodge, start the shutter formation of image at the main in-process that dodges, and control visible flash and close, because infrared flash adopts infrared light source when flashing, can effectively avoid the influence to user's eye, effectively ensure the formation of image effect.
In order to achieve the above object, a fourth aspect of the present application provides a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to execute a flash control method, which is applied in an imaging process, the flash including a visible flash and an infrared flash, the method including: when an imaging instruction is received, controlling the infrared flash lamp to pre-flash; controlling the visible light flash lamp to carry out main flash, and starting a shutter to image in the main flash process; and controlling the visible light flash lamp to be turned off.
The non-transitory computer readable storage medium provided in the embodiment of the fourth aspect of the present application, by configuring the flash lamps to include the visible light flash lamp and the infrared flash lamp, when receiving an imaging instruction, controls the infrared flash lamp to pre-flash, controls the visible light flash lamp to mainly flash, starts shutter imaging in the main flash process, and controls the visible light flash lamp to close.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a flash lamp control method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a flash control method according to another embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a flash control device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a flash control device according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flowchart of a flash control method according to an embodiment of the present disclosure.
The present embodiment is exemplified in a case where the flash control method is configured as a flash control apparatus.
The flash control method in this embodiment may be configured in a flash control device, and the flash control device may be disposed in a server, or may also be disposed in an electronic device, which is not limited in this embodiment of the present application.
The present embodiment takes as an example that the flash control method is configured in an electronic apparatus.
It should be noted that the execution main body in the embodiment of the present application may be, for example, a Central Processing Unit (CPU) in a server or an electronic device in terms of hardware, and may be, for example, a related background service in the server or the electronic device in terms of software, which is not limited to this.
The embodiment of the application is applied to the imaging process of the electronic equipment.
The flash lamp of the electronic device in the embodiment of the application comprises a visible flash lamp and an infrared flash lamp, wherein the visible flash lamp is a flash lamp of a common natural light source, and a light source adopted by the infrared flash lamp is an infrared light source.
Referring to fig. 1, the method includes:
s101: and when an imaging instruction is received, controlling the infrared flash lamp to pre-flash.
The imaging instruction is triggered by a photographing user and is used for imaging an object to be photographed.
In the embodiment of the application, when an imaging instruction is received, the infrared flash lamp is controlled to pre-flash, and the infrared flash lamp is an infrared light source, so that stimulation to eyes of a photographic object can be avoided.
In the embodiment of the present application, referring to fig. 2, when receiving an imaging instruction, controlling the infrared flash to pre-flash may include:
s201: and when an imaging instruction is received, acquiring a preset value of the ambient light brightness, and acquiring an actual brightness value of the ambient light.
The preset value of the ambient light brightness obtained may be a preset value read from a preset table of the infrared flash lamp according to actual illumination information during imaging, where the preset table includes a plurality of illumination information and preset values corresponding to the illumination information.
The illumination information may be, for example, a brightness value.
It will be appreciated that, since different weather conditions (e.g., fog, rain, snow, and cloudy) may correspond to different lighting conditions, the parameters used in imaging under different lighting conditions are typically different.
Therefore, in the embodiment of the application, the illumination conditions corresponding to each weather condition can be divided, the actual weather conditions are modeled to determine the illumination information under each illumination condition, a large amount of actual imaging experience data are analyzed, the optimal preset value is configured for each illumination information, the preset table is generated according to each illumination information and the corresponding preset value thereof, so that the preset value corresponding to the actual illumination information during imaging can be read directly based on the preset table in the follow-up process, the execution efficiency is high, the actual illumination information is met, and the imaging effect is ensured.
Or, in the embodiment of the present application, a preset value of the ambient light brightness may also be given to the infrared flash lamp directly based on the actual illumination information during imaging, in combination with the functional parameters of the infrared flash lamp and the historical imaging experience data, which is not limited thereto.
In the embodiment of the application, in order to accurately perform pre-flash control on the infrared flash lamp, an actual brightness value of the ambient light can be obtained, and the actual brightness value is a brightness value of the ambient light of the environment where the electronic device is located during imaging.
In the embodiment of the application, a preset infrared camera can be adopted to acquire imaging parameters; the actual brightness value of the ambient light is determined from the imaging parameters.
Optionally, the imaging parameters include: the auto exposure control parameters and the auto gain control parameters, or the imaging parameters may further include auto white balance parameters.
The infrared camera can be separated from the main camera and arranged in the electronic equipment, or the infrared camera and the main camera can be integrally arranged in the electronic equipment.
In the embodiment of the present application, if the infrared camera and the main camera are separately arranged, a CMOS (Complementary Metal Oxide Semiconductor) photosensitive chip of the infrared camera may sense parameters such as automatic exposure control and automatic gain control in the current environment, and then, a total luminance value of the ambient light during imaging is extracted by the parameters to be used as an actual luminance value.
In this embodiment of the application, if the infrared camera can also be integrally set in the electronic device with the main camera, the CMOS photosensitive chip in the main camera can be directly used to sense parameters such as automatic exposure control, automatic gain control, and automatic white balance parameters in the current environment to determine the total brightness value of the ambient light, which is used as the actual brightness value.
Therefore, the imaging parameters are acquired by adopting the preset infrared camera in the embodiment of the application; according to the imaging parameters, the realization process of the actual brightness value of the ambient light is determined, and the realization process is not limited by the actual framework setting of the camera of the electronic equipment, so that the flash control during imaging by adopting the infrared flash lamp is not carried out, excessive transformation is not carried out on the overall structure of the electronic equipment, and the imaging effect can be improved under the condition of not influencing the hardware cost of the electronic equipment.
S202: and comparing the actual brightness value with a preset value.
S203: and determining the target time according to the comparison result.
The target time is the time of pre-flashing of the infrared flash lamp.
S204: and controlling the infrared flash lamp to pre-flash according to the target time.
In the embodiment of the application, due to the fact that the pre-flashing time of the infrared flash lamp is adjusted by combining the comparison result of the actual brightness value and the preset value, the infrared-based flash can meet the actual imaging scene requirement, and the flash control effect is guaranteed from multiple angles.
S102: and controlling the main flash of the visible light flash lamp, and starting a shutter to image in the main flash process.
In this embodiment of the application, the driving electrical parameter may be determined by combining the comparison result in S203; and controlling the main flash of the visible light flash lamp according to the driving electrical parameters.
The driving electrical parameter may be a driving current or a driving voltage, which is not limited in this respect.
In the embodiment of the application, the actual brightness value sensed by the CMOS photosensitive chip can be compared with the preset value through the built-in central controller of the electronic equipment, and the parameter corresponding to the main flash of the visible light flash lamp is output according to the comparison result.
For example, if the sensed actual brightness value is higher than a preset value, the central controller reduces the flashing time of the visible light flash lamp or reduces the driving current; and if the sensed actual brightness value is lower than the preset value, the central controller increases the flashing time of the visible light flash lamp or increases the driving current.
S103: and controlling the visible light flash lamp to be turned off.
In the embodiment of the application, introduce the infrared ray flash lamp, can be when guaranteeing flash lamp function and performance, with the flash lamp imaging process in, the formation of image processing logic of the twice flash of preflash and main flashing sets up to the formation of image processing logic of infrared ray preflash and main flashing to this realizes that the object of taking a photograph only experiences once flash of light, has reduced the influence of the secondary flash of light to the eye of the object of being shot, and the guarantee imaging effect has promoted the user experience of flash lamp imaging process.
In this embodiment, through configuring the flash light to include visible light flash and infrared flash, when receiving the formation of image instruction, control infrared flash preflash to control visible light flash owner and dodge, start the shutter formation of image at the owner in-process that dodges, and control visible flash and close, because infrared flash adopts is infrared light source when flashing, can effectively avoid the influence to user's eye, effectively ensure the formation of image effect.
Fig. 3 is a schematic structural diagram of a flash control device according to an embodiment of the present application.
The flash lamp comprises a visible flash lamp and an infrared flash lamp.
Referring to fig. 3, the apparatus 300 includes:
and the pre-flashing control module 301 is used for controlling the infrared flash lamp to pre-flash when receiving an imaging instruction.
And the main flash control module 302 is used for controlling the main flash of the visible light flash lamp, starting shutter imaging in the main flash process and controlling the visible light flash lamp to be closed.
Optionally, in some embodiments, referring to fig. 4, the preflash control module 301 includes:
the obtaining sub-module 3011, configured to obtain a preset value of ambient light brightness when the imaging instruction is received, and obtain an actual brightness value of the ambient light;
a comparison sub-module 3012, configured to compare the actual brightness value with a preset value;
a determining sub-module 3013, configured to determine a target time according to a comparison result;
and the control sub-module 3014 is configured to control the infrared flash lamp to pre-flash according to the target time.
Optionally, in some embodiments, the master flash control module 302 is specifically configured to:
determining a driving electrical parameter according to the comparison result;
and controlling the main flash of the visible light flash lamp according to the driving electrical parameters.
Optionally, in some embodiments, the obtaining sub-module 3011 is specifically configured to:
and reading a preset value from a preset table of the infrared flash lamp according to actual illumination information during imaging, wherein the preset table comprises a plurality of illumination information and preset values corresponding to the illumination information.
Optionally, in some embodiments, the obtaining sub-module 3011 is specifically configured to:
acquiring imaging parameters by adopting a preset infrared camera;
the actual brightness value of the ambient light is determined from the imaging parameters.
Optionally, in some embodiments, the imaging parameters include: an automatic exposure control parameter and an automatic gain control parameter.
It should be noted that the above explanations of the embodiments of the flash control method in fig. 1-2 are also applicable to the flash control apparatus 300 of this embodiment, and the implementation principles thereof are similar and will not be described herein again.
In this embodiment, through configuring the flash light to include visible light flash and infrared flash, when receiving the formation of image instruction, control infrared flash preflash to control visible light flash owner and dodge, start the shutter formation of image at the owner in-process that dodges, and control visible flash and close, because infrared flash adopts is infrared light source when flashing, can effectively avoid the influence to user's eye, effectively ensure the formation of image effect.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Referring to fig. 5, the electronic apparatus 50 of the present embodiment includes: the electronic flash comprises a shell 501, a processor 502, a memory 503, a circuit board 504, a power circuit 505 and a flash 506, wherein the flash 506 comprises a visible flash 5061 and an infrared flash 5062, the circuit board 504 is arranged in a space enclosed by the shell 501, and the processor 502 and the memory 503 are arranged on the circuit board 504; a power supply circuit 505 for supplying power to each circuit or device of the electronic apparatus 50; the memory 503 is used to store executable program code; the processor 502 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 503, so as to execute:
when an imaging instruction is received, controlling the infrared flash lamp to pre-flash;
controlling the main flash of a visible light flash lamp, and starting a shutter to image in the main flash process;
and controlling the visible light flash lamp to be turned off.
It should be noted that the foregoing explanations of the embodiment of the flash control method in fig. 1-2 also apply to the electronic device 50 of this embodiment, and the implementation principle is similar and will not be described herein again.
In this embodiment, through configuring the flash light to include visible light flash and infrared flash, when receiving the formation of image instruction, control infrared flash preflash to control visible light flash owner and dodge, start the shutter formation of image at the owner in-process that dodges, and control visible flash and close, because infrared flash adopts is infrared light source when flashing, can effectively avoid the influence to user's eye, effectively ensure the formation of image effect.
In order to implement the above embodiments, the present application also proposes a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to execute a flash control method, which is applied in an imaging process, where the flash includes a visible flash and an infrared flash, and the method includes:
when an imaging instruction is received, controlling the infrared flash lamp to pre-flash;
controlling the main flash of a visible light flash lamp, and starting a shutter to image in the main flash process;
and controlling the visible light flash lamp to be turned off.
The non-transitory computer readable storage medium in this embodiment, configures the flash lamps to include a visible light flash lamp and an infrared flash lamp, and when receiving an imaging instruction, controls the infrared flash lamp to preflash, and controls the visible light flash lamp to mainly flash, starts shutter imaging in the main flash process, and controls the visible light flash lamp to close.
In order to implement the foregoing embodiments, the present application further provides a computer program product, wherein when instructions in the computer program product are executed by a processor, a flash control method is performed, where the flash is applied in an imaging process, and the flash includes a visible flash and an infrared flash, and the method includes:
when an imaging instruction is received, controlling the infrared flash lamp to pre-flash;
controlling the main flash of a visible light flash lamp, and starting a shutter to image in the main flash process;
and controlling the visible light flash lamp to be turned off.
The computer program product in the embodiment, by configuring the flash lamps to include the visible light flash lamp and the infrared flash lamp, when an imaging instruction is received, the infrared flash lamp is controlled to pre-flash, the visible light flash lamp is controlled to mainly flash, the shutter is started to image in the main flash process, and the visible light flash lamp is controlled to be closed.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (8)
1. A flash lamp control method is characterized in that the flash lamp comprises a visible flash lamp and an infrared flash lamp when the method is applied to an imaging process, and the method comprises the following steps:
when an imaging instruction is received, acquiring a preset value of the ambient light brightness, and acquiring an actual brightness value of the ambient light;
comparing the actual brightness value with the preset value;
determining target time according to the comparison result;
controlling the infrared flash lamp to pre-flash according to the target time;
determining a driving electrical parameter according to the comparison result;
controlling the visible light flash lamp to flash mainly according to the driving electrical parameters, and starting a shutter to image in the main flashing process;
controlling the visible light flash lamp to be turned off;
wherein obtaining the actual brightness value of the ambient light comprises:
acquiring imaging parameters by adopting a preset infrared camera;
and determining the actual brightness value of the environment light according to the imaging parameter.
2. The method of claim 1, wherein the obtaining the preset value of the ambient light level comprises:
and reading the preset value from a preset table of the infrared flash lamp according to actual illumination information during imaging, wherein the preset table comprises a plurality of illumination information and preset values corresponding to the illumination information.
3. The flash control method of claim 1, wherein the imaging parameters comprise: an automatic exposure control parameter and an automatic gain control parameter.
4. A flash control device, characterized in that, being applied to the imaging process, the flash includes visible light flash and infrared flash, the device includes:
the pre-flash control module comprises an acquisition sub-module, a comparison sub-module, a determination sub-module and a control sub-module, wherein the acquisition sub-module is used for acquiring a preset value of the ambient light brightness and acquiring an actual brightness value of the ambient light when an imaging instruction is received, the comparison sub-module is used for comparing the actual brightness value with the preset value, the determination sub-module is used for determining target time according to a comparison result, and the control sub-module is used for controlling the pre-flash of the infrared flash lamp according to the target time;
the main flash control module is used for determining a driving electrical parameter according to a comparison result, controlling the visible light flash lamp to carry out main flash according to the driving electrical parameter, starting a shutter to image in the main flash process and controlling the visible light flash lamp to be closed;
the main flash control module is specifically used for:
determining a driving electrical parameter according to the comparison result;
and controlling the main flash of the visible light flash lamp according to the driving electrical parameters.
5. The flash control apparatus of claim 4, wherein the acquisition submodule is specifically configured to:
and reading the preset value from a preset table of the infrared flash lamp according to actual illumination information during imaging, wherein the preset table comprises a plurality of illumination information and preset values corresponding to the illumination information.
6. The flash control apparatus of claim 4, wherein the imaging parameters comprise: an automatic exposure control parameter and an automatic gain control parameter.
7. An electronic device comprises a shell, a processor, a memory, a circuit board, a power circuit and a flash lamp, wherein the flash lamp comprises a visible flash lamp and an infrared flash lamp, the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
when an imaging instruction is received, acquiring a preset value of the ambient light brightness, and acquiring an actual brightness value of the ambient light;
comparing the actual brightness value with the preset value;
determining target time according to the comparison result;
controlling the infrared flash lamp to pre-flash according to the target time;
determining a driving electrical parameter according to the comparison result;
controlling the visible light flash lamp to flash mainly according to the driving electrical parameters, and starting a shutter to image in the main flashing process;
controlling the visible light flash lamp to be turned off;
wherein obtaining the actual brightness value of the ambient light comprises:
acquiring imaging parameters by adopting a preset infrared camera;
and determining the actual brightness value of the environment light according to the imaging parameter.
8. A non-transitory computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the flash control method according to any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910376511.6A CN110187591B (en) | 2019-05-07 | 2019-05-07 | Flash lamp control method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910376511.6A CN110187591B (en) | 2019-05-07 | 2019-05-07 | Flash lamp control method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110187591A CN110187591A (en) | 2019-08-30 |
CN110187591B true CN110187591B (en) | 2021-09-17 |
Family
ID=67715855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910376511.6A Active CN110187591B (en) | 2019-05-07 | 2019-05-07 | Flash lamp control method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110187591B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1509130A (en) * | 2002-12-14 | 2004-06-30 | ����Techwin��ʽ���� | Method for controlling flash-lamp apparatus, wherein one preflashing is executed |
CN101790262A (en) * | 2009-01-23 | 2010-07-28 | 华晶科技股份有限公司 | Method for adjusting intensity of flash lamp |
CN102868861A (en) * | 2011-07-07 | 2013-01-09 | 华晶科技股份有限公司 | Method for acquiring images |
CN203799160U (en) * | 2014-04-29 | 2014-08-27 | 常州市康辉摄影器材有限公司 | Infrared flash lamp and hunting shooting machine assembled therewith |
CN105867047A (en) * | 2016-05-18 | 2016-08-17 | 深圳天珑无线科技有限公司 | Flashlight adjusting method and shooting device |
CN107302654A (en) * | 2016-04-15 | 2017-10-27 | 中兴通讯股份有限公司 | A kind of image pickup method and device |
CN108737728A (en) * | 2018-05-03 | 2018-11-02 | Oppo广东移动通信有限公司 | A kind of image capturing method, terminal and computer storage media |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100414429C (en) * | 2005-12-19 | 2008-08-27 | 佛山普立华科技有限公司 | Method for regulating brightness of flash lamp |
TW200820797A (en) * | 2006-10-23 | 2008-05-01 | Benq Corp | Photographing methods and systems, and machine readable medium thereof |
CN103402291A (en) * | 2013-08-05 | 2013-11-20 | 曾金辉 | External flash light, photo taking system and working method of external flash light |
CN104243843B (en) * | 2014-09-30 | 2017-11-03 | 北京智谷睿拓技术服务有限公司 | Pickup light shines compensation method, compensation device and user equipment |
CN105721762B (en) * | 2014-12-04 | 2019-06-11 | 中兴通讯股份有限公司 | Flash lamp control method and device |
JP6611483B2 (en) * | 2015-06-25 | 2019-11-27 | キヤノン株式会社 | Imaging system, illumination device, and focus detection method |
CN105163038A (en) * | 2015-09-02 | 2015-12-16 | 移康智能科技(上海)有限公司 | Linked light-supplementing method and device thereof |
CN107026985A (en) * | 2017-05-12 | 2017-08-08 | 北京小米移动软件有限公司 | flash lamp control method, device, electronic equipment and storage medium |
CN107483811A (en) * | 2017-07-28 | 2017-12-15 | 广东欧珀移动通信有限公司 | Imaging method and electronic installation |
CN109639991A (en) * | 2018-12-26 | 2019-04-16 | 上海与德通讯技术有限公司 | A kind of photographic method, device, terminal and storage medium |
-
2019
- 2019-05-07 CN CN201910376511.6A patent/CN110187591B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1509130A (en) * | 2002-12-14 | 2004-06-30 | ����Techwin��ʽ���� | Method for controlling flash-lamp apparatus, wherein one preflashing is executed |
CN101790262A (en) * | 2009-01-23 | 2010-07-28 | 华晶科技股份有限公司 | Method for adjusting intensity of flash lamp |
CN102868861A (en) * | 2011-07-07 | 2013-01-09 | 华晶科技股份有限公司 | Method for acquiring images |
CN203799160U (en) * | 2014-04-29 | 2014-08-27 | 常州市康辉摄影器材有限公司 | Infrared flash lamp and hunting shooting machine assembled therewith |
CN107302654A (en) * | 2016-04-15 | 2017-10-27 | 中兴通讯股份有限公司 | A kind of image pickup method and device |
CN105867047A (en) * | 2016-05-18 | 2016-08-17 | 深圳天珑无线科技有限公司 | Flashlight adjusting method and shooting device |
CN108737728A (en) * | 2018-05-03 | 2018-11-02 | Oppo广东移动通信有限公司 | A kind of image capturing method, terminal and computer storage media |
Also Published As
Publication number | Publication date |
---|---|
CN110187591A (en) | 2019-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10554898B2 (en) | Method for dual-camera-based imaging, and mobile terminal | |
JP6112230B2 (en) | Photography method, apparatus, and terminal | |
CA2896825C (en) | Imaging apparatus with scene adaptive auto exposure compensation | |
US7813635B2 (en) | Photographing apparatus, method for controlling photographing apparatus and computer-readable recording medium containing program | |
US9030600B2 (en) | Method and apparatus for controlling flash | |
CN106454077B (en) | Shooting method, shooting device and terminal | |
CN107948538B (en) | Imaging method, imaging device, mobile terminal and storage medium | |
JP7336431B2 (en) | IMAGING DEVICE, CONTROL METHOD THEREOF, AND PROGRAM | |
WO2016131329A1 (en) | Photography method and device | |
WO2016004883A1 (en) | Illumination control methods and apparatuses and devices having photographing function | |
US9462191B2 (en) | Image processing apparatus, image pickup apparatus, method of controlling the image processing apparatus, and non-transitory computer-readable storage medium | |
JP6210775B2 (en) | Imaging apparatus, imaging method, and imaging program | |
WO2012093519A1 (en) | Imaging device and light emission amount control method | |
US20170019597A1 (en) | Light-emission control apparatus and method for the same | |
US10225482B2 (en) | Method of controlling photographing device including flash, and the photographing device | |
CN113497879A (en) | Photographing light supplementing method and device, terminal and storage medium | |
JP7103839B2 (en) | Electronic devices, control devices, control methods and control programs | |
TWI626620B (en) | Image processing method and device, electronic device, and computer readable storage medium | |
CN110187591B (en) | Flash lamp control method and device, electronic equipment and storage medium | |
US8964108B2 (en) | Photographing and electronic apparatus using same based on light blocking analysis | |
WO2017004886A1 (en) | Image capturing method and terminal | |
CN104965376A (en) | Adjusting method and system of terminal camera flash lamp | |
US8467673B2 (en) | Imaging apparatus, camera system, and illumination apparatus | |
JP5587083B2 (en) | Imaging apparatus and control method thereof | |
JP2001324667A (en) | Image pickup device and its control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |