Infrared lamp control method and device, equipment and storage medium

By calculating the ratio of environmental brightness and infrared light wavelength response intensity collected by the sensor, controlling the turn-on and turn-off of infrared light, the problem of repeated turn-on and turn-off of infrared light is solved, reducing the use of infrared cut-off filters, reducing costs and avoiding equipment Deprecation and sound issues.

CN119136382APending Publication Date: 2024-12-13LUXSHARE PRECISION TECH(NANJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411533938.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The existing infrared lights are repeatedly turned on and off in a night environment, resulting in alternating brightness of camera imaging, and the use of infrared cutoff filters increases costs and ages, resulting in deprecation of the equipment, and there are obvious sound problems during switching.

Method used

By obtaining the environmental brightness information collected by the sensor and the response intensity of the red, blue and green color, the response intensity ratio relationship of the infrared light wavelength is calculated, and the control operation of the infrared lamp is determined based on the brightness and light distribution, so as to reduce the use of infrared cutoff filters.

Benefits of technology

Reduces costs, avoids equipment deprecation and sound switching problems caused by aging of infrared cut-off filters, and improves the camera's imaging stability in night environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119136382A_ABST
    Figure CN119136382A_ABST
Patent Text Reader

Abstract

The invention discloses an infrared lamp control method and device, equipment and a storage medium. The infrared lamp control method comprises the steps that brightness information, collected by a sensor, of a current environment and response intensity corresponding to red, blue and green colors are acquired; comparing the brightness information with a first preset threshold value to obtain a brightness comparison result; obtaining a pre-configured response intensity proportional relation of the sensor to the infrared wavelength of the infrared lamp; wherein the response intensity proportional relation comprises the ratio of red, blue and green response intensities of the infrared light wavelength; comparing the proportion between the response intensities with the response intensity proportional relation to obtain the distribution condition of light; determining the control operation of the infrared lamp according to the brightness comparison result and the light distribution condition; the control operation is to turn on the infrared lamp or turn off the infrared lamp. By using the method, the use of an infrared cut-off filter is reduced, the cost is reduced, and the problems that the whole camera is abandoned due to aging when the infrared cut-off filter is used and obvious'click 'sound is generated during switching are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of intelligent control technology, and in particular to a control method, device, equipment and storage medium for an infrared lamp. Background Art

[0002] At present, most sweepers or security products will add infrared lights of 850 or 940nm band on the basis of the original dual-pass sensor to meet the brightness requirements at night. However, in this case, in a night environment, when the camera is close to a wall or a large object, it will trigger the threshold for turning on the infrared light because it is night. When the infrared light is turned on, the sensor can feel that the infrared light is very bright, which will trigger the infrared light off threshold, and then the sensor will trigger the infrared light on threshold again, and this will repeat, causing the camera image brightness to alternate between light and dark, and flicker back and forth.

[0003] In the prior art, an infrared cut-off filter is added to avoid screen flickering, but this increases the cost, and the infrared cut-off filter ages and is inconvenient to repair, so the entire camera has to be abandoned. At the same time, switching the infrared cut-off filter will produce a noticeable "click" sound. Summary of the invention

[0004] The embodiments of the present invention provide an infrared light control method, device, equipment and storage medium, which reduce the use of infrared cut-off filters, reduce costs, and avoid the problem of the entire camera being abandoned due to aging and obvious "clicking" sounds when switching due to the use of infrared cut-off filters.

[0005] In a first aspect, an embodiment of the present invention provides a method for controlling an infrared lamp, comprising:

[0006] Get the brightness information of the current environment collected by the sensor and the corresponding response intensity of red, blue and green;

[0007] Comparing the brightness information with a first preset threshold to obtain a brightness comparison result;

[0008] Obtaining a pre-configured proportional relationship of the response intensity of the sensor to the infrared light wavelength of the infrared lamp; wherein the proportional relationship of the response intensity includes the ratio between the red, blue and green response intensities of the infrared light wavelength;

[0009] Comparing the ratio between the response intensities and the response intensity ratio relationship to obtain the light distribution;

[0010] The control operation of the infrared lamp is determined according to the brightness comparison result and the distribution of the light; the control operation is to turn on the infrared lamp or turn off the infrared lamp.

[0011] In a second aspect, an embodiment of the present invention further provides a control device for an infrared lamp, the device comprising:

[0012] Acquire a pre-configured operation priority; the operation priority includes: the operation priority of determining the brightness comparison result is greater than the operation priority of determining the distribution of the light;

[0013] judging the brightness comparison result and the light distribution according to the operation priority;

[0014] When it is determined that the brightness comparison result is that the ambient brightness is low, and the light distribution condition is that there is only infrared light, obtaining the first configuration file corresponding to the control operation of turning on the infrared light, and executing the first configuration file to complete the control of the infrared light;

[0015] When it is determined that the brightness comparison result is that the ambient brightness is high and the light distribution condition includes visible light, the control operation is to obtain a second configuration file corresponding to turning off the infrared light, and the second configuration file is executed to complete the control of the infrared light.

[0016] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0017] one or more processors;

