Image sensor sensitivity testing method and device
By acquiring the trigger boundary parameter set and test parameters of the image sensor, standard parameters are generated for sensitivity testing, which solves the problem of time-consuming and inaccurate detection in the prior art, and achieves more efficient and accurate sensitivity detection.
Patent Information
- Application Number
- CN202210255560.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-03-15
AI Technical Summary
In the prior art, image sensor sensitivity detection is time-consuming and the detection results are inaccurate.
By obtaining the corresponding target trigger boundary parameter set of the target image sensor when detecting the target object, the target test parameters are determined based on the test results under each alternative parameters, including the target test distance, speed, area, color and frame rate, and standard parameters for movement detection are generated to perform sensitivity testing.
It improves the accuracy and accuracy of the detection results and improves the success rate of the detection.
Smart Images

Figure CN114697642B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image sensors, and particularly to a method and device for testing the sensitivity of an image sensor. Background Art
[0002] Image sensitivity is a necessary detection item for image sensor products and an important indicator for measuring product quality. In related technologies, the sensitivity of an image sensor is mainly detected by subjective testing methods such as visual inspection, which is time-consuming and the detection results are inaccurate. Summary of the Invention
[0003] The present invention provides a method and device for testing the sensitivity of an image sensor to solve the defect that the sensitivity detection of an image sensor in the prior art is time-consuming and the detection results are inaccurate, and improve the accuracy of detection.
[0004] The present invention provides a method for testing the sensitivity of an image sensor, including:
[0005] Obtaining a set of target trigger boundary parameters corresponding to a target image sensor when detecting a target object;
[0006] Determining target test parameters based on the test results of the target image sensor under each alternative parameter in the set of target trigger boundary parameters;
[0007] Testing the sensitivity of the target image sensor based on the target test parameters;
[0008] Wherein, the set of target trigger boundary parameters is a set of the alternative parameters corresponding to the target image sensor when triggering motion detection.
[0009] According to a method for testing the sensitivity of an image sensor provided by the present invention, the target test parameters include at least one of a target test distance, a target test speed, a target test area, a target test color, and a target test frame rate; determining the target test parameters includes:
[0010] Determining the target test distance, the target test speed, and the target test area from the set of target trigger boundary parameters based on the test results of the target image sensor under each alternative parameter in the set of target trigger boundary parameters;
[0011] Determining the target test color based on the target test distance, the target test speed, and the target test area;
[0012] Determining the target test frame rate based on the target test distance, the target test speed, the target test area, and the target test color.
[0013] An image sensor sensitivity testing method provided by the present invention determines a target test distance, a target test speed, and a target test area from a target trigger boundary parameter set based on test results of a target image sensor under each alternative parameter in the target trigger boundary parameter set, including:
[0014] Obtain the maximum first area and the minimum first area of a target object at the target distance when motion detection is triggered, and the maximum first speed and the minimum first speed of the target object at the target distance, when the target image sensor detects the target object located at the target distance within the target trigger boundary parameter set; and
[0015] Obtain the motion detection data of the target object with the target area at the target distance when motion detection is triggered, when the target image sensor detects the target object moving based on the target speed, where the target speed is between the maximum first speed and the minimum first speed, and the target area is between the maximum first area and the minimum first area;
[0016] When the motion detection data is not lower than the target detection threshold, determine the target speed corresponding to the motion detection data as the target test speed, determine the target distance corresponding to the motion detection data as the target test distance, and determine the target area corresponding to the motion detection data as the target test area.
[0017] An image sensor sensitivity testing method provided by the present invention determines a target test color based on the target test distance, the target test speed, and the target test area, including:
[0018] Determine the color value of the target object when motion detection is not triggered as the target test color, when the target image sensor detects the target object with the target test area moving based on the target test speed at the target test distance.
[0019] An image sensor sensitivity testing method provided by the present invention, the target trigger boundary parameter set includes: a target trigger distance, a target trigger area, and a target trigger speed; obtaining the target trigger boundary parameter set corresponding to the target image sensor when detecting the target object, including:
[0020] Determine the minimum distance between the target object and the target image sensor and the maximum distance between the target object and the target image sensor when motion detection is triggered as the target trigger distance, when the target image sensor detects the target object;
[0021] Determine the minimum second area of the target object when the target image sensor triggers motion detection in the case of detecting the target object at the minimum distance; and the maximum second area of the target object when the target image sensor triggers motion detection in the case of detecting the target object at the maximum distance, as the target trigger area.
[0022] Determine the minimum second speed of the target object when the target image sensor triggers motion detection in the case of detecting the target object with the minimum second area at the minimum distance; and the maximum second speed of the target object when the target image sensor triggers motion detection in the case of detecting the target object with the maximum second area at the maximum distance, as the target trigger speed.
[0023] According to an image sensor sensitivity testing method provided by the present invention, based on target test parameters, test the sensitivity of the target image sensor, including:
[0024] Generate standard parameters for motion detection based on the target test parameters;
[0025] Obtain the motion detection information of the target image sensor under the standard parameters of the motion detection;
[0026] Output the motion detection information.
[0027] The present invention also provides an image sensor sensitivity testing device, including:
[0028] A first processing module, configured to obtain a set of target trigger boundary parameters corresponding to the target image sensor when detecting a target object;
[0029] A second processing module, configured to determine target test parameters based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set;
[0030] A third processing module, configured to test the sensitivity of the target image sensor based on the target test parameters;
[0031] Wherein, the set of target trigger boundary parameters is a set of the alternative parameters corresponding to the target image sensor when triggering motion detection.
[0032] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, it implements the image sensor sensitivity testing method as described in any one of the above.
[0033] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the image sensor sensitivity testing method as described in any one of the above.
[0034] The present invention also provides a computer program product, including a computer program which, when executed by a processor, implements the image sensor sensitivity testing method as described in any one of the above.
[0035] The image sensor sensitivity testing method and device provided by the present invention generate target test parameters by integrating influencing factors of multiple dimensions that affect motion detection during sensitivity detection, and perform sensitivity testing based on the target test parameters, so as to improve the accuracy, precision, and detection efficiency of the detection results, thereby being able to improve the success rate of the detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0037] Figure 1 is a schematic flowchart of the image sensor sensitivity testing method provided by the present invention;
[0038] Figure 2 is one of the schematic diagrams of the principle of the image sensor sensitivity testing method provided by the present invention;
[0039] Figure 3 is another schematic diagram of the principle of the image sensor sensitivity testing method provided by the present invention;
[0040] Figure 4 is the third schematic diagram of the principle of the image sensor sensitivity testing method provided by the present invention;
[0041] Figure 5 is a schematic structural diagram of the image sensor sensitivity testing device provided by the present invention;
[0042] Figure 6 is a schematic structural diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0043] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention with reference to the accompanying drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
[0044] The following combinesFigures 1 to 3 Describe the method for testing the sensitivity of the image sensor of the present invention.
[0045] It should be noted that the execution subject of the method for testing the sensitivity of the image sensor can be an image sensor sensitivity testing device, or it can also be a server.
[0046] As Figure 1 shown, the method for testing the sensitivity of the image sensor includes: step 110, step 120, and step 130.
[0047] Step 110: Obtain the target trigger boundary parameter set corresponding to the target image sensor when detecting the target object, where the target trigger boundary parameter set is a set of alternative parameters corresponding to the target image sensor when triggering motion detection;
[0048] In this step, the target image sensor is the image sensor that needs to perform sensitivity detection, for example, it can be a camera or a video device that needs to perform sensitivity detection, etc.
[0049] The target object is the image acquisition object when the target image sensor performs image acquisition during the test. The target object can be any solid-color object, for example, it can be a black or red object, etc.
[0050] It can be understood that during the actual execution process, the target object is moved at a certain motion speed, and the image information corresponding to the target object is collected by the target image sensor at a certain frame rate. The computer calculates and compares according to a certain algorithm to generate a test result. For example, when it is detected that there is a change in the picture (such as when it is detected that the position of the target object in different image frames changes), it is determined that motion detection is triggered; or when it is not detected that there is a change in the picture, it is determined that motion detection is not triggered.
[0051] The target trigger boundary parameter set is a set of all alternative parameters involved when the target image sensor detects the target object and triggers motion detection, including trigger boundary parameters and parameters between the trigger boundary parameters.
[0052] Among them, the alternative parameters are factor values that affect motion detection, including but not limited to: the distance between the target image sensor and the target object, the area of the target object (i.e., the effective area collected by the target image sensor), and the motion speed of the target object, etc.
[0053] During the actual execution process, by adjusting the positional relationship between the target image sensor and the target object, adjusting the motion speed of the target object, and the area size of the target object, etc., a set of alternative parameters when motion detection is triggered each time is recorded, so that multiple sets of alternative parameters can be obtained, that is, the target trigger boundary parameter set.
[0054] Step 120: Determine the target test parameters based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set.
[0055] In this step, the test results are used to characterize the effect of the target image sensor triggering motion detection.
[0056] The target test parameters may include, but are not limited to, parameters of different categories such as target test distance, target test speed, target test area, target test color, target software parameters, and target test frame rate.
[0057] It should be noted that for different categories of target test parameters, the corresponding test results may be different.
[0058] The target test parameters of the first category are the parameter values that can achieve the best motion detection among all parameters of the same category when the target image sensor triggers motion detection, that is, the parameter values that can make the sensitivity detection success rate of the target image sensor reach the maximum value.
[0059] The target test parameters of the second category are the parameter values that cannot trigger motion detection and need to be excluded. After excluding the target test parameters of the second category, by combining the other parameter values of the same category except the target test parameters of the second category with the target test parameters of the first category, the best motion detection can be achieved.
[0060] Among them, achieving the best motion detection is manifested as when the target image sensor acquires the image information corresponding to the target object moving at a certain motion speed at a certain frame rate, the error value of the data output by the computer based on the comparison result of consecutive image frames is less than the target error range, that is, the motion detection data is not lower than the target detection threshold; among them, the target error range and the target detection threshold can be user-defined.
[0061] For example, the target test distance is the distance value between the target image sensor and the target object when achieving the best motion detection.
[0062] The target test speed is the moving speed value of the target object when achieving the best motion detection.
[0063] The target test area is the area size of the target object when achieving the best motion detection.
[0064] The target test color is the color value on the surface of the target object when motion detection cannot be triggered.
[0065] The target software parameters are the software parameters when achieving the best motion detection.
[0066] The target test frame rate is the acquisition frame rate corresponding to the target image sensor under the condition of achieving the best motion detection.
[0067] During the actual execution process, any alternative parameter in the target trigger boundary parameter set can be selected to detect the sensitivity of the target image sensor, and the test results of each time are recorded. A set of alternative parameters corresponding to the test with the best motion detection effect is selected from these test results as the target test distance, target test speed, and target test area in the target test parameters; then, based on the target test distance, target test speed, and target test area, the target test color, target software parameters, and target test frame rate in the target test parameters are determined.
[0068] Step 130: Based on the target test parameters, test the sensitivity of the target image sensor.
[0069] In this step, it should be noted that under the set sensitivity, the target image sensor can trigger an alarm for a picture change only when the picture change frame that can be recognized accounts for the corresponding target threshold.
[0070] During the actual execution process, after obtaining the target test parameters, the standard parameters for motion detection can be determined based on the target test parameters, and multiple tests can be carried out to test the sensitivity of the target image sensor.
[0071] Among them, the standard parameters for motion detection are a set of parameter values corresponding to the case where the success rate of the target image sensor triggering motion detection is the highest.
[0072] In some embodiments, the sensitivity of the target image sensor can also be tested based on different environmental modes.
[0073] For example, in the daytime mode and nighttime mode respectively, the standard parameters for motion detection are determined based on the target test parameters to test the sensitivity of the target image sensor.
[0074] In other embodiments, the sensitivity of the target image sensor can also be tested based on different sensitivity levels.
[0075] For example, in different sensitivity levels such as high, medium, and low respectively, the standard parameters for motion detection are determined using the target test parameters to carry out multiple tests, and the test results are recorded.
[0076] According to the image sensor sensitivity test method provided by the embodiments of the present invention, by integrating the influencing factors of multiple dimensions that affect motion detection during sensitivity detection, target test parameters are generated, and sensitivity tests are carried out based on the target test parameters to improve the accuracy, precision, and detection efficiency of the detection results, thereby being able to improve the success rate of the detection.
[0077] In some embodiments, the target trigger boundary parameter set includes: a target trigger distance, a target trigger area, and a target trigger speed; step 110 may include:
[0078] When the target image sensor detects a target object, determining the minimum distance and the maximum distance between the target object and the target image sensor when the movement detection is triggered as the target trigger distance;
[0079] When the target image sensor detects a target object at the minimum distance, determining the minimum second area of the target object when the movement detection is triggered; and when the target image sensor detects a target object at the maximum distance, determining the maximum second area of the target object when the movement detection is triggered as the target trigger area;
[0080] When the target image sensor detects a target object with the minimum second area at the minimum distance, determining the minimum second speed of the target object when the movement detection is triggered; and when the target image sensor detects a target object with the maximum second area at the maximum distance, determining the maximum second speed of the target object when the movement detection is triggered as the target trigger speed.
[0081] In this embodiment, the target trigger distance is used to characterize the distance interval between the target image sensor and the target object when the target image sensor can trigger the movement detection;
[0082] Among them, the maximum distance is used to characterize the maximum value of the distance between the target image sensor and the target object when the target image sensor can trigger the movement detection; the minimum distance is used to characterize the minimum value of the distance between the target image sensor and the target object when the target image sensor can trigger the movement detection.
[0083] The target trigger area is used to characterize the area size interval of the target object when the target image sensor can trigger the movement detection;
[0084] Among them, the minimum second area is used to characterize the minimum value of the area of the target object (i.e., the minimum value of the effective area) when the target image sensor can trigger the movement detection; the maximum second area is used to characterize the maximum value of the area of the target object (i.e., the maximum value of the effective area) when the target image sensor can trigger the movement detection.
[0085] The target trigger speed is used to characterize the movement speed interval of the target object when the target image sensor can trigger the movement detection;
[0086] Among them, the minimum second speed is used to characterize the minimum value of the moving speed of the target object when the target image sensor can trigger motion detection; the maximum second speed is used to characterize the maximum value of the moving speed of the target object when the target image sensor can trigger motion detection.
[0087] It should be noted that, as Figure 3 shown, the priority of the motion detection sensitivity factors is: frame rate prior to software parameters, software parameters prior to color, color prior to speed, speed prior to area, area prior to distance.
[0088] That is to say, the factor that has the most profound impact on motion detection is the frame rate of the target image sensor, followed by software parameters, the color of the target object, the moving speed of the target object, the lens area of the target object, and the distance between the target object and the target image sensor.
[0089] Software design needs to select a better value according to the performance of different object colors, moving speeds, object lens areas, and object distances for software parameter debugging. If the performance still does not meet the standard after the software parameters are adjusted, it is necessary to consider replacing the target image sensor with a higher frame rate.
[0090] It can be understood that during the test parameter debugging process, it is necessary to determine the distance, area, speed, color, software parameters, and frame rate in sequence, so as to obtain the best test model faster and more accurately.
[0091] The following describes the specific determination methods for the target trigger distance, target trigger area, and target trigger speed.
[0092] I. Determination of the minimum distance
[0093] During the actual execution process, a dark-colored (such as black) target object with a unit area can be moved at a unit speed at a unit distance from the target image sensor, and it is detected whether the target image sensor triggers detection.
[0094] Among them, the unit distance is a sufficiently small distance, and the unit distance can generally be user-defined, such as set to 1 cm or 0.5 cm, etc.; the unit area is a sufficiently small area, and the unit area can be user-defined, such as set to 0.1 cm 2 or 0.5 cm 2 etc.; the unit speed is a sufficiently small speed, and the unit speed can be user-defined, such as set to 0.1 cm / s, etc., and the present invention does not make a limitation.
[0095] It can be understood that during the actual execution process, the determination of the unit distance, unit area, and unit speed can be based on the actual test environment.
[0096] If motion detection can be triggered, continue to reduce the distance between the target object and the target image sensor until detection cannot be triggered, and then record the distance between the target object and the target image sensor at this time;
[0097] If motion detection cannot be triggered, increase the unit speed in steps until detection is triggered, and then record the distance between the target object and the target image sensor at this time;
[0098] If detection still cannot be triggered after increasing the unit speed, increase the area of the target object in steps based on the unit area until detection is triggered, and then record the distance between the target object and the target image sensor at this time;
[0099] If detection still cannot be triggered after increasing the area of the target object, increase the distance between the target object and the target image sensor in steps based on the unit distance until detection is triggered, and then record the current distance between the target object and the target image sensor, and select the minimum distance from the recorded distances.
[0100] II. Determination of the maximum distance
[0101] During the actual execution process, a dark-colored (such as black) target object with a unit area can be moved at a unit speed at a first distance from the target image sensor, and it is detected whether the target image sensor triggers detection.
[0102] Among them, the first distance is a sufficiently far distance, and the first distance can be user-defined, such as set to 2m or 2.05m, etc., and the first distance can also be determined based on the actual test environment.
[0103] If motion detection can be triggered, continue to increase the distance between the target object and the target image sensor until detection cannot be triggered, and then record the distance between the target object and the target image sensor at this time;
[0104] If motion detection cannot be triggered, increase the unit speed in steps until detection is triggered, and then record the distance between the target object and the target image sensor at this time;
[0105] If detection still cannot be triggered after increasing the unit speed, increase the area of the target object in steps based on the unit area until detection is triggered, and then record the distance between the target object and the target image sensor at this time;
[0106] If detection still cannot be triggered after increasing the area of the target object, decrease the distance between the target object and the target image sensor in steps based on the unit distance until detection is triggered, and then record the current distance between the target object and the target image sensor, and select the maximum distance from the recorded distances.
[0107] III. Determination of the minimum second area
[0108] Continue to use a dark-colored (such as black) target object with a unit area to move at a unit speed at the minimum distance from the target image sensor, and detect whether the target image sensor is triggered for detection.
[0109] If detection can be triggered, continue to reduce the area until detection cannot be triggered, and then record the area of the target object at this time;
[0110] If detection cannot be triggered, gradually increase the moving speed of the target object in portions based on the unit speed until detection is triggered, and then record the area of the target object at this time;
[0111] If detection still cannot be triggered after increasing the unit speed, gradually increase the area of the target object in portions based on the unit area until detection is triggered, and then record the area of the target object at this time. Select the smallest area from the recorded areas as the minimum second area.
[0112] IV. Determination of the maximum second area
[0113] Continue to use a dark-colored (such as black) target object with a unit area to move at a unit speed at the maximum distance from the target image sensor, and detect whether the target image sensor is triggered for detection.
[0114] If detection can be triggered, continue to increase the area until detection cannot be triggered, and then record the area of the target object at this time;
[0115] If detection cannot be triggered, gradually increase the speed of the target object in portions based on the unit speed until detection is triggered, and then record the area of the target object at this time;
[0116] If detection still cannot be triggered after increasing the unit speed, gradually reduce the area of the target object in portions based on the unit area until detection is triggered, and then record the area of the target object at this time. Select the largest area from the recorded areas as the maximum second area.
[0117] V. Determination of the minimum second speed
[0118] Continue to use a dark-colored (such as black) target object with a unit area to move at a unit speed at the minimum distance from the target image sensor, and detect whether the target image sensor is triggered for detection.
[0119] If detection can be triggered, continue to reduce the speed until detection cannot be triggered, and then record the speed of the target object at this time;
[0120] If detection cannot be triggered, gradually increase the speed in portions based on the unit speed. When detection is triggered, record the current speed, and select the smallest speed from the recorded speeds as the minimum second speed.
[0121] VI. Determination of the maximum second speed
[0122] Continue to use a dark-colored (e.g., black) target object per unit area to move at a unit speed at the maximum distance from the target image sensor, and detect whether the target image sensor is triggered for detection.
[0123] If detection can be triggered, continue to increase the speed based on the unit speed until detection cannot be triggered, and then record the speed of the target object at this time;
[0124] If detection cannot be triggered, continue to decrease the speed until detection is triggered and record the speed of the target object at this time, and select the maximum speed from the recorded speeds as the maximum second speed.
[0125] In some embodiments, the target test parameters include at least one of: target test distance, target test speed, target test area, target test color, and target test frame rate. Step 120 may include:
[0126] Based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set, determine the target test distance, target test speed, and target test area from the target trigger boundary parameter set;
[0127] Based on the target test distance, target test speed, and target test area, determine the target test color;
[0128] Based on the target test distance, target test speed, target test area, and target test color, determine the target test frame rate.
[0129] In this embodiment, the target test distance is the distance value between the target image sensor and the target object under the condition of achieving the best motion detection;
[0130] The target test speed is the moving speed value of the target object under the condition of achieving the best motion detection;
[0131] The target test area is the area size of the target object under the condition of achieving the best motion detection;
[0132] The target test color is the color value on the surface of the target object under the condition that motion detection cannot be triggered;
[0133] The target test frame rate is the acquisition frame rate corresponding to the target image sensor under the condition of achieving the best motion detection.
[0134] Among them, the best motion detection can be manifested as when the target image sensor acquires the image information corresponding to the target object moving at a certain motion speed at a certain frame rate, the motion detection data output by the computer based on the comparison results of consecutive image frames is not lower than the target detection threshold, where the target detection threshold can be user-defined.
[0135] As shown Figure 2 in the figure, there is a schematic diagram under motion detection, where o is the entire plane where the target image sensor is located, and the frame rate of the target image sensor is Fi;
[0136] Ls is the set from the minimum distance to the maximum distance, where L1 is the minimum distance, L2 is the maximum distance, and Li is any point in Ls. Usually, Ls = [0.5, 5] (unit: meter), that is, L1 ≤ Li ≤ L2;
[0137] P1 is the minimum effective area, and the area of P1 should not be less than the minimum second area. P2 is the maximum effective area, and the area of P2 should not be less than the maximum second area. Pi is the effective area on Li, that is, P1 ≤ Pi ≤ P2; among them, the effective area is determined based on the field of view of the target image sensor, and the straight line formed by the connection line between the center of Pi and the target image sensor is perpendicular to the plane where Pi is located.
[0138] It can be understood that in some other embodiments, Pi may not be set, and only need to ensure that the target object is within the field of view of the target image sensor for testing.
[0139] As shown Figure 4 in the figure, Cs is the color set, which can be divided into light and dark and corresponding common colors. For example, it can include but is not limited to: red, orange, yellow, green, cyan, blue, purple, black, and white; in some embodiments, it can also be refined into RGB255; Ci is any one color in Cs;
[0140] It should be noted that the color values included in Cs may or may not trigger motion detection. During the subsequent execution process, the color values in Cs need to be eliminated based on the target test distance, target test speed, and target test area.
[0141] Ss is the set of the effective areas of the target object, and Si is any one area value among them.
[0142] During the actual test process, a target object with an area of Si can be selected and placed in the plane Pi, and moved with the vector Vi. Usually, Ss = [4, 600] (unit: square centimeter), and Vs = [0.5, 2.5] (unit: meter / second).
[0143] Among them, i is the number of times. During the actual execution process, after determining the target trigger boundary parameter set, the optimal alternative parameter values can be further screened from the target trigger boundary parameter set.
[0144] For example, the optimal Vi can be determined preferentially, and based on the optimal Vi, the optimal Li and Si under this Vi can be determined, so as to obtain the first moving detection success rate function W(Vi, Si, Li), where the optimal Vi is the target test speed, the Si corresponding to the optimal Vi is the target test area, and Li is the target test distance.
[0145] Among them, the output value of the first moving detection success rate function W(Vi, Si, Li) is the first success rate of the sensitivity detection under the action of Vi, Si, and Li.
[0146] The first success rate can be determined based on the number of successful and failed tests on the same set of alternative parameters.
[0147] Then, based on the first moving detection function W(Vi, Si, Li), the performance of Cs under the first moving detection function W(Vi, Si, Li) is detected to eliminate abnormal Ci values. Among them, the abnormal Ci value is the color value of the target object surface when the moving detection cannot be triggered under the first moving detection function W(Vi, Si, Li), and this abnormal Ci value is the target test color.
[0148] Subsequently, Ck will be used to represent any value in the Cs set after eliminating the abnormal Ci. It can be understood that Ck is used to characterize the color value of the target object surface under the condition of achieving the best moving detection.
[0149] Among them, Ck = C(-i), where k is other times except i. After obtaining Ck, based on W(Vi, Si, Li) and Ck, the second moving detection success rate function W(Vi, Si, Li, Ck) can be generated.
[0150] Among them, the output value of the second moving detection success rate function W(Vi, Si, Li, Ck) is the second success rate of the sensitivity detection under the action of Vi, Si, Li, and Ck.
[0151] The determination method of the second success rate is similar to that of the first success rate, which will not be elaborated here.
[0152] Based on W(Vi, Si, Li, Ck), the software parameters are adjusted to optimize the test model.
[0153] It should be noted that in this step, during the actual execution process, the result of W(Vi, Si, Li, Ck) can be compared with the instruction manual or detailed design manual of the target image sensor to compare whether the parameters are consistent.
[0154] In the case of inconsistency, the software parameters are optimized according to the existing performance of W(Vi, Si, Li, Ck).
[0155] For example, for camera A, the product manual corresponding to it states that the detection distance L satisfies 1m ≤ L ≤ 3m. Based on the second moving detection success rate function W(Vi, Si, Li, Ck), it is known that the measured 1m ≤ Li ≤ 2m, and the value range of L is inconsistent with that of Li. Therefore, it is necessary to optimize the software parameters based on the value of Li to update the software parameters.
[0156] In some embodiments, the software parameters can be optimized multiple times, and for each optimized version, obtain the second moving detection success rate function W(Vi, Si, Li, Ck). If the second moving detection success rate function W(Vi, Si, Li, Ck) still cannot be satisfied after multiple optimizations, then it is necessary to adjust the frame rate of the target image sensor and determine the current frame rate Fi as the target test frame rate.
[0157] Thus, obtain the third moving detection success rate function Wi(Vi, Si, Li, Ck, Fi), and perform the sensitivity test in step 130 based on this Wi(Vi, Si, Li, Ck, Fi).
[0158] Among them, the output value of the third moving detection success rate function Wi(Vi, Si, Li, Ck, Fi) is the third success rate of the sensitivity detection under the action of Vi, Si, Li, Ck, and Fi, that is, the final detection success rate.
[0159] The determination method of the third success rate is similar to that of the first success rate, and will not be elaborated here.
[0160] In this embodiment, by debugging the alternative parameters to determine the target test parameters of some categories, and based on the target test parameters of some categories to determine the target test parameters of other categories, a set of parameter values that can maximize the final detection success rate can be obtained as the standard parameters for moving detection, so as to effectively improve the detection success rate in the subsequent sensitivity test process.
[0161] The following uses specific embodiments to illustrate this step.
[0162] In some embodiments, based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set, determining the target test distance, target test speed, and target test area from the target trigger boundary parameter set may include:
[0163] Obtain the maximum first area and minimum first area of the target object at the target distance when triggering moving detection when the target image sensor detects the target object at the target distance within the target trigger boundary parameter set; and the maximum first speed and minimum first speed of the target object at the target distance when triggering moving detection;
[0164] Obtain the motion detection data of the target object at the target distance with the target area when the target image sensor triggers motion detection in the case of detecting a target object moving based on a target speed, where the target speed is between a maximum first speed and a minimum first speed, and the target area is between a maximum first area and a minimum first area;
[0165] When the motion detection data is not lower than the target detection threshold, determine the target speed corresponding to the motion detection data as the target test speed, determine the target distance corresponding to the motion detection data as the target test distance, and determine the target area corresponding to the motion detection data as the target test area.
[0166] In this embodiment, the motion detection data can be expressed as a success rate, and the target detection threshold can be set to a relatively high value.
[0167] The target distance is any distance between the maximum distance and the minimum distance, which can be represented by Li, where i represents the number of times, that is, Li represents the distance between the target object and the target image sensor during the i-th test.
[0168] It can be understood that in the actual execution process, Ls can be divided into multiple distances with the same interval based on the unit distance. During the test, starting from L1, the unit distance is sequentially increased as the current target distance Li until the current target distance Li increases to L2 and then it ends.
[0169] For each Li, all factors should be better than P(i - 1), that is, all factors corresponding to the target object at the current distance detected by the target image sensor are better than the factors of the target object detected by the target image sensor during the previous detection. That is, ensure that the area is slightly larger and the speed is slightly larger each time until motion detection cannot be triggered. Record the minimum and maximum values of the area and speed in each Pi. Among them, the maximum value of the area in each Pi is the maximum first area, the minimum value of the area in each Pi is the minimum first area, the maximum value of the speed in each Pi is the maximum first speed, and the minimum value of the speed in each Pi is the minimum first speed.
[0170] Then perform factor screening. The factor screening is reverse screening. First, it is the speed. Check the performance of each factor combination at each speed to obtain the optimal performance at Vi or Vj, and the corresponding factors are Si, Li or Sj, Lj, so as to obtain the target test speed, target test distance, and target test area. For example, when the performance is optimal at Vi, then determine Vi as the target test speed, determine Si corresponding to Vi as the target test area, and determine Li corresponding to Vi as the target test distance.
[0171] It should be noted that the optimal performance at Vi can be manifested as the detection data output by the target image sensor not being lower than the target detection threshold when the target object moves based on Vi, where the target detection threshold can be user-defined.
[0172] That is, when the target object satisfies Vi, Si, and Li, the detection success rate can reach the maximum value.
[0173] In some embodiments, determining the target test color based on the target test distance, target test speed, and target test area may include:
[0174] Determining the color value of the target object when the target image sensor does not trigger motion detection when detecting the target object in the target test area moving based on the target test speed at the target test distance as the target test color.
[0175] In this embodiment, after determining the target test speed Vi, and the target test distance Li and target test area Si at this Vi, a first motion detection success rate function W(Vi, Si, Li) can be generated.
[0176] Then, based on this first motion detection success rate function W(Vi, Si, Li), detect the performance of Cs under the first motion detection success rate function W(Vi, Si, Li) to eliminate abnormal Ci values, and then use Ck to represent any value in the set of Cs after eliminating Ci.
[0177] Among them, the abnormal Ci refers to the case where, at a certain C value, the value of W(Vi, Si, Li) is the lowest or even zero, and then i is used to record and exclude it. Use W(Vi, Si, Li) to detect the performance of Cs to obtain which Ci cannot trigger detection or is not easy to detect, record the abnormal Ci, and use C(-i) to represent the other color values after eliminating the abnormal Ci values, where C(-i)=Ck.
[0178] In some embodiments, step 130 may include:
[0179] Generate standard parameters for motion detection based on the target test parameters;
[0180] Obtain the motion detection information of the target image sensor under the standard parameters of motion detection;
[0181] Output the motion detection information.
[0182] In this embodiment, the motion detection information is used to characterize whether the target image sensor triggers motion detection under the standard parameters of motion detection.
[0183] The standard parameters for motion detection are a set of parameter values corresponding to the case where the success rate of triggering motion detection by the target image sensor is the highest.
[0184] It should be noted that the standard parameters for motion detection include at least one of the target test distance, target test speed, target test area, target software parameters, and target test frame rate, and the standard parameters for motion detection do not include the target test color.
[0185] That is, the standard parameters for motion detection can be determined from the target test distance, target test speed, target test area, target software parameters, target test frame rate, and any other color values excluding the target test color.
[0186] In the actual execution process, the third motion detection success rate function Wi(Vi, Si, Li, Ck, Fi) can be used to perform N tests, and record whether the result of each test triggers motion detection. Where N is a positive integer, and the specific value of N can be user-defined.
[0187] Then, count the test records of each time, output the motion detection information, and generate and output a sensitivity test report that can represent the performance of the target image sensor based on the motion detection information of each time.
[0188] It should be noted that the success rate of the third motion detection success rate function Wi(Vi, Si, Li, Ck, Fi) in this embodiment is the success rate of each combination individually. Each parameter value is determined based on the initial state whether the initial value needs to be slightly increased or slightly decreased. Only one variable can be changed at a time. For each adjustment, the test of this combination needs to be carried out.
[0189] For example, when Vi changes to Vj, the combination is tested 100 times and succeeds 60 times. Then the maximum value of the third success rate corresponding to the current Wi(Vj, Si, Li, Ck, Fi) is 60%. Then record Vj. In the subsequent combinations, continue to use Vj for testing, that is, keep the value corresponding to Vj unchanged and change other values for testing; if detection cannot be triggered after Cs changes to the i value (for example, detection cannot be triggered after C changes to yellow), that is, (Vj, Si, Li, Ci, Fi) is 0, then any value Ck in the Cs set after excluding Ci is used to combine with other factors in the subsequent. That is, Ci (that is, the yellow value) needs to be excluded in the subsequent, and continue to use Wi(Vj, Si, Li, Ck, Fi) for testing to find the combination where the third success rate corresponding to Wi(Vj, Si, Li, Ck, Fi) is close to 100%, such as the combination where the third success rate exceeds 99%, and determine this combination for the special motion detection test.
[0190] For example, the sensitivity of the target image sensor can be tested in the daytime mode and the nighttime mode respectively. Among them, in the daytime mode, the sensitivity is sequentially selected at high, medium, and low levels, and Wi (Vi, Si, Li, Ck, Fi) is used to perform N tests, and whether the result of each test triggers motion detection is recorded.
[0191] In the nighttime mode, the sensitivity is sequentially selected at high, medium, and low levels, and Wi (Vi, Si, Li, Ck, Fi) is used to perform N tests, and whether the result of each test triggers motion detection is recorded.
[0192] Then, each test record is statistically analyzed, and a sensitivity test report representing the product performance is output.
[0193] According to the image sensor sensitivity test method provided by the embodiment of the present invention, by integrating the influencing factors of multiple dimensions that affect motion detection during sensitivity detection, target test parameters are generated, and standard parameters for motion detection are generated based on the target test parameters. The sensitivity is tested under the standard parameters for motion detection to improve the accuracy and precision of the detection results, thereby improving the success rate of the detection.
[0194] The image sensor sensitivity test device provided by the present invention will be described below. The image sensor sensitivity test device described below can be correspondingly referred to the image sensor sensitivity test method described above.
[0195] As Figure 5 shown, the image sensor sensitivity test device includes: a first processing module 510, a second processing module 520, and a third processing module 530.
[0196] The first processing module 510 is configured to obtain a set of target trigger boundary parameters corresponding to the target image sensor when detecting a target object;
[0197] The second processing module 520 is configured to determine target test parameters based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set;
[0198] The third processing module 530 is configured to test the sensitivity of the target image sensor based on the target test parameters;
[0199] Among them, the set of target trigger boundary parameters is a set of alternative parameters corresponding to the target image sensor when triggering motion detection.
[0200] In some embodiments, the target test parameters include at least one of: a target test distance, a target test speed, a target test area, a target test color, and a target test frame rate; the second processing module 520 may further be configured to:
[0201] Based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set, determine the target test distance, the target test speed, and the target test area from the target trigger boundary parameter set;
[0202] Based on the target test distance, the target test speed, and the target test area, determine the target test color;
[0203] Based on the target test distance, the target test speed, the target test area, and the target test color, determine the target test frame rate.
[0204] In some embodiments, the second processing module 520 may further be configured to:
[0205] Obtain the maximum first area and the minimum first area of the target object at the target distance when triggering motion detection, and the maximum first speed and the minimum first speed of the target object at the target distance when the target image sensor detects the target object located at the target distance within the target trigger boundary parameter set;
[0206] Obtain the motion detection data of the target object with the target area at the target distance when the target image sensor detects the target object moving based on the target speed, where the target speed is between the maximum first speed and the minimum first speed, and the target area is between the maximum first area and the minimum first area;
[0207] When the motion detection data is not lower than the target detection threshold, determine the target speed corresponding to the motion detection data as the target test speed, determine the target distance corresponding to the motion detection data as the target test distance, and determine the target area corresponding to the motion detection data as the target test area.
[0208] In some embodiments, the second processing module 520 may further be configured to:
[0209] Determine the color value of the target object when no motion detection is triggered as the target test color when the target image sensor detects the target object with the target test area moving based on the target test speed at the target test distance.
[0210] In some embodiments, the target trigger boundary parameter set includes: the target trigger distance, the target trigger area, and the target trigger speed; the first processing module 510 may further be configured to:
[0211] Determine the minimum distance between the target object and the target image sensor and the maximum distance between the target object and the target image sensor when triggering motion detection as the target trigger distance when the target image sensor detects the target object;
[0212] Determine the minimum second area of the target object when the target image sensor triggers motion detection in the case of detecting the target object at the minimum distance; and the maximum second area of the target object when the target image sensor triggers motion detection in the case of detecting the target object at the maximum distance, as the target trigger area.
[0213] Determine the minimum second speed of the target object when the target image sensor triggers motion detection in the case of detecting the target object with the minimum second area at the minimum distance; and the maximum second speed of the target object when the target image sensor triggers motion detection in the case of detecting the target object with the maximum second area at the maximum distance, as the target trigger speed.
[0214] In some embodiments, the third processing module 530 may also be used for:
[0215] Generate standard parameters for motion detection based on the target test parameters;
[0216] Obtain the motion detection information of the target image sensor under the standard parameters of motion detection;
[0217] Output the motion detection information.
[0218] Figure 6 Illustrates a schematic physical structure diagram of an electronic device, as Figure 6 shown. The electronic device may include: a processor 610, a communications interface 620, a memory 630, and a communication bus 640. Among them, the processor 610, the communications interface 620, and the memory 630 complete communication with each other through the communication bus 640. The processor 610 may call the logical instructions in the memory 630 to execute the image sensor sensitivity test method, which includes: obtaining the target trigger boundary parameter set corresponding to the target image sensor when detecting the target object; determining the target test parameters based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set; testing the sensitivity of the target image sensor based on the target test parameters; where the target trigger boundary parameter set is a set of alternative parameters corresponding to the target image sensor when triggering motion detection.
[0219] In addition, when the logical instructions in the above-mentioned memory 630 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a 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 causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0220] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the image sensor sensitivity testing method provided by the above-mentioned various methods. The method includes: obtaining a target trigger boundary parameter set corresponding to a target image sensor when detecting a target object; determining a target test parameter based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set; testing the sensitivity of the target image sensor based on the target test parameter; wherein, the target trigger boundary parameter set is a set of alternative parameters corresponding to the target image sensor when triggering motion detection.
[0221] On yet another hand, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the image sensor sensitivity testing method provided by the above-mentioned various methods. The method includes: obtaining a target trigger boundary parameter set corresponding to a target image sensor when detecting a target object; determining a target test parameter based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set; testing the sensitivity of the target image sensor based on the target test parameter; wherein, the target trigger boundary parameter set is a set of alternative parameters corresponding to the target image sensor when triggering motion detection.
[0222] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0223] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0224] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for testing the sensitivity of an image sensor, characterized in that, Including: Obtaining a target trigger boundary parameter set corresponding to a target image sensor when detecting a target object; Determining a target test parameter based on test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set, where the test results are used to characterize the effect of the target image sensor triggering motion detection; Testing the sensitivity of the target image sensor based on the target test parameter; Wherein, the target trigger boundary parameter set is a set of the alternative parameters corresponding to the target image sensor when triggering motion detection.
2. The method for testing the sensitivity of an image sensor according to claim 1, wherein The target test parameter includes at least one of: a target test distance, a target test speed, a target test area, a target test color, and a target test frame rate; determining the target test parameter includes: Determining the target test distance, the target test speed, and the target test area from the target trigger boundary parameter set based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set; Determining the target test color based on the target test distance, the target test speed, and the target test area; Determining the target test frame rate based on the target test distance, the target test speed, the target test area, and the target test color.
3. The method for testing the sensitivity of an image sensor according to claim 2, wherein, The determining the target test distance, the target test speed, and the target test area from the target trigger boundary parameter set based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set includes: Obtaining the maximum first area and the minimum first area of the target object at the target distance when triggering motion detection, and the maximum first speed and the minimum first speed of the target object at the target distance when the target image sensor detects the target object at the target distance within the target trigger boundary parameter set; and Obtaining motion detection data of the target object with the target area at the target distance when the target image sensor detects the target object moving based on a target speed, where the target speed is between the maximum first speed and the minimum first speed, and the target area is between the maximum first area and the minimum first area; When the motion detection data is not lower than a target detection threshold, determining the target speed corresponding to the motion detection data as the target test speed, determining the target distance corresponding to the motion detection data as the target test distance, and determining the target area corresponding to the motion detection data as the target test area.
4. The method for testing the sensitivity of an image sensor according to claim 2, wherein The determining the target test color based on the target test distance, the target test speed, and the target test area includes: Determining the color value of the target object when not triggering motion detection as the target test color when the target image sensor detects the target object with the target test area moving based on the target test speed at the target test distance.
5. The method for testing the sensitivity of an image sensor according to any one of claims 1-4, characterized in that, The target trigger boundary parameter set includes: target trigger distance, target trigger area, and target trigger speed; obtaining the target trigger boundary parameter set corresponding to the target image sensor when detecting a target object includes: Determining the minimum distance and the maximum distance between the target object and the target image sensor when the target image sensor triggers motion detection while detecting the target object as the target trigger distance; Determining the minimum second area of the target object when the target image sensor triggers motion detection while detecting the target object at the minimum distance; and the maximum second area of the target object when the target image sensor triggers motion detection while detecting the target object at the maximum distance as the target trigger area; Determining the minimum second speed of the target object when the target image sensor triggers motion detection while detecting the target object with the minimum second area at the minimum distance; and the maximum second speed of the target object when the target image sensor triggers motion detection while detecting the target object with the maximum second area at the maximum distance as the target trigger speed.
6. The method for testing the sensitivity of an image sensor according to any one of claims 1-4, characterized in that Testing the sensitivity of the target image sensor based on the target test parameters includes: Generating standard parameters for motion detection based on the target test parameters; Obtaining the motion detection information of the target image sensor under the standard parameters of the motion detection; Outputting the motion detection information.
7. An image sensor sensitivity testing device, characterized in that, Including: A first processing module for obtaining the target trigger boundary parameter set corresponding to the target image sensor when detecting a target object; A second processing module for determining target test parameters based on the test results of the target image sensor under each alternative parameter in the target trigger boundary parameter set, where the test results are used to characterize the effect of the target image sensor triggering motion detection; A third processing module for testing the sensitivity of the target image sensor based on the target test parameters; Wherein, the target trigger boundary parameter set is a set of the alternative parameters corresponding to the target image sensor when triggering motion detection.
8. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the image sensor sensitivity test method according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the image sensor sensitivity test method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the image sensor sensitivity test method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Monitoring camera, monitoring system, and motion detection method
US20160225160A1