A control method for an infrared light source and an audio-video recorder

Through the light sensor and reflection threshold judgment of the audio and video recorder, combined with driving current adjustment, the infrared light source switch is accurately controlled, which solves the problem of resource waste in false and dim scenes of the audio and video recorder, and achieves resource conservation and improvement of shooting effects.

CN115175398BActive Publication Date: 2025-07-08QINGDAO HISENSE MOBILE COMM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210648253.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-08
Publication Date
2025-07-08
Estimated Expiration
2042-06-08

AI Technical Summary

Technical Problem

Existing audio and video recorders cannot accurately identify real dim scenes and false dim scenes, resulting in infrared LED light sources still turning on in fake dim scenes, causing waste of resources.

Method used

The light sensing value is obtained through the light sensor of the audio and video recorder, and the reflection threshold value and driving current of the infrared light source are used, combined with the comparison of the light sensing value of multiple periods, and the switch of the infrared light source is accurately controlled to avoid turning on in false and dim scenes.

Benefits of technology

While assisting shooting effects in real dim scenes, it saves audio and video recorder resources and avoids unnecessary light sources turning on in fake dim scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115175398B_ABST
    Figure CN115175398B_ABST
Patent Text Reader

Abstract

The present application discloses a control method for an infrared light source and an audio-video recorder. When the infrared light source of the audio-video recorder is in the working state, a first light sensing value within a first time period is obtained through a light sensor of the audio-video recorder; a first reflection threshold corresponding to a first drive current of the infrared light source in the working state is obtained; it is determined whether the first light sensing value is between an opening threshold and the first reflection threshold; if it is determined that the first light sensing value is between the opening threshold and the first reflection threshold, then based on second light sensing values of multiple consecutive second time periods, it is determined whether to turn off the infrared light source. This method does not require changing the design structure of the audio-video recorder. Only by utilizing the property that visible light in the light emitted by the infrared light source is reflected when encountering an obstacle nearby and thus detected by the light sensor in the audio-video recorder, can the environment where the audio-video recorder is currently located be accurately determined, and further determine the on / off of the infrared light source.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of device control, and in particular, to a method for controlling an infrared light source and an audio-video recorder. Background Art

[0002] With the development of technology, audio-video recorders have become increasingly integrated into people's daily lives. For example, intelligent law enforcement recorders, as a specific product of audio-video recorders, have been applied in the field of mobile security. Another example is intelligent operation recorders, which can be used during railway construction.

[0003] Among them, in order to ensure that the audio-video recorder can also have a good shooting effect in a relatively dark environment, such as making the pictures taken at night clear, currently, an infrared LED (Light-emitting Diode) light source can be installed on the audio-video recorder. Thus, in a relatively dark environment, the infrared LED light source can be turned on. After the assistance of the lit infrared LED light source, the lens on the audio-video recorder can clearly take pictures.

[0004] However, current audio-video recorders cannot accurately identify real dark scenes and false dark scenes (such as scenes where the user places the lens of the audio-video recorder facing the table or directly places the audio-video recorder in their own clothes pocket, etc., are called false dark scenes). As a result, the audio-video recorder will not only turn on the infrared LED light source in real dark scenes but also in false dark scenes. Obviously, for the situation where the audio-video recorder still turns on the infrared LED light source in false dark scenes, it is a waste of the resources of the audio-video recorder. Summary of the Invention

[0005] The present application provides a method for controlling an infrared light source and an audio-video recorder, which can accurately control the on / off of the infrared light source in the audio-video recorder without changing the components of the current audio-video recorder, meet the requirement of turning off the infrared light source under occlusion conditions, and can effectively save the resources of the audio-video recorder.

[0006] First aspect, an embodiment of the present application provides a method for controlling an infrared light source. The method includes: when the infrared light source of the audio-video recorder is in an operating state, obtaining a first light sensing value within a first period through the light sensor of the audio-video recorder; obtaining a first reflection threshold corresponding to a first driving current of the infrared light source in the operating state; the first reflection threshold represents the light sensing value of the infrared light source operating under the first driving current when satisfying near-distance reflection and having the maximum reflectivity; determining whether the first light sensing value is between an on threshold and the first reflection threshold; the on threshold represents the light sensing value for controlling the turning on of the infrared light source; if it is determined that the first light sensing value is between the on threshold and the first reflection threshold, then based on the second light sensing values of multiple consecutive second periods, determining whether to turn off the infrared light source; any second period is after the first period.

[0007] The infrared light source of the audio-video recorder is turned on using a first driving current, and the light sensing value within the first period after turning on is obtained. By comparing the obtained first light sensing value with the on threshold and the first reflection threshold, when it is determined that the first light sensing value is between the on threshold and the first reflection threshold, it will be possible to determine whether to turn off the infrared light source in the on state based on the second light sensing values of multiple consecutive second periods after the first period. This method does not require changing the design structure of the audio-video recorder. Only by utilizing the property that the visible light in the light emitted by the infrared light source is reflected when encountering a nearby obstacle and thus detected by the light sensor in the audio-video recorder, can the current environment where the audio-video recorder is located be accurately determined, and further determine the turning on and off of the infrared light source.

[0008] In a possible implementation method, the determining whether to turn off the infrared light source based on the second light sensing values of multiple consecutive second periods includes: if the second light sensing values are the same, sending a turn-off instruction to the infrared light source; if the second light sensing values are different and each second light sensing value is greater than a turn-off threshold, sending a turn-off instruction to the infrared light source; the turn-off threshold represents the light sensing value for controlling the turning off of the infrared light source.

[0009] In the above solution, when the infrared light source is in the on state, if the first light sensing value is between the on threshold and the first reflection threshold, by continuously observing the second light sensing values corresponding to multiple consecutive second time periods, if all the second light sensing values are the same, it indicates that the audio-video recorder is continuously in the occluded state. Then, by controlling the infrared light source to turn off, the resources of the audio-video recorder can be effectively saved. Among them, if the second light sensing values are not all the same, it indicates that there is no occlusion in the current environment of the audio-video recorder. Further, if the minimum second light sensing value is greater than the off threshold, it indicates that the video recorder is currently in a bright environment. Then, by controlling the infrared light source to turn off, the resources of the video recorder can be effectively saved.

[0010] In a possible implementation method, determining whether to turn off the infrared light source based on the second light sensing values of multiple consecutive second time periods includes: if all the second light sensing values are the same, enter the drive current adjustment stage; among them, any drive current adjustment stage is executed as follows: control the infrared light source to operate at the second drive current, and obtain the third light sensing value within the third time period through the light sensor; the second drive current is different from the first drive current; if it is determined that the third light sensing value is between the on threshold and the second reflection threshold, determine whether to turn off the infrared light source based on the fourth light sensing values of multiple consecutive fourth time periods; the second reflection threshold represents the light sensing value of the infrared light source operating at the second drive current when the close-range reflection is satisfied and the reflectivity is the maximum; any fourth time period is after the third time period.

[0011] In the above solution, after determining that all the second light sensing values are the same, in addition to directly controlling the infrared light source to turn off, the infrared light source can also be precisely controlled by changing the drive current of the infrared light source. For the audio-video recorder with the adjusted drive current, execute the above-mentioned control method of the infrared light source again, so as to determine the on / off of the infrared light source according to the fourth light sensing values corresponding to the infrared light source with the adjusted drive current in multiple consecutive fourth time periods. This method adjusts the drive current of the infrared light source, and then determines the state of the environment where the audio-video recorder is located by using the same control method of the infrared light source, so as to improve the accuracy of controlling the infrared light source of the audio-video recorder.

[0012] In a possible implementation method, each drive current adjustment stage is carried out in the way that the set drive currents increase or decrease in sequence.