[0018] a storage device for storing one or more programs,

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the infrared lamp control method provided by the embodiment of the present disclosure.

[0020] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to implement the infrared lamp control method provided by the embodiments of the present disclosure.

[0021] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the infrared lamp control method provided in the embodiment of the first aspect.

[0022] The present invention discloses a control method, device, equipment and storage medium of an infrared lamp, including: obtaining the brightness information of the current environment collected by the sensor and the response intensity corresponding to the red, blue and green colors; comparing the brightness information with a first preset threshold value to obtain a brightness comparison result; obtaining the pre-configured proportional relationship of the response intensity of the sensor to the infrared light wavelength of the infrared lamp; wherein the proportional relationship of the response intensity includes the ratio between the red, blue and green response intensities of the infrared light wavelength; comparing the ratio between the response intensities and the proportional relationship of the response intensity to obtain the distribution of light; determining the control operation of the infrared lamp according to the brightness comparison result and the distribution of light; the control operation is to turn on or off the infrared lamp. Utilizing this method: reducing the use of infrared cut-off filters, reducing costs, and avoiding the problem of the entire camera being abandoned due to aging and switching with obvious "click" sounds caused by the use of infrared cut-off filters. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0024] Figure 1 A flow chart of a method for controlling an infrared lamp provided by an embodiment of the present disclosure;

[0025] Figure 2 A schematic diagram of the spectral response characteristics of the sensor provided by the embodiment of the present disclosure;

[0026] Figure 3 A schematic diagram of the structure of an infrared lamp control device provided by an embodiment of the present disclosure;

[0027] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0034] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0035] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0036] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0037] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0038] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0039] Figure 1 A flowchart of infrared light control provided in an embodiment of the present disclosure is applicable to providing a solution to the problem that, in a night environment, when a camera is close to a wall or a large object, the infrared light is repeatedly turned on and off, causing the camera imaging brightness to alternate between light and dark and flickering back and forth, resulting in poor accuracy. The method can be executed by an infrared light control device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server, etc.

[0040] like Figure 1 As shown, a method for controlling an infrared lamp provided by an embodiment of the present disclosure may specifically include the following steps:

[0041] S110, obtaining brightness information of the current environment collected by the sensor and the response intensities corresponding to the three colors of red, blue and green.

[0042] In this embodiment, the brightness information may be the luminous intensity of the current environment on the unit projection area of ​​the sensor, or may be a brightness value. The response intensity may be the response degree of light in red, blue and green.

[0043] In this embodiment, the brightness information of the current environment collected by the sensor and the response intensities corresponding to the three colors of red, blue and green are obtained.

[0044] S120: Compare the brightness information with a first preset threshold to obtain a brightness comparison result.

[0045] The brightness comparison result is that the ambient brightness is high or the ambient brightness is low.

