Image acquisition equipment test method, system and equipment, storage medium and product

By adjusting the test brightness in the image acquisition equipment and analyzing the collected images under different lighting conditions to determine the functional status of the equipment, the problems of low test efficiency and unstable results in the existing technology are solved, and the control of IR-CUT and fill light is realized. Efficient and accurate testing ensures the equipment's adaptability and imaging quality in complex environments.

CN118612408APending Publication Date: 2024-09-06TIANJIN YUGUANG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410684391.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the existing technology, the IR-CUT and fill light test efficiency of image acquisition equipment is low and susceptible to interference from external factors, resulting in unstable test results and difficulty in testing efficiently and accurately.

Method used

By adjusting the test brightness to the first light brightness and the second light brightness, obtain the collected images of the image acquisition device with the infrared sensing function on and off under different lighting conditions, perform image analysis, and determine whether the environmental adaptation function of the device is normal. Including infrared sensing function, filter switching function and fill light on/off function.

Benefits of technology

It improves test efficiency, ensures the reliability of test results, realizes efficient and accurate testing of IR-CUT and fill light in image acquisition equipment, and ensures the adaptability and imaging quality of the equipment in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612408A
    Figure CN118612408A
Patent Text Reader

Abstract

The invention discloses an image acquisition equipment test method, system and equipment, a storage medium and a computer program product, and relates to the technical field of equipment test.The method comprises the steps that test brightness is adjusted to be first illumination brightness or second illumination brightness; when the test brightness is the first illumination brightness, acquiring a first acquisition image when the infrared induction function of the image acquisition equipment is turned on, and acquiring a second acquisition image when the infrared induction function of the image acquisition equipment is turned off; when the test brightness is the second illumination brightness, acquiring a third acquisition image when the infrared induction function of the image acquisition equipment is started; and respectively analyzing the first acquisition image, the second acquisition image and the third acquisition image to obtain an analysis result corresponding to each acquisition image, and determining whether the environment adaptation function of the image acquisition equipment is normal or not according to the analysis results. According to the invention, the IR-CUT and the fill-in light in the image acquisition equipment can be tested efficiently and accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of equipment testing technology, and in particular to an image acquisition equipment testing method, system, equipment, storage medium and computer program product. Background Art

[0002] In the actual application of image acquisition equipment, in order to ensure the imaging quality, the image acquisition equipment is equipped with IR-CUT (dual filter switcher) and fill light. IR-CUT is used to automatically switch filters at different test brightness, and fill light is used to provide auxiliary lighting when the light is insufficient, so as to ensure the clarity and color reproduction of the image captured by the device at different test brightness. Therefore, it is particularly important to test the IR-CUT and fill light of the image acquisition equipment before it leaves the factory.

[0003] At present, manual testing is usually used to test image acquisition devices equipped with IR-CUT and fill light. However, since the test items are complicated and the test is easily interfered by external factors, manual identification and judgment of abnormal situations are required, resulting in low test efficiency, large human operation errors, unstable test results and other problems. It is difficult to test the IR-CUT and fill light in the image acquisition device efficiently and accurately.

[0004] In summary, how to efficiently and accurately test the IR-CUT and fill light in the image acquisition device has become a technical problem that needs to be solved urgently in this field. Summary of the invention

[0005] The main purpose of this application is to provide an image acquisition device testing method, system, device, storage medium and computer program product, aiming to efficiently and accurately test the IR-CUT and fill light in the image acquisition device.

[0006] To achieve the above objectives, the present application proposes a method for testing an image acquisition device, the method comprising:

[0007] Adjust the test brightness to a first light brightness or a second light brightness, wherein the first light brightness is lower than a first preset brightness when the acquisition mode of the image acquisition device is switched from the day mode to the night mode, and the second light brightness is higher than a second preset brightness when the acquisition mode is switched from the night mode to the day mode;

[0008] When the test brightness is the first light brightness, a first captured image is acquired when the infrared sensing function of the image acquisition device is turned on, and a second captured image is acquired when the infrared sensing function of the image acquisition device is turned off;

[0009] When the test brightness is the second light brightness, obtaining a third captured image when the infrared sensing function of the image capture device is turned on;

[0010] Perform image analysis on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and determine whether the environmental adaptation function of the image acquisition device is normal according to the analysis results, wherein the environmental adaptation function includes an infrared sensing function, a filter switching function, a fill light on function, and a fill light off function.

[0011] In one embodiment, image analysis is performed on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and the step of determining whether the environmental adaptation function of the image acquisition device is normal according to the analysis results includes:

[0012] Acquire a first brightness value of each first pixel in the first acquired image;

[0013] Determine the number of first pixels of first target pixels whose first brightness value is greater than a preset brightness threshold value among the first pixels;

[0014] If the first pixel quantity is greater than the preset quantity threshold, it is determined that the infrared sensing function and the fill light turning-on function of the image acquisition device are normal.

[0015] In one embodiment, image analysis is performed on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and the step of determining whether the environmental adaptation function of the image acquisition device is normal according to the analysis results includes:

[0016] Acquire a second brightness value of each second pixel in the second acquired image;

[0017] Determine the number of second pixels of the second target pixel whose second brightness value is greater than a preset brightness threshold value among the second pixels;

[0018] If the second pixel quantity is less than the preset quantity threshold, it is determined that the infrared sensing function and the fill light turning off function of the image acquisition device are normal.

[0019] In one embodiment, image analysis is performed on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and the step of determining whether the environmental adaptation function of the image acquisition device is normal according to the analysis results includes:

[0020] Obtaining a color component value of each third pixel in the third acquired image;

[0021] If the color component value is greater than the preset component threshold, it is determined that the filter switching function of the image acquisition device is normal.