[0013] In the above solution, by controlling the drive current of the infrared light source to be adjusted in an increasing order, since the reflection threshold is positively correlated with the drive current of the infrared light source, when the drive current of the infrared light source is increased, the corresponding reflection threshold will also increase accordingly. At the same time, when there is an occlusion, the same detected fourth light sensing value will be correspondingly greater than the same second light sensing value. Therefore, based on this method, the accuracy of controlling the infrared light source can be improved; by controlling the drive current of the infrared light source to be adjusted in a decreasing order, since the reflection threshold is positively correlated with the drive current of the infrared light source, when the drive current of the infrared light source is decreased, the corresponding reflection threshold will also decrease accordingly. At the same time, when there is an occlusion, the same detected fourth light sensing value will be correspondingly less than the same second light sensing value. Therefore, based on this method, the accuracy of controlling the infrared light source can be improved.

[0014] In a possible implementation method, after sending the turn-off instruction to the infrared light source, the method further includes: after sending the turn-off instruction to the infrared light source, the method further includes: entering a cyclic turn-on and turn-off adjustment stage; wherein, any cyclic turn-on and turn-off adjustment stage is executed in the following manner: after controlling the infrared light source to be turned off for a set duration, controlling the infrared light source to start running, and obtaining a fifth light sensing value within a fifth time period through a light sensor; if it is determined that the fifth light sensing value is between the turn-on threshold and the first reflection threshold, then based on the sixth light sensing values of multiple consecutive sixth time periods, determine whether to turn off the light source; wherein, any sixth time period is longer than any second time period.

[0015] In the above solution, after determining that the second light sensing values are the same, by controlling the infrared light source to be turned off for a period of time, and after turning on the infrared light source again, the infrared light source can be accurately controlled by changing the way of obtaining the light sensing value. Specifically, when the control method of the infrared light source described above is executed again, by changing the duration of the light sensor to collect the light sensing value once during the operation of the infrared light source, such as controlling any sixth time period to be longer than any second time period, then if the audio-video recorder is really in an occluded state, within a single longer time period, the same sixth light sensing values will also be the same as the same second light sensing values. By changing the way of obtaining the light sensing value, the state of the environment where the audio-video recorder is located is verified by the same control method of the infrared light source, so that the accuracy of controlling the infrared light source of the audio-video recorder can be improved.

[0016] In a possible implementation method, controlling the infrared light source to start running includes: in each cyclic turn-on and turn-off adjustment stage, controlling the infrared light source to start running at the first drive current; or, in each cyclic turn-on and turn-off adjustment stage, controlling the infrared light source to start running at different set drive currents.

[0017] In the above solution, for each cycle opening and closing adjustment stage, by controlling the infrared light source to turn on and operate under the first driving current or to turn on and operate under different set driving currents, the effect of flexibly controlling the opening and closing of the infrared light source can be achieved in this way.

[0018] In a possible implementation method, if it is determined that the first light sensing value is greater than the first reflection threshold, the infrared light source is turned off; if it is determined that the first light sensing value is not greater than the turning-on threshold, the infrared light source is kept turned on.

[0019] In the above solution, if it is determined that the first light sensing value is greater than the first reflection threshold, it indicates that the current audio-video recorder is in a bright and unobstructed environment. Then, by controlling the infrared light source to turn off at this time, the resources of the audio-video recorder can be effectively saved; if it is determined that the first light sensing value is not greater than the turning-on threshold, it indicates that the current audio-video recorder is in a dim and unobstructed environment (i.e., in a real dim scene). Then, by controlling the infrared light source to remain turned on at this time, the effect of accurately photographing the surrounding environment of the audio-video recorder with the assistance of the infrared light source can be achieved.

[0020] In a possible implementation method, after sending the turn-off instruction to the infrared light source, the method further includes: sending a turn-off instruction to the camera of the audio-video recorder.

[0021] In the above solution, when it is determined that the audio-video recorder is in a dim scene caused by occlusion, then after sending the turn-off instruction to the infrared light source, by further sending a turn-off instruction to the camera in the audio-video recorder, the resources of the audio-video recorder can be further saved.

[0022] In a second aspect, an embodiment of the present application provides a control device for an infrared light source. The device includes: a light sensing value acquisition unit, configured to acquire a first light sensing value within a first time period through a light sensor of the audio-video recorder when the infrared light source of the audio-video recorder is in a working state; a reflection threshold acquisition unit, configured to acquire a first reflection threshold corresponding to a first driving current of the infrared light source in the working state; the first reflection threshold represents the light sensing value when the infrared light source operating under the first driving current satisfies near-distance reflection and has the maximum reflectivity; a judgment unit, configured to determine whether the first light sensing value is between the turning-on threshold and the first reflection threshold; the turning-on threshold represents the light sensing value for controlling the infrared light source to turn on; a processing unit, configured to, if it is determined that it is between the turning-on threshold and the first reflection threshold, determine whether to turn off the infrared light source based on second light sensing values of a plurality of consecutive second time periods; any second time period is after the first time period.

[0023] In a third aspect, an embodiment of the present application provides an audio-video recorder, which includes an infrared light source, a light sensor, and a processor; the infrared light source is configured to be turned on and off according to the control of the processor; the light sensor is configured to detect visible light and convert it into a corresponding light sensing value and send it to the processor; the light sensor is disposed in a reflection area where the infrared light source has a short-distance reflection; the short-distance reflection refers to the reflection when the distance between an obstacle and the infrared light source is not greater than a set distance; the processor is configured to execute any implementation method as described in the first aspect.

[0024] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute any implementation method as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0026] Figure 1 It is a schematic structural diagram of an audio-video recorder provided by an embodiment of the present application;

[0027] Figure 2 It is a schematic diagram of the back of an audio-video recorder provided by an embodiment of the present application;

[0028] Figure 3 It is a schematic diagram of light reflection provided by an embodiment of the present application;

[0029] Figure 4 It is a schematic diagram of a control method for an infrared light source provided by an embodiment of the present application;

[0030] Figure 5 It is a flowchart of a control method for an infrared LED light source provided by an embodiment of the present application;

[0031] Figure 6 It is a flowchart of a control method for an infrared LED light source provided by an embodiment of the present application;

[0032] Figure 7 It is a flowchart of a control method for an infrared LED light source provided by an embodiment of the present application;

[0033] Figure 8 It is a flowchart of a control method for an infrared LED light source provided by an embodiment of the present application;

[0034] Figure 9 A schematic diagram of camera control provided by an embodiment of the present application;

[0035] Figure 10 A schematic diagram of a control device for an infrared light source provided by an embodiment of the present application;

[0036] Figure 11 A schematic diagram of a computing device provided by an embodiment of the present application. Detailed implementation manners

[0037] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0038] First, Figure 1 A schematic structural diagram of an audio-video recorder 100 is shown.

[0039] The following takes the audio-video recorder 100 as an example to specifically illustrate the embodiments. It should be understood that Figure 1 The shown audio-video recorder 100 is only an example, and the audio-video recorder 100 may have more or fewer components than those shown in Figure 1 It may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0040] Figure 1 An exemplary hardware configuration block diagram of the audio-video recorder 100 according to an exemplary embodiment is shown. As Figure 1 shown, the audio-video recorder 100 includes: a radio frequency (RF) circuit 101, a memory 102, a display unit 103, a camera 104, a sensor 105, an audio circuit 106, a Wireless Fidelity (Wi-Fi) module 107, a processor 108, a Bluetooth module 109, a power supply 110, an infrared light source 111, and other components.

[0041] The RF circuit 101 can be used for receiving and transmitting signals during information reception or call processes. It can receive downlink data from the base station and then hand it over to the processor 108 for processing; it can send uplink data to the base station. Generally, the RF circuit includes, but is not limited to, devices such as antennas, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer.

[0042] The memory 102 can be used to store software programs and data. The processor 108 executes various functions and data processing of the audio and video recorder 100 by running the software programs or data stored in the memory 102. The memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. The memory 102 stores an operating system that enables the audio and video recorder 100 to operate. In this application, the memory 102 can store the operating system and various application programs, and can also store the program code for executing the method described in the embodiments of this application.