[0046] In this embodiment, the first preset threshold may be a pre-set threshold, which is set according to actual conditions and is not specifically limited in this embodiment. The brightness comparison result may be a result of comparing the brightness with the threshold.

[0047] When the brightness information is greater than or equal to the first preset threshold, the brightness comparison result is determined to be high ambient brightness. When the brightness information is less than the first preset threshold, the brightness comparison result is determined to be low ambient brightness.

[0048] Based on the above embodiment, comparing the brightness information with the first preset threshold to obtain the brightness comparison result may include the following steps:

[0049] a1) When the brightness information is greater than or equal to a first preset threshold, determining that the brightness comparison result is that the ambient brightness is high.

[0050] b1) When the brightness information is less than a first preset threshold, determining that the brightness comparison result is low ambient brightness.

[0051] S130, obtaining a proportional relationship between the response intensity of a pre-configured sensor and the infrared light wavelength of the infrared lamp.

[0052] The response intensity ratio relationship includes the ratio between the red, blue and green response intensities of the infrared light wavelength.

[0053] In this embodiment, the wavelength of the infrared light may be the wavelength of the infrared light emitted by the infrared lamp, and for example, the wavelength may be in the 850 nm or 940 nm band.

[0054] This step is used to obtain the proportional relationship of the response intensity of the pre-configured sensor to the infrared light wavelength of the infrared lamp.

[0055] Based on the above embodiment, the following steps may be included before obtaining the proportional relationship of the response intensity of the pre-configured sensor to the infrared light wavelength of the infrared lamp:

[0056] a2) Obtain the spectral response characteristics of the sensor and the infrared light wavelength of the infrared lamp.

[0057] b2) Determine the proportional relationship of the response intensity of the infrared light wavelength according to the red, blue and green response intensities of light of different wavelengths in the spectral response characteristics.

[0058] In this embodiment, spectral response refers to different reaction characteristics exhibited by different devices or materials under the same spectral conditions. Sensors have different spectral response characteristics due to different manufacturing materials. Figure 2 Schematic diagram of the spectral response characteristics of the sensor provided by the embodiment of the present disclosure. The spectral response characteristics of the sensor are as follows: Figure 2 shown.

[0059] Specifically, the spectral response characteristics of the sensor and the infrared wavelength of the infrared lamp are obtained, and then the response intensity ratio of the infrared wavelength is determined by querying the red, blue and green response intensities of the infrared wavelength in the spectral response characteristics.

[0060] Based on the above embodiment, obtaining the response intensity ratio relationship of infrared light wavelengths according to the red, blue and green response intensities of light of different wavelengths in the spectral response characteristics may include the following steps:

[0061] b21) Query the red, blue and green response intensities corresponding to the infrared light wavelength in the spectral response characteristics.

[0062] b22) The ratio between the red, blue and green response intensities is used as the proportional relationship of the response intensity of the infrared light wavelength.

[0063] For example, in the 400-700 nm band, the red, blue, and green response intensities are different, but in the 850-1000 nm band, the red, blue, and green response intensities are almost equal.

[0064] S140: Compare the ratios between the response intensities and the response intensity ratio relationship to obtain light distribution.

[0065] In this embodiment, the distribution of light may be the wavelength composition of light, for example, only infrared light, only visible light, or both infrared light and visible light.

[0066] Based on the above embodiment, comparing the ratios between the response intensities and the response intensity ratio relationship, obtaining the light distribution may include the following steps:

[0067] a3) Determine the difference between the ratio between the response intensities and the ratio between the red, blue and green response intensities of the corresponding infrared light wavelengths in the response intensity ratio relationship.

[0068] b3) If all the differences are less than or equal to the second preset threshold, the wavelength of the light in the current environment is the same as the wavelength of the infrared light, and it is determined that the distribution of the light is only infrared light.

[0069] c3) If all the differences are greater than the second preset threshold, the wavelength of the light in the current environment is different from the wavelength of the infrared light, and it is determined that the distribution of the light includes visible light.