[0022] In one embodiment, after performing image analysis on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and determining whether the environmental adaptation function of the image acquisition device is normal according to the analysis results, the method further includes:

[0023] If it is determined according to the analysis result that the environmental adaptation function of the image acquisition device is abnormal, outputting first recording information for the image acquisition device to record the abnormal information of the image acquisition device;

[0024] If it is determined according to the analysis result that the environmental adaptation function of the image acquisition device is normal, the second recording information for the image acquisition device is output to record the normal information of the image acquisition device.

[0025] In addition, to achieve the above-mentioned purpose, the present application also proposes an image acquisition device test system, which includes: a test box, an image acquisition device and a test host computer, the top of the test box is a color test image, the test box includes an openable and closable shading plate, the test host computer is respectively connected to the test box and the image acquisition device by signal, and the image acquisition device is placed in the test box;

[0026] The test box is used to control the opening and closing of the shading plate according to the brightness adjustment command issued by the test host computer to adjust the test brightness;

[0027] The image acquisition device is used to adjust the fill light, filter and acquisition mode according to the change of the test brightness, and receive the image acquisition instruction sent by the test host computer to perform image acquisition on the color test image;

[0028] The test host computer is used to perform image analysis on the images collected by the image acquisition device, and determine whether the environmental adaptation function of the image acquisition device is normal based on the analysis results.

[0029] In one embodiment, the test host computer is also used for:

[0030] Adjust the test brightness to a first light brightness or a second light brightness, wherein the first light brightness is lower than a first preset brightness when the acquisition mode of the image acquisition device is switched from the day mode to the night mode, and the second light brightness is higher than a second preset brightness when the acquisition mode is switched from the night mode to the day mode;

[0031] When the test brightness is the first light brightness, a first captured image is acquired when the infrared sensing function of the image acquisition device is turned on, and a second captured image is acquired when the infrared sensing function of the image acquisition device is turned off;

[0032] When the test brightness is the second light brightness, obtaining a third captured image when the infrared sensing function of the image capture device is turned on;

[0033] Perform image analysis on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and determine whether the environmental adaptation function of the image acquisition device is normal according to the analysis results, wherein the environmental adaptation function includes an infrared sensing function, a filter switching function, a fill light on function, and a fill light off function.

[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image acquisition device testing method as described above.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the image acquisition device testing method as described above are implemented.

[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the image acquisition device testing method as described above are implemented.

[0037] The present application proposes a method for testing an image acquisition device. The present application first adjusts a test brightness for the image acquisition device, and the test brightness is set to two specific values: a first light brightness and a second light brightness, wherein the first light brightness is lower than a first preset brightness required for the image acquisition device to automatically switch from a day mode to a night mode, and the second light brightness is higher than a second preset brightness required for the image acquisition device to automatically switch from a night mode to a day mode; then, when the test brightness is the first light brightness, a first acquisition image when an infrared sensing function of the image acquisition device is turned on and a second acquisition image when the infrared sensing function of the image acquisition device is turned off are obtained; when the test brightness is the second light brightness, a third acquisition image when the infrared sensing function of the image acquisition device is turned on is obtained; finally, image analysis is performed on the first acquisition image, the second acquisition image and the third acquisition image respectively to obtain analysis results corresponding to each acquisition image, and whether the environmental adaptation function of the image acquisition device is normal is determined according to the analysis results, and the environmental adaptation function includes an infrared sensing function, a filter switching function, a fill light on function and / or a fill light off function.

[0038] In summary, the present application adjusts the infrared sensing function of the image acquisition device under different test brightness, performs image analysis based on the captured images under different environments, and then determines whether the infrared sensing function, filter switching function, and fill light on / off function of the image acquisition device are normal, wherein the infrared sensing function and filter switching function are functions of IR-CUT. In this way, there is no need to manually perform manual tests and test result judgments on multiple items during the test process, which improves the test efficiency while ensuring the reliability of the test results, and achieves the effect of efficiently and accurately testing the IR-CUT and fill light in the image acquisition device, ensuring the adaptability and imaging quality of the image acquisition device in complex environments after leaving the factory. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0041] Figure 1 A flowchart of the first embodiment of the image acquisition device testing method of the present application is provided;

[0042] Figure 2 A schematic diagram of a first captured image provided in Embodiment 1 of the image capture device testing method of the present application;

[0043] Figure 3 A schematic diagram of brightness statistical data of a first captured image provided in Example 1 of the image capture device testing method of the present application;

[0044] Figure 4 A schematic diagram of a second captured image provided in Embodiment 1 of the image capture device testing method of the present application;

[0045] Figure 5 A schematic diagram of brightness statistical data of a second captured image provided in Example 1 of the image capture device testing method of the present application;

[0046] Figure 6 A schematic diagram of a third captured image provided in Embodiment 1 of the image capture device testing method of the present application;

[0047] FIG. 7( a ) is a schematic diagram of the R component of the third captured image provided in the first embodiment of the image capture device testing method of the present application;

[0048] FIG7( b ) is a schematic diagram of the G component of the third captured image provided in the first embodiment of the image capture device testing method of the present application;

[0049] FIG7( c ) is a schematic diagram of the B component of the third captured image provided in the first embodiment of the image capture device testing method of the present application;

[0050] Figure 8 Another schematic diagram of a third captured image provided in Embodiment 1 of the image capture device testing method of the present application;

[0051] FIG9( a ) is a schematic diagram of the R component of another third captured image provided in the first embodiment of the image capture device testing method of the present application;

[0052] FIG9( b ) is a schematic diagram of the G component of another third captured image provided in the first embodiment of the image capture device testing method of the present application;

[0053] FIG9( c ) is a schematic diagram of the B component of another third captured image provided in the first embodiment of the image capture device testing method of the present application;

[0054] Fig.10 This is a schematic diagram of the system structure of the image acquisition device testing system according to an embodiment of the present application;

[0055] Fig.11 A schematic diagram of a color test image provided by the image acquisition device test system of this application;

[0056] Fig.12 A schematic diagram of the image acquisition device test implementation process provided for the image acquisition device test method of this application;

[0057] Fig.13 Schematic diagram of the device structure of the hardware operating environment involved in the image acquisition device testing method in the embodiment of the present application.

[0058] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0059] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0060] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0061] The main solution of the embodiment of the present application is: adjusting the test brightness to a first light brightness or a second light brightness, wherein the first light brightness is lower than a first preset brightness when the acquisition mode of the image acquisition device is switched from day mode to night mode, and the second light brightness is higher than a second preset brightness when the acquisition mode is switched from night mode to day mode; when the test brightness is the first light brightness, obtaining a first acquired image when the infrared sensing function of the image acquisition device is turned on, and obtaining a second acquired image when the infrared sensing function of the image acquisition device is turned off; when the test brightness is the second light brightness, obtaining a third acquired image when the infrared sensing function of the image acquisition device is turned on; performing image analysis on the first acquired image, the second acquired image and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and determining whether the environmental adaptation function of the image acquisition device is normal according to the analysis results, wherein the environmental adaptation function includes an infrared sensing function, a filter switching function, a fill light on function and a fill light off function.