[0043] The display unit 103 can be used to receive input digital or character information, and generate signal inputs related to the user settings and function control of the audio and video recorder 100. Specifically, the display unit 103 may include a touch screen 1031 disposed on the front of the audio and video recorder 100, which can collect touch operations of the user thereon or nearby, such as clicking buttons, dragging scroll boxes, etc.

[0044] The display unit 103 can also be used to display the information input by the user or the information provided to the user, as well as the graphical user interface (GUI) of various menus of the audio and video recorder 100. Specifically, the display unit 103 may include a display screen 1032 disposed on the front of the audio and video recorder 100. Among them, the display screen 1032 can be configured in the form of a liquid crystal display, a light-emitting diode, etc.

[0045] Among them, the touch screen 1031 can cover the display screen 1032, or the touch screen 1031 and the display screen 1032 can be integrated to implement the input and output functions of the audio and video recorder 100. After integration, it can be simply called a touch display screen. In this application, the display unit 103 can display application programs and corresponding operation steps.

[0046] The camera 104 can be used to capture still images or videos. An object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the processor 108 to be converted into a digital image signal.

[0047] The audio and video recorder 100 may further include at least one sensor 105, such as an acceleration sensor 1051, a distance sensor 1052, a temperature sensor 1053, and a light sensor 1054. The audio and video recorder 100 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and a motion sensor. In this application, the audio and video recorder 100 will include a light sensor 1054, which is used to detect the light intensity signal around the audio and video recorder 100 and convert the light intensity signal into an electrical signal (i.e., a light sensing value), and then transmit the electrical signal / light sensing value to the processor 108.

[0048] The audio circuit 106, the speaker 1061, and the microphone 1062 can provide an audio interface between the user and the audio and video recorder 100. The audio circuit 106 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the speaker 1061 converts it into a sound signal for output. The audio and video recorder 100 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 106 and then converted into audio data, and then the audio data is output to the RF circuit 101 to be sent to, for example, another audio and video recorder, or the audio data is output to the memory 102 for further processing.

[0049] Wi-Fi belongs to short-distance wireless transmission technology. The audio and video recorder 100 can help users send and receive emails, browse the web, and access streaming media through the Wi-Fi module 107, which provides users with wireless broadband Internet access.

[0050] The processor 108 is the control center of the audio and video recorder 100, connecting various parts of the entire audio and video recorder through various interfaces and lines. By running or executing the software programs stored in the memory 102 and calling the data stored in the memory 102, it executes various functions of the audio and video recorder 100 and processes data. In some embodiments, the processor 108 may include one or more processing units; the processor 108 may also integrate an application processor and a baseband processor, where the application processor mainly processes the operating system, user interface, and application programs, etc., and the baseband processor mainly processes wireless communication. It can be understood that the above baseband processor may not be integrated into the processor 108. In this application, the processor 108 can run the operating system, application programs, user interface display and touch response, as well as the control method described in the embodiments of this application.