[0070] In this embodiment, the second preset threshold may be a pre-set threshold, which is set according to actual conditions and is not specifically limited in this embodiment.

[0071] Determine the difference between the ratio between each response intensity and the ratio between each red, blue and green response intensity of the corresponding infrared light wavelength in the response intensity ratio relationship. If each difference is less than or equal to the second preset threshold value, it can be considered that the ratio between each response intensity is the same as the ratio between each red, blue and green response intensity of the corresponding infrared light wavelength in the response intensity ratio relationship, then the wavelength of light in the current environment is the same as the infrared light wavelength, and the distribution of light is determined to be only infrared light. If each difference is greater than the second preset threshold value, it can be considered that the ratio between each response intensity is different from the ratio between each red, blue and green response intensity of the corresponding infrared light wavelength in the response intensity ratio relationship, then the wavelength of light in the current environment is different from the infrared light wavelength, and the distribution of light is determined to include visible light.

[0072] S150: Determine the control operation of the infrared lamp according to the brightness comparison result and the light distribution.

[0073] The control operation is to turn on or off the infrared light.

[0074] When the brightness comparison result is that the ambient brightness is low and the light distribution is that only infrared light is present, the control operation is to turn on the infrared light. When the brightness comparison result is that the ambient brightness is high and the light distribution is that visible light is present, the control operation is to turn off the infrared light.

[0075] Based on the above embodiment, determining the control operation of the infrared lamp according to the brightness comparison result and the light distribution may include the following steps:

[0076] a4) Get the pre-configured operation priority.

[0077] The operation priority includes: the operation priority of determining the brightness comparison result is higher than the operation priority of determining the light distribution condition.

[0078] b4) Judging the brightness comparison result and light distribution according to the operation priority.

[0079] c4) When the brightness comparison result is that the ambient brightness is low and the light distribution is that only infrared light is present, the control operation is to obtain a first configuration file corresponding to turning on the infrared light, and the first configuration file is executed to complete the control of the infrared light.

[0080] d4) When it is determined that the brightness comparison result is that the ambient brightness is high and the light distribution includes visible light, a second configuration file corresponding to a control operation of turning off the infrared light is obtained, and the second configuration file is executed to complete the control of the infrared light.

[0081] In this embodiment, the operation priority can be a pre-configured judgment order of brightness comparison results and light distribution conditions. The first configuration file configures the operation information about turning on the infrared light. The second configuration file configures the operation information about turning off the infrared light.

[0082] The present invention discloses a method for controlling an infrared lamp, comprising: obtaining brightness information of the current environment collected by a sensor and the response intensities corresponding to the three colors of red, blue and green; comparing the brightness information with a first preset threshold value to obtain a brightness comparison result; obtaining a response intensity proportional relationship of a pre-configured sensor to the infrared wavelength of the infrared lamp; wherein the response intensity proportional relationship includes the ratio between the red, blue and green response intensities of the infrared wavelength; comparing the ratio between the response intensities and the response intensity proportional relationship to obtain the distribution of light; determining the control operation of the infrared lamp according to the brightness comparison result and the distribution of light; the control operation is to turn on or off the infrared lamp. By using this method: reducing the use of infrared cut-off filters, reducing costs, and avoiding the problem of the entire camera being abandoned due to aging and switching with obvious "click" sounds caused by the use of infrared cut-off filters.

[0083] Figure 3 The present invention also provides a schematic diagram of the structure of an infrared lamp control device. Figure 3 As shown, the device includes: an information acquisition module 210, a first comparison module 220, a proportional relationship module 230, a second comparison module 240 and a control operation determination module 250.

[0084] The information acquisition module 210 is used to obtain the brightness information of the current environment collected by the sensor and the response intensity corresponding to the red, blue and green colors;

[0085] A first comparison module 220, configured to compare the brightness information with a first preset threshold to obtain a brightness comparison result;