[0062] In the prior art, manual testing is usually used to test image acquisition devices equipped with IR-CUT and fill light. However, since the test items are complicated and the test is easily interfered by external factors, manual identification and judgment of abnormal situations are required, resulting in low test efficiency, large human operation errors, unstable test results and other problems. It is difficult to test the IR-CUT and fill light in the image acquisition device efficiently and accurately.

[0063] The embodiment of the present application provides a solution, which is to adjust the infrared sensing function of the image acquisition device under different test brightness, perform image analysis according to the captured images under different environments, and then judge whether the infrared sensing function, filter switching function and fill light on / off function of the image acquisition device are normal, wherein the infrared sensing function and filter switching function are the functions of IR-CUT. In this way, there is no need to manually perform manual tests and test result judgments on multiple items during the test process, which improves the test efficiency while ensuring the reliability of the test results, and achieves the effect of efficiently and accurately testing the IR-CUT and fill light in the image acquisition device, ensuring the adaptability and imaging quality of the image acquisition device in complex environments after leaving the factory.

[0064] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, etc., or an electronic device capable of realizing the above functions, etc. The following takes the test host computer as an example to illustrate this embodiment and the following embodiments.

[0065] Based on this, the present application embodiment provides an image acquisition device testing method, referring to Figure 1 , Figure 1This is a flow chart of the first embodiment of the image acquisition device testing method of the present application.

[0066] In this embodiment, the image acquisition device testing method includes steps S10 to S40:

[0067] Step S10, adjusting the test brightness to a first light brightness or a second light brightness, wherein the first light brightness is lower than a first preset brightness when the acquisition mode of the image acquisition device is switched from the day mode to the night mode, and the second light brightness is higher than a second preset brightness when the acquisition mode is switched from the night mode to the day mode;

[0068] It should be noted that the image acquisition device is a device equipped with IR-CUT and fill light, which can be specifically the part responsible for image acquisition in video surveillance, cat's eye, smart door lock or smart access control. IR-CUT is an infrared sensing point outside the lens of the image acquisition device (similar to a sensor), which can detect changes in light intensity, and a set of filters is built into the lens group of the device. When the infrared sensing point outside the lens detects changes in light intensity, the built-in IR-CUT automatic switching filter can automatically switch according to the intensity of the external light to achieve the best image effect. In other words, the device can automatically switch filters during the day or at night, so that the best imaging effect can be obtained regardless of whether it is day or night.

[0069] Additionally, it should be noted that the image acquisition device is preset with a first preset brightness for switching the acquisition mode from the day mode to the night mode, and a second preset brightness for switching from the night mode to the day mode.

[0070] In practical applications, when the image acquisition device senses that the external brightness is lower than or equal to the first preset brightness through the IR-CUT, the IR-CUT itself can switch the filter to an infrared cutoff filter to ensure the imaging effect of the image in a low-brightness environment. At the same time, the fill light of the image acquisition device is turned on to provide additional light, and the acquisition mode is synchronously switched to the night mode. In the night mode, the ISP (Image Signal Processor) of the device can optimize the image quality in a low-light environment through image processing algorithms such as noise reduction, contrast enhancement, and sharpening; when the image acquisition device senses that the external brightness is higher than or equal to the second preset brightness through the IR-CUT, the IR-CUT itself can switch the filter to a full-spectrum filter to ensure the color restoration of the image in a high-brightness environment. At the same time, the fill light of the image acquisition device is turned off to prevent the image from being overexposed, and the acquisition mode is synchronously switched to the day mode. In the day mode, the ISP will use color correction, exposure adjustment, white balance, etc. to restore the image with bright colors and rich details to ensure that the image looks natural and real in the day environment. In this embodiment, the specific image processing operations in the day mode and the night mode are not limited.

[0071] During the testing phase of the image acquisition device before leaving the factory, the test brightness of the device is adjusted to a first light brightness lower than a first preset brightness, for testing the working performance of the device in a dark environment; the test brightness of the device is adjusted to a second light brightness higher than a second preset brightness, for testing the working performance of the device in a daytime environment.

[0072] In addition, it should be noted that the adjustment of the test brightness can specifically be to cover the image acquisition device with a pre-customized test box of a fixed transmittance and a suitable size, open the shading plate of the test box to allow external light to enter the box, and the test brightness at this time is adjusted to the second light brightness, and close the shading plate of the test box to isolate the external light, and the test brightness at this time is adjusted to the first light brightness. The test box is preferably a black box. Through the characteristics of the black box (strong light absorption, black background can enhance image contrast, etc.), the light conditions in the black box are relatively stable, which helps to reduce the test errors caused by changes in environmental factors. The transmittance of the test box can be selected according to the external test brightness during the test and the parameters set by the image acquisition device, ensuring that the brightness in the test box is higher than the second preset brightness after the shading plate is opened.