[0051] The Bluetooth module 109 is used to interact with other Bluetooth devices with Bluetooth modules through the Bluetooth protocol. For example, the audio-video recorder 100 can establish a Bluetooth connection with a wearable audio-video recorder (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 109, so as to perform data interaction.

[0052] The audio-video recorder 100 also includes a power supply 110 (such as a battery) for powering each component. The power supply can be logically connected to the processor 108 through a power management system, so as to realize functions such as managing charging, discharging, and power consumption through the power management system. The audio-video recorder 100 can also be configured with a power button for functions such as turning on and off the audio-video recorder and locking the screen.

[0053] The infrared light source 111 is used for night vision supplementary lighting. In this application, two infrared light sources are provided, which are stacked left and right and have a sufficiently large field of view. Further, in this application, the infrared light source 111 adopts an infrared LED light source.

[0054] For the current audio-video recorder, because it cannot accurately identify a real dim scene and a false dim scene, it will still turn on the infrared LED light source in a false dim scene, which is obviously a waste of the resources of the audio-video recorder itself.

[0055] In view of the above technical problems, an embodiment of this application provides an audio-video recorder. As Figure 2 shown, it is a schematic diagram of the back of an audio-video recorder provided by an embodiment of this application. Refer to Figure 2 , where an infrared light source is respectively arranged on the left and right sides above the audio-video recorder ( Figure 2 illustrated by an infrared LED light source in Figure 2 ), a camera is arranged in the center, and a light sensor is arranged near the right infrared LED light source. In addition, the audio-video recorder also includes other components such as a processor, Figure 1 which are not shown in

[0056] Refer to Figure 2 , where the camera can be used to collect images or videos.

[0057] Continue to refer to Figure 2 , where the infrared light source can adopt the infrared LED light source shown in Figure 2 or other infrared light sources, which are not limited in this application. For the infrared light source, it can be turned on and off according to the control of the processor in the audio-video recorder. Among them, when it is determined to turn on the infrared light source, it means that the environment where the audio-video recorder is currently located is relatively dim. Then, by controlling the infrared light source to turn on, based on the lit infrared light source, it will be possible to assist the camera to take clear pictures.

[0058] For Figure 2 , where the optical sensor can be used to detect visible light and convert it into a corresponding light sensing value and send it to the processor in the audio - video recorder.

[0059] Furthermore, in this application, there are certain requirements for the layout of the infrared light source and the optical sensor of the audio - video recorder, that is, it is necessary to set the optical sensor within the reflection area where the infrared light source has a short - distance reflection. This short - distance reflection refers to the reflection when the distance between the occluder and the infrared light source is not greater than the set distance. As Figure 3 shown, it is a schematic diagram of light reflection provided by an embodiment of this application, where this schematic diagram is drawn based on Figure 2 the structure of the audio - video recorder shown. Among them, when the infrared LED light source on the left encounters the occluder on the upper part, the visible light in the light rays released by the infrared LED light source can be detected by the optical sensor due to reflection, and thus the optical sensor that detects the visible light converts it into a corresponding light sensing value and sends it to the processor. It should be noted that this application will no longer give examples of the reflection scenario when the infrared LED light source on the right encounters an occluder.

[0060] In this application, in a false dim environment caused by the audio - video recorder being blocked by an occluder at a relatively short distance, by controlling the turning on of the infrared light source, since there is a component of visible light in the light rays emitted by the turned - on infrared light source, when the visible light in the light rays encounters a nearby occluder, it will be reflected back. Thus, the reflected visible light can be detected by the optical sensor, converted into a corresponding light sensing value and sent to the processor, and finally the precise control of turning the infrared light source on and off is achieved.

[0061] As Figure 4 shown, it is a schematic diagram of a control method for an infrared light source provided by an embodiment of this application. This control method for the infrared light source can be executed by the processor of the audio - video recorder shown in Figure 2 . This method includes the following steps:

[0062] Step 401, when the infrared light source of the audio - video recorder is in the working state, obtain the first light sensing value within the first time period through the optical sensor of the audio - video recorder.

[0063] In the embodiments of this application, the audio - video recorder includes at least a smart law enforcement recorder and a smart operation recorder. Of course, it can also be other audio - video recorders.

[0064] In the embodiments of the present application, the infrared light source may adopt an infrared LED light source. Of course, it may also be other forms of infrared light sources. Optionally, there are two types of infrared LED light sources in the present application, with peak wavelengths of 850 nm and 940 nm respectively. Considering the relevant characteristics of the camera and infrared rays, the infrared LED light source with a peak wavelength of 850 nm is more suitable for use. Accordingly, the following solutions of the present application will be developed for the audio-video recorder where the infrared LED light source with a peak wavelength of 850 nm is located.

[0065] In the embodiments of the present application, the light sensor can be used to detect visible light and convert the detected visible light into corresponding light sense values.

[0066] In the embodiments of the present application, for the convenience of description, the light sense values are expressed in the illuminance unit lx. At the same time, for the convenience of understanding, some light sense values in the present application are represented by real numbers, such as 5 lx.

[0067] For example, the processor of the audio-video recorder can control the light sensor to detect the surrounding visible light at a certain acquisition frequency. For example, it can control the light sensor to work at an acquisition frequency of collecting 10 light sense values per second. It should be noted that the acquisition frequency of collecting 10 light sense values per second is only an example, and the acquisition frequency can also be other values. Then, when the infrared light source of the audio-video recorder is in the working state, the light sensor on the audio-video recorder can be used to obtain each light sense value within the duration of t0 at a certain acquisition frequency. Among them, the first time period of the present application can be this duration of t0, and the first light sense value can be determined according to each light sense value collected within the duration of t0. For example, the first light sense value can be any one of each light sense value, the first light sense value can be the value obtained by taking the mode of each light sense value, the first light sense value can also be the value obtained by taking the average of each light sense value. Of course, the first light sense value can also be determined in other ways. For the convenience of describing the solutions of the present application, the light sense values within a period of time are all the average values of each light sense value collected within that period of time. The same applies hereinafter and will not be repeated.

[0068] Step 402, obtain a first reflection threshold corresponding to the first driving current of the infrared light source in the working state.

[0069] Wherein, the first reflection threshold represents the light sense value when the infrared light source operating under the first driving current satisfies near-distance reflection and has the maximum reflectivity.

[0070] For example, for an infrared LED light source with a peak wavelength of 850 nm, there is a red explosion phenomenon, that is, there is visible light component in its spectrum, specifically manifested as a red spot can be seen after the infrared LED light source is turned on. Based on this, when there is an obstacle with a relatively short distance behind the audio-video recorder (where the relatively short distance can be set according to the actual situation), such as when the user puts the audio-video recorder in his own clothes pocket, or when the user places the back of the audio-video recorder facing the desktop, then due to the obstruction of the audio-video recorder by the obstacle, the ambient light cannot be detected by the light sensor on the audio-video recorder at this time, or in other words, the light sensor cannot obtain the real ambient light, so that the light sensing value detected by the light sensor is extremely low, or even zero. In this case, if the infrared LED light source in the audio-video recorder is turned on, the light emitted by the turned-on infrared LED light source will be reflected back to the back of the audio-video recorder by the obstacle, so that based on the pre-set layout design, the visible light component in the reflected spectrum will be detected by the light sensor and generate a certain light sensing value.

[0071] In the embodiments of the present application, the infrared light source is turned on under a certain driving current. After the infrared light source is turned on by different driving currents, the light sensing values detected by the light sensor will not be the same. However, the detected light sensing value is positively correlated with the driving current. In addition, under the condition of a certain layout and occlusion, in addition to the driving current affecting the detection of the light sensing value, the light sensing value will also be affected by the obstacle, because different obstacles have different reflectivities. For example, after the infrared LED light source is turned on by controlling a certain driving current, due to different obstacles, the detected light sensing value has a range. In the present application, the upper limit value among them is defined as the maximum light sensing value Lmax. In other words, the maximum light sensing value Lmax is obtained under the condition of the maximum reflectivity, and the maximum light sensing value is the reflection threshold. Therefore, according to the device specifications, there is a current upper limit value Imax for the driving current of the infrared LED light source. Within this range, under different driving currents, the maximum light sensing value (i.e., the reflection threshold) Lmax caused by occlusion is also different. As an example, and also for the convenience of illustrating the solution, the present application can design the corresponding relationship between the driving current and the reflection threshold as the following data: when the driving current is 300 mA, the maximum light sensing value / reflection threshold caused by occlusion will be 40 lx; when the driving current is 450 mA, the maximum light sensing value / reflection threshold caused by occlusion will be 60 lx.

[0072] For example, for step 401, assume that the infrared LED light source of the audio-video recorder is started with a driving current of 300 mA. Then, in this step, that is, step 402, the reflection threshold of the infrared LED light source at a driving current of 300 mA will be 40 lx. Among them, the first driving current is 300 mA, and the first reflection threshold is 40 lx.

[0073] Step 403: Determine whether the first light sensing value is between the turning-on threshold and the first reflection threshold.

[0074] Among them, the turning-on threshold represents the light sensing value for controlling the turning-on of the infrared light source.

[0075] In this step, for the obtained first light sensing value, by comparing it with the turning-on threshold and the first reflection threshold, the control of the infrared light source can be realized.

[0076] In the embodiment of the present application, after the audio-video recorder turns on the camera, if the light sensing value L is less than the turning-on threshold Lon (Lon can be set to 5 lx) within a period of time, it is determined that the current environment is a dark environment, and the infrared LED light source is controlled to turn on; when the light sensing value L is greater than the turning-off threshold Loff (Loff can be set to 30 lx) within a period of time, it is determined that the current environment becomes bright, and then the infrared LED light source is controlled to turn off. Obviously, the size relationship between the turning-on threshold Lon and the turning-off threshold Loff configured for the infrared LED light source of the audio-video recorder is: Loff > Lon; in addition, according to the differences in design values and specific structural layouts, there are two situations for the turning-off threshold Loff and the reflection threshold Lmax, namely Loff ≥ Lmax and Loff < Lmax. However, for the convenience of description, the following solution of the present application is described based on Loff < Lmax.

[0077] Step 404: If it is determined that it is between the turning-on threshold and the first reflection threshold, determine whether to turn off the infrared light source based on the second light sensing values of multiple consecutive second time periods.

[0078] Among them, any second time period is after the first time period.

[0079] In step 403, by judging whether the first light sensing value is between the turning-on threshold and the first reflection threshold, if it is determined that the first light sensing value is between the turning-on threshold and the first reflection threshold, then in this step, that is, step 404, the light sensor will continue to collect the light sensing values in several time periods after the first time period, and finally, the opening and closing of the turned-on infrared light source can be determined according to the light sensing values corresponding to each time period. Among them, these several time periods are the second time periods, and the light sensing value corresponding to any time period is a second light sensing value.

[0080] The infrared light source of the audio - video recorder is turned on using a first drive current, and the light - sensing value within the first time period after being turned on is obtained. By comparing the obtained first light - sensing value with the turn - on threshold and the first reflection threshold, when it is determined that the first light - sensing value is between the turn - on threshold and the first reflection threshold, it will be possible to determine whether to turn off the turned - on infrared light source based on the second light - sensing values of multiple consecutive second time periods after the first time period. This method does not require changing the design structure of the audio - video recorder. It only utilizes the property that the visible light in the light emitted by the infrared light source is reflected when encountering nearby obstacles and thus detected by the light sensor in the audio - video recorder, so as to accurately determine the current environment where the audio - video recorder is located, and further determine the on - off of the infrared light source.

[0081] In an implementation of step 404 above, determining whether to turn off the infrared light source based on the second light - sensing values of multiple consecutive second time periods includes: if the second light - sensing values are the same, a turn - off instruction is sent to the infrared light source; if the second light - sensing values are different and all are greater than the turn - off threshold, a turn - off instruction is sent to the infrared light source; the turn - off threshold represents the light - sensing value for controlling the infrared light source to turn off.

[0082] In some implementations of this application, if it is determined that the first light - sensing value is greater than the first reflection threshold, the infrared light source is turned off; if it is determined that the first light - sensing value is not greater than the turn - on threshold, the infrared light source remains on.

[0083] For example, after turning on the camera of the audio - video recorder, the light - sensing value of the audio - video recorder within the next period of time t0 can be obtained, where this light - sensing value can be denoted as L0. Then, by comparing L0 with the turn - on threshold Lon(5 lx), if L0 < Lon is satisfied, the infrared LED light source is turned on; otherwise, the light - sensing value of the audio - video recorder is continuously collected and compared with Lon to determine whether to turn on the infrared LED light source. For example, in this application, if the value of L0 is 3 lx, then according to the control logic, the requirement for turning on the infrared LED light source is satisfied. Then, in this application, the first drive current with a drive current of 300 mA can be used to turn on the infrared LED light source, and the reflection threshold corresponding to this drive current is denoted as Lmax0. Based on the foregoing example data, Lmax0 = 40 lx; after turning on the infrared LED light source, continue to obtain the light - sensing value L1 of the next t0 - duration period and perform the following analysis and calculation, where L1 is the first light - sensing value:

[0084] First, determine whether the light - sensing value L1 satisfies Lmax0 ≥ L1 > Lon. For example, determine whether the light - sensing value L1 is within the range of 5 lx to 40 lx. Among them, the determination result may include the following two cases:

[0085] In Case 1, it is determined that the light sensing value L1 does not meet the above conditions, that is, it is determined that the light sensing value L1 does not meet Lmax0≥L1>Lon. Then, it can be further divided into the following two sub - cases:

[0086] In Case 11, it is determined that the light sensing value L1>Lmax0. For the case of L1>Lmax0, in this application, the value of L1 can be set to 50lx. Because in the case of occlusion, the value of L1 cannot exceed the first reflection threshold of 40lx at most. Then, since 50lx exceeds the first reflection threshold of 40lx, it indicates that there must be no occlusion. Also, since this application is described based on Loff<Lmax, when L1>Lmax0 is satisfied, it must also satisfy L1>Loff. That is, when L1>Lmax0 is satisfied, it must meet the condition for turning off the infrared LED light source, that is, it meets the off - threshold, that is, L1>Loff(30lx). Therefore, the infrared LED light source can be turned off;

[0087] In Case 12, it is determined that the light sensing value L1≤Lon. For the case of L1≤Lon, in this application, the value of L1 can still be set to 3lx. Since 3lx does not meet the on - threshold of 5lx, it can be determined that there is no occlusion currently. In the case where there is no occlusion and still meets the condition for the infrared LED light source to be on (that is, does not meet the condition for turning off the infrared LED light source), this application will continue to keep the infrared LED light source on.

[0088] In Case 2, it is determined that the light sensing value L1 meets the above conditions, that is, it is determined that the light sensing value L1 meets Lmax0≥L1>Lon. Then, it can be further analyzed and judged whether the change in the light sensing value remains stable in the following way:

[0089] Step 1: Sequentially take the light sensing values within several time periods. Each light sensing value is defined and recorded as L11, L12…L1n(n≥2). Among them, these several time periods are the second time periods, and L11, L12…L1n are the second light sensing values.

[0090] Step 2: Judge whether the recorded light sensing values meet L11=L12…=L1n.

[0091] Step 3: Determine whether L11=L12…=L1n is satisfied. Here, it can be discussed and explained in the following two cases:

[0092] Case 1: It is determined that L11=L12…=L1n is satisfied. For example, it is determined that L11=L12…=L1n=15lx. Then, in this application, it will be determined that there is an occlusion currently. For this case where an occlusion is determined, a turn - off instruction can be sent to the infrared LED light source to control the infrared LED light source to turn off.

[0093] Case 2: If it is determined that L11 = L12… = L1n is not satisfied, then in this application, it will be determined that no occlusion has occurred currently. For this case where no occlusion has occurred, the following methods can be provided in this application: Obtain the minimum value among L11, L12…L1n, and analyze the relationship between this minimum value and the turn-off threshold Loff, that is, compare the magnitudes of min(L11, L12…L1n) and Loff. If min(L11, L12…L1n) > Loff, then turn off the infrared LED light source; otherwise, keep the infrared LED light source on.

[0094] It should be noted that the times of the above several time periods can be the same or different, and this application does not make any limitations.

[0095] Furthermore, after determining occlusion and controlling the infrared LED light source to turn off according to the above step 3, the current off state of the infrared LED light source can be maintained and waited for a duration of T0, for example, T0 can be set to 5 minutes. After waiting for the duration of T0, the audio-video recorder starts a new control and judgment process according to the relationship between the detected light sense value and Lon and the control method of the infrared light source described above. If occlusion is still determined to occur for the second time, then control the infrared LED light source to turn off again and maintain the current state and wait for 2T0, and so on in a cycle.

[0096] For a better understanding of the above embodiments, as Figure 5 shown, it is a flowchart of a control method for an infrared LED light source provided by an embodiment of this application. The specific steps are as follows:

[0097] Step 501, turn on the camera when the infrared LED light source is in the off state.

[0098] Step 502, obtain the light sense value L0 within a duration of t0 through the light sensor, and determine whether L0 < Lon is satisfied; if it is determined that L0 is less than Lon, then execute step 504, otherwise, execute step 503.

[0099] Step 503, keep the infrared LED light source off.

[0100] Step 504, turn on the infrared LED light source and execute step 505.

[0101] Step 505, obtain the light sense value L1 within a duration of t0 through the light sensor.

[0102] Step 506, determine whether Lmax0 ≥ L1 > Lon is satisfied; if it is determined that it is satisfied, then execute step 507; otherwise, execute step 508.

[0103] Step 507, obtain the light sense values within consecutive multiple durations of t0 through the light sensor, and each light sense value is denoted as L11, L12…L1n respectively.

[0104] Step 508, determine that no occlusion occurs currently, and execute Step 509 or Step 510.

[0105] Step 509, determine that L1 ≤ Lon is satisfied, and execute Step 511.

[0106] Step 510, determine that L1 > Lmax0 is satisfied, and execute Step 512.

[0107] Step 511, keep the infrared LED light source on.

[0108] Step 512, turn off the infrared LED light source.

[0109] Step 513, determine whether L11 = L12 … = L1n is satisfied; if it is determined to be satisfied, execute Step 515, otherwise, execute Step 514.

[0110] Step 514, determine whether min(L11, L12 … L1n) > Loff is satisfied; if it is determined to be satisfied, execute Step 512, otherwise, execute Step 511.

[0111] Step 515, determine that occlusion occurs currently, and execute Step 516.

[0112] Step 516, turn off the infrared LED light source, and execute Step 517.

[0113] Step 517, after the infrared LED light source remains in the off state for a duration of T0, execute Step 502.

[0114] In an implementation of the above Step 402, determining whether to turn off the infrared light source based on the second light sensing values of multiple consecutive second time periods includes: if the second light sensing values are the same, enter the drive current adjustment stage; wherein, any drive current adjustment stage is executed as follows: control the infrared light source to operate at the second drive current, and obtain the third light sensing value within the third time period through the light sensor; the second drive current is different from the first drive current; if it is determined that the third light sensing value is between the turn-on threshold and the second reflection threshold, determine whether to turn off the infrared light source based on the fourth light sensing values of multiple consecutive fourth time periods; the second reflection threshold represents the light sensing value of the infrared light source operating at the second drive current under the condition of satisfying short-distance reflection and the maximum reflectivity; any fourth time period is after the third time period.

[0115] When within the range of the driving current Imax and with the layout structure determined (referring to the layout design of the infrared LED light source and the optical sensor on the back of the audio and video recorder, etc.), as the driving current increases, the luminous intensity of the infrared LED light source also increases, and the influence of the light reflected back under the corresponding occlusion on the optical sensor also increases, manifested as the light sensing value increasing accordingly; when the driving current decreases, the luminous intensity of the infrared LED light source also decreases, and the influence of the light reflected back under the corresponding occlusion on the optical sensor also decreases, manifested as the light sensing value decreasing accordingly.

[0116] Based on the above logic, in order to improve the accuracy of identifying short - distance occlusion scenarios in this application, taking the increase of the driving current as an example, the following method is provided:

[0117] Continuing with the previous example, when it is determined that the light sensing values satisfy L11 = L12… = L1n, then first, within the range of Imax, compared with the driving current I0 (300 mA), the driving current of the infrared LED is increased to I1. For example, if I1 is taken as 450 mA, the driving current I1 is the second driving current. According to the data in the previous example, when the driving current is 450 mA, the reflection threshold is 60 lx; among them, the reflection threshold of 60 lx in this application is the second reflection threshold. In other words, the first reflection threshold corresponding to the first driving current I0 is Lmax0, and the second reflection threshold corresponding to the second driving current I1 is Lmax1. Then, according to the example data above, in this application, Lmax0 = 40 lx and Lmax1 = 60 lx.

[0118] After increasing the driving current of the infrared LED light source, obtain and record the light sensing value L2 within a period of time t0. The light sensing value L2 is the third light sensing value. Make the following calculations and analyses:

[0119] Step 1, compare the relationship between the light sensing value L2 and L11 (or L12 or L13… or L1n) in the previous example and the emission threshold Lmax1 (i.e., 60 lx) at the current driving current. For example, determine whether Lmax1≥L2>L11 is satisfied. Among them, the judgment result can include the following two situations:

[0120] Situation 1: It is determined that the light sensing value L2 does not satisfy the above conditions, that is, it is determined that the light sensing value L2 does not satisfy Lmax1≥L2>L11, then it will be determined that no occlusion has occurred currently. And specifically, it can be further divided into two sub - situations:

[0121] Case 11: Determine that the light perception value L2 > Lmax1. For the case of L2 > Lmax1, in this application, the value of L2 can be set to 70 lx. Because in the case of occlusion, the value of L2 cannot exceed the second reflection threshold of 60 lx at most. Since 70 lx exceeds the second reflection threshold of 60 lx, it indicates that there must be no occlusion. Also, since this application is described based on Loff < Lmax, when L2 > Lmax1 is satisfied, L2 > Loff must also be satisfied. That is, when L2 > Lmax1 is satisfied, the condition for turning off the infrared LED light source must be met, that is, the off threshold is satisfied, i.e., L2 > Loff (30 lx). Therefore, the infrared LED light source can be turned off;

[0122] Case 12: Determine that the light perception value L2 ≤ L11. For the case of L2 ≤ L11, it is then determined whether the light perception value L2 satisfies L2 > Loff. If it is determined that L2 > Loff is satisfied, the infrared LED light source is turned off; if it is determined that L2 > Loff is not satisfied, the infrared LED light source remains on.

[0123] Case 2: Determine that the light perception value L2 satisfies the above conditions, that is, determine that the light perception value L2 satisfies Lmax1 ≥ L2 > L11, and then the following method is used for judgment:

[0124] Step 1: Sequentially obtain the light perception values within several identical time periods. Each light perception value is defined and recorded as L21, L22…L2n (n ≥ 2). Among them, these several time periods are the fourth time period, and L11, L12…L1n are the respective fourth light perception values.

[0125] Step 2: Determine whether the recorded light perception values satisfy L21 = L22… = L2n.

[0126] Step 3: If the condition in Step 2 is satisfied, it is determined that there is an occlusion currently, and thus the infrared LED light source can be turned off and the state is maintained for 2T0 (such as 10 minutes). Then, the device makes corresponding controls according to the relationship between the obtained light perception value and Lon and enters the corresponding judgment scenario; if the condition in Step 2 is not satisfied, it is determined that there is no occlusion currently, and it is determined whether min(L21, L22…L2n) > Loff is satisfied. If the light perception value of the minimum value among L21, L22…L2n is greater than Loff, the infrared LED light source is turned off, otherwise it remains on.

[0127] It should be noted that the times of the above several time periods can be the same or different, and this application does not make a limitation.

[0128] Continuing to note, this application will not elaborate on the logic of controlling the infrared LED light source under the condition of reducing the drive current.

[0129] Such as Figure 6As shown in the figure, it is a flowchart of a control method for an infrared LED light source provided by an embodiment of the present application. The method includes the following steps:

[0130] Step 601, turn on the infrared LED light source.

[0131] Step 602, determine that L11 = L12 =... = L1n.

[0132] Step 603, increase the drive current of the infrared LED light source.

[0133] Step 604, determine whether Lmax1 ≥ L2 > L11 is satisfied. If it is determined that it is satisfied, execute Step 605; otherwise, execute Step 606.

[0134] Step 605, obtain the light sense values L21, L22... L2n, and execute Step 607.

[0135] Step 606, determine that no occlusion has occurred, and execute Step 610 or Step 611.

[0136] Step 607, determine whether L21 = L22... = L2n is satisfied. If it is determined that it is satisfied, execute Step 608; otherwise, execute Step 609.

[0137] Step 608, determine that occlusion has occurred, and execute Step 616.

[0138] Step 609, determine that no occlusion has occurred, and execute Step 615.

[0139] Step 610, determine that L2 ≤ L11, and execute Step 612.

[0140] Step 611, determine that L2 > Lmax1, and execute Step 614.

[0141] Step 612, determine whether min(L11, L12... L1n) > Loff is satisfied. If it is determined that it is satisfied, execute Step 614; otherwise, execute Step 613.

[0142] Step 613, keep the infrared LED light source on.

[0143] Step 614, turn off the infrared LED light source.

[0144] Step 615, determine whether min(L21, L22... L2n) > Loff is satisfied. If it is determined that it is satisfied, execute Step 614; otherwise, execute Step 613.

[0145] Step 616, turn off the infrared LED light source.

[0146] Step 617, maintain the current off state until 2T0.

[0147] In addition, a detection sub-loop is defined in the embodiments of the present application. As in the foregoing example, in the present application, the implementation process of the control method for starting the infrared LED light source based on the first drive current is recorded as the basic judgment method flow, and, in the present application, the implementation process of the control method for starting the infrared LED light source based on the second drive current is recorded as the advanced judgment method flow. Then, the following can be defined as a detection sub-loop in the present application: basic judgment method flow - advanced judgment method flow. If it is determined that occlusion occurs in the first detection sub-loop, several detection sub-loops can be performed again, such as: detection sub-loop 1 loop judgment, detection sub-loop 2 loop. When it is determined that occlusion occurs in several detection sub-loops, it is finally determined that occlusion occurs, thus further improving the accuracy of detection.

[0148] As Figure 7 shown, the flowchart of a control method for an infrared LED light source provided by an embodiment of the present application includes the following steps:

[0149] Step 701, through detection sub-loop 1, determine whether occlusion occurs. If it is determined that occlusion occurs, execute step 702; otherwise, execute step 703.

[0150] Step 702, perform detection sub-loop 2 and determine whether occlusion occurs. If it is determined that occlusion occurs, execute step 704; otherwise, execute step 703.

[0151] Step 703, determine that no occlusion occurs.

[0152] Step 704, perform detection sub-loop 3 and determine whether occlusion occurs. If it is determined that occlusion occurs, execute step 705; otherwise, execute step 703.

[0153] Step 705, repeatedly perform detection sub-loops and determine that the set detection times N are reached.

[0154] Step 706, through detection sub-loop N, determine whether occlusion occurs. If it is determined that occlusion occurs, execute step 707; otherwise, execute step 703.

[0155] Step 707, determine that there is an effective occlusion.

[0156] In some implementations of the present application, each drive current adjustment stage is performed in a manner of increasing or decreasing sequentially according to the set drive current.

[0157] Continuing with the foregoing example, when the drive current of the infrared LED light source is 300 mA, if it is detected that L11 = L12 … = L1n, the drive current can be increased to 350 mA; when the drive current of the infrared LED light source is increased to 350 mA, if it is detected that L21 = L22 … = L2n, the drive current can be further increased to 400 mA; when the drive current of the infrared LED light source is increased to 400 mA, if it is detected that L31 = L32 … = L3n, the drive current can be further increased to 450 mA. And so on in a cycle.

[0158] For another example, if the initial drive current of the infrared LED light source is set to 450 mA, and if it is detected that L11 = L12 … = L1n, the drive current can be decreased to 400 mA; when the drive current of the infrared LED light source is decreased to 400 mA, if it is detected that L21 = L22 … = L2n, the drive current can be further decreased to 350 mA; when the drive current of the infrared LED light source is decreased to 350 mA, if it is detected that L31 = L32 … = L3n, the drive current can be further decreased to 300 mA. And so on in a cycle.

[0159] In some embodiments of the present application, after sending the turn-off instruction to the infrared light source, the method further includes: entering a cyclic turn-on / off adjustment phase; wherein, any cyclic turn-on / off adjustment phase is executed in the following manner: after controlling the infrared light source to be turned off for a set duration, controlling the infrared light source to start running, and obtaining a fifth light sensing value within a fifth time period through a light sensor; if it is determined that the fifth light sensing value is between the turn-on threshold and the first reflection threshold, then based on the sixth light sensing values of multiple consecutive sixth time periods, determine whether to turn off the light source; wherein, any sixth time period is longer than any second time period.

[0160] For example, continuing with the foregoing example, after satisfying L11 = L12...L1n, keep the drive current of the infrared LED light source unchanged, that is, keep the drive current of the infrared LED light source still at the first drive current of 300 mA, and perform regular turn-off and turn-on actions on the infrared LED light source, that is, control the on / off time. Specifically:

[0161] Step 1, after satisfying the foregoing condition of L11 = L12...L1n, control the infrared LED light source to be turned off for a period of time T0. For example, T0 is taken as 10 minutes.

[0162] Step 2, then determine whether the light sensing value within a period of time still satisfies the condition for turning on the infrared LED light source. If it satisfies, turn on the infrared LED light source, otherwise keep it turned off. This period of time is the fifth time period, and the light sensing value within this period of time is the fifth light sensing value.

[0163] Step 3, assume that the fifth light sensing value in the above Step 2 meets the condition for turning on the infrared LED light source. After the infrared LED light source is controlled to turn on, the method for determining whether occlusion occurs can be as described above. However, at this time, the time interval for analyzing the light sensing value will be different from t0. For example, in this case, the time interval for obtaining any light sensing value will be set to 2t0. This time interval for analyzing the light sensing value is a sixth time period, and the analyzed light sensing value is a sixth light sensing value. In other words, when the second time period in this application is t0, the sixth time period in this application can be configured as 2t0.

[0164] Step 4, perform a basic judgment for the time interval of 2t0 according to the above method. If occlusion occurs, correspondingly, the control to keep the infrared LED light source turned off is extended to 2T0.

[0165] As Figure 8 shown, it is a flowchart of a control method for an infrared LED light source provided by an embodiment of this application. The method includes the following steps:

[0166] Step 801, turn on the infrared LED light source.

[0167] Step 802, determine that L11 = L12 = …… L1n, where the acquisition duration of L11’, L12’…L1n’ is t0.

[0168] Step 803, turn off the infrared LED light source.

[0169] Step 804, obtain the light sensing value L, and determine whether the light sensing value L < Lon is satisfied. If it is determined to be yes, execute Step 805; otherwise, execute Step 806.

[0170] Step 805, turn on the infrared LED light source.

[0171] Step 806, keep the infrared LED light source turned off.

[0172] Step 807, obtain the light sensing values L11’, L12’…L1n’, where the acquisition duration of L11’, L12’…L1n’ is 2t0.

[0173] Step 808, perform on / off control of the infrared LED light source according to the light sensing values L11’, L12’…L1n’.

[0174] It should be noted that the method for judging the turning off of the infrared LED light source according to the above time rule is not limited to the method of doubling the duration as above, and can also be alternated. Among them, an example of the alternated method is as follows:

[0175] Method 1, make a judgment according to t0, then make a judgment according to 2t0, and then make a judgment according to t0, and so on.

[0176] Method 2: After making judgments twice consecutively according to t0, make a judgment according to 2t0, and then make judgments twice consecutively according to t0 again, and repeat this process.

[0177] In some embodiments of the present application, controlling the infrared light source to turn on and operate includes: in each cycle opening and closing adjustment stage, controlling the infrared light source to turn on and operate under the first driving current; or, in each cycle opening and closing adjustment stage, controlling the infrared light source to turn on and operate under different set driving currents.

[0178] As in the aforementioned example, after satisfying L11 = L12... L1n, the driving current for driving the infrared LED light source can be kept unchanged, and the infrared LED light source can be regularly turned off and on, that is, control the switching time, such as controlling the time for collecting the light sensing value to become twice the previous time; or, after satisfying L11 = L12... L1n, the driving current of the infrared LED light source can be adjusted, such as increasing the driving current of the infrared LED light source, and the infrared LED light source can be regularly turned off and on, that is, control the switching time, such as controlling the time for collecting the light sensing value to become twice the previous time, or reducing the driving current of the infrared LED light source, and the infrared LED light source can be regularly turned off and on, that is, control the switching time, such as controlling the time for collecting the light sensing value to become twice the previous time.

[0179] In some embodiments of the present application, after sending the turn-off instruction to the infrared light source, the method further includes: sending a turn-off instruction to the camera of the audio-video recorder.

[0180] As Figure 9 shown, it is a schematic diagram of a camera control provided by an embodiment of the present application. Among them, the camera is the camera in the audio-video recorder. When the processor in the audio-video recorder determines that there is a situation where the infrared LED light source needs to be turned off due to occlusion, on the one hand, the processor can send a first control instruction to the infrared LED light source, and the first control instruction is used to control the infrared LED light source to turn off; on the other hand, the processor can also send a second control instruction to the camera, and the second control instruction is used to control the camera to turn off, so as to save the resources of the audio-video recorder.

[0181] Based on the same concept, an embodiment of the present application provides a control device for an infrared light source. As Figure 10 shown, it is a schematic diagram of a control device for an infrared light source provided by an embodiment of the present application. The device includes a light sensing value acquisition unit 1001, a reflection threshold acquisition unit 1002, a judgment unit 1003, and a processing unit 1004;

[0182] The light-sensing value acquisition unit 1001 is configured to, when the infrared light source of the audio-video recorder is in the working state, acquire a first light-sensing value within a first period through the light sensor of the audio-video recorder.

[0183] The reflection threshold acquisition unit 1002 is configured to acquire a first reflection threshold corresponding to a first drive current of the infrared light source in the working state; the first reflection threshold represents the light-sensing value of the infrared light source operating at the first drive current under the condition of satisfying near-distance reflection and having the maximum reflectivity.

[0184] The judgment unit 1003 is configured to determine whether the first light-sensing value is between the turn-on threshold and the first reflection threshold; the turn-on threshold represents the light-sensing value for controlling the turn-on of the infrared light source.

[0185] The processing unit 1004 is configured to, if it is determined that the value is between the turn-on threshold and the first reflection threshold, determine whether to turn off the infrared light source based on the second light-sensing values of a plurality of consecutive second periods; any second period is after the first period.

[0186] Further, for this device, the processing unit 1004 is specifically configured to: if the second light-sensing values are the same, send a turn-off instruction to the infrared light source; if the second light-sensing values are different and each second light-sensing value is greater than the turn-off threshold, send a turn-off instruction to the infrared light source; the turn-off threshold represents the light-sensing value for controlling the turn-off of the infrared light source.

[0187] Further, for this device, the processing unit 1004 is specifically configured to: if the second light-sensing values are the same, enter the drive current adjustment stage; wherein, any drive current adjustment stage is executed in the following manner: control the infrared light source to operate at a second drive current, and acquire a third light-sensing value within a third period through the light sensor; the second drive current is different from the first drive current; if it is determined that the third light-sensing value is between the turn-on threshold and the second reflection threshold, determine whether to turn off the infrared light source based on the fourth light-sensing values of a plurality of consecutive fourth periods; the second reflection threshold represents the light-sensing value of the infrared light source operating at the second drive current under the condition of satisfying near-distance reflection and having the maximum reflectivity; any fourth period is after the third period.

[0188] Further, for this device, each drive current adjustment stage is carried out in a manner that the set drive currents increase or decrease in sequence.

[0189] Further, for the device, the processing unit 1004 is further configured to: enter a cycle opening / closing adjustment phase; wherein, any cycle opening / closing adjustment phase is executed in the following manner: after controlling the infrared light source to be turned off for a set duration, controlling the infrared light source to be turned on and running, and obtaining a fifth light sensing value within a fifth time period through a light sensor; if it is determined that the fifth light sensing value is between the turning-on threshold and the first reflection threshold, determining whether to turn off the light source based on the sixth light sensing values of multiple consecutive sixth time periods; wherein, any sixth time period is longer than any second time period.

[0190] Further, for the device, the processing unit 1004 is specifically configured to: in each cycle opening / closing adjustment phase, control the infrared light source to be turned on and running at the first driving current; or, in each cycle opening / closing adjustment phase, control the infrared light source to be turned on and running at different set driving currents.

[0191] Further, for the device, the processing unit 1004 is further configured to: if it is determined that the first light sensing value is greater than the first reflection threshold, turn off the infrared light source; if it is determined that the first light sensing value is not greater than the turning-on threshold, keep the infrared light source turned on.

[0192] Further, for the device, the processing unit 1004 is further configured to: send a turn-off instruction to the camera of the audio-video recorder.

[0193] The embodiment of the present application further provides a computing device, which may specifically be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), etc. The computing device may include a central processing unit (Center Processing Unit, CPU), a memory, an input / output device, etc. The input device may include a keyboard, a mouse, a touch screen, etc., and the output device may include a display device, such as a liquid crystal display (Liquid Crystal Display, LCD), a cathode ray tube (Cathode Ray Tube, CRT), etc.

