CN114500861A - Control method and device of light source, electronic equipment and computer readable storage medium - Google Patents

Control method and device of light source, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114500861A
CN114500861A CN202011166914.7A CN202011166914A CN114500861A CN 114500861 A CN114500861 A CN 114500861A CN 202011166914 A CN202011166914 A CN 202011166914A CN 114500861 A CN114500861 A CN 114500861A
Authority
CN
China
Prior art keywords
instruction
light
light source
executing
data
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.)
Pending
Application number
CN202011166914.7A
Other languages
Chinese (zh)
Inventor
柏文权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN202011166914.7A priority Critical patent/CN114500861A/en
Publication of CN114500861A publication Critical patent/CN114500861A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/501Structural aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/30Transforming light or analogous information into electric information
    • H04N5/33Transforming infrared radiation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Optical Communication System (AREA)

Abstract

The embodiment of the application relates to the technical field of communication, and discloses a control method and device of a light source, electronic equipment and a computer-readable storage medium.

Description

Control method and device of light source, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a light source control method and device and electronic equipment.
Background
Optical communication is communication using light waves as transmission media, and can be classified into visible light communication and invisible light communication according to whether human eyes are visible or visible, and transmission media can be classified into wired optical communication and wireless optical communication (atmospheric optical communication).
Among them, the visible Light wireless communication is also called "optical Fidelity technology", and the english name Light Fidelity (abbreviated as "LiFi") is a wireless transmission technology for data transmission using visible Light spectrum (such as Light emitted by a bulb), which has the advantages of high energy conversion rate and high safety, but has the disadvantage of being difficult to penetrate through a wall, and thus is generally applied to a place with few obstacles and in an open space.
The invisible light wireless communication is mainly infrared communication, is a communication mode for transmitting information by using infrared rays (with the wavelength of 300-0.76 microns), can transmit information such as languages, characters, data, images and the like, has the advantages of large communication capacity, strong confidentiality, good anti-electromagnetic interference performance and the like, but has the defects of high possibility of being influenced by weather when the invisible light wireless communication is transmitted in an air channel, and is generally applied to outdoor short-distance transmission.
In the process of implementing the embodiment of the present application, the inventors found that at least the following problems exist in the above related art: at present, due to the development of optical communication technology, the light source has the functions of supplementing light and transmitting data at the same time, but in practical use, electronic equipment is usually produced by using only one function of the light source, because when the two functions are simultaneously realized, crosstalk is easily generated between a switching signal of the light source and a transmitted data signal, and thus signal transmission is unstable.
Disclosure of Invention
In view of the foregoing defects in the prior art, an object of the embodiments of the present application is to provide a method and an apparatus for controlling a light source, and an electronic device, which can solve the problem of signal crosstalk.
The purpose of the embodiment of the application is realized by the following technical scheme:
in order to solve the above technical problem, in a first aspect, an embodiment of the present application provides a method for controlling a light source, where the method includes:
receiving a data sending instruction and a light supplementing instruction;
and executing the data sending instruction and the light supplementing instruction according to a preset time sequence.
In order to solve the above technical problem, in a second aspect, an embodiment of the present application provides a control apparatus for a light source, the apparatus including:
the receiving unit is used for receiving a data sending instruction and a light supplementing instruction;
and the execution unit is used for executing the data sending instruction and the light supplementing instruction according to a preset time sequence.
In order to solve the foregoing technical problem, in a third aspect, an embodiment of the present application provides an electronic device, including:
at least one light source;
a switching device connected with the light source;
a controller connected to the switching device, the controller comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the method of the first aspect as described above.
In order to solve the above technical problem, in a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method according to the first aspect.
In order to solve the above technical problem, in a fifth aspect, the present application further provides a computer program product, where the computer program product includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions, which, when executed by a computer, cause the computer to execute the method according to the first aspect.
Compared with the prior art, the beneficial effect of this application is: different from the situation of the prior art, the embodiment of the application provides a control method and device for a light source, an electronic device and a computer-readable storage medium, the method firstly needs to receive a data sending instruction and a light supplement instruction, and then executes the data sending instruction and the light supplement instruction according to a preset time sequence, so that the light supplement instruction and the data sending instruction are not in conflict with each other, and the problem of signal crosstalk can be solved by controlling the light source to execute the light supplement instruction and the data sending instruction by the control method for the light source provided by the embodiment of the application.
Drawings
One or more embodiments are illustrated by the accompanying figures in the drawings that correspond thereto and are not to be construed as limiting the embodiments, wherein elements/modules and steps having the same reference numerals are represented by like elements/modules and steps, unless otherwise specified, and the drawings are not to scale.
Fig. 1 is an application environment of a control method of a light source provided in an embodiment of the present application;
fig. 2 is a hardware configuration diagram of the monitoring camera 10 in the application environment shown in fig. 1;
fig. 3 is a flowchart of a control method of a light source according to an embodiment of the present application;
fig. 4 is a flowchart of another control method of a light source according to an embodiment of the present application;
FIG. 5 is a sub-flowchart of step 120 of the method of FIG. 3;
fig. 6 is a control circuit diagram of a first infrared lamp provided in an embodiment of the present application;
FIG. 7 is another sub-flow diagram of step 120 of the method of FIG. 3;
fig. 8 is a control circuit diagram of a second infrared lamp provided in the first embodiment of the present application;
FIG. 9 is another sub-flow diagram of step 120 of the method of FIG. 3;
fig. 10 is a control circuit diagram of a third infrared lamp provided in the first embodiment of the present application;
fig. 11 is a flowchart of another control method of a light source according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a control device of a light source according to a second embodiment of the present application;
fig. 13 is a schematic structural diagram of another control device for a light source according to a second embodiment of the present application;
fig. 14 is a schematic hardware structure diagram of an electronic device according to a third embodiment of the present application;
fig. 15 is a schematic hardware structure diagram of another electronic device according to a third embodiment of the present application.
Detailed Description
The present application will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the present application, but are not intended to limit the present application in any way. It should be noted that various changes and modifications can be made by one skilled in the art without departing from the spirit of the application. All falling within the scope of protection of the present application.
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that, if not conflicted, the various features of the embodiments of the present application may be combined with each other within the scope of protection of the present application. Additionally, while functional block divisions are performed in apparatus schematics, with logical sequences shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions in apparatus or flowcharts.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In addition, the technical features mentioned in the embodiments of the present application described below may be combined with each other as long as they do not conflict with each other.
In order to solve the problems that signal crosstalk and signal instability are easily generated in the process of executing a light supplement instruction and a data sending instruction in the conventional light source control, an embodiment of the present application provides a light source control method, and a light supplement instruction and a data sending instruction are distributed to a light source in a time sequence control manner, so as to solve the problems of signal crosstalk and signal instability. Since there are many optical communication categories obtained by dividing according to wavelength, light source, transmission medium, and the like, to specifically describe the control method provided in the embodiment of the present application, the embodiment of the present application further describes by taking infrared communication as an example, specifically, an infrared lamp is used as a light source, and light supplement and data transmission of an electronic device are realized by controlling the infrared lamp, please refer to fig. 1 and fig. 2, which show one application environment of the control method of the light source provided in the embodiment of the present application, and fig. 2 is a hardware structure diagram of the monitoring camera 10 in fig. 1. Wherein, the application environment comprises: the monitoring camera 10 and the terminal equipment 20 are connected in a communication mode, and the monitoring camera 10 is connected with the terminal equipment 20 in a communication mode.
The monitoring camera 10 is a semiconductor imaging device, has the advantages of high sensitivity, high light resistance, small distortion, small volume, long service life, vibration resistance and the like, and generally has the functions of camera shooting and communication. In the embodiment of the present application, an infrared lamp 11, a switching device 12, a controller 13, and a brightness detector 14 are provided in the monitoring camera 10. The monitoring camera 10 sends data to be sent to the terminal device 20 through the infrared lamp 11, so that infrared communication with the terminal device 20 is achieved.
In the process of realizing the camera function, the monitoring camera 10 usually adopts the infrared lamp 11 (night vision monitoring infrared lamp) to start at night for light supplement so as to cooperate with the monitoring camera 10 to realize image acquisition at night, and meanwhile, the monitoring camera can interact with the terminal device 20 to send infrared data when necessary. The infrared lamps 11 which are connected in series and/or in parallel emit light with wavelengths of 850nm and 940nm which are invisible light, so that the infrared lamps have the characteristics of concealment and energy conservation, and are widely applied to the field of security monitoring in the last 10 years.
The switching device 12 is connected to the infrared lamp 11 and configured to receive the signal sent by the controller 13 to control the switching condition of the infrared lamp 11, and preferably, in this embodiment, the switching device 12 employs a MOS transistor or a DC-DC converter (Direct current-Direct current converter) to drive the infrared lamp 11 of 940/850nm, so that the infrared lamp 11 operates normally.
The controller 13 is connected to the switching device 12, the controller 13 further has an analog-to-digital conversion function, and is capable of converting a control command for executing a data sending command and a light supplement command into a digital signal, sending an infrared lamp switching signal and an infrared data signal, and controlling the switching condition of the switching device 12 in a time sequence, so that the infrared lamp 11 can realize both illumination and data transmission. By means of sequential control, the situation that images flicker appears in videos output by the monitoring camera 10 when the monitoring camera 10 sends infrared data in a night mode (under the condition that light needs to be supplemented) can be avoided. In particular, various mechanisms for controlling the infrared lamp, such as different control circuits, may be used to address different application scenarios.
The brightness detector 14 is connected to the controller 13 and configured to detect the measurement flux in the environment to determine the brightness of the current environment of the monitoring camera 10, and the brightness detector 14 may send the brightness information detected in real time to the controller 13. Preferably, in this embodiment of the application, the brightness detector 14 is an infrared sensor, and the controller 13 controls the switch device 12 to turn on the infrared lamp 11 for light supplement when it is acquired that the brightness is lower than a preset threshold (at night).
It should be noted that the control method of the light source provided in the embodiment of the present application is generally executed by the monitoring camera 10, and accordingly, the control device of the light source is generally disposed in the monitoring camera 10. In other embodiments, the execution main body for executing the control method or the execution main body provided with the control device may also be other electronic devices, and is not limited to the monitoring camera 10, and may be specifically configured according to actual needs, and details are not described here.
The terminal device 20 may be various electronic devices at least provided with an infrared data receiving function, such as a gateway, a mobile phone, a tablet, and the like, the terminal device 20 may perform infrared wireless communication with the monitoring camera 10, and receive and read infrared data when the infrared lamp 11 transmits the infrared data. Further, the terminal device 20 may also send a control instruction to the monitoring camera 10 to control the monitoring camera 10 to execute a task, and at this time, the monitoring camera 10 may also be provided with an infrared receiving function, so that the terminal device 20 may perform infrared communication with the monitoring camera 10, or the terminal device 20 and the monitoring camera 10 may also be provided with other types of communication connection manners, such as network connection, bluetooth connection, and the like.
Specifically, the embodiments of the present application will be further explained below with reference to the drawings.
Example one
An embodiment of the present application provides a method for controlling a light source, please refer to fig. 3, which shows a flow of the method for controlling a light source provided by the embodiment of the present application, and the method includes, but is not limited to, the following steps:
step 110: receiving a data sending instruction and a light supplementing instruction;
the control method of the light source provided by the embodiment of the application can be applied to the monitoring camera 10 in the application scene or other electronic devices which can normally work only when light supplement is needed in a specific scene, and can be specifically set according to actual needs. Before the control method provided by the embodiment of the present application is executed to control the power supply, first, a data sending instruction and a light supplement instruction need to be obtained.
The data sending instruction may be a data sending task preset in the execution main body such as the monitoring camera 10, and the light source is controlled to execute a corresponding data sending instruction according to the data sending task, so that the light source sends the data information stored in the monitoring camera 10, or the data sending instruction may also be a data sending instruction obtained after the execution main body such as the monitoring camera 10 is in communication connection with other devices, such as the terminal device 20 described in the above application scenario.
The light supplement instruction refers to an instruction which is sent to a light source when the system judges that the light source is required to supplement light for the electronic device in the system in the current environment, for example, the monitoring camera 10 in the application scene, so that the light source executes a corresponding light supplement task according to the light supplement instruction.
Step 120: and executing the data sending instruction and the light supplementing instruction according to a preset time sequence.
After the data sending instruction and the light supplement instruction are received, time sequences need to be allocated to the light supplement instruction and the data sending instruction so as to avoid the phenomenon that signal crosstalk is generated when two executions are executed simultaneously, so that the light supplement instruction and the data sending instruction do not conflict with each other, after the time sequences are allocated, the allocated time sequences are used as preset time sequences to be sent to the light source or stored in the light source, and the light source can execute the data sending instruction and the light supplement instruction according to the preset time sequences.
The preset time sequence specifically refers to control of time for starting to send each instruction, sending content and sending duration, and time for finishing sending each instruction in the sending process of the data sending instruction and the light supplement instruction, that is, the execution process of the data sending instruction and the light supplement instruction is performed according to a time sequence, each instruction can be completed through a micro-operation sequence, and a computer or a controller can read the micro-operation sequence through a micro-operation control signal to implement execution of the data sending instruction and the light supplement instruction. The preset time sequence may be pre-stored in the computer or the controller, or may be obtained by the computer or the controller through the communication module.
For example, the controller 13 in the monitoring camera 10 in the application scenario stores the light supplement instruction, the data sending instruction, and the preset time sequence in advance, or obtains the light supplement instruction, the data sending instruction, and the preset time sequence through a communication module, and controls the on-off state of the switching device 12 through the preset time sequence according to an instruction execution time set by the preset time sequence, or through other activation manners, such as an activation manner when the brightness is higher than a certain threshold value, so as to control the light source to execute the light supplement instruction and the data sending instruction.
It should be noted that there may be only one light source, and at this time, in order to prevent the light supplement instruction and the data transmission instruction from conflicting, the light source may only execute one instruction at the same time; further, the number of the light sources may also be at least two, at this time, the light sources may be set according to actual needs, and the instructions executed by each light source are allocated, specifically, the preset time sequence may be set according to the number of the light sources in an actual situation, a data sending task and a light supplement task are allocated in a time sequence, and the data sending instruction and the light supplement instruction are executed, for example, instruction allocation is performed by the method and the embodiment shown in fig. 4, 7, and 9 described below, but the method and the embodiment of the present application do not need to be limited by the embodiment of the present application, and may be specifically set according to actual needs.
The embodiment of the application provides a control method of a light source, the method firstly needs to receive a data sending instruction and a light supplement instruction, then executes the data sending instruction and the light supplement instruction according to a preset time sequence, so that the light supplement instruction and the data sending instruction are not in conflict with each other, and the control method of the light source provided by the embodiment of the application controls the light source to execute the light supplement instruction and the data sending instruction, so that the problem of signal crosstalk can be solved.
In some embodiments, please refer to fig. 4, which shows a flow of another control method of a light source provided in an embodiment of the present application, based on fig. 3, the control method of the light source further includes the following steps:
step 130: judging whether the data sending instruction and the light supplement instruction need to be executed simultaneously; if yes, go to step 120.
Further, since simultaneous execution of a light supplement instruction and the data transmission instruction may affect stability of signal transmission, that is, crosstalk may be generated, before executing the data transmission instruction and the light supplement instruction, it is further required to further detect and determine whether the light source is currently required to simultaneously execute the light supplement instruction and the data transmission instruction, and if so, it indicates that execution of the data transmission instruction and the light supplement instruction needs to be controlled by a preset time sequence; if not, the process of time sequence control is not needed, if the current system only needs to execute a light supplement instruction, only the light supplement instruction is executed, if the current system only needs to execute a data sending instruction, the data sending instruction is executed, and if the current system does not need to execute the data sending instruction or the light supplement instruction, the data sending instruction and the light supplement instruction are suspended.
In some embodiments, the number of the light sources is one, please refer to fig. 5 and fig. 6 together, where fig. 5 shows a sub-flow of the step 120, fig. 6 shows a control circuit diagram of a first infrared lamp provided in an embodiment of the present application, and the step 120 further includes:
step 121 a: firstly, sending data to be sent according to the data sending instruction;
step 122 a: and after the data to be sent is sent, executing the light supplement instruction.
In the embodiment of the present application, as shown in fig. 6, when the infrared lamp for supplementing light and transmitting data is the same, the controller 13 as shown in the above application scenario outputs a pulse signal as shown in fig. 6 from the port IO1 to control the on state of the switching device K1, so as to control the infrared lamp D1 to execute a light supplementing instruction and a data transmitting instruction. Specifically, as shown in fig. 6, the port IO1 is first pulled to a low level to suspend the light supplement instruction and stop light supplement; then, a pulse signal is output from a port IO1 to send data to be sent so as to execute the data sending instruction, wherein the pulse signal carries the data to be sent through waveform characteristics, such as amplitude, frequency, phase and the like of the pulse signal; after the data to be transmitted is sent, the port IO1 is pulled to a high level to execute the fill light instruction again.
It should be noted that the number of the light sources, i.e. the number of the infrared lamps, which execute the control method described above, may be more than one, and a plurality of infrared lamps capable of outputting the same wavelength are connected in series.
As shown in fig. 6, the structure that only one infrared lamp is used to execute the fill-in light command and the data transmission command has the advantages of simple structure, low cost, and easy time sequence distribution, but since the infrared lamp has the characteristic that the light-emitting angle and the radiation distance (communication distance that can be performed) are inversely proportional, the infrared lamp cannot simultaneously have a larger light-emitting angle and a longer radiation distance (longer communication distance). That is, in the above application scenario, if the viewing angle of the monitoring camera 10 is large, in order to enable the viewing range to reach the maximum visual range that the hardware can capture when the monitoring camera 10 takes an image at night, the light emitting angle of the infrared lamp needs to be large enough to match the viewing angle of the monitoring camera 10. On the basis, if the infrared lamp is required to have a long communicable distance, for example, ten meters, that is, if the terminal device 20 can receive the data to be transmitted from the infrared lamp 11 in the monitoring camera 10 even about 10 meters away from the monitoring camera, the infrared lamp is required to have a long radiation distance. Therefore, based on the above requirement, the embodiment of the present application further provides another control method as follows:
in some embodiments, the number of the light sources is at least two, where there is one light source for executing the light supplement instruction, and there is one light source for executing the data sending instruction, please refer to fig. 7 and 8 together, where fig. 7 shows another sub-flow of the above step 120, fig. 8 shows a control circuit diagram of a second infrared lamp provided in this embodiment, and the step 120 further includes:
step 121 b: firstly, controlling a light source for executing the light supplement instruction to be turned off;
step 122 b: then controlling a light source for executing the data sending instruction to send data to be sent;
step 123 b: and after the data to be sent is sent, controlling the light source for executing the light supplement instruction to be turned on again.
In the embodiment of the present application, as shown in fig. 8, two paths of infrared lamps may be respectively provided to solve the above problem of having a larger light-emitting angle and a longer radiation distance, specifically, assuming that the infrared lamp D1 is used for illumination, the infrared lamp D1 may adopt an infrared lamp having a larger light-emitting angle (a shorter radiation distance), and preferably, the light-emitting angle of the infrared lamp D1 is larger than the viewing angle of the monitoring camera 10; the infrared lamp D2 is used for transmitting data, the infrared lamp D2 may adopt an infrared lamp with a longer radiation distance (a smaller light-emitting angle), and preferably, the radiation distance of the infrared lamp D2 is set according to the farthest receiving distance required by the terminal device 20 in actual use. The light emitting angle and the radiation distance of the infrared lamp are related to the processing technology of the infrared lamp, such as the amount of the scattering agent, and the type of the infrared lamp with the corresponding required light emitting angle and radiation distance can be selected according to actual needs, which is not described in detail herein.
Specifically, the controller 13 outputs pulse signals shown in fig. 7 from the port IO1 and the port IO2 to control the on states of the switching device K1 and the switching device K2, so as to control the infrared lamp D1 and the infrared lamp D2 to respectively execute a light supplement instruction and a data transmission instruction. Firstly, the port IO1 continuously outputs a high level to make the infrared lamp D1 execute the light supplement command, and the port IO2 outputs a low level to make the infrared lamp D2 not emit light; when a data sending instruction is received, the port IO1 outputs a low level to suspend the supplementary lighting instruction, the infrared lamp D1 stops supplementary lighting, and meanwhile, the port IO2 outputs an output pulse signal to enable the infrared lamp D2 to send data to be sent, wherein the pulse signal carries the data to be sent through waveform characteristics, such as amplitude, frequency, phase and the like of the pulse signal; after the data to be transmitted is sent, the port IO1 is pulled to a high level, so that the infrared lamp D1 executes the supplementary lighting instruction again, and the port IO2 outputs a low level again.
It should be noted that the number of the infrared lamps D1 and/or D2 for respectively illuminating and/or transmitting data may be more than one, and a plurality of infrared lamps D1 and/or D2 connected in series may output the same wavelength and/or the same model, and specifically, the number, wavelength, model, and the like of the infrared lamps D3878 and/or D2 may be set according to actual needs, and need not be limited by the embodiments of the present application.
In the embodiment of the present application, when the method shown in fig. 7 and the structure shown in fig. 8 are used to execute the data sending instruction, the monitoring camera 10 in the application scenario cannot obtain supplementary lighting, so that an image cannot be acquired, and compared with the method shown in fig. 5 and the structure shown in fig. 6, the method shown in fig. 7 and the structure shown in fig. 8 have a more complex design of control timing sequence, so that, in order to solve the above problem, the embodiment of the present application further provides another following control method:
in some embodiments, the number of the light sources is at least two, and the wavelengths of all the light sources are the same, please refer to fig. 9 and fig. 10 together, where fig. 9 shows another sub-flow of the above step 120, fig. 10 shows a control circuit diagram of the third and fourth infrared lamps provided in the embodiments of the present application, and the step 120 further includes:
step 121 c: firstly, controlling a light source for executing the light supplementing command to be turned off;
step 142 c: then controlling all the light sources to execute the data sending instruction so as to send data to be sent;
step 143 c: and after the data to be sent is sent, controlling the light source for executing the light supplement instruction to be turned on again.
In this embodiment of the present application, when the light source is controlled in a time sequence, the switching speed of the switching device can reach a very high speed, and usually, multiple switching operations can be performed within several milliseconds, so if light is supplemented at the same time, the collected images are a continuous image when viewed by human eyes, but crosstalk may be generated by supplementing light at the same time, in order to alleviate this problem, the infrared lamp D1 and the infrared lamp D2 in this embodiment of the present application need to operate in the same time sequence when executing a data transmission instruction, and the infrared lamp D1 and the infrared lamp D2 need to adopt infrared lamps outputting the same wavelength, and preferably, may also be infrared lamps of the same model.
Specifically, in fig. 9, the infrared lamp D1 employs an infrared lamp having a large light emission angle for illumination, and the infrared lamp D2 employs an infrared lamp having a long radiation distance for data transmission. The controller 13 outputs pulse signals shown in fig. 9 from the port IO1 and the port IO2 to control the on states of the switching device K1, the switching device K2 and the switching device K3, so as to control the infrared lamp D1 and the infrared lamp D2 to execute a light supplement instruction and a data transmission instruction respectively. Firstly, the port IO1 continuously outputs a high level to make the infrared lamp D1 execute the light supplement command, and the port IO2 outputs a low level to make the infrared lamp D2 not emit light; when a data sending instruction is received, the port IO1 and the port IO2 simultaneously output the same pulse signal to send data to be sent, at this time, the infrared lamp D1 continuously flashes and lights according to the time sequence to realize light supplement, the infrared lamp D2 sends data to be sent according to the time sequence, wherein the pulse signal carries the data to be sent through waveform characteristics, such as amplitude, frequency, phase and the like; after the data to be transmitted is sent, the port IO1 is pulled to a high level, so that the infrared lamp D1 executes the light supplement instruction again, and the port IO2 outputs a low level again.
In some embodiments, please refer to fig. 11, which illustrates another method for controlling a light source provided in an embodiment of the present application, and the method shown in fig. 3 to 10 and the embodiments thereof, further includes:
step 141: acquiring the current environment brightness;
step 142: judging whether the current environment brightness is lower than a preset brightness threshold value or not; if yes, go to step 143; if not, go to step 154;
step 143: executing the light supplement instruction, wherein the light supplement instruction is used for turning on the light source;
step 144: turning off the light source.
Further, an embodiment of the present application further provides a method for determining whether a light supplement instruction needs to be executed, and specifically, because a light source needs to be turned on to supplement light in a night scene, a luminance detector or a light sensing device and other devices capable of detecting luminance may be used to detect current ambient luminance, determine whether the current detected current ambient luminance is lower than a preset luminance threshold, if yes, it is determined that the current environment needs to be supplemented with light, and control the light source to execute the light supplement instruction to turn on the light source to supplement light for the current execution main body in the environment where the monitoring camera 10 is located in the application scene, so that the monitoring camera 10 can normally operate to acquire an image.
The preset brightness threshold may be determined according to a minimum brightness required for a picture that can be acquired by the monitoring camera 10, for example, the preset brightness threshold may be set to 200 nit (nit) (the minimum brightness that can be seen by human eyes is lower than the brightness, and the human brain is determined to be black), and specifically, may be determined according to the actual shooting performance of the monitoring camera 10. Besides the brightness, other parameters such as the illuminance, which can express or determine the amount of light in the environment where the current monitoring camera 10 is located in a numerical form, may be used as the criterion for determining whether to execute the fill-in light instruction, and specifically, may be set according to the actual detection environment.
Example two
The embodiment of the present application provides a control device of a light source, please refer to fig. 12, which shows a control device of a light source provided in the embodiment of the present application, the device 200 includes:
a receiving unit 210, configured to receive a data sending instruction and a light supplement instruction;
the execution unit 220 is configured to execute the data sending instruction and the light supplement instruction according to a preset time sequence.
In some embodiments, please refer to fig. 13, which illustrates another control apparatus for a light source provided in the embodiments of the present application, the apparatus 200 further includes:
a determining unit 230, configured to determine whether the data sending instruction and the fill light instruction need to be executed simultaneously.
In some embodiments, the number of light sources is one;
the execution unit 220 is further configured to send data to be sent according to the data sending instruction; and after the data to be sent is sent, executing the light supplement instruction.
In some embodiments, the number of the light sources is at least two, wherein there is one light source for executing the fill-in light instruction and one light source for executing the data sending instruction;
the execution unit 220 is further configured to first control a light source for executing the light supplement instruction to be turned off; then controlling a light source for executing the data sending instruction to send data to be sent; and after the data to be sent is sent, controlling the light source for executing the light supplement instruction to be turned on again.
In some embodiments, the number of light sources is at least two, and the wavelengths of all light sources are the same;
the execution unit 220 is further configured to control a light source for executing the light supplement instruction to be turned off; then controlling all the light sources to execute the data sending instruction so as to send data to be sent; and after the data to be sent is sent, controlling the light source for executing the light supplement instruction to be turned on again.
In some embodiments, with continued reference to fig. 13, the apparatus 200 further comprises:
a determining unit 240, configured to obtain current ambient brightness; judging whether the current environment brightness is lower than a preset brightness threshold value or not; if yes, executing the light supplement instruction, wherein the light supplement instruction is used for turning on the light source; if not, the light source is turned off.
EXAMPLE III
An embodiment of the present application further provides an electronic device, please refer to fig. 14, which shows a hardware structure of an electronic device capable of executing the control method of the light source described in fig. 3 to 11. The electronic device 10 may be the monitoring camera 10 shown in fig. 1, or may be other electronic devices that need light supplement and send data in a specific scene. The electronic device 10 includes: at least one light source 11; a switching device 12 connected to the light source 11; and a controller 13 connected to the switching device 12. The controller 13 can control the switching device 12 in a time sequence, so that the at least one light source 11 can execute a light supplement command and a data transmission command. Further, referring to fig. 15, which shows a hardware structure of another electronic device, the electronic device 10 may further include: and a brightness detector 14 connected to the controller 13 for obtaining the current ambient brightness.
The controller 13 includes: at least one processor 13 a; and a memory 13b communicatively connected to the at least one processor 13a, one processor 13a being exemplified in fig. 14 and 15. The memory 13b stores instructions executable by the at least one processor 13a, and the instructions are executed by the at least one processor 13a, so that the at least one processor 13a can execute the control method of the light source described in fig. 3 to 11. The processor 13a and the memory 13b may be connected by a bus or other means, and fig. 14 and 15 illustrate the connection by a bus.
The memory 13b, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the control method of the light source in the embodiment of the present application, for example, the modules shown in fig. 12 to 13. The processor 13a executes various functional applications and data processing of the electronic device by running the nonvolatile software programs, instructions and modules stored in the memory 13b, that is, implements the control method of the light source of the above method embodiment.
The memory 13b may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the control device of the light source, and the like. Further, the memory 13b may include a high speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 13b optionally comprises a memory remotely located with respect to the processor 13a, which may be connected to the control means of the light source via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 13b, and when executed by the one or more processors 13a, perform the control method of the light source in any of the above-described method embodiments, for example, perform the method steps of fig. 3 to 11 described above, and implement the functions of the modules and units in fig. 12 to 13.
The product can execute the method provided by the embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer-executable instructions for execution by one or more processors, for example, to perform the method steps of fig. 3-11 described above to implement the functions of the modules in fig. 12-13.
Embodiments of the present application further provide a computer program product comprising a computer program stored on a non-volatile computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method for controlling a light source in any of the above-described method embodiments, for example, to perform the method steps of fig. 3 to 11 described above, to implement the functions of the respective modules in fig. 12 to 13.
The embodiment of the application provides a method and a device for controlling a light source, electronic equipment and a computer-readable storage medium, the method firstly needs to receive a data sending instruction and a light supplementing instruction, then executes the data sending instruction and the light supplementing instruction according to a preset time sequence, so that the light supplementing instruction and the data sending instruction are not in conflict with each other, and the light source is controlled to execute the light supplementing instruction and the data sending instruction by the method for controlling the light source provided by the embodiment of the application, so that the problem of signal crosstalk can be solved.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; within the context of the present application, where technical features in the above embodiments or in different embodiments can also be combined, the steps can be implemented in any order and there are many other variations of the different aspects of the present application as described above, which are not provided in detail for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method of controlling a light source, the method comprising:
receiving a data sending instruction and a light supplementing instruction;
and executing the data sending instruction and the light supplementing instruction according to a preset time sequence.
2. The method according to claim 1, wherein between the receiving the data transmission command and the fill-in command and the executing the data transmission command and the fill-in command according to a preset timing, the method comprises:
and executing the step of executing the data sending instruction and the light supplement instruction according to a preset time sequence under the condition that the data sending instruction and the light supplement instruction need to be executed simultaneously.
3. The method of claim 1, wherein the number of light sources is one;
the step of executing the data sending instruction and the light supplement instruction according to a preset time sequence further includes:
firstly, sending data to be sent according to the data sending instruction;
and after the data to be sent is sent, executing the light supplement instruction.
4. The method according to claim 1, wherein the number of the light sources is at least two, wherein there is one light source for executing the fill-in light instruction and one light source for executing the data sending instruction;
the step of executing the data sending instruction and the light supplement instruction according to a preset time sequence further includes:
firstly, controlling a light source for executing the light supplement instruction to be turned off;
then controlling a light source for executing the data sending instruction to send data to be sent;
and after the data to be sent is sent, controlling the light source for executing the light supplement instruction to be turned on again.
5. The method of claim 1, wherein the number of light sources is at least two and the wavelengths of all light sources are the same;
the step of executing the data sending instruction and the light supplement instruction according to a preset time sequence further includes:
firstly, controlling a light source for executing the light supplement instruction to be turned off;
then controlling all the light sources to execute the data sending instruction so as to send data to be sent;
and after the data to be sent is sent, controlling the light source for executing the light supplement instruction to be turned on again.
6. The method according to any one of claims 1-5, further comprising:
acquiring the current environment brightness;
judging whether the current environment brightness is lower than a preset brightness threshold value or not;
if yes, executing the light supplement instruction, wherein the light supplement instruction is used for turning on the light source;
if not, the light source is turned off.
7. A control device for a light source, the device comprising:
the receiving unit is used for receiving a data sending instruction and a light supplementing instruction;
and the execution unit is used for executing the data sending instruction and the light supplementing instruction according to a preset time sequence.
8. An electronic device, comprising:
at least one light source;
a switching device connected with the light source;
a controller connected with the switching device, the controller comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
9. The electronic device of claim 8, further comprising:
and the brightness detector is connected with the controller and is used for acquiring the current ambient brightness.
10. A computer-readable storage medium having computer-executable instructions stored thereon for causing a computer to perform the method of any one of claims 1-6.
CN202011166914.7A 2020-10-27 2020-10-27 Control method and device of light source, electronic equipment and computer readable storage medium Pending CN114500861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011166914.7A CN114500861A (en) 2020-10-27 2020-10-27 Control method and device of light source, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011166914.7A CN114500861A (en) 2020-10-27 2020-10-27 Control method and device of light source, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114500861A true CN114500861A (en) 2022-05-13