[0073] Step S20, when the test brightness is the first light brightness, obtaining a first captured image when the infrared sensing function of the image acquisition device is turned on, and obtaining a second captured image when the infrared sensing function of the image acquisition device is turned off;

[0074] It should be noted that the infrared sensing function is a function of IR-CUT, which can detect changes in light intensity so that the image acquisition device can automatically adjust the working mode according to the changes in light intensity.

[0075] When the test brightness is the first light brightness, a first captured image is acquired when the image acquisition device turns on the infrared sensing function, and a second captured image is acquired when the image acquisition device turns off the infrared sensing function.

[0076] In addition, it should be noted that, when the image acquisition device works normally, when the test brightness is the first light brightness and the infrared sensing function of the image acquisition device is turned on, the acquisition mode of the image acquisition device will automatically switch to the night mode, the IR-CUT filter will automatically switch to the infrared cutoff filter, and the fill light will automatically turn on. When the test brightness is the first light brightness and the infrared sensing function of the image acquisition device is turned off, the acquisition mode of the image acquisition device defaults to the day mode, the IR-CUT default filter is the full-spectrum filter, and the fill light defaults to the off state.

[0077] Step S30, when the test brightness is the second light brightness, obtaining a third captured image when the infrared sensing function of the image capture device is turned on;

[0078] When the test brightness is the second light brightness, a third captured image is obtained when the image acquisition device is turned on with the infrared sensing function. When the image acquisition device works normally, when the test brightness is the second light brightness and the infrared sensing function of the image acquisition device is turned on, the acquisition mode of the image acquisition device will automatically switch to daytime mode, the IR-CUT filter will automatically switch to a full-spectrum filter, and the fill light will automatically turn off. At this time, the captured image is a color image.

[0079] Step S40, performing image analysis on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and determining whether the environmental adaptation function of the image acquisition device is normal according to the analysis results, wherein the environmental adaptation function includes an infrared sensing function, a filter switching function, a fill light on function, and a fill light off function.

[0080] It should be noted that the environmental adaptation function includes infrared sensing function, filter switching function, fill light on function and fill light off function. Based on this environmental adaptation function, the image acquisition device can work stably in various complex environments, whether it is a dim night environment or a colorful daytime scene, it can ensure the clarity and accuracy of the imaging effect.

[0081] Image analysis is performed on the first acquired image, the second acquired image, and the third acquired image respectively. Specifically, the brightness and / or color of the pixels in each acquired image may be analyzed to obtain analysis results corresponding to each acquired image, and whether the environmental adaptation function of the image acquisition device is normal is determined based on the analysis results.

[0082] In a feasible embodiment, step S40 may include steps a10 to a30:

[0083] Step a10, obtaining a first brightness value of each first pixel in the first collected image;

[0084] The brightness value is a quantitative indicator to measure the brightness of a pixel. After obtaining the first acquired image acquired by the image acquisition device, the test host computer traverses each pixel in the first acquired image (i.e., each first pixel) and records the brightness value of each pixel (i.e., the first brightness value of each first pixel).

[0085] Step a20, determining the number of first pixels of first target pixels whose first brightness values ​​are greater than a preset brightness threshold value in each first pixel;

[0086] Through a pre-set brightness threshold, pixels with brightness values ​​higher than the preset brightness threshold are screened out, and their number, i.e., the first pixel number, is counted, wherein the specific value of the preset brightness threshold can be set according to the specific application scenario or dynamically adjusted according to different requirements, and can also be achieved by setting multiple thresholds or using an adaptive threshold algorithm, which is not specifically limited in this embodiment.

[0087] Step a30: If the number of the first pixels is greater than the preset number threshold, it is determined that the infrared sensing function and the fill light function of the image acquisition device are turned on normally.

[0088] If the number of pixels whose brightness is higher than the preset brightness threshold exceeds the preset number threshold, it is determined that the infrared sensing function and the fill light function of the image acquisition device are normal. The specific value of the preset number threshold can be set according to the specific application scenario or dynamically adjusted according to different needs. It can also be achieved by setting multiple thresholds or using an adaptive threshold algorithm. This is not specifically limited in this embodiment.

[0089] If the number of pixels with brightness higher than the preset brightness threshold does not exceed the preset number threshold, it is determined that the infrared sensing function and / or the fill light function of the image acquisition device are abnormal, and the test host computer will record the abnormal information and output a corresponding prompt.

[0090] For example, in a feasible embodiment, the first acquired image is obtained as follows: Figure 2 As shown in Figure 2, the image collected at this time has most of the pixels that are too bright. The brightness statistics of the image are obtained through image analysis as follows: Figure 3 As shown, it represents the distribution of pixels in the image at various brightness values, wherein the horizontal axis is the brightness value of the pixel point, ranging from 0 to 255, and the vertical axis is the number of pixels. A larger number of pixels indicates that a larger number of pixels are distributed at the corresponding brightness value. When the number of pixels with a brightness value higher than a preset brightness threshold exceeds the preset number threshold, it can be determined that the infrared sensing function and the fill light on function of the image acquisition device are normal.

[0091] In a feasible embodiment, step S40 may further include steps b10 to b30:

[0092] Step b10, obtaining a second brightness value of each second pixel in the second collected image;

[0093] After acquiring the second acquired image acquired by the image acquisition device, the test host computer traverses each pixel (ie, each second pixel) in the second acquired image and records the brightness value of each pixel (ie, each second brightness value of each second pixel).