[0194] The memory may include a read-only memory (ROM) and a random access memory (RAM), and provide program instructions and data stored in the memory to the processor. In the embodiment of the present application, the memory may be used to store program instructions for controlling the control method of the infrared light source;

[0195] The processor is configured to call the program instructions stored in the memory and execute the control method of the infrared light source according to the obtained program.

[0196] Such as Figure 11As shown in the figure, it is a schematic diagram of a computing device provided by an embodiment of the present application. The computing device includes:

[0197] A processor 1101, a memory 1102, a transceiver 1103, and a bus interface 1104; wherein, the processor 1101, the memory 1102, and the transceiver 1103 are connected through a bus 1105;

[0198] The processor 1101 is configured to read a program in the memory 1102 and execute the above control method for controlling the infrared light source;

[0199] The processor 1101 may be a central processing unit (CPU for short), a network processor (NP for short), or a combination of a CPU and an NP. It may also be a hardware chip. The above hardware chip may be an application-specific integrated circuit (ASIC for short), a programmable logic device (PLD for short), or a combination thereof. The above PLD may be a complex programmable logic device (CPLD for short), a field-programmable gate array (FPGA for short), a generic array logic (GAL for short), or any combination thereof.

[0200] The memory 1102 is used to store one or more executable programs and can store the data used by the processor 1101 when performing operations.