[0086] The proportional relationship module 230 is used to obtain the pre-configured proportional relationship of the response intensity of the sensor to the infrared light wavelength of the infrared lamp; wherein the proportional relationship of the response intensity includes the ratio between the red, blue and green response intensities of the infrared light wavelength;

[0087] A second comparison module 240 is used to compare the ratio between the response intensities and the response intensity ratio relationship to obtain the light distribution;

[0088] The control operation determination module 250 is used to determine the control operation of the infrared light according to the brightness comparison result and the light distribution; the control operation is to turn on the infrared light or turn off the infrared light.

[0089] The technical solution provided by the embodiments of the present disclosure reduces the use of infrared cut-off filters, reduces costs, and avoids the problem of the entire camera being abandoned due to aging due to the use of infrared cut-off filters and the obvious "clicking" sound when switching.

[0090] Further, the first comparison module 220 may be used to:

[0091] When the brightness information is greater than or equal to the first preset threshold, determining that the brightness comparison result is that the ambient brightness is high;

[0092] When the brightness information is less than the first preset threshold, it is determined that the brightness comparison result is that the ambient brightness is low.

[0093] Further, the second comparison module 240 may be used to:

[0094] Determine the difference between the ratio between each of the response intensities and the ratio between each of the red, blue and green response intensities of the infrared light wavelength corresponding to the response intensity ratio relationship;

[0095] If each of the differences is less than or equal to a second preset threshold, the wavelength of the light in the current environment is the same as the wavelength of the infrared light, and it is determined that the distribution of the light is only infrared light;

[0096] If each of the difference values ​​is greater than a second preset threshold, the wavelength of the light in the current environment is different from the wavelength of the infrared light, and it is determined that the distribution of the light includes visible light.

[0097] Furthermore, the control operation determination module 250 may be used to:

[0098] Acquire a pre-configured operation priority; the operation priority includes: the operation priority of determining the brightness comparison result is greater than the operation priority of determining the distribution of the light;

[0099] judging the brightness comparison result and the light distribution according to the operation priority;

[0100] When it is determined that the brightness comparison result is that the ambient brightness is low, and the light distribution condition is that there is only infrared light, obtaining the first configuration file corresponding to the control operation of turning on the infrared light, and executing the first configuration file to complete the control of the infrared light;

[0101] When it is determined that the brightness comparison result is that the ambient brightness is high and the light distribution condition includes visible light, the control operation is to obtain a second configuration file corresponding to turning off the infrared light, and the second configuration file is executed to complete the control of the infrared light.

[0102] Furthermore, the device may also include: obtaining the spectral response characteristics of the sensor and the infrared light wavelength of the infrared lamp;

[0103] The response intensity ratio of the infrared light wavelength is determined according to the red, blue and green response intensities of light of different wavelengths in the spectral response characteristics.

[0104] Furthermore, the device may also include: querying the red, blue and green response intensities corresponding to the infrared light wavelength in the spectral response characteristics;

[0105] The ratio between the red, blue and green response intensities is used as the response intensity proportional relationship of the infrared light wavelength.

[0106] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not described in detail in this embodiment, please refer to the methods provided by all the above embodiments of the present invention.

[0107] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is given. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0108] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0109] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0110] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for controlling an infrared lamp.

[0111] In some embodiments, the infrared lamp control method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the infrared lamp control method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the infrared lamp control method in any other appropriate manner (e.g., by means of firmware).

[0112] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0113] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0114] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0115] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0116] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0117] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0118] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0119] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for controlling an infrared lamp, characterized in that: include: Get the brightness information of the current environment collected by the sensor and the corresponding response intensity of red, blue and green; Comparing the brightness information with a first preset threshold to obtain a brightness comparison result; Obtaining a pre-configured proportional relationship of the response intensity of the sensor to the infrared light wavelength of the infrared lamp; wherein the proportional relationship of the response intensity includes the ratio between the red, blue and green response intensities of the infrared light wavelength; Comparing the ratio between the response intensities and the response intensity ratio relationship to obtain the light distribution; The control operation of the infrared lamp is determined according to the brightness comparison result and the distribution of the light; the control operation is to turn on the infrared lamp or turn off the infrared lamp.