[0094] Step b20, determining the number of second pixels of the second target pixels whose second brightness values ​​are greater than a preset brightness threshold value among the second pixels;

[0095] Through a pre-set brightness threshold, pixels with brightness values ​​higher than the preset brightness threshold are screened out, and their number, i.e., the second pixel number, is counted, wherein the specific value of the preset brightness threshold can be set according to the specific application scenario or dynamically adjusted according to different requirements, and can also be achieved by setting multiple thresholds or using an adaptive threshold algorithm, which is not specifically limited in this embodiment.

[0096] Step b30: If the second pixel quantity is less than the preset quantity threshold, it is determined that the infrared sensing function and the fill light turning off function of the image acquisition device are normal.

[0097] If the number of pixels whose brightness is higher than the preset brightness threshold is less than the preset number threshold, it is determined that the infrared sensing function and the fill light off function of the image acquisition device are normal. The specific value of the preset number threshold can be set according to the specific application scenario or dynamically adjusted according to different needs. It can also be achieved by setting multiple thresholds or using an adaptive threshold algorithm. This is not specifically limited in this embodiment.

[0098] If the number of pixels whose brightness is higher than the preset brightness threshold exceeds the preset number threshold, it is determined that the infrared sensing function of the image acquisition device is turned off and / or the fill light is turned off abnormally, and the test host computer will record the abnormal information and output a corresponding prompt.

[0099] For example, in a feasible embodiment, the second acquired image is obtained as follows: Figure 4 As shown in Figure 2, the image collected at this time shows that most of the pixels are too dark. The brightness statistics of the image are obtained through image analysis as follows: Figure 5 As shown, it represents the distribution of pixels in the image at various brightness values, wherein the horizontal axis is the brightness value of the pixel point, ranging from 0 to 255, and the vertical axis is the number of pixels. A larger number of pixels indicates that a larger number of pixels are distributed at the corresponding brightness value. When the number of pixels with a brightness value higher than a preset brightness threshold is lower than a preset number threshold, it can be determined that the infrared sensing function and the fill light off function of the image acquisition device are normal.

[0100] In a feasible embodiment, step S40 may further include steps c10 to c20:

[0101] Step c10, obtaining the color component value of each third pixel in the third collected image;

[0102] It should be noted that the acquisition picture corresponding to the third acquisition image is a color picture.

[0103] After acquiring the third acquired image acquired by the image acquisition device, the test host computer traverses each pixel in the third acquired image (i.e., each third pixel) and records the color component value of each pixel, which is preferably the RGB (Red-green-blue) component value of the pixel.

[0104] Step c20: If the color component value is greater than the preset component threshold, it is determined that the filter switching function of the image acquisition device is normal.

[0105] By pre-setting a preset component threshold, it is determined whether there are pixels in the third acquired image whose color component values ​​are higher than the preset component threshold. If there are pixels whose color component values ​​are greater than the preset component threshold, it is determined that the filter switching function of the image acquisition device is normal.

[0106] It should be noted that the calculation of the color component value can be obtained by extracting the RGB component map from the captured image. In the RGB component map, the brightness level of each pixel is from 0 to 255, where 0 represents the darkest (black) and 255 represents the brightest (white). Specifically in the RGB component, the three channels are red (255, 0, 0), green (0, 255, 0), and blue (0, 0, 255).

[0107] For example, in a feasible embodiment, the third acquired image is obtained as follows: Figure 6 As shown, the captured image at this time presents RGB color pixels. Through image analysis, the R component map of the image is shown in Figure 7(a), the G component map is shown in Figure 7(b), and the B component map is shown in Figure 7(c). The white part in the component map indicates that the value of the pixel is 255 in a certain channel or component, and the black part indicates that the value of the pixel is 0 in a certain channel or component. The occupancy of R, G, and B can be obtained through color difference statistics. For example, if the R value minus the G value and the R value minus the B value are both greater than a certain threshold, it can be concluded that the pixel is red. Similarly, if the occupancy of R, G, and B is greater than a certain threshold, it can be considered as a color image, that is, it is determined that the filter switching function of the image acquisition device is normal.

[0108] In another feasible embodiment, the third acquired image is obtained as follows: Figure 8 As shown, the captured image does not show RGB color pixels at this time. The R component map of the image is shown in Figure 9(a), the G component map is shown in Figure 9(b), and the B component map is shown in Figure 9(c) through image analysis. The gray parts of different depths in the component map indicate that the value of the pixel is about 128 in a certain channel or component, and the white part indicates that the value of the pixel is 255 in a certain channel or component. The occupancy of R, G, and B can be obtained through color difference statistics. If the occupancy of R, G, and B is lower than the threshold, it can be considered as a grayscale image, that is, it is determined that the filter switching function of the image acquisition device is abnormal.

[0109] In addition, during the actual testing process, the test host computer can also perform image analysis on the captured images, such as color accuracy, contrast, resolution, etc., to further comprehensively evaluate the performance of the image acquisition device.

[0110] In a feasible embodiment, after step S40, the image acquisition device testing method further includes steps S50 to S60:

[0111] Step S50, if it is determined according to the analysis result that the environmental adaptation function of the image acquisition device is abnormal, outputting first recording information for the image acquisition device to record the abnormal information of the image acquisition device;

[0112] If it is determined based on the analysis results of each captured image that the environmental adaptation function of the image capture device is abnormal, the first record information for the image capture device is output, and the record information includes the device ID of the tested image capture device and the corresponding abnormal result. The abnormal result includes at least one of the following: infrared sensing function on abnormality, infrared sensing function off abnormality, filter switching function abnormality, fill light on function abnormality or fill light off function abnormality. The abnormal result may also be directly prompted as IR-CUT abnormality or fill light abnormality to record the abnormal information of the image capture device. In this embodiment, the form of the output information is not specifically limited.