[0201] Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 1102 may include a volatile memory, such as a random-access memory (RAM for short); the memory 1102 may also include a non-volatile memory, such as a flash memory, a hard disk drive (HDD for short), or a solid-state drive (SSD for short); the memory 1102 may also include a combination of the above types of memories.

[0202] The memory 1102 stores the following elements, executable modules, or data structures, or subsets thereof, or extended sets thereof:

[0203] Operation instructions: Include various operation instructions for implementing various operations.

[0204] Operating system: Include various system programs for implementing various basic services and processing hardware-based tasks.

[0205] Bus 1105 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 11 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0206] The bus interface 1104 can be a wired communication access port, a wireless bus interface or a combination thereof. Among them, the wired bus interface can be, for example, an Ethernet interface. The Ethernet interface can be an optical interface, an electrical interface or a combination thereof. The wireless bus interface can be a WLAN interface.

[0207] The embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions for causing a computer to execute a control method of an infrared light source.

[0208] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0209] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these changes and modifications.

Claims

1. A control method for an infrared light source, characterized in that including: When the infrared light source of the audio - video recorder is in the working state, obtaining a first light - sensing value within a first time period through the light sensor of the audio - video recorder; Obtaining a first reflection threshold corresponding to a first drive current of the infrared light source in the working state; the first reflection threshold represents the light - sensing value when the infrared light source operating under the first drive current satisfies near - distance reflection and has the maximum reflectivity; Determining whether the first light - sensing value is between an on - threshold and the first reflection threshold; the on - threshold represents the light - sensing value for controlling the infrared light source to turn on; If it is determined that the value is between the on - threshold and the first reflection threshold, then based on the second light - sensing values of multiple consecutive second time periods, determining whether to turn off the infrared light source; Any one of the second time periods is after the first time period; Among them, the determining whether to turn off the infrared light source based on the second light - sensing values of multiple consecutive second time periods includes: If the second light - sensing values are the same for each, sending a turn - off instruction to the infrared light source; If the second light - sensing values are different for each and each second light - sensing value is greater than a turn - off threshold, sending a turn - off instruction to the infrared light source; the turn - off threshold represents the light - sensing value for controlling the infrared light source to turn off.