2. The method according to claim 1, characterized in that Before obtaining the pre-configured proportional relationship of the response intensity of the sensor to the infrared light wavelength of the infrared lamp, the method further includes: Acquiring the spectral response characteristics of the sensor and the infrared light wavelength of the infrared lamp; The response intensity ratio of the infrared light wavelength is determined according to the red, blue and green response intensities of light of different wavelengths in the spectral response characteristics.

3. The method according to claim 2, characterized in that The step of determining the response intensity ratio of the infrared light wavelength according to the red, blue and green response intensities of light of different wavelengths in the spectral response characteristics includes: Querying the red, blue and green response intensities corresponding to the infrared light wavelengths in the spectral response characteristics; The ratio between the red, blue and green response intensities is used as the response intensity proportional relationship of the infrared light wavelength.

4. The method according to claim 1, characterized in that: The brightness comparison result is that the ambient brightness is high or the ambient brightness is low; the light distribution is that there is only infrared light or that it includes visible light.

5. The method according to claim 4, characterized in that Comparing the brightness information with a first preset threshold to obtain a brightness comparison result includes: When the brightness information is greater than or equal to the first preset threshold, determining that the brightness comparison result is that the ambient brightness is high; When the brightness information is less than the first preset threshold, it is determined that the brightness comparison result is that the ambient brightness is low.

6. The method according to claim 4, characterized in that The comparing the ratio between the response intensities and the response intensity ratio relationship to obtain the light distribution includes: Determine the difference between the ratio between each of the response intensities and the ratio between each of the red, blue and green response intensities of the infrared light wavelength corresponding to the response intensity ratio relationship; If each of the differences is less than or equal to a second preset threshold, the wavelength of the light in the current environment is the same as the wavelength of the infrared light, and it is determined that the distribution of the light is only infrared light; If each of the difference values ​​is greater than a second preset threshold, the wavelength of the light in the current environment is different from the wavelength of the infrared light, and it is determined that the distribution of the light includes visible light.

7. The method according to claim 4, characterized in that Determining the control operation of the infrared lamp according to the brightness comparison result and the light distribution; The control operation is to turn on or off the infrared light, including: Acquire a pre-configured operation priority; the operation priority includes: the operation priority of determining the brightness comparison result is higher than the operation priority of determining the distribution of the light; judging the brightness comparison result and the light distribution according to the operation priority; When it is determined that the brightness comparison result is that the ambient brightness is low, and the light distribution condition is that there is only infrared light, obtaining the first configuration file corresponding to the control operation of turning on the infrared light, and executing the first configuration file to complete the control of the infrared light; When it is determined that the brightness comparison result is that the ambient brightness is high and the light distribution condition includes visible light, the control operation is to obtain a second configuration file corresponding to turning off the infrared light, and the second configuration file is executed to complete the control of the infrared light.

8. A control device for an infrared lamp, characterized in that: include: The information acquisition module is used to obtain the brightness information of the current environment collected by the sensor and the response intensity corresponding to the red, blue and green colors; A first comparison module, used to compare the brightness information with a first preset threshold to obtain a brightness comparison result; A proportional relationship module, used to obtain a pre-configured proportional relationship of the response intensity of the sensor to the infrared light wavelength of the infrared lamp; wherein the proportional relationship of the response intensity includes the ratio between the red, blue and green response intensities of the infrared light wavelength; A second comparison module, used for comparing the ratio between the response intensities and the response intensity ratio relationship to obtain the light distribution; A control operation determination module is used to determine the control operation of the infrared lamp according to the brightness comparison result and the distribution of the light; the control operation is to turn on the infrared lamp or turn off the infrared lamp.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the infrared lamp control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the infrared lamp control method according to any one of claims 1 to 7 when executed.