[0113] Step S60: If it is determined according to the analysis result that the environmental adaptation function of the image acquisition device is normal, the second record information for the image acquisition device is output to record the normal information of the image acquisition device. If it is determined according to the analysis result of each captured image that the environmental adaptation function of the image acquisition device is normal, the second record information for the image acquisition device is output, and the record information includes the device ID (Identity document) of the tested image acquisition device and the corresponding test results. The test results include the infrared sensing function being turned on normally, the infrared sensing function being turned off normally, the filter switching function being normal, the fill light being turned on function being normal, and the fill light being turned off function being normal. The test results may also be directly prompted as IR-CUT being normal and the fill light being normal, so as to record that the image acquisition device has passed the function test before leaving the factory. In this embodiment, the form of the output information is not specifically limited.

[0114] In the embodiment of the present application, the test brightness for the image acquisition device is first adjusted, and the test brightness is set to two specific values: a first light brightness and a second light brightness, wherein the first light brightness is lower than a first preset brightness required for the image acquisition device to automatically switch from day mode to night mode, and the second light brightness is higher than a second preset brightness required for the image acquisition device to automatically switch from night mode to day mode; then, when the test brightness is the first light brightness, a first acquisition image when the infrared sensing function of the image acquisition device is turned on and a second acquisition image when the infrared sensing function of the image acquisition device is turned off are obtained; when the test brightness is the second light brightness, a third acquisition image when the infrared sensing function of the image acquisition device is turned on is obtained; finally, image analysis is performed on the first acquisition image, the second acquisition image and the third acquisition image respectively to obtain analysis results corresponding to each acquisition image, and whether the environmental adaptation function of the image acquisition device is normal is determined according to the analysis results, and the environmental adaptation function includes an infrared sensing function, a filter switching function, a fill light on function and / or a fill light off function.

[0115] In summary, the embodiment of the present application adjusts the infrared sensing function of the image acquisition device under different test brightness, performs image analysis according to the captured images under different environments, and then determines whether the infrared sensing function, filter switching function and fill light on / off function of the image acquisition device are normal, wherein the infrared sensing function and filter switching function are functions of IR-CUT. In this way, there is no need to manually perform manual tests and test result judgments on multiple items during the test process, which improves the test efficiency while ensuring the reliability of the test results, and achieves the effect of efficiently and accurately testing the IR-CUT and fill light in the image acquisition device, ensuring the adaptability and imaging quality of the image acquisition device in complex environments after leaving the factory.

[0116] The present application also provides an image acquisition device testing system. Fig.10 The image acquisition device test system includes: a test box 10, an image acquisition device 20 and a test host computer 30. The top of the test box 10 is a color test image. The test box 10 includes an openable and closable shading plate. The test host computer 30 is respectively connected to the test box 10 and the image acquisition device 20 by signal. The image acquisition device 20 is placed in the test box 10.

[0117] The test box 10 is used to control the opening and closing of the shading plate according to the brightness adjustment instruction issued by the test host computer 30 to adjust the test brightness;

[0118] The image acquisition device 20 is used to adjust the fill light, filter and acquisition mode according to the change of the test brightness, and receive the image acquisition instruction issued by the test host computer 30 to perform image acquisition on the color test image;

[0119] The test host computer 30 is used to perform image analysis on the captured images of the image acquisition device 20 and determine whether the environmental adaptation function of the image acquisition device 20 is normal according to the analysis result.

[0120] It should be noted that the image acquisition device test system includes a test box 10, an image acquisition device 20 and a test host computer 30. The top of the test box 10 is a color test image. Fig.11 As shown, the test box 10 includes an openable and closable shading plate, and the test host computer 30 is respectively connected to the test box 10 and the image acquisition device 20 by signal. The test host computer 30 can automatically close / open the shading plate of the test box 10 according to the feedback information of the acquisition device 20 during the test process. The image acquisition device 20 is placed in the test box 10. The test box 10 is a black box of suitable size with fixed transmittance. When the shading plate of the test box 10 is closed, the image acquisition device 20 cannot receive external light.

[0121] During the test of the image acquisition device 20 , the test box 10 controls the opening and closing of the shading plate according to the brightness adjustment instruction issued by the test host computer to adjust the test brightness.

[0122] The image acquisition device 20 automatically adjusts the fill light, filter and acquisition mode configured in itself according to the change of the test brightness, receives the image acquisition instruction issued by the test host computer 30 to acquire the color test image, and sends the acquired image to the test host computer 30.

[0123] After receiving the start test instruction input by the tester, the test host computer sequentially executes the operations of controlling the opening and closing of the shading plate of the test box 10, controlling the image acquisition device 20 to adjust the working mode, and performing image analysis on the captured image of the image acquisition device 20, and determines whether the environmental adaptation function of the image acquisition device 20 is normal based on the analysis results.

[0124] In a feasible embodiment, the test host computer 30 is also used for:

[0125] Adjust the test brightness to a first light brightness or a second light brightness, wherein the first light brightness is lower than a first preset brightness when the acquisition mode of the image acquisition device 20 is switched from the day mode to the night mode, and the second light brightness is higher than a second preset brightness when the acquisition mode is switched from the night mode to the day mode;

[0126] When the test brightness is the first light brightness, a first captured image is acquired when the infrared sensing function of the image acquisition device 20 is turned on, and a second captured image is acquired when the infrared sensing function of the image acquisition device 20 is turned off;

[0127] When the test brightness is the second light brightness, a third captured image is acquired when the infrared sensing function of the image capture device 20 is turned on;

[0128] Image analysis is performed on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and whether the environmental adaptation function of the image acquisition device 20 is normal is determined according to the analysis results, wherein the environmental adaptation function includes an infrared sensing function, a filter switching function, a fill light on function, and a fill light off function.