2. The method according to claim 1, wherein the determining whether to turn off the infrared light source based on the second light - sensing values of multiple consecutive second time periods includes: If the second light - sensing values are the same for each, entering a drive - current adjustment stage; wherein, any one of the drive - current adjustment stages is executed as follows: Controlling the infrared light source to operate at a second drive current and obtaining a third light - sensing value within a third time period through the light sensor; the second drive current is different from the first drive current; If it is determined that the third light - sensing value is between the on - threshold and a second reflection threshold, then based on the fourth light - sensing values of multiple consecutive fourth time periods, determining whether to turn off the infrared light source; the second reflection threshold represents the light - sensing value when the infrared light source operating under the second drive current satisfies near - distance reflection and has the maximum reflectivity; any one of the fourth time periods is after the third time period; Among them, the determining whether to turn off the infrared light source based on the fourth light - sensing values of multiple consecutive fourth time periods includes: If the fourth light - sensing values are the same for each, sending a turn - off instruction to the infrared light source; If the fourth light - sensing values are different for each and each fourth light - sensing value is greater than the turn - off threshold, sending a turn - off instruction to the infrared light source.

3. The method according to claim 2, wherein each of the drive - current adjustment stages is carried out in a manner that the set drive currents increase or decrease in sequence.

4. The method according to claim 1, wherein after sending the turn - off instruction to the infrared light source, the method further includes: entering a cyclic turn - on / off adjustment stage; wherein, any one of the cyclic turn - on / off adjustment stages is executed as follows: After controlling the infrared light source to be turned off for a set duration, controlling the infrared light source to turn on and operate, and obtaining a fifth light - sensing value within a fifth time period through the light sensor; If it is determined that the fifth light sensing value is between the turning-on threshold and the first reflection threshold, then based on the sixth light sensing values of multiple consecutive sixth time periods, it is determined whether to turn off the infrared light source; wherein, any one of the sixth time periods is longer than any one of the second time periods; Wherein, determining whether to turn off the infrared light source based on the sixth light sensing values of multiple consecutive sixth time periods includes: If the sixth light sensing values are the same, a turn-off instruction is sent to the infrared light source; If the sixth light sensing values are different and all the sixth light sensing values are greater than the turn-off threshold, a turn-off instruction is sent to the infrared light source.