Family

ID=81471236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011166914.7A Pending CN114500861A (en) 2020-10-27 2020-10-27 Control method and device of light source, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114500861A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6344874B1 (en) * 1996-12-24 2002-02-05 International Business Machines Corporation Imaging system using a data transmitting light source for subject illumination
JP2004282389A (en) * 2003-03-14 2004-10-07 Global Com:Kk Illumination light communication device and illuminating element
CN102840481A (en) * 2012-08-15 2012-12-26 杭州鸿雁电器有限公司 Mobile supplementary lighting system used for improving color development effect
WO2014121575A1 (en) * 2013-02-08 2014-08-14 Boly Media Communications (Shenzhen) Co., Ltd. Infrared camera
CN104780693A (en) * 2015-04-28 2015-07-15 陕西科技大学 Intelligent and environmental protecting LED light supplying system for greenhouse and light supplying method thereof
CN105429703A (en) * 2015-10-22 2016-03-23 武汉邮电科学研究院 Mobile terminal interaction system and method based on visible light communication
CN105516593A (en) * 2015-12-17 2016-04-20 上海斐讯数据通信技术有限公司 Shooting apparatus and shooting light supplement adjustment method and system therefor
CN107624412A (en) * 2017-09-19 2018-01-26 天津职业技术师范大学 A kind of LED light-supplementing systems based on optic communication
US20190267825A1 (en) * 2010-11-19 2019-08-29 Tseng-Lu Chien Desktop or Floor LED Lighting Device has USB-Port(s)

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6344874B1 (en) * 1996-12-24 2002-02-05 International Business Machines Corporation Imaging system using a data transmitting light source for subject illumination
JP2004282389A (en) * 2003-03-14 2004-10-07 Global Com:Kk Illumination light communication device and illuminating element
US20190267825A1 (en) * 2010-11-19 2019-08-29 Tseng-Lu Chien Desktop or Floor LED Lighting Device has USB-Port(s)
CN102840481A (en) * 2012-08-15 2012-12-26 杭州鸿雁电器有限公司 Mobile supplementary lighting system used for improving color development effect
WO2014121575A1 (en) * 2013-02-08 2014-08-14 Boly Media Communications (Shenzhen) Co., Ltd. Infrared camera
US20150381865A1 (en) * 2013-02-08 2015-12-31 Boly Media Communications (Shenzhen) Co., Ltd. Infrared camera
CN104780693A (en) * 2015-04-28 2015-07-15 陕西科技大学 Intelligent and environmental protecting LED light supplying system for greenhouse and light supplying method thereof
CN105429703A (en) * 2015-10-22 2016-03-23 武汉邮电科学研究院 Mobile terminal interaction system and method based on visible light communication
CN105516593A (en) * 2015-12-17 2016-04-20 上海斐讯数据通信技术有限公司 Shooting apparatus and shooting light supplement adjustment method and system therefor
CN107624412A (en) * 2017-09-19 2018-01-26 天津职业技术师范大学 A kind of LED light-supplementing systems based on optic communication

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谭艳梅: "基于嵌入式技术的汽车智能视频防盗系统的设计与实现", 南宁职业技术学院学报 *

