Infrared filter switching method and device for video multi-frame blanking area and electronic equipment
By detecting the intensity of the ambient light and analyzing the blanking area signal, adjusting the driving circuit mode, so that the current fluctuation during infrared filter switching is in the blanking area, solving the problem of video signal interference when the camera switches infrared filter under different lights, and significantly improving the video image quality.
Patent Information
- Application Number
- CN202510064504.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-05-06
AI Technical Summary
When the camera switches infrared filters at different light intensities, it will cause instantaneous current jitter and ground pressure differential, causing streak interference of the video signal and abnormal picture.
The ambient light intensity is detected through the photosensitive circuit and the analog-to-digital converter, and the light intensity digital signal is determined, and the Internet service provider ISP is used for analysis and processing to determine the field interrupt signal of the blanking area. Based on these signals, the operating mode of the driving circuit is adjusted so that the rising or falling edge of the infrared filter is in the blanking area during switching.
Effectively eliminates the fringe interference to the video signal during infrared filter switching, significantly improves the quality of the video image, and avoids interference to the image by ground pressure differential caused by current fluctuations.
Smart Images

Figure CN119946443A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of camera day and night mode switching, and in particular to an infrared filter switching method, device and electronic equipment in a video multi-frame blanking area. Background Art
[0002] If the camera wants to obtain the best image quality under different light intensities, it needs to switch the filter according to the ambient light intensity. At present, relevant technologies propose that the filter can be turned on by the Internet service provider ISP during the day and turned off by the ISP at night. However, the filter will have a momentary rising edge or falling edge at the moment of switching, and the current of the whole machine will rise or fall at the moment of the filter switching, resulting in a momentary current jitter on the power supply ground of the transmission line. The longer the transmission line and the greater the internal resistance, the greater the ground pressure difference caused by the moment of current jitter. The sudden change of the ground level will cause the analog video signal to be relatively superimposed to generate a sudden signal, causing the analog signal transmission to be distorted, resulting in serious horizontal stripes and abnormal pictures in the transmitted video, giving users a poor video viewing experience. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide an infrared filter switching method, device and electronic equipment in the multi-frame blanking area of a video, which can eliminate the stripe interference to the video signal caused by switching the infrared filter, thereby significantly improving the video image quality.
[0004] In a first aspect, an embodiment of the present invention provides an infrared filter switching method for a blanking area of a multi-frame video. The method is applied to an infrared filter switching system for a blanking area of a multi-frame video. The infrared filter switching system for a blanking area of a multi-frame video includes: a photosensitive circuit, an analog-to-digital converter, a driving circuit, an infrared filter, and an Internet service provider ISP. The method includes: detecting ambient light through a photosensitive circuit and an analog-to-digital converter, determining a light intensity digital signal, and sending the light intensity digital signal to the ISP, wherein the light intensity digital signal is used to represent the light intensity of the ambient light; when the ISP receives the light intensity digital signal, sending an image signal of the camera to the ISP, so that the image signal is analyzed and processed by the ISP to determine a field interrupt signal corresponding to the blanking area of the image frame at the current moment; using the ISP, based on the light intensity digital signal and the field interrupt signal of the blanking area, adjusting the working mode of the driving circuit to switch the on and off states of the infrared filter, and making the rising edge or falling edge generated by the infrared filter during switching within the blanking area.
[0005] In one embodiment, the step of detecting ambient light through a photosensitive circuit and an analog-to-digital converter to determine a light intensity digital signal includes: detecting the intensity of the ambient light through a photosensitive circuit to determine an analog voltage signal corresponding to the light intensity; performing analog-to-digital conversion on the analog voltage signal through an analog-to-digital converter to determine a light intensity digital signal.
[0006] In one embodiment, the photosensitive circuit includes: a photoresistor and a voltage divider circuit. The light intensity of the ambient light is detected by the photosensitive circuit, and the step of determining an analog voltage signal corresponding to the light intensity includes: sensing and processing the light intensity of the ambient light by the photoresistor, and determining the light perception result of the photoresistor, wherein the resistance of the photoresistor is inversely proportional to the light intensity of the ambient light, and when the light intensity increases, the resistance of the photoresistor decreases, and when the light intensity decreases, the resistance of the photoresistor increases; and determining the analog voltage signal according to the light perception result by the voltage divider circuit.
[0007] In one embodiment, the step of performing analog-to-digital conversion processing on an analog voltage signal through an analog-to-digital converter to determine a light intensity digital signal includes: mapping each voltage amplitude in the analog voltage signal to a corresponding digital value through the analog-to-digital converter to convert the continuous value of the analog voltage signal into a discrete value to determine the light intensity digital signal; performing filtering and calibration processing on the light intensity digital signal to determine a target light intensity digital signal.
[0008] In one embodiment, after the ISP receives the light intensity digital signal, it includes: comparing the light intensity digital signal with a preset light intensity threshold, and if the light intensity digital signal is less than the preset light intensity threshold, determining to switch the on / off state of the infrared filter.
[0009] In one embodiment, the step of analyzing and processing the image signal through ISP to determine the field interrupt signal corresponding to the blanking area of the image frame at the current moment includes: obtaining the complete image waveform signal of the image frame at the current moment, and analyzing and processing the complete image waveform signal to determine the normal image and the blanking area, and the field interrupt signal corresponding to the blanking area.
[0010] In one embodiment, the ISP is used to adjust the working mode of the driving circuit based on the light intensity digital signal and the field interrupt signal of the blanking area to switch the on and off state of the infrared filter, and the rising edge or falling edge generated by the infrared filter during switching is placed in the blanking area. The steps include: in the field interrupt signal of the blanking area, the ISP is used to pull up or down the general input output according to the preset control logic of the driving circuit to adjust the working mode of the driving circuit so that the driving circuit switches the on and off state of the infrared filter.
[0011] In a second aspect, an embodiment of the present invention further provides an infrared filter switching device for a video multi-frame blanking area, the device being applied to an infrared filter switching system for a video multi-frame blanking area, the infrared filter switching system for a video multi-frame blanking area comprising: a photosensitive circuit, an analog-to-digital converter, a driving circuit, a filter and an Internet service provider ISP, the device comprising: a light intensity detection module, detecting ambient light through a photosensitive circuit and an analog-to-digital converter, determining a light intensity digital signal, and sending the light intensity digital signal to the ISP, wherein the light intensity digital signal is used to represent the light intensity of the ambient light; an image analysis module, sending an image signal of a camera to the ISP when the ISP receives the light intensity digital signal, so as to analyze and process the image signal through the ISP to determine a field interrupt signal corresponding to the blanking area of the image frame at the current moment; a mode switching module, utilizing the ISP, based on the light intensity digital signal and the field interrupt signal of the blanking area, adjusting the working mode of the driving circuit to switch the on and off states of the infrared filter, and making the rising edge or falling edge generated by the infrared filter during switching within the blanking area.
[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement any one of the methods provided in the first aspect.
[0013] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement any one of the methods provided in the first aspect.
[0014] The embodiments of the present invention bring the following beneficial effects:
[0015] An embodiment of the present invention provides an infrared filter switching method, device and electronic device for a blanking area of a video multi-frame. The method detects ambient light through a photosensitive circuit and an analog-to-digital converter, determines a light intensity digital signal, and sends the light intensity digital signal to an ISP. When the ISP receives the light intensity digital signal, the image signal of the camera is sent to the ISP, so that the image signal is analyzed and processed by the ISP to determine a field interruption signal corresponding to the blanking area of the image frame at the current moment. Finally, the ISP is used to adjust the working mode of the driving circuit based on the light intensity digital signal and the field interruption signal of the blanking area to switch the on and off state of the infrared filter, and the rising edge or falling edge generated by the infrared filter during switching is within the blanking area. The embodiment of the present invention can place the rising edge and falling edge of the infrared filter at the switching moment within the blanking area. Since there is no valid image information required for image display in the blanking area, the ground pressure difference caused by the current of the infrared filter at the switching moment will not interfere with the valid image information, thereby effectively solving the image interference problem caused by the infrared filter switching moment.
[0016] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0017] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A waveform diagram of a video signal when image interference exists provided by an embodiment of the present invention;
[0020] Figure 2 A schematic structural diagram of an infrared filter switching system for a video multi-frame blanking area provided by an embodiment of the present invention;
[0021] Figure 3 A schematic flow chart of a method for switching infrared filters in a multi-frame blanking area of a video provided by an embodiment of the present invention;
[0022] Figure 4A waveform diagram of a video signal provided by an embodiment of the present invention when there is no image interference;
[0023] Figure 5 A schematic structural diagram of an infrared filter switching device for a video multi-frame blanking area provided by an embodiment of the present invention;
[0024] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described in combination with the embodiments below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] At present, if the camera wants to obtain the best image quality under different light intensities, it needs to switch the filter according to the ambient light intensity. The relevant technology proposes that the filter can be turned on by the Internet service provider ISP during the day and turned off by the ISP at night. However, the filter will have a momentary rising edge or falling edge at the moment of switching, and the current of the whole machine will rise or fall at the moment of switching the filter, which will cause a momentary current jitter on the power supply ground of the transmission line. The longer the transmission line and the greater the internal resistance, the greater the ground pressure difference caused by the moment of current jitter. The sudden change of the ground level will cause the analog video signal to be relatively superimposed to generate a sudden signal, causing the analog signal transmission to be distorted, thereby causing the transmitted video to have serious horizontal stripes and abnormal pictures, etc., which will bring poor video viewing to users. See Figure 1The waveform diagram of a video signal when there is image interference is shown. After the ISP recognizes the digital signal transmitted by the ADC (analog-to-digital converter), the ISP immediately pulls up or down the GPIO port of the IR-CUT to switch the infrared filter. The rising edge and falling edge of the IR-CUT filter switching signal overlap with the image effective information signal in the time domain. The rising edge generated at the moment of the fill light and the like also overlaps with the image effective information signal in the time domain. Therefore, the rising edge and falling edge waveforms are just located in the normal waveform to cause horizontal stripe interference. Based on this, the infrared filter switching method for the video multi-frame blanking area provided by the present invention can place the rising edge and falling edge of the infrared filter switching moment in the blanking area. Since there is no effective image information required for image display in the blanking area, the ground pressure difference caused by the current of the infrared filter at the switching moment will not interfere with the effective image information, thereby effectively solving the image interference problem caused by the infrared filter switching moment.
[0027] To facilitate understanding of this embodiment, firstly, a method for switching an infrared filter in a multi-frame blanking area of a video disclosed in an embodiment of the present invention is described in detail. The method is applied to an infrared filter switching system in a multi-frame blanking area of a video. To facilitate understanding of the infrared filter switching system in a multi-frame blanking area of a video, an embodiment of the present invention provides a schematic structural diagram of an infrared filter switching system in a multi-frame blanking area of a video, as shown in FIG. Figure 2 As shown, the infrared filter switching system in the video multi-frame blanking area includes: a photosensitive circuit, an analog-to-digital converter, a driving circuit, an infrared filter, and an Internet service provider ISP. The photosensitive resistor can sense the ambient light intensity to change the photosensitive resistor value, and then output an analog voltage through a voltage divider circuit, which is input to the ADC (analog-to-digital converter). The ADC (analog-to-digital converter) converts the analog signal into a digital signal and transmits it to the ISP. The ISP judges the intensity of the ambient light according to the set threshold. The IR-CUT filter switching is controlled by two GPIOs (i.e., general input and output) in the ISP, and switches to the appropriate mode according to the control signal to complete the switching operation.
[0028] based on Figure 2 The structure diagram of the infrared filter switching system of the video multi-frame blanking area is shown in FIG. 1 , and the infrared filter switching method of the video multi-frame blanking area is described in detail in the embodiment of the present invention. Figure 3 The flowchart of a method for switching an infrared filter in a multi-frame blanking area of a video is shown, and the method mainly includes the following steps S302 to S306:
[0029] Step S302, detecting the ambient light through a photosensitive circuit and an analog-to-digital converter, determining a light intensity digital signal, and sending the light intensity digital signal to the ISP, wherein the light intensity digital signal is used to represent the light intensity of the ambient light, and the photosensitive circuit includes: a photoresistor and a voltage divider circuit. In one embodiment, in the photosensitive circuit, the photoresistor senses the ambient light intensity to change the value of the photoresistor, wherein the photoresistor value is inversely proportional to the light intensity, that is, when the light intensity increases, the resistance of the photoresistor decreases, and when the light intensity decreases, the resistance of the photoresistor increases.
[0030] Step S304, when the ISP receives the light intensity digital signal, the image signal of the camera is sent to the ISP, so that the image signal is analyzed and processed by the ISP to determine the field interruption signal corresponding to the blanking area of the image frame at the current moment, wherein the complete image waveform signal of one image frame includes: a normal image and a blanking area, and the blanking area does not contain valid image information required for image display.
[0031] Step S306, using ISP, based on the light intensity digital signal and the field interruption signal of the blanking area, the working mode of the driving circuit is adjusted to switch the on and off state of the infrared filter, and the rising edge or falling edge generated by the infrared filter during switching is in the blanking area. In one embodiment, the GPIO port (i.e., general input and output port) of the IR-CUT driving circuit can be controlled to be pulled up or down to switch the infrared filter, and the rising edge or falling edge waveform of the switching is perfectly controlled within the blanking area. Therefore, no matter how large the circuit is at the moment of switching, the rising edge or falling edge of the switching will not be superimposed on the normal waveform, thereby not causing the horizontal stripe interference caused by the transmission distortion of the analog video signal. In another embodiment, at the moment when the fill light of the camera is turned on, it is also necessary to identify the field interruption signal of the next frame at the moment when the IR-CUT filter is switched, so that the rising edge of the fill light at the moment of turning on also stays in the blanking area, thereby solving the serious horizontal stripe interference problem caused by the momentary excessive current. It brings a good visual sense to the user.
[0032] The infrared filter switching method in the above-mentioned video multi-frame blanking area provided by the embodiment of the present invention can eliminate the stripe interference to the video signal caused by switching the infrared filter, thereby significantly improving the video image quality.
[0033] The embodiment of the present invention further provides an implementation method of switching an infrared filter, for details, see (1) to (4) below:
[0034] (1) The light intensity of the ambient light is detected by a photosensitive circuit to determine the analog voltage signal corresponding to the light intensity. Specifically, the light intensity of the ambient light can be sensed and processed by a photoresistor to determine the light perception result of the photoresistor, and the analog voltage signal is determined according to the light perception result by a voltage divider circuit. In other words, its working principle is mainly based on the photoacoustic carrier effect, that is, when light irradiates the material surface of the photoresistor, the carriers in the material are excited, resulting in a change in conductivity, thereby changing the resistance value. The voltage divider circuit in the photosensitive circuit outputs different voltage values.
[0035] (2) The analog voltage signal is converted into a digital signal by an analog-to-digital converter to determine the light intensity digital signal. Specifically, the analog-to-digital converter can be used to map each voltage amplitude in the analog voltage signal to a corresponding digital value, so as to convert the continuous value of the analog voltage signal into a discrete value to determine the light intensity digital signal, and filter and calibrate the light intensity digital signal to determine the target light intensity digital signal. That is, the input end of the analog-to-digital converter receives the analog voltage signal from the photoresistor. The analog-to-digital converter first samples the input signal, that is, reads the value of the analog signal within a specific time interval, and then converts the continuous value of the analog signal into a discrete value. In this process, each amplitude of the analog signal is mapped to a digital value, and its accuracy depends on the number of bits of the analog-to-digital converter (such as 8 bits, 10 bits, 12 bits, etc.). Finally, the analog-to-digital converter maps the input analog voltage value to a corresponding digital value according to its resolution and outputs it to the ISP. In addition, after identifying the digital signal transmitted by the ADC, the ISP will perform some basic calculations, filtering or calibration to remove noise and unstable factors, and then a light intensity threshold will be set in the ISP.
[0036] (3) After the ISP receives the light intensity digital signal, it compares the light intensity digital signal with the preset light intensity threshold. If the light intensity digital signal is less than the preset light intensity threshold, it determines whether to switch the on or off state of the infrared filter. In other words, the ISP will make a judgment based on the transmitted digital signal and the set threshold. If it is lower than the set threshold, the ISP will control the pull-up or pull-down of GPIO1 and GPIO2 to control the drive circuit to switch the IR-CUT infrared filter. At the moment of switching, in order to avoid the momentary ground pressure difference caused by the current jitter caused by the instantaneous rising edge or falling edge, which will cause serious horizontal stripe interference to the image (that is, the transmission distortion caused by the superposition of the rising edge on the normal waveform), it is necessary to identify the field interrupt signal in the blanking area of the most recent frame at the moment when the ISP recognizes the digital signal transmitted by the ADC.
[0037] (4) Obtaining a complete image waveform signal of the image frame at the current moment, and analyzing and processing the complete image waveform signal, determining a normal image and a blanking area, and a field interrupt signal corresponding to the blanking area, so that within the field interrupt signal of the blanking area, the ISP pulls up or down the general input output according to the preset control logic of the driving circuit to adjust the working mode of the driving circuit, so that the driving circuit switches the on and off state of the infrared filter. In one embodiment, see Figure 4 The waveform diagram of a video signal when there is no image interference is shown. The complete waveform of each frame of analog video signal (i.e., the complete image waveform signal) contains the effective image information required for normal image display and a small part of the blanking area waveform, as well as the rising edge and falling edge of the IR-CUT filter at the switching moment at the specific position in each frame of the waveform. After the ISP recognizes the digital signal transmitted by the ADC (analog-to-digital converter), it correspondingly identifies the field interrupt signal in the blanking area of the most recent frame of the image, and then controls the GPIO port of the IR-CUT to be pulled high or low to switch the infrared filter, so that the rising edge and the falling edge are in the blanking area, separated from the normal image information waveform, and do not interfere with each other, thereby solving the stripe interference problem caused by the ground pressure difference caused by the current fluctuation caused at the moment of IR_CUT switching on the analog video signal.
[0038] In summary, the present invention can place the rising and falling edge waveforms of the filter in the blanking area at the switching moment, thereby solving the stripe interference of the analog video signal caused by the ground pressure difference caused by current fluctuations, and there is no need to add additional filtering devices such as capacitors, which reduces costs, significantly solves the interference problem, and improves the video image quality.
[0039] For the infrared filter switching method of the video multi-frame blanking area provided in the above embodiment, an embodiment of the present invention provides an infrared filter switching device of the video multi-frame blanking area, which is applied to the infrared filter switching system of the video multi-frame blanking area, see Figure 5 The structure diagram of an infrared filter switching device for a video multi-frame blanking area is shown, and the device includes the following parts:
[0040] The light intensity detection module 502 detects the ambient light through a photosensitive circuit and an analog-to-digital converter, determines a light intensity digital signal, and sends the light intensity digital signal to the ISP, wherein the light intensity digital signal is used to represent the light intensity of the ambient light;
[0041] The image analysis module 504 sends the image signal of the camera to the ISP when the ISP receives the light intensity digital signal, so that the ISP analyzes and processes the image signal to determine the field interruption signal corresponding to the blanking area of the image frame at the current moment;
[0042] The mode switching module 506 uses ISP to adjust the working mode of the driving circuit based on the light intensity digital signal and the field interruption signal of the blanking area to switch the on and off state of the infrared filter and make the rising edge or falling edge generated by the infrared filter during switching within the blanking area.
[0043] The infrared filter switching device for the above-mentioned video multi-frame blanking area provided in the embodiment of the present application can eliminate the stripe interference to the video signal caused by switching the infrared filter, thereby significantly improving the video image quality.
[0044] In one embodiment, when performing the step of detecting ambient light through a photosensitive circuit and an analog-to-digital converter to determine a light intensity digital signal, the light intensity detection module 502 is also used to: detect the intensity of the ambient light through a photosensitive circuit to determine an analog voltage signal corresponding to the light intensity; and perform analog-to-digital conversion on the analog voltage signal through an analog-to-digital converter to determine a light intensity digital signal.
[0045] In one embodiment, the photosensitive circuit includes: a photoresistor and a voltage divider circuit. When detecting the intensity of ambient light through the photosensitive circuit and determining an analog voltage signal corresponding to the light intensity, the light intensity detection module 502 is also used to: sense and process the intensity of ambient light through a photoresistor to determine the light perception result of the photoresistor, wherein the resistance of the photoresistor is inversely proportional to the intensity of ambient light, and when the light intensity increases, the resistance of the photoresistor decreases, and when the light intensity decreases, the resistance of the photoresistor increases; and determine the analog voltage signal according to the light perception result through the voltage divider circuit.
[0046] In one embodiment, when performing analog-to-digital conversion processing on an analog voltage signal through an analog-to-digital converter to determine a light intensity digital signal, the light intensity detection module 502 is also used to: map each voltage amplitude in the analog voltage signal to a corresponding digital value through the analog-to-digital converter to convert the continuous value of the analog voltage signal into a discrete value to determine the light intensity digital signal; perform filtering and calibration processing on the light intensity digital signal to determine the target light intensity digital signal.
[0047] In one embodiment, after the ISP receives the light intensity digital signal, the image analysis module 504 is further used to compare the light intensity digital signal with a preset light intensity threshold. If the light intensity digital signal is less than the preset light intensity threshold, it is determined to switch the on / off state of the infrared filter.
[0048] In one embodiment, when performing the step of analyzing and processing the image signal through the ISP to determine the field interrupt signal corresponding to the blanking area of the image frame at the current moment, the above-mentioned image analysis module 504 is also used to: obtain the complete image waveform signal of the image frame at the current moment, and analyze and process the complete image waveform signal to determine the normal image and the blanking area, and the field interrupt signal corresponding to the blanking area.
[0049] In one embodiment, when using ISP to adjust the working mode of the driving circuit based on the light intensity digital signal and the field interrupt signal of the blanking area to switch the on and off state of the infrared filter and make the rising edge or falling edge generated by the infrared filter during switching within the blanking area, the above-mentioned mode switching module 506 is also used to: within the field interrupt signal in the blanking area, through the ISP according to the preset control logic of the driving circuit, pull up or pull down the general input output to adjust the working mode of the driving circuit so that the driving circuit switches the on and off state of the infrared filter.
[0050] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0051] An embodiment of the present invention provides an electronic device. Specifically, the electronic device includes a processor and a storage device. The storage device stores a computer program, and when the computer program is executed by the processor, it executes the method described in any one of the above-mentioned implementation methods.
[0052] Figure 6 A structural diagram of an electronic device provided in an embodiment of the present invention, the electronic device 100 includes: a processor 60, a memory 61, a bus 62 and a communication interface 63, wherein the processor 60, the communication interface 63 and the memory 61 are connected via the bus 62; the processor 60 is used to execute an executable module stored in the memory 61, such as a computer program.
[0053] The memory 61 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0054] The bus 62 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0055] Among them, the memory 61 is used to store programs, and the processor 60 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 60 or implemented by the processor 60.
[0056] The processor 60 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 60. The above processor 60 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 61, and the processor 60 reads the information in the memory 61 and completes the steps of the above method in combination with its hardware.
[0057] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be referred to the previous method embodiments, which will not be repeated here.
[0058] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, electronic device, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0059] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for switching infrared filters in a multi-frame blanking area of a video, characterized in that: The method is applied to an infrared filter switching system in a video multi-frame blanking area, the infrared filter switching system in the video multi-frame blanking area comprises: a photosensitive circuit, an analog-to-digital converter, a driving circuit, an infrared filter and an Internet service provider ISP, and the method comprises: The ambient light is detected by the photosensitive circuit and the analog-to-digital converter to determine a light intensity digital signal, and the light intensity digital signal is sent to the ISP, wherein the light intensity digital signal is used to represent the light intensity of the ambient light; When the ISP receives the light intensity digital signal, the image signal of the camera is sent to the ISP, so that the ISP analyzes and processes the image signal to determine the field interruption signal corresponding to the blanking area of the image frame at the current moment; Utilizing ISP, the working mode of the driving circuit is adjusted based on the light intensity digital signal and the field interruption signal of the blanking zone to switch the on and off states of the infrared filter and ensure that the rising edge or falling edge generated by the infrared filter during switching is within the blanking zone.
2. The infrared filter switching method for a video multi-frame blanking area according to claim 1, characterized in that: The step of detecting the ambient light through the photosensitive circuit and the analog-to-digital converter to determine the light intensity digital signal includes: The light intensity of the ambient light is detected by the photosensitive circuit to determine an analog voltage signal corresponding to the light intensity; The analog voltage signal is subjected to analog-to-digital conversion processing by the analog-to-digital converter to determine the light intensity digital signal.
3. The infrared filter switching method for a video multi-frame blanking area according to claim 2, characterized in that: The photosensitive circuit includes: a photoresistor and a voltage divider circuit. The step of detecting the light intensity of the ambient light through the photosensitive circuit and determining the analog voltage signal corresponding to the light intensity includes: The light intensity of the ambient light is sensed by the photoresistor to determine the light sensing result of the photoresistor, wherein the resistance of the photoresistor is inversely proportional to the light intensity of the ambient light, and when the light intensity increases, the resistance of the photoresistor decreases, and when the light intensity decreases, the resistance of the photoresistor increases; An analog voltage signal is determined by the voltage divider circuit according to the light sensing result.
4. The infrared filter switching method for a video multi-frame blanking area according to claim 2, characterized in that: The step of performing analog-to-digital conversion processing on the analog voltage signal by the analog-to-digital converter to determine the light intensity digital signal comprises: By means of the analog-to-digital converter, each voltage amplitude in the analog voltage signal is mapped into a corresponding digital value, so as to convert the continuous value of the analog voltage signal into a discrete numerical value, and determine the light intensity digital signal; The light intensity digital signal is filtered and calibrated to determine a target light intensity digital signal.
5. The infrared filter switching method for a video multi-frame blanking area according to claim 1, characterized in that: After the ISP receives the light intensity digital signal, the method includes: The light intensity digital signal is compared with a preset light intensity threshold, and if the light intensity digital signal is less than the preset light intensity threshold, it is determined to switch the on / off state of the infrared filter.
6. The infrared filter switching method of the video multi-frame blanking area according to claim 1, characterized in that: The step of analyzing and processing the image signal through the ISP to determine the field interrupt signal corresponding to the blanking area of the image frame at the current moment includes: A complete image waveform signal of the image frame at the current moment is acquired, and the complete image waveform signal is analyzed and processed to determine a normal image and a blanking area, and the field interruption signal corresponding to the blanking area.
7. The infrared filter switching method of the video multi-frame blanking area according to claim 1, characterized in that: The step of using the ISP to adjust the working mode of the driving circuit based on the light intensity digital signal and the field interruption signal of the blanking area to switch the on and off state of the infrared filter and make the rising edge or falling edge generated by the infrared filter during switching within the blanking area includes: In the field interrupt signal of the blanking area, the ISP pulls up or down the general input output according to the preset control logic of the driving circuit to adjust the working mode of the driving circuit so that the driving circuit switches the on and off state of the infrared filter.
8. An infrared filter switching device for a video multi-frame blanking area, characterized in that: The device is applied to an infrared filter switching system in a video multi-frame blanking area, and the infrared filter switching system in the video multi-frame blanking area includes: a photosensitive circuit, an analog-to-digital converter, a driving circuit, a filter, and an Internet service provider ISP. The device includes: A light intensity detection module detects ambient light through the photosensitive circuit and the analog-to-digital converter, determines a light intensity digital signal, and sends the light intensity digital signal to the ISP, wherein the light intensity digital signal is used to represent the light intensity of the ambient light; An image analysis module, when the ISP receives the light intensity digital signal, sends the image signal of the camera to the ISP, so that the ISP analyzes and processes the image signal to determine the field interruption signal corresponding to the blanking area of the image frame at the current moment; The mode switching module uses ISP to adjust the working mode of the driving circuit based on the light intensity digital signal and the field interruption signal of the blanking area to switch the on and off state of the infrared filter and make the rising edge or falling edge generated by the infrared filter during switching within the blanking area.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the 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-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 7.