5. The method according to claim 4, wherein Controlling the infrared light source to turn on and operate includes: In each cycle of opening and closing adjustment phase, controlling the infrared light source to turn on and operate under the first driving current; or, In each cycle of opening and closing adjustment phase, controlling the infrared light source to turn on and operate under different set driving currents.

6. The method according to any one of claims 1-5, characterized in that The method further includes: If it is determined that the first light sensing value is greater than the first reflection threshold, the infrared light source is turned off; If it is determined that the first light sensing value is not greater than the turning-on threshold, the infrared light source is kept on.

7. The method according to claim 1, wherein After sending the turn-off instruction to the infrared light source, the method further includes: Sending a turn-off instruction to the camera of the audio-video recorder.

8. An audio-video recorder, characterized in that, The audio-video recorder includes an infrared light source, a light sensor and a processor; The infrared light source is used to open and close according to the control of the processor; The light sensor is used to detect visible light and convert it into a corresponding light sensing value and send it to the processor; the light sensor is arranged in the reflection area where the infrared light source has a short-distance reflection; the short-distance reflection refers to the reflection when the distance between the obstacle and the infrared light source is not greater than the set distance; The processor is configured to execute the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Control method for infrared light-compensating lamp and shooting apparatus

    CN105487321A

  • Palm recognition device and method based on near-infrared LED supplement lamp

    CN107343132A