Similar Documents

Publication Publication Date Title
US9137449B2 (en) Luminance estimation model generation device, image sensor device, and computer program product
CN109889689B (en) Synchronous camera and lighting system
US10438404B2 (en) Ambient light characterization
TWI465701B (en) Method and system of detecitng flash frequency of ambient light source
US10057961B2 (en) Control device, control method, and program
KR102671403B1 (en) Image sensor with lfm and reduced motion blur
EP3344016A1 (en) Illumination system and program
EP3344015A1 (en) Illumination system and program
CN114500861A (en) Control method and device of light source, electronic equipment and computer readable storage medium
US20150138433A1 (en) Illumination Control System and Illumination Control Method
US20200041082A1 (en) Adaptive Ambiance Lighting
KR20150057041A (en) LED lighting control method and device for cameras
EP4169356B1 (en) Controlling a pixelated lighting device based on a relative location of a further light source
US12008891B2 (en) Selecting a light source for activation based on a type and/or probability of human presence
EP3820144B1 (en) Method for displaying a video stream of a scene
KR101656601B1 (en) Imaging device
CN112422931B (en) Optical communication device and method for transmitting and receiving information
CN110933260A (en) Light source selection method and three-source camera
JP5357360B1 (en) Imaging device detection unit, imaging device detection system, imaging device detection device, imaging device detection method, and imaging device detection program
KR20120077946A (en) A network camera with enhanced efficiency for lighting device and a controlling method thereof
CN112748394B (en) Output mode generation method, sensor system and sensor equipment
CN115175398A (en) Control method of infrared light source and audio and video recorder
JP2015216629A (en) Remote control signal recognition machine, remote control signal recognition system, electric apparatus system, and remote control signal recognition program
CN115914097A (en) Method of controlling a light emitting device and related device
CN115336394A (en) Controlling lighting devices associated with light segments in an array

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