[0129] The test host computer 30 is used to adjust the test brightness for the image acquisition device, and the test brightness is set to two specific values: a first light brightness and a second light brightness, wherein the first light brightness is lower than a first preset brightness required for the image acquisition device to automatically switch from day mode to night mode, and the second light brightness is higher than a second preset brightness required for the image acquisition device to automatically switch from night mode to day mode; then, when the test brightness is the first light brightness, a first acquisition image when the infrared sensing function of the image acquisition device is turned on, and a second acquisition image when the infrared sensing function of the image acquisition device is turned off are obtained; when the test brightness is the second light brightness, a third acquisition image when the infrared sensing function of the image acquisition device is turned on is obtained; finally, image analysis is performed on the first acquisition image, the second acquisition image, and the third acquisition image respectively to obtain analysis results corresponding to each acquisition image, and whether the environmental adaptation function of the image acquisition device is normal is determined based on the analysis results, and the environmental adaptation function includes an infrared sensing function, a filter switching function, a fill light on function, and / or a fill light off function.

[0130] The image acquisition device test system provided in the embodiment of the present application adopts the image acquisition device test method in the above embodiment, which can solve the technical problem of how to efficiently and accurately test the IR-CUT and fill light in the image acquisition device. Compared with the prior art, the beneficial effects of the image acquisition device test system provided in the embodiment of the present application are the same as the beneficial effects of the image acquisition device test method provided in the above embodiment, and other technical features in the image acquisition device test system are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0131] For example, to help understand the implementation process of the image acquisition device testing method in this embodiment combined with the above-mentioned embodiment 1, please refer to Fig.12 , Fig.12 A brief flow chart of a method for testing an image acquisition device is provided, specifically:

[0132] After the tester places the image acquisition device in the test box, the test host computer can start the test process and read the device ID of the placed image acquisition device, and then determine whether the shading plate of the test box is closed. If it is determined that the shading plate is not closed, an abnormal prompt is output, the device ID and the corresponding result are recorded in the database and the test is ended. If it is determined that the shading plate is closed, it is determined whether the IR-CUT of the image acquisition device is switched to the night mode, that is, by obtaining the first acquisition image currently acquired by the image acquisition device, by taking the brightness component of each pixel in the acquired image, it is determined whether the proportion of the number of pixels in each pixel that is greater than the brightness threshold is greater than the threshold. If the proportion of the number of pixels is less than or equal to the threshold, the corresponding abnormal prompt is output and the test is ended. If the proportion of the number of pixels is greater than the threshold, the next stage of testing is carried out, the IR-CUT is controlled to be closed, and then it is determined whether the IR-CUT is switched to the day mode, that is, by obtaining the image acquisition device. The second acquired image currently acquired by the image acquisition device is collected, and the brightness component of each pixel in the acquired image is taken to determine whether the proportion of the number of pixels greater than the brightness threshold in each pixel is less than the threshold. If the proportion of the number of pixels is greater than or equal to the threshold, the corresponding abnormal prompt is output and the test is ended. If the proportion of the number of pixels is less than the threshold, the next stage of testing is carried out, the IR-CUT is set to the automatic switching mode and the shading plate of the test box is opened to determine whether the IR-CUT is switched to the daytime mode. If the IR-CUT is not switched to the daytime mode, the corresponding abnormal prompt is output and the test is ended. If the IR-CUT is switched to the daytime mode, the third acquired image currently acquired by the image acquisition device is obtained, and the RGB components of each pixel in the acquired image are taken to determine whether there are pixels whose RGB components all meet the threshold. If not, the corresponding abnormal prompt is output and the test is ended. If so, a prompt indicating that the test is correct is output.

[0133] In addition, in another feasible embodiment, when it is determined that an abnormality occurs in the test, the test host computer can record the corresponding abnormal information and continue with the next stage of test steps until all test steps are completed, then output the abnormal prompt information and end the test.

[0134] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the image acquisition device testing method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0135] An embodiment of the present application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the image acquisition device testing method in the above-mentioned embodiment 1.

[0136] Reference below Fig.13 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic devices in the embodiments of the present application may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.13 The test device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0137] like Fig.13 As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0138] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0139] The electronic device provided in the embodiment of the present application adopts the image acquisition device testing method in the above embodiment, which can solve the technical problem of how to efficiently and accurately test the IR-CUT and fill light in the image acquisition device. Compared with the prior art, the beneficial effects of the electronic device provided in the embodiment of the present application are the same as the beneficial effects of the image acquisition device testing method provided in the above embodiment, and other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0140] It should be understood that the various parts disclosed in the embodiments of the present application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0141] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0142] An embodiment of the present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the image acquisition device testing method in the above-mentioned embodiment.

[0143] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0144] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0145] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: adjusts the test brightness to a first light brightness or a second light brightness, wherein the first light brightness is lower than a first preset brightness when the acquisition mode of the image acquisition device is switched from day mode to night mode, and the second light brightness is higher than a second preset brightness when the acquisition mode is switched from night mode to day mode; when the test brightness is the first light brightness, obtains a first acquisition image when the infrared sensing function of the image acquisition device is turned on, and obtains a second acquisition image when the infrared sensing function of the image acquisition device is turned off; when the test brightness is the second light brightness, obtains a third acquisition image when the infrared sensing function of the image acquisition device is turned on; performs image analysis on the first acquisition image, the second acquisition image, and the third acquisition image respectively to obtain analysis results corresponding to each acquisition image, and determines whether the environmental adaptation function of the image acquisition device is normal according to the analysis results, wherein the environmental adaptation function includes an infrared sensing function, a filter switching function, a fill light on function, and a fill light off function.

[0146] The computer program code for performing the operation of the embodiment of the present application can be written in one or more programming languages ​​or a combination thereof, and the above-mentioned programming languages ​​include object-oriented programming languages, such as Java, Smalltalk, C++, and also include conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).

[0147] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0148] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0149] The readable storage medium provided in the embodiment of the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned image acquisition device testing method, and can solve the technical problem of how to efficiently and accurately test the IR-CUT and fill light in the image acquisition device. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the image acquisition device testing method provided in the above-mentioned embodiment, and will not be described in detail here.

[0150] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned image acquisition device testing method when executed by a processor.

[0151] The computer program product provided in the embodiment of the present application can solve the technical problem of how to efficiently and accurately test the IR-CUT and fill light in the image acquisition device. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiment of the present application are the same as the beneficial effects of the image acquisition device testing method provided in the above embodiment, which will not be repeated here.

[0152] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for testing an image acquisition device, It is characterized in that The method includes: Adjust the test brightness to a first light brightness or a second light brightness, wherein the first light brightness is lower than a first preset brightness when the acquisition mode of the image acquisition device is switched from the day mode to the night mode, and the second light brightness is higher than a second preset brightness when the acquisition mode is switched from the night mode to the day mode; When the test brightness is the first light brightness, obtaining a first captured image when the infrared sensing function of the image acquisition device is turned on, and obtaining a second captured image when the infrared sensing function of the image acquisition device is turned off; When the test brightness is the second light brightness, obtaining a third captured image when the infrared sensing function of the image capture device is turned on; Perform image analysis on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and determine whether the environmental adaptation function of the image acquisition device is normal according to the analysis results, wherein the environmental adaptation function includes the infrared sensing function, the filter switching function, the fill light on function, and the fill light off function.

2. The method according to claim 1, It is characterized in that The steps of respectively performing image analysis on the first acquired image, the second acquired image, and the third acquired image to obtain analysis results corresponding to each acquired image, and determining whether the environmental adaptation function of the image acquisition device is normal according to the analysis results include: Acquire a first brightness value of each first pixel in the first acquired image; Determine the number of first pixels of first target pixels whose first brightness value is greater than a preset brightness threshold value among the first pixels; If the first pixel quantity is greater than a preset quantity threshold, it is determined that the infrared sensing function and the fill light function of the image acquisition device are turned on normally.

3. The method according to claim 1, It is characterized in that The steps of respectively performing image analysis on the first acquired image, the second acquired image, and the third acquired image to obtain analysis results corresponding to each acquired image, and determining whether the environmental adaptation function of the image acquisition device is normal according to the analysis results include: Acquire a second brightness value of each second pixel in the second acquired image; Determine the number of second pixels of the second target pixels whose second brightness value is greater than a preset brightness threshold value in each of the second pixels; If the second pixel quantity is less than a preset quantity threshold, it is determined that the infrared sensing function and the fill light turning off function of the image acquisition device are normal.

4. The method according to claim 1, It is characterized in that The steps of respectively performing image analysis on the first acquired image, the second acquired image, and the third acquired image to obtain analysis results corresponding to each acquired image, and determining whether the environmental adaptation function of the image acquisition device is normal according to the analysis results include: Obtaining a color component value of each third pixel in the third acquired image; If the color component value is greater than a preset component threshold, it is determined that the filter switching function of the image acquisition device is normal.

5. The method according to claim 1, It is characterized in that After the step of performing image analysis on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and determining whether the environmental adaptation function of the image acquisition device is normal according to the analysis results, the method further includes: If it is determined according to the analysis result that the environmental adaptation function of the image acquisition device is abnormal, outputting first recording information for the image acquisition device to record abnormal information of the image acquisition device; If it is determined according to the analysis result that the environmental adaptation function of the image acquisition device is normal, second recording information for the image acquisition device is output to record normal information of the image acquisition device.

6. An image acquisition device testing system, It is characterized in that The system comprises: a test box, an image acquisition device and a test host computer, the top of the test box is a color test image, the test box comprises an openable and closable shading plate, the test host computer is respectively connected to the test box and the image acquisition device by signal, and the image acquisition device is placed in the test box; The test box is used to control the opening and closing of the shading plate according to the brightness adjustment instruction issued by the test host computer to adjust the test brightness; The image acquisition device is used to adjust the fill light, filter and acquisition mode according to the change of the test brightness, and receive the image acquisition instruction issued by the test host computer to perform image acquisition on the color test image; The test host computer is used to perform image analysis on the captured images of the image acquisition device, and determine whether the environmental adaptation function of the image acquisition device is normal according to the analysis result.

7. The system according to claim 6, It is characterized in that The test host computer is also used for: Adjusting the test brightness to a first light brightness or a second light brightness, wherein the first light brightness is lower than a first preset brightness when the acquisition mode of the image acquisition device is switched from the day mode to the night mode, and the second light brightness is higher than a second preset brightness when the acquisition mode is switched from the night mode to the day mode; When the test brightness is the first light brightness, obtaining a first captured image when the infrared sensing function of the image acquisition device is turned on, and obtaining a second captured image when the infrared sensing function of the image acquisition device is turned off; When the test brightness is the second light brightness, obtaining a third captured image when the infrared sensing function of the image capture device is turned on; Perform image analysis on the first acquired image, the second acquired image, and the third acquired image respectively to obtain analysis results corresponding to each acquired image, and determine whether the environmental adaptation function of the image acquisition device is normal according to the analysis results, wherein the environmental adaptation function includes the infrared sensing function, the filter switching function, the fill light on function, and the fill light off function.

8. An electronic device, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image acquisition device testing method according to any one of claims 1 to 5.

9. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the image acquisition device testing method according to any one of claims 1 to 5 are implemented.

10. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the image acquisition device testing method according to any one of claims 1 to 5 are implemented.