Method and apparatus for testing surveillance camera
By adjusting the brightness of the surveillance camera's light source and setting the switching threshold with photosensitivity, combined with image analysis, the problem of fast and stable testing of photosensors, IR-Cut devices, and fill lights is solved, thus improving the testing efficiency and accuracy of surveillance cameras.
Patent Information
- Application Number
- CN202211357721.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-01
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2042-11-01
AI Technical Summary
During the production of surveillance cameras, it is difficult to calibrate photosensors and detect defects in IR-Cut devices and fill lights quickly and stably, resulting in low testing efficiency.
By adjusting the brightness of the standard light source to the first, second, and third brightness levels, the corresponding photosensitivity values are obtained, and the switching threshold is set based on the photosensitivity values. Combined with image analysis, the functions of the IR-Cut device and the fill light are determined to achieve joint testing.
It realizes the calibration of photosensors and the function of quickly and stably detecting IR-Cut devices and fill lights, improving test efficiency and accuracy.
Smart Images

Figure CN115509080B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shooting equipment, and more particularly to a testing method and device for a surveillance camera. Background Art
[0002] Surveillance cameras contain a light-sensitive optical component that measures ambient light intensity. This allows the camera to activate or deactivate the fill light or adjust image parameters based on ambient light levels. Due to variations in light-sensitive components, as well as assembly and design issues, even the same batch of components may respond differently to the same light intensity, necessitating calibration.
[0003] In the production process of a large number of surveillance cameras, how to quickly and stably calibrate the photosensitive devices and detect the defects of IR-Cut devices and fill lights at the same time is a technical problem that needs to be solved urgently. Summary of the Invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method and device for testing a surveillance camera.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] First, a joint test method for the surveillance camera's photosensor, fill light, and IR-Cut device includes:
[0007] The brightness of the standard light source is adjusted sequentially to a first brightness, a second brightness, and a third brightness, wherein the light intensity of the second brightness is greater than the first brightness and less than the light intensity of the third brightness, and the first brightness is the light intensity of the fill light of the corresponding tested camera from the off state to the on state, and the third brightness is the light intensity of the fill light of the corresponding tested camera from the on state to the off state;
[0008] Sequentially acquiring a first light sensitivity value, a second light sensitivity value, and a third light sensitivity value read by the camera under test at a first brightness, a second brightness, and a third brightness, respectively, wherein the light sensor of the camera under test is used to measure external light intensity;
[0009] If the second photosensitivity value is greater than the first photosensitivity value and less than the third photosensitivity value, the first photosensitivity value is used as the first switching threshold for the camera under test to switch from the first mode to the second mode, and the third photosensitivity value is used as the second switching threshold for the camera under test to switch from the second mode to the first mode.
[0010] Its further technical solution is: the first mode is the day mode of the camera under test, and the second mode is the night mode of the camera under test; when the camera under test reads that the photosensitivity value of the photosensitive device is lower than the first switching threshold, the camera under test will switch from the first mode to the second mode; when the camera under test reads that the photosensitivity value of the photosensitive device is higher than the second switching threshold, the camera under test will switch from the second mode to the first mode.
[0011] Its further technical solution is: also includes:
[0012] Turn on the background infrared fill light and the filter function of the IR-Cut device of the camera under test, and obtain the image captured by the camera under test;
[0013] If the image is analyzed to be not overexposed, it is determined that the filtering function of the R-Cut device is normal;
[0014] Turn off the IR-Cut device of the camera under test and obtain the image captured by the camera under test;
[0015] If the captured image is analyzed to be overexposed, it is determined that the switch function of the IR-Cut device is normal.
[0016] Its further technical solution is: also includes:
[0017] Turn off the background infrared fill light and monitor the photosensor of the camera under test;
[0018] Determining whether the current light intensity sensed by the photosensor is lower than a first photosensitivity value;
[0019] If the current light intensity is lower than the first photosensitivity value, check whether the switch of the fill light of the camera under test is automatically turned on;
[0020] If the fill light switch turns on automatically, it is determined that the switch function of the fill light of the tested camera is normal;
[0021] Determine whether the fill light of the camera under test is started normally;
[0022] If it can be started normally, it is determined that the fill light function of the fill light of the tested camera is normal.
[0023] Secondly, the joint test device for the surveillance camera's photosensor, fill light, and IR-Cut device includes:
[0024] an adjustment unit, configured to sequentially adjust the brightness of the standard light source to a first brightness, a second brightness, and a third brightness, wherein the illumination intensity of the second brightness is greater than the first brightness and less than the illumination intensity of the third brightness, and the first brightness is the illumination intensity of the fill light of the corresponding camera under test from an off state to an on state, and the third brightness is the illumination intensity of the fill light of the corresponding camera under test from an on state to an off state;
[0025] an acquisition unit, configured to sequentially acquire a first light sensitivity value, a second light sensitivity value, and a third light sensitivity value respectively read by the camera under test at a first brightness, a second brightness, and a third brightness, wherein the light sensor of the camera under test is configured to measure external light intensity;
[0026] A switching unit is used to use the first light sensitivity value as the first switching threshold for the camera under test to switch from the first mode to the second mode, and to use the third light sensitivity value as the second switching threshold for the camera under test to switch from the second mode to the first mode if the second light sensitivity value is greater than the first light sensitivity value and less than the third light sensitivity value.
[0027] The opening unit is used to turn on the background infrared fill light and the filter function of the IR-Cut device of the camera under test, and obtain the image captured by the camera under test;
[0028] a first determination unit, configured to determine that the light filtering function of the IR-Cut device is normal if the captured image is analyzed to be not overexposed;
[0029] A closing unit, used to turn off the switch of the IR-Cut device of the camera under test and obtain the image captured by the camera under test;
[0030] The second determination unit is configured to determine whether the switch function of the IR-Cut device is normal if the captured image is found to be overexposed after analysis.
[0031] The monitoring unit is used to turn off the background infrared fill light and monitor the photosensor of the camera under test;
[0032] a judging unit, configured to judge whether the current light intensity sensed by the photosensor is lower than a first photosensitivity value;
[0033] a checking unit, configured to check whether a switch of a fill light of the camera under test is automatically turned on if the current light intensity is lower than a first photosensitivity value;
[0034] a third determination unit, configured to determine whether the switch function of the fill light of the camera under test is normal if the switch of the fill light is automatically turned on;
[0035] The second judging unit is used to judge whether the fill light of the camera under test is normally started;
[0036] The fourth determination unit is configured to determine whether the fill light function of the fill light of the camera under test is normal if the fill light can be started normally.
[0037] In a third aspect, a computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a joint testing method for the photosensitive device, fill light, and IR-Cut device of the surveillance camera as described above is implemented.
[0038] In a fourth aspect, a computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the joint testing method of the photosensitive device, fill light and IR-Cut device of the surveillance camera as described above.
[0039] The beneficial effects of the present invention compared with the prior art are as follows: the present invention sequentially adjusts the brightness of the standard light source to a first brightness, a second brightness, and a third brightness, wherein the illumination intensity of the second brightness is greater than the first brightness and less than the illumination intensity of the third brightness, and the first brightness is the illumination intensity of the fill light of the corresponding camera under test from an off state to an on state, and the third brightness is the illumination intensity of the fill light of the corresponding camera under test from an on state to an off state; sequentially obtains the first light sensitivity value, the second light sensitivity value, and the third light sensitivity value read by the camera under test at the first brightness, the second brightness, and the third brightness respectively; if the second light sensitivity value is greater than the first light sensitivity value and less than the third light sensitivity value, then The first photosensitivity value is used as the first switching threshold for the camera under test to switch from the first mode to the second mode, and the third photosensitivity value is used as the second switching threshold for the camera under test to switch from the second mode to the first mode, thereby completing the calibration of the photosensor. Moreover, based on the calibration of the photosensor, the image captured by the camera under test is obtained to determine whether the function and switch of the IR-Cut device are normal, and the light perception result of the photosensor of the camera under test is monitored to determine whether the function and switch of the fill light are normal, thereby realizing the joint test of the photosensitivity, fill light and IR-Cut devices of the surveillance camera, making the test faster and more stable, and improving the test efficiency.
[0040] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 The process of the joint testing method of the photosensitive device, fill light and IR-Cut device of the surveillance camera provided by the specific embodiment of the present invention Figure 1 ;
[0043] Figure 2 The process of the joint testing method of the photosensitive device, fill light and IR-Cut device of the surveillance camera provided by the specific embodiment of the present invention Figure 2 ;
[0044] Figure 3 The process of the joint testing method of the photosensitive device, fill light and IR-Cut device of the surveillance camera provided by the specific embodiment of the present invention Figure 3 ;
[0045] Figure 4 Schematic diagram of a combined test device for a surveillance camera's photosensitive device, fill light, and IR-Cut device provided by a specific embodiment of the present invention. Figure 1 ;
[0046] Figure 5 Schematic diagram of a combined test device for a surveillance camera's photosensitive device, fill light, and IR-Cut device provided by a specific embodiment of the present invention. Figure 2 ;
[0047] Figure 6 Schematic diagram of a combined test device for a surveillance camera's photosensitive device, fill light, and IR-Cut device provided by a specific embodiment of the present invention. Figure 3 ;
[0048] Figure 7 A schematic block diagram of a computer device provided in accordance with a specific embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0050] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0051] It should also be understood that the terms used in the present specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0052] It should be further understood that the term "and / or" used in the present description and appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0053] An embodiment of the present invention provides a joint testing method for a surveillance camera's photosensitive device, fill light, and IR-Cut device. Before testing, a testing device needs to be set up. Specifically, a black box is prepared. There is a standard light source inside the black box. The standard light source can generate light of different standard brightness depending on the connection to the light controller. A bracket is provided at a position opposite to the black box. The bracket has a hole for placing the camera under test. The camera under test and the light controller are both connected to a controller computer. A background infrared fill light is also installed on the bracket.
[0054] like Figure 1 As shown, a joint testing method for a photosensor, a fill light, and an IR-Cut device of a surveillance camera includes the following steps: S10-S30.
[0055] S10. Adjust the brightness of the standard light source to a first brightness, a second brightness, and a third brightness in sequence, wherein the light intensity of the second brightness is greater than the first brightness and less than the light intensity of the third brightness, and the first brightness is the light intensity of the fill light of the corresponding camera under test from the off state to the on state, and the third brightness is the light intensity of the fill light of the corresponding camera under test from the on state to the off state.
[0056] After booting up the computer, powering up the black box lighting controller and light source, the camera under test is placed in the hole opposite the black box and connected to the computer's network. Once the connection is established, the computer first sends a command to the lighting controller to adjust the standard light source's brightness to the first, second, and third levels. The three different brightness levels are required to prevent photosensitive device failures and ensure more stable calibration.
[0057] In this embodiment, the first brightness is a brightness that roughly meets the standard of nighttime light intensity, the third brightness is a brightness that roughly meets the standard of daytime light intensity, and the second brightness is between the first and third brightnesses.
[0058] It should be noted that due to the different photosensitivity parameters of different cameras, for example, when the external light intensity is A, some cameras believe that it is time to turn on the fill light, while when the external light intensity is A, other cameras believe that it is not time to turn on the fill light. Therefore, the first brightness, the third brightness and the light intensity need to be determined in combination with the photosensitivity parameters of the camera being tested.
[0059] S20. Sequentially obtain a first light sensitivity value, a second light sensitivity value, and a third light sensitivity value read by the camera under test at a first brightness, a second brightness, and a third brightness, respectively.
[0060] The computer sends instructions to the camera under test, and the photosensor of the camera under test reads the photosensitivity value under different brightness.
[0061] In this embodiment, the first photosensitivity value is read at a first brightness, the second photosensitivity value is read at a second brightness, and the third photosensitivity value is read at a third brightness.
[0062] S30. If the second photosensitivity value is greater than the first photosensitivity value and less than the third photosensitivity value, the first photosensitivity value is used as the first switching threshold for the camera under test to switch from the first mode to the second mode, and the third photosensitivity value is used as the second switching threshold for the camera under test to switch from the second mode to the first mode.
[0063] The computer program will determine the relationship between the read first, second and third photosensitivity values. If the second photosensitivity value is greater than the first photosensitivity value and less than the third photosensitivity value, the computer program will use the first photosensitivity value as the first switching threshold for the camera under test to switch from the first mode to the second mode, and the third photosensitivity value as the second switching threshold for the camera under test to switch from the second mode to the first mode. At this point, the calibration of the photosensitive device is completed.
[0064] In this embodiment, the first mode is the day mode of the camera under test, and the second mode is the night mode of the camera under test; when the camera under test reads that the photosensor value is lower than the first switching threshold, the camera under test will switch from the first mode to the second mode; when the camera under test reads that the photosensor value is higher than the second switching threshold, the camera under test will switch from the second mode to the first mode, thereby realizing the mode switching of the camera under test according to the photosensitivity value, providing a basis for subsequent IR-Cut device and fill light detection.
[0065] In one embodiment, if Figure 2As shown, a joint testing method for a photosensor, a fill light, and an IR-Cut device of a surveillance camera further includes the following steps: S40-S70.
[0066] S40: Turn on the background infrared fill light, turn on the filter function of the IR-Cut device of the camera under test, and obtain the image captured by the camera under test.
[0067] S50: If it is determined that the captured image is not overexposed, it is determined that the light filtering function of the R-Cut device is normal.
[0068] The captured image can be analyzed to determine whether it is overblown. If it is not overblown, the IR-Cut device's filtering function is effective, and therefore the IR-Cut device's filtering function can be determined to be normal. It should be noted that analyzing captured images for overblown conditions is a conventional technique in the art, and the detailed analysis process will not be detailed here.
[0069] S60: Turn off the switch of the IR-Cut device of the camera under test, and obtain the image captured by the camera under test.
[0070] S70: If the captured image is analyzed to be overexposed, it is determined that the switch function of the IR-Cut device is normal.
[0071] If the captured image appears over-exposure after the IR-Cut device is turned off, it means that the switch function of the IR-Cut device is normal.
[0072] By analyzing the overexposure of the image, it is possible to determine not only whether the filtering function of the IR-Cut device is normal, but also whether the switching function of the IR-Cut device is normal.
[0073] In one embodiment, if Figure 3 As shown, a joint testing method for a photosensor, a fill light, and an IR-Cut device of a surveillance camera further includes the following steps: S80-S130.
[0074] S80. Turn off the background infrared fill light and monitor the photosensor of the camera under test.
[0075] S90: Determine whether the current light intensity sensed by the photosensor is lower than a first photosensitivity value.
[0076] S100: If the current light intensity is lower than the first photosensitivity value, check whether the switch of the fill light of the camera under test is automatically turned on.
[0077] S110: If the switch of the fill light is automatically turned on, it is determined that the switch function of the fill light of the camera under test is normal.
[0078] S120: Determine whether the fill light of the camera under test is started normally.
[0079] S130: If the system can be started normally, it is determined that the fill light function of the fill light of the camera under test is normal.
[0080] In this embodiment, if the current light intensity is lower than the first photosensitivity value, it indicates that the camera under test needs to enter night mode (i.e., the second mode). In night mode, the background infrared fill light needs to be turned on and the IR-Cut device needs to be turned off. It should be noted that the background infrared fill light and the fill light of the camera under test are different components.
[0081] By checking whether the switch of the fill light of the tested camera is automatically turned on, it is determined whether the switch function of the fill light of the tested camera is normal. If the switch is automatically turned on, it means that the switch function of the fill light of the tested camera is normal, otherwise it is abnormal.
[0082] Next, after determining whether the switch function of the fill light of the tested camera is normal, determine whether the fill light is started normally. If it can be started normally, it is determined that the fill light function of the fill light of the tested camera is normal, otherwise it is abnormal.
[0083] The present invention can not only calibrate the photosensitive device, but also complete the test of the IR-Cut device and the fill light after the calibration is completed, thereby realizing joint testing, making the test faster and more stable, and improving the test efficiency.
[0084] Figure 4 A schematic block diagram of a device for jointly testing a photosensitive device, a fill light, and an IR-Cut device of a surveillance camera provided in an embodiment of the present invention; corresponding to the above-mentioned method for jointly testing a photosensitive device, a fill light, and an IR-Cut device of a surveillance camera, an embodiment of the present invention further provides a device 100 for jointly testing a photosensitive device, a fill light, and an IR-Cut device of a surveillance camera.
[0085] like Figure 4 As shown, a joint testing device 100 for a photosensor, a fill light, and an IR-Cut device of a surveillance camera includes an adjusting unit 110 , an acquiring unit 120 , and a switching unit 130 .
[0086] The adjustment unit 110 is used to adjust the brightness of the standard light source to a first brightness, a second brightness, and a third brightness in sequence, wherein the light intensity of the second brightness is greater than the first brightness and less than the light intensity of the third brightness, and the first brightness is the light intensity of the fill light of the corresponding camera under test from the off state to the on state, and the third brightness is the light intensity of the fill light of the corresponding camera under test from the on state to the off state.
[0087] After booting up the computer, powering up the black box lighting controller and light source, the camera under test is placed in the hole opposite the black box and connected to the computer's network. Once the connection is established, the computer first sends a command to the lighting controller to adjust the standard light source's brightness to the first, second, and third levels. The three different brightness levels are required to prevent photosensitive device failures and ensure more stable calibration.
[0088] In this embodiment, the first brightness is a brightness that roughly meets the standard of nighttime light intensity, the third brightness is a brightness that roughly meets the standard of daytime light intensity, and the second brightness is between the first and third brightnesses.
[0089] It should be noted that due to the different photosensitivity parameters of different cameras, for example, when the external light intensity is A, some cameras believe that it is time to turn on the fill light, while when the external light intensity is A, other cameras believe that it is not time to turn on the fill light. Therefore, the first brightness, the third brightness and the light intensity need to be determined in combination with the photosensitivity parameters of the camera being tested.
[0090] The acquisition unit 120 is used to sequentially acquire a first light sensitivity value, a second light sensitivity value, and a third light sensitivity value read by the camera under test at a first brightness, a second brightness, and a third brightness, respectively.
[0091] The computer sends instructions to the camera under test, and the photosensor of the camera under test reads the photosensitivity value under different brightness.
[0092] In this embodiment, the first photosensitivity value is read at a first brightness, the second photosensitivity value is read at a second brightness, and the third photosensitivity value is read at a third brightness.
[0093] The switching unit 130 is used to use the first light sensitivity value as the first switching threshold for the camera under test to switch from the first mode to the second mode if the second light sensitivity value is greater than the first light sensitivity value and less than the third light sensitivity value, and use the third light sensitivity value as the second switching threshold for the camera under test to switch from the second mode to the first mode.
[0094] The computer program will determine the relationship between the read first, second and third photosensitivity values. If the second photosensitivity value is greater than the first photosensitivity value and less than the third photosensitivity value, the computer program will use the first photosensitivity value as the first switching threshold for the camera under test to switch from the first mode to the second mode, and the third photosensitivity value as the second switching threshold for the camera under test to switch from the second mode to the first mode. At this point, the calibration of the photosensitive device is completed.
[0095] In this embodiment, the first mode is the day mode of the camera under test, and the second mode is the night mode of the camera under test; when the camera under test reads that the photosensor value is lower than the first switching threshold, the camera under test will switch from the first mode to the second mode; when the camera under test reads that the photosensor value is higher than the second switching threshold, the camera under test will switch from the second mode to the first mode, thereby realizing the mode switching of the camera under test according to the photosensitivity value, providing a basis for subsequent IR-Cut device and fill light detection.
[0096] In one embodiment, if Figure 5 As shown, the joint testing device 100 for the photosensor, fill light and IR-Cut device of a surveillance camera further includes an opening unit 140 , a first determination unit 150 , a closing unit 160 and a second determination unit 170 .
[0097] The activation unit 140 is used to activate the background infrared fill light, activate the light filtering function of the IR-Cut device of the camera under test, and obtain the image captured by the camera under test.
[0098] The first determination unit 150 is configured to determine that the light filtering function of the IR-Cut device is normal if the captured image is analyzed to be not overexposed.
[0099] The captured image can be analyzed to determine whether it is overblown. If it is not overblown, the IR-Cut device's filtering function is effective, and therefore the IR-Cut device's filtering function can be determined to be normal. It should be noted that analyzing captured images for overblown conditions is a conventional technique in the art, and the detailed analysis process will not be detailed here.
[0100] The closing unit 160 is used to turn off the switch of the IR-Cut device of the camera under test and obtain the image captured by the camera under test.
[0101] The second determination unit 170 is configured to determine whether the switch function of the IR-Cut device is normal if the captured image is found to be overexposed.
[0102] If the captured image appears over-exposure after the IR-Cut device is turned off, it means that the switch function of the IR-Cut device is normal.
[0103] By analyzing the overexposure of the image, it is possible to determine not only whether the filtering function of the IR-Cut device is normal, but also whether the switching function of the IR-Cut device is normal.
[0104] In one embodiment, if Figure 6As shown, the joint testing device 100 for the photosensor, fill light and IR-Cut device of the surveillance camera further includes a monitoring unit 180, a first judgment unit 190, an inspection unit 200, a third judgment unit 210, a second judgment unit and a fourth judgment unit;
[0105] The closing unit 180 is used to turn off the background infrared fill light and monitor the photosensor of the camera under test.
[0106] The first judging unit 190 is configured to judge whether the current light intensity sensed by the photosensor is lower than a first photosensitivity value.
[0107] The checking unit 200 is configured to check whether the switch of the fill light of the camera under test is automatically turned on if the current light intensity is lower than the first photosensitivity value.
[0108] The third determination unit 210 is configured to determine whether the switch function of the fill light of the camera under test is normal if the fill light switch is automatically turned on;
[0109] The second judging unit 220 is used to judge whether the fill light of the camera under test is started normally.
[0110] The fourth determination unit 230 is configured to determine whether the fill light function of the fill light of the camera under test is normal if the fill light can be started normally.
[0111] In this embodiment, if the current light intensity is lower than the first photosensitivity value, it indicates that the camera under test needs to enter night mode (i.e., the second mode). In night mode, the background infrared fill light needs to be turned on and the IR-Cut device needs to be turned off. It should be noted that the background infrared fill light and the fill light of the camera under test are different components.
[0112] By checking whether the switch of the fill light of the tested camera is automatically turned on, it is determined whether the switch function of the fill light of the tested camera is normal. If the switch is automatically turned on, it means that the switch function of the fill light of the tested camera is normal, otherwise it is abnormal.
[0113] Next, after determining whether the switch function of the fill light of the tested camera is normal, determine whether the fill light is started normally. If it can be started normally, it is determined that the fill light function of the fill light of the tested camera is normal, otherwise it is abnormal.
[0114] The combined testing device for the above-mentioned monitoring camera's photosensor, fill light and IR-Cut device can be implemented in the form of a computer program. The computer program can be used in a computer system such as Figure 7 Runs on the computer equipment shown.
[0115] See also Figure 7 , Figure 71 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of multiple servers.
[0116] like Figure 7 As shown, the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the joint testing method for the photosensor, fill light, and IR-Cut device of the surveillance camera described above are implemented.
[0117] The computer device 700 may be a terminal or a server and includes a processor 720 , a memory, and a network interface 750 connected via a system bus 710 , wherein the memory may include a non-volatile storage medium 730 and an internal memory 740 .
[0118] The non-volatile storage medium 730 can store an operating system 731 and a computer program 732. When the computer program 732 is executed, the processor 720 can execute any joint testing method for the photosensor, fill light, and IR-Cut device of a surveillance camera.
[0119] The processor 720 is used to provide computing and control capabilities and support the operation of the entire computer device 700.
[0120] The internal memory 740 provides an environment for the operation of the computer program 732 in the non-volatile storage medium 730. When the computer program 732 is executed by the processor 720, the processor 720 can execute any joint testing method for the photosensor, fill light and IR-Cut device of the surveillance camera.
[0121] The network interface 750 is used for network communication, such as sending assigned tasks, etc. It will be understood by those skilled in the art that Figure 7 The structure shown in the figure is only a block diagram of a portion of the structure related to the solution of the present application and does not constitute a limitation on the computer device 700 to which the solution of the present application is applied. The specific computer device 700 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement. The processor 720 is used to execute the program code stored in the memory to implement the following steps:
[0122] Joint test methods for surveillance camera's photosensors, fill lights, and IR-Cut devices, including:
[0123] The brightness of the standard light source is adjusted sequentially to a first brightness, a second brightness, and a third brightness, wherein the light intensity of the second brightness is greater than the first brightness and less than the light intensity of the third brightness, and the first brightness is the light intensity of the fill light of the corresponding tested camera from the off state to the on state, and the third brightness is the light intensity of the fill light of the corresponding tested camera from the on state to the off state;
[0124] Sequentially obtain a first light sensitivity value, a second light sensitivity value, and a third light sensitivity value read by the camera under test at a first brightness, a second brightness, and a third brightness, respectively;
[0125] If the second photosensitivity value is greater than the first photosensitivity value and less than the third photosensitivity value, the first photosensitivity value is used as the first switching threshold for the camera under test to switch from the first mode to the second mode, and the third photosensitivity value is used as the second switching threshold for the camera under test to switch from the second mode to the first mode.
[0126] In one embodiment: the first mode is the day mode of the camera under test, and the second mode is the night mode of the camera under test; when the camera under test reads that the photosensor value is lower than the first switching threshold, the camera under test will switch from the first mode to the second mode; when the camera under test reads that the photosensor value is higher than the second switching threshold, the camera under test will switch from the second mode to the first mode.
[0127] In one embodiment, further comprising:
[0128] Turn on the background infrared fill light and the filter function of the IR-Cut device of the camera under test, and obtain the image captured by the camera under test;
[0129] If the image is analyzed to be not overexposed, it is determined that the filtering function of the IR-Cut device is normal;
[0130] Turn off the IR-Cut device of the camera under test and obtain the image captured by the camera under test;
[0131] If the captured image is analyzed to be overexposed, it is determined that the switch function of the IR-Cut device is normal.
[0132] In one embodiment, further comprising:
[0133] Turn off the background infrared fill light and monitor the photosensor of the camera under test;
[0134] Determining whether the current light intensity sensed by the photosensor is lower than a first photosensitivity value;
[0135] If the current light intensity is lower than the first photosensitivity value, check whether the switch of the fill light of the camera under test is automatically turned on;
[0136] If the switch of the fill light turns on automatically, it is determined that the switch function of the fill light of the camera under test is normal.
[0137] It should be understood that in the embodiment of the present application, the processor 720 may be a central processing unit (CPU), and the processor 720 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0138] Those skilled in the art will understand that Figure 5 The structure of the computer device 700 shown in the figure does not constitute a limitation to the computer device 700, and the computer device 700 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0139] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for jointly testing a photosensor, a fill light, and an IR-cut device of a surveillance camera disclosed in an embodiment of the present invention.
[0140] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0141] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, or units with the same function may be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0142] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
[0143] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0144] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method 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 magnetic disk, or an optical disk.
[0145] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A joint testing method for the photosensor, fill light and IR-Cut device of a surveillance camera, characterized in that: include; The brightness of the standard light source is adjusted sequentially to a first brightness, a second brightness, and a third brightness, wherein the light intensity of the second brightness is greater than the first brightness and less than the light intensity of the third brightness, and the first brightness is the external light intensity when the fill light of the corresponding tested camera switches from an off state to an on state, and the third brightness is the external light intensity when the fill light of the corresponding tested camera switches from an on state to an off state; Sequentially obtaining a first light sensitivity value, a second light sensitivity value, and a third light sensitivity value read by a photosensitive device of the camera under test at a first brightness, a second brightness, and a third brightness, respectively, wherein the photosensitive device of the camera under test is used to measure external light intensity; If the second photosensitivity value is greater than the first photosensitivity value and less than the third photosensitivity value, the first photosensitivity value is used as the first switching threshold for the camera under test to switch from the first mode to the second mode, and the third photosensitivity value is used as the second switching threshold for the camera under test to switch from the second mode to the first mode; Turn on the background infrared fill light and the filter function of the IR-Cut device of the camera under test, and obtain the image captured by the camera under test; If the image is analyzed to be not overexposed, it is determined that the filtering function of the IR-Cut device is normal; Turn off the IR-Cut device of the camera under test and obtain the image captured by the camera under test; If the captured image is analyzed to be overexposed, it is determined that the switch function of the IR-Cut device is normal; Turn off the background infrared fill light and monitor the photosensor of the camera under test; Determining whether the current light intensity sensed by the photosensor is lower than a first photosensitivity value; If the current light intensity is lower than the first photosensitivity value, check whether the switch of the fill light of the camera under test is automatically turned on; If the fill light switch turns on automatically, it is determined that the switch function of the fill light of the tested camera is normal; Determine whether the fill light of the camera under test is started normally; If it can be started normally, it is determined that the fill light function of the fill light of the tested camera is normal.
2. The combined testing method for the photosensor, fill light and IR-Cut device of a surveillance camera according to claim 1, characterized in that: The first mode is the day mode of the camera under test, and the second mode is the night mode of the camera under test; when the camera under test reads that the photosensitivity value of the photosensitive device is lower than the first switching threshold, the camera under test will switch from the first mode to the second mode; when the camera under test reads that the photosensitivity value of the photosensitive device is higher than the second switching threshold, the camera under test will switch from the second mode to the first mode.
3. A combined testing device for a surveillance camera's photosensitive device, fill light, and IR-Cut device, which, when in operation, executes the combined testing method for a surveillance camera's photosensitive device, fill light, and IR-Cut device according to any one of claims 1 to 2, characterized in that: include; an adjustment unit, configured to sequentially adjust the brightness of the standard light source to a first brightness, a second brightness, and a third brightness, wherein the light intensity of the second brightness is greater than the first brightness and less than the light intensity of the third brightness, and the first brightness is the external light intensity when the fill light of the corresponding camera under test switches from an off state to an on state, and the third brightness is the external light intensity when the fill light of the corresponding camera under test switches from an on state to an off state; an acquisition unit, configured to sequentially acquire a first light sensitivity value, a second light sensitivity value, and a third light sensitivity value respectively read by a photosensitive device of a camera under test at a first brightness, a second brightness, and a third brightness, wherein the photosensitive device of the camera under test is used to measure external light intensity; a switching unit, configured to use the first light sensitivity value as a first switching threshold for switching the camera under test from the first mode to the second mode, and use the third light sensitivity value as a second switching threshold for switching the camera under test from the second mode to the first mode, if the second light sensitivity value is greater than the first light sensitivity value and less than the third light sensitivity value; The opening unit is used to turn on the background infrared fill light and the filter function of the IR-Cut device of the camera under test, and obtain the image captured by the camera under test; a first determination unit, configured to determine that the light filtering function of the IR-Cut device is normal if the captured image is analyzed to be not overexposed; A closing unit, used to turn off the switch of the IR-Cut device of the camera under test and obtain the image captured by the camera under test; The second determination unit is configured to determine whether the switch function of the IR-Cut device is normal if the captured image is found to be overexposed; The monitoring unit is used to turn off the background infrared fill light and monitor the photosensor of the camera under test; a judging unit, configured to judge whether the current light intensity sensed by the photosensor is lower than a first photosensitivity value; a checking unit, configured to check whether a switch of a fill light of the camera under test is automatically turned on if the current light intensity is lower than a first photosensitivity value; a third determination unit, configured to determine whether the switch function of the fill light of the camera under test is normal if the switch of the fill light is automatically turned on; The second judging unit is used to judge whether the fill light of the camera under test is normally started; The fourth determination unit is configured to determine whether the fill light function of the fill light of the camera under test is normal if the fill light can be started normally.
4. A computer device, characterized in that: The device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for jointly testing the photosensor, fill light, and IR-Cut device of a surveillance camera according to any one of claims 1 to 2 is implemented.
5. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the processor executes the joint testing method for the photosensor, fill light and IR-Cut device of a surveillance camera as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Photographing method and device, memory medium and electronic device
CN107635101A
Method and device for calibrating and switching day and night modes of infrared camera
CN109743500A