Test method, device and equipment and readable storage medium

By collecting the target image on the light-sensitive surface of the image sensor and calculating the pixel difference value, determining the setting direction of the change amplitude greater than the preset amplitude, and controlling the fixture to drive the image sensor to rotate, the problem of low accuracy of the image sensor test is solved and the accuracy of the test results is improved.

CN120201181APending Publication Date: 2025-06-24SHANGHAI INTEGRATED CIRCUIT RESEARCH & DEVELOPMENT CENTER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311785761.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-22
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

During the test, the image sensor is not perpendicular to the light rays illuminated by the light source, resulting in low accuracy of the test results.

Method used

By collecting the target image on the light-sensitive surface of the image sensor, pixel points in each setting direction are determined, and pixel difference and target difference are calculated. Based on these differences, a setting direction with a change amplitude greater than a preset amplitude is selected as the first direction, and the fixture is controlled to drive the image sensor to rotate to reduce the angle between the light-sensitive surface and the vertical surface.

Benefits of technology

By adjusting the fixture of the image sensor, the light-sensitive surface is approaching perpendicular to the light, improving the test accuracy of the image sensor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120201181A_ABST
    Figure CN120201181A_ABST
Patent Text Reader

Abstract

The invention provides a test method, device and equipment and a readable storage medium, and the method comprises the steps: carrying out the image collection of a light sensing surface after the light emitted by a light source irradiates the light sensing surface, obtaining a current target image, and determining a pixel point in each set direction on the target image; determining a pixel difference value between adjacent pixel points in each set direction, and determining a target difference value between the adjacent pixel difference values in each set direction; according to each target difference value in the set direction, determining the variation amplitude of the pixel value of the pixel point in the set direction, and determining a first direction in each set direction according to each variation amplitude, the first direction being a set direction of which the variation amplitude is greater than a preset amplitude; controlling the clamp to drive the image sensor to rotate according to the first direction so as to reduce the acute included angle between the light sensing surface and the vertical surface, and the straight line of each set direction is located on the vertical surface. According to the invention, the test accuracy of the image sensor is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image sensors, and particularly to a test method, device, equipment and readable storage medium. Background Art

[0002] When testing an image sensor, first fix the image sensor, and then irradiate the fixed image sensor with light.

[0003] The image sensor is fixed by a fixture. After the fixture clamps the image sensor, the light-sensitive surface of the image sensor is not perpendicular to the light irradiated by the light source, resulting in a decrease in the accuracy of the test results of the image sensor, that is, the test accuracy of the image sensor is relatively low. Summary of the Invention

[0004] This application provides a test method, device, equipment and readable storage medium to solve the problem of relatively low test accuracy of the image sensor.

[0005] On the one hand, this application provides a test method. The light-sensitive surface of the image sensor is arranged relative to the light source, and the fixture clamps the image sensor. The test method includes:

[0006] After the light emitted by the light source irradiates the light-sensitive surface, perform image acquisition on the light-sensitive surface to obtain the current target image, and determine the pixel points in each set direction on the target image. Each of the set directions is perpendicular to the direction where the light is located;

[0007] Determine the pixel difference between adjacent pixel points in each set direction, and determine the target difference between adjacent pixel differences in each set direction;

[0008] According to the respective target differences in the set direction, determine the change amplitude of the pixel values of the pixel points in the set direction, and determine a first direction among the set directions according to each change amplitude. The first direction is the set direction in which the change amplitude is greater than the preset amplitude;

[0009] Control the fixture to drive the image sensor to rotate according to the first direction to reduce the acute angle between the light-sensitive surface and the vertical plane. The straight lines where each set direction is located are all in the vertical plane.

[0010] In an embodiment, the fixture is connected to a driving device, and the driving device drives the fixture to rotate the image sensor. The step of controlling the fixture to drive the image sensor to rotate according to the first direction includes:

[0011] In each rotation direction of the fixture, determine a second direction perpendicular to the first direction, where the second direction is parallel to the direction of the light;

[0012] Determine the target parameters of the driving device according to the change amplitude corresponding to the first direction, where the target parameters include the voltage and / or step size of the driving device;

[0013] Control the driving device to drive the fixture according to the target parameters, so that the image sensor rotates in the second direction.

[0014] In one embodiment, the step of determining the first direction among the set directions according to each change amplitude includes:

[0015] Determine a target change amplitude greater than a preset amplitude among each change amplitude;

[0016] When the number of the target change amplitudes is multiple, determine the set direction corresponding to the largest target change amplitude as the first direction;

[0017] When the number of the target change amplitudes is one, determine the set direction corresponding to the target change amplitude as the first direction.

[0018] In one embodiment, the step of determining pixel points in each set direction on the target image includes:

[0019] Determine a target area in the target image;

[0020] Determine pixel points in each set direction on the target area.

[0021] In one embodiment, the step of determining a target area in the target image includes:

[0022] Determine a brightness area in the target image, where the pixel values of the pixel points in the brightness area are greater than a first preset threshold;

[0023] Determine a target area in the target image according to the brightness area, where the distance between the center of the target area and the center of the brightness area is less than a preset distance.

[0024] In one embodiment, before the step of determining pixel points in each set direction on the target area, it further includes:

[0025] Determine target pixel points among the pixel points in the target area, where the pixel values of the target pixel points are less than a second preset threshold;

[0026] Determine the target pixel value of the target pixel point according to the pixel values of the pixel points adjacent to the target pixel point, and adjust the pixel value of the target pixel point in the target area to the target pixel value.

[0027] In one embodiment, it further includes:

[0028] When each of the change amplitudes is less than a preset amplitude and the current exposure time of the light source is less than a preset time, return to execute the step of performing image acquisition on the photosensitive surface to obtain the current target image.

[0029] On the other hand, the present application further provides a testing device, including:

[0030] An acquisition module, configured to perform image acquisition on the photosensitive surface after the light emitted by the light source irradiates the photosensitive surface of the image sensor to obtain the current target image, and determine the pixel points in each set direction on the target image, and each of the set directions is perpendicular to the direction of the light;

[0031] A first determination module, configured to determine the pixel difference between adjacent pixel points in each of the set directions, and determine the target difference between adjacent pixel differences in each of the set directions;

[0032] A second determination module, configured to determine the change amplitude of the pixel values of the pixel points in the set direction according to the respective target differences in the set direction, and determine a first direction among the set directions according to each of the change amplitudes, where the first direction is the set direction in which the change amplitude is greater than the preset amplitude;

[0033] A control module, configured to control the fixture to drive the image sensor to rotate according to the first direction to reduce the acute angle between the photosensitive surface and the vertical plane, and the straight lines where each of the set directions is located are all in the vertical plane.

[0034] On the other hand, the present application further provides a testing device, including: a processor and a memory communicatively connected to the processor;

[0035] The memory stores execution instructions;

[0036] The processor executes the execution instructions stored in the memory to implement the method as described above.

[0037] On the other hand, the present application further provides a readable storage medium, where execution instructions are stored in the readable storage medium, and when the execution instructions are executed by a processor, they are used to implement the method as described above.

[0038] The test method, device, equipment, and readable storage medium provided by this application, after a light source emits light to irradiate the photosensitive surface of an image sensor, acquire a target image of the photosensitive surface, determine pixel points in each set direction on the target image, determine the pixel differences between adjacent pixel points in each set direction, and determine the target differences between adjacent pixel differences in each set direction. Determine the change amplitude of the pixel values of the pixel points in the set direction through the respective target differences corresponding to the set direction, determine the set direction corresponding to the change amplitude greater than the preset amplitude as the first direction, and finally control the fixture to drive the image sensor to rotate based on the first direction to reduce the acute angle between the photosensitive surface and the plane perpendicular to the light, so that the photosensitive surface approaches perpendicular to the light, improving the test accuracy of the image sensor. Description of the Drawings

[0039] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application.

[0040] Figure 1 Schematic diagram of the scenario of the test method related to this application;

[0041] Figure 2 Schematic flowchart of the first embodiment of the test method provided by this application;

[0042] Figure 3 Schematic flowchart of the second embodiment of the test method provided by this application;

[0043] Figure 4 Schematic flowchart of the third embodiment of the test method provided by this application;

[0044] Figure 5 Schematic flowchart of the fourth embodiment of the test method provided by this application;

[0045] Figure 6 Module schematic diagram of the test device of this application;

[0046] Figure 7 Structural schematic diagram of the test equipment of this application.

[0047] Through the above drawings, the clear embodiments of this application have been shown, and there will be more detailed descriptions later. These drawings and text descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. Detailed Description of the Embodiments

[0048] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0049] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties. Moreover, the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards, and corresponding operation entrances are provided for users to select authorization or rejection.

[0050] When testing an image sensor, first fix the image sensor, and then irradiate the fixed image sensor with light.

[0051] The inventors of the present application found that the image sensor is fixed by a fixture. After the fixture clamps the image sensor, the light-sensing surface of the image sensor is not perpendicular to the light irradiated by the light source, resulting in a decrease in the accuracy of the test results of the image sensor, that is, the test accuracy of the image sensor is relatively low.

[0052] Therefore, the inventors of the present application thought of controlling the fixture to drive the image sensor to rotate to reduce the acute angle between the light-sensing surface and the perpendicular plane of the light, so that the light-sensing surface approaches perpendicular to the light, thereby improving the test accuracy of the image sensor.

[0053] Refer to Figure 1 , Figure 1 is a schematic diagram of the scenario of the test method of the present application. The light-sensing surface 110 of the image sensor 100 is arranged relative to the light source 200, and the fixture 300 clamps the image sensor. After the light source 200 emits light 210 to the light-sensing surface 110, the test device 400 performs image acquisition on the light-sensing surface 110 to obtain a target image. The test device 400 is communicatively connected to the fixture 300, and the test device 400 controls the fixture 300 to drive the image sensor 100 to rotate based on the target image to reduce the angle between the light-sensing surface 110 and the perpendicular plane of the light 210.

[0054] The following will detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems with specific embodiments. These several specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.

[0055] Reference Figure 2 , Figure 2 is a schematic flowchart of the first embodiment of the test method of this application. The test method includes the following steps:

[0056] Step S201, after the light emitted by the light source irradiates the photosensitive surface, image acquisition is performed on the photosensitive surface to obtain the current target image, and pixel points in each set direction are determined on the target image. Each set direction is perpendicular to the direction of the light.

[0057] In this embodiment, the execution subject is a test device. For the convenience of description, the device is hereinafter used to refer to the test device. When the image sensor needs to be tested, the photosensitive surface of the image sensor is set relative to the light source, and the fixture clamps the image sensor. The device is communicatively connected to the fixture, so that the fixture can be controlled to drive the image sensor to rotate to correct the position of the image sensor relative to the light source.

[0058] After the light emitted by the light source irradiates the photosensitive surface, the device performs image acquisition on the photosensitive surface to obtain an image, which is defined as the target image. After obtaining the target image, the device determines the pixel points in each set direction on the target image. The set direction is perpendicular to the direction of the light. There can be multiple set directions. For example, the set directions include eight directions such as the horizontal direction, the direction perpendicular to the horizontal direction, the 45° oblique direction, and the 135° oblique direction. The horizontal direction includes two directions: horizontal left and horizontal right. The vertical direction includes two directions: vertical up and vertical down. The 45° oblique direction includes two directions: 45° obliquely up and 45° obliquely down. The 135° oblique direction includes two directions: 135° obliquely up and 135° obliquely down. Of course, the set directions include but are not limited to the above directions.

[0059] Exemplarily, after the device acquires the image, lines can be set on the image. The lines are the projections of the straight lines where the set directions are located on the image, and the pixel points in the set direction are the pixel points located on the lines.

[0060] Step S202, determine the pixel difference between adjacent pixel points in each set direction, and determine the target difference between adjacent pixel differences in each set direction.

[0061] After determining the pixel points in the set direction, the device determines the pixel difference between adjacent pixel points in the set direction, and then determines the target difference between adjacent pixel differences in the set direction.

[0062] Exemplarily, the direction is set to 45°, and there are pixel points 1, pixel points 2, pixel points 3, pixel points 4, pixel points 5, etc. in the direction, first determine the pixel difference value 1 between pixel points 1 and pixel points 2, then determine the pixel difference value 2 between pixel points 2 and pixel points 3, and determine the pixel difference value 3 between pixel points 3 and pixel points 4, and finally determine the pixel difference value 4 between pixel points 4 and pixel points 5. The device calculates the target difference value 1 between pixel difference value 1 and pixel difference value 2, the target difference value 2 between pixel difference value 2 and pixel difference value 3, and the target difference value 3 between pixel difference value 3 and pixel difference value 4.

[0063] Step S203, determining the change amplitude of the pixel value of the pixel point in the set direction according to each target difference in the set direction, and determining a first direction in each set direction according to each change amplitude, wherein the first direction is a set direction with a change amplitude greater than a preset amplitude.

[0064] When there is an angle between the photosensitive surface and the vertical plane where the light is located, the light irradiating the photosensitive surface is uneven. For example, if the left side of the photosensitive surface is offset upward relative to the vertical plane, the light intensity of the point closer to the left on the photosensitive surface will be greater. Therefore, if the set direction is horizontally to the left, the pixel values ​​of the pixels arranged to the left in the set direction will also be greater, and the left side of the photosensitive surface needs to be moved downward; and if the left side of the photosensitive surface is offset downward relative to the vertical plane, the light intensity of the point closer to the left on the photosensitive surface will be smaller. Therefore, if the set direction is horizontally to the left, the pixel values ​​of the pixels arranged to the left in the set direction will also be smaller, and the left side of the photosensitive surface needs to be moved upward. Therefore, it can be seen that the direction in which the photosensitive surface needs to be adjusted can be determined based on the changes in the pixel values ​​of the pixels in the set direction.

[0065] After obtaining the target difference in each set direction, the device can set the change range of the pixel value of the pixel point in the direction based on the target difference. The change range includes change and amplitude, where the change is, for example, smaller or larger, and the amplitude is a numerical value.

[0066] The device determines the change amplitude of the pixel value of the pixel point in the set direction based on each target difference in the set direction. Exemplarily, after obtaining each target difference in the set direction, the target differences are arranged in order, and it can be determined from each arranged target difference whether the target difference is increased or decreased, and then the absolute value of any target difference is used as the amplitude, so that the change amplitude can be obtained.

[0067] After obtaining the change amplitude in each set direction, a first direction is determined in each set direction based on each change amplitude. The first direction is a set direction with a change amplitude greater than a preset amplitude. A change amplitude greater than the preset amplitude means that the absolute value of the change amplitude is greater than the preset amplitude.

[0068] Exemplarily, within each range of variation, a target range of variation greater than a preset range is determined. If there are multiple target ranges of variation, the set direction corresponding to the largest target range of variation is determined as the first direction. If there is only one target range of variation, the set direction corresponding to the target range of variation is determined as the first direction. The above-mentioned "multiple" refers to two or more than two.

[0069] Step S204: Control the fixture to drive the image sensor to rotate according to the first direction, so as to reduce the acute angle between the light-sensing surface and the vertical plane. The straight line where each set direction is located is in the vertical plane.

[0070] After the device determines the first direction, it can determine the offset direction of the light-sensing surface relative to the vertical plane based on the first direction. Then the device controls the fixture to drive the image sensor to rotate, so that the light-sensing surface moves in the opposite direction of the offset direction, thereby reducing the acute angle between the light-sensing surface and the vertical plane. The straight line where each set direction is located is in the vertical plane, and the vertical plane is the plane perpendicular to the light rays emitted by the light source.

[0071] Exemplarily, if the first direction is the horizontal direction, then the light-sensing surface is in the horizontal direction and is offset upward or downward relative to the vertical plane. If the range of variation of the first direction is negative, it can be determined that the light-sensing surface is offset downward relative to the vertical plane, and then it is necessary to control the light-sensing surface to move upward to reduce the acute angle between the light-sensing surface and the vertical plane.

[0072] It should be noted that the test time of the image sensor is fixed, that is, the exposure time of the light source is fixed. This fixed exposure time is defined as the preset time, and the preset time is the maximum exposure duration of the light source. During the exposure of the light source, the light-sensing surface is adjusted once every interval of a duration, and this duration is less than the preset duration. After the device adjusts the light-sensing surface based on the first direction and the current exposure time of the light source is less than the preset time, the next adjustment of the light-sensing surface is performed, that is, the device returns to execute steps S201 to S204. In addition, if each range of variation is less than the preset range, it can be determined that the acute angle between the light-sensing surface and the vertical plane is small, and there is no need to adjust the light-sensing surface. And if the current exposure time of the light source is less than the preset time, the device returns to execute the step of performing image acquisition on the light surface to obtain the current target image, that is, returns to execute steps S201 to S204.

[0073] In this embodiment, after the light source emits light and irradiates the photosensitive surface of the image sensor, image acquisition is performed on the photosensitive surface to obtain a target image. Pixel points in each set direction are determined on the target image, the pixel difference between adjacent pixel points in each set direction is determined, and the target difference between adjacent pixel differences in each set direction is determined. The change amplitude of the pixel values of the pixel points in the set direction is determined through the respective target differences corresponding to the set directions. The set direction corresponding to the change amplitude greater than the preset amplitude is determined as the first direction. Finally, based on the first direction, the fixture is controlled to drive the image sensor to rotate to reduce the acute angle between the photosensitive surface and the plane perpendicular to the light, so that the photosensitive surface approaches perpendicular to the light, improving the test accuracy of the image sensor.

[0074] Referring to Figure 3 , Figure 3 FIG. is a schematic flowchart of the second embodiment of the test method of this application. Based on the first embodiment, step S204 includes:

[0075] Step S301, among the respective rotation directions of the fixture, determine a second direction perpendicular to the first direction, and the second direction is parallel to the direction where the light is located.

[0076] In this embodiment, the fixture is connected to a driving device, the driving device is communicatively connected to the device, and the device controls the driving device to rotate so that the fixture drives the image sensor to rotate. The driving device is a device with a driving function such as a motor.

[0077] The fixture has a rotation direction, and the rotation direction is fixed. Exemplarily, the rotation directions of the fixture include rotating upward around the center of the photosensitive surface, rotating downward around the center of the photosensitive surface, and the like.

[0078] The device determines the second direction perpendicular to the first direction among the respective rotation directions of the fixture, and the second direction is parallel to the direction where the light is located. Exemplarily, if the change amplitude corresponding to the first direction is negative, it can be determined that the photosensitive surface is offset downward relative to the vertical plane, so the second direction is perpendicular to the first direction and rotates upward; if the change amplitude corresponding to the first direction is positive, it can be determined that the photosensitive surface is offset upward relative to the vertical plane, so the second direction is perpendicular to the first direction and rotates downward.

[0079] Step S302, according to the change amplitude corresponding to the first direction, determine the target parameters of the driving device, and the target parameters include the voltage and / or step size of the driving device.

[0080] After determining the second direction, the device determines the target parameters of the driving device based on the change amplitude corresponding to the first direction. The target parameters include the voltage and / or the step size of the driving device. The absolute value of the change amplitude represents the acute angle between the light-sensing surface and the vertical plane. If the absolute value is larger, the acute angle is larger, and the driving device needs a sufficiently large voltage or step size to rotate the light-sensing surface to reduce the acute angle. Therefore, the larger the absolute value of the change amplitude, the larger the target parameters, that is, there is a positive correlation between the change amplitude and the target parameters.

[0081] Step S303: Control the driving device to drive the fixture according to the target parameters, so that the image sensor rotates in the second direction.

[0082] After determining the target parameters, the device controls the driving device to drive the fixture according to the target parameters, so that the protruding sensor rotates in the second direction, thereby reducing the acute angle between the light-sensing surface and the vertical plane.

[0083] In this embodiment, the fixture is connected to the driving device, and the target parameters of the driving device are determined by the change amplitude in the first direction, so as to accurately control the rotation of the image sensor based on the target parameters to reduce the acute angle between the light-sensing surface and the vertical plane.

[0084] Refer to Figure 4 , Figure 4 which is a schematic flowchart of the third embodiment of the test method of this application. Based on the first or second embodiment, step S201 includes:

[0085] Step S401: Determine the target area in the target image.

[0086] Step S402: Determine the pixel points in each set direction on the target area.

[0087] In this embodiment, the target image is an image sensed by the light-sensing surface, and the area of the light-sensing surface is large. To reduce the calculation amount, the device determines the target area in the target image, and the target area is a part of the target image. In one example, the target area can be any sub-area in the target image.

[0088] In another example, the target area is the brightness area of the target image, and the pixel values of the pixel points in the brightness area are greater than the first preset threshold. The device then determines the target area in the target image according to the brightness area, and the distance between the center of the target area and the center of the brightness area is less than the preset distance, that is, the area close to the brightness area is used as the target area. Preferably, the brightness area can be used as the target area, and the brightness area is the central area of the light-sensing surface. Using the area composed of multiple pixel points with pixel values greater than the first preset threshold as the target area can reduce the influence of shadows on the adjustment accuracy of the light-sensing surface.

[0089] After determining the target area, the device further determines the pixel points in each set direction from the target area.

[0090] In this embodiment, the device determines the target area on the target image, and then determines the pixel points in each set direction from the target area, thereby reducing the computational amount of the device.

[0091] Refer to Figure 5 , Figure 5 which is a schematic flowchart of the fourth embodiment of the test method of this application. Based on the third embodiment, step S402 includes:

[0092] Step S501, determining a target pixel point among the pixel points in the target area, where the pixel value of the target pixel point is less than a second preset threshold.

[0093] In this embodiment, there may be bad pixels in the target area. A bad pixel is a pixel point, and the pixel value of the bad pixel is significantly less than the pixel values of adjacent pixel points, and the pixel value of the bad pixel is less than the second preset threshold. The device determines the target pixel point among the pixel points in the target area, and the target pixel point is the bad pixel whose pixel value is less than the second preset threshold.

[0094] Step S502, determining the target pixel value of the target pixel point according to the pixel values of the pixel points adjacent to the target pixel point, and adjusting the pixel value of the target pixel point in the target area to the target pixel value.

[0095] To reduce the influence of bad pixels on the change amplitude, the device needs to perform bad pixel correction. For this, the device determines the target pixel value of the target pixel point based on the pixel values of the adjacent pixel points of the target pixel point, and adjusts the pixel values of all the target pixel points to the corresponding target pixel values. The target pixel value is obtained by interpolation of the pixel values of the adjacent pixel points.

[0096] In this embodiment, the device determines the bad pixels with smaller pixel values in the target area, and then corrects the bad pixels, avoiding the problem that the result of the change amplitude is inaccurate caused by the bad pixels, and improving the rotation accuracy of the image sensor.

[0097] This application also provides a test device. Refer to Figure 6 , the test device 600 includes:

[0098] An acquisition module 610, configured to perform image acquisition on the light-sensitive surface after the light emitted by the light source irradiates the light-sensitive surface to obtain the current target image, and determine the pixel points in each set direction on the target image, and each set direction is perpendicular to the direction of the light;

[0099] A first determination module 620, configured to determine the pixel difference between adjacent pixel points in each set direction, and determine the target difference between adjacent pixel differences in each set direction;

[0100] A second determination module 630, configured to determine the change range of the pixel values of the pixel points in the set direction according to the respective target differences in the set direction, and determine a first direction in the respective set directions according to the respective change ranges, where the first direction is the set direction in which the change range is greater than a preset range;

[0101] A control module 640, configured to control the fixture to drive the image sensor to rotate according to the first direction, so as to reduce the acute angle between the light-sensitive surface and the vertical plane, and the straight lines where the respective set directions are located are all in the vertical plane.

[0102] In one embodiment, the fixture is connected to a driving device, and the driving device drives the fixture to rotate the image sensor. The control module 640 includes:

[0103] A first determination unit, configured to determine a second direction perpendicular to the first direction in each rotation direction of the fixture, where the second direction is parallel to the direction of the light;

[0104] A second determination unit, configured to determine a target parameter of the driving device according to the change range corresponding to the first direction, where the target parameter includes the voltage and / or step size of the driving device;

[0105] A control unit, configured to control the driving device to drive the fixture according to the target parameter, so that the image sensor rotates in the second direction.

[0106] In one embodiment, the second determination module 630 includes:

[0107] A third determination unit, configured to determine a target change range greater than the preset range among the respective change ranges;

[0108] A fourth determination unit, configured to, when the number of target change ranges is multiple, determine the set direction corresponding to the largest target change range as the first direction;

[0109] A fifth determination unit, configured to, when the number of target change ranges is one, determine the set direction corresponding to the target change range as the first direction.

[0110] In one embodiment, the acquisition module 610 includes:

[0111] A sixth determination unit, configured to determine a target area in the target image;

[0112] A seventh determination unit, configured to determine the pixel points in each set direction on the target area.

[0113] In one embodiment, the sixth determination unit includes:

[0114] A first determination subunit, configured to determine a brightness region in a target image, where pixel values of pixel points in the brightness region are greater than a first preset threshold;

[0115] A second determination subunit, configured to determine a target region in the target image according to the brightness region, where a distance between the center of the target region and the center of the brightness region is less than a preset distance.

[0116] In an embodiment, the sixth determination unit includes:

[0117] A third determination subunit, configured to determine target pixel points among pixel points of the target region, where pixel values of the target pixel points are less than a second preset threshold;

[0118] A fourth determination subunit, configured to determine target pixel values of the target pixel points according to pixel values of each pixel point adjacent to the target pixel points, and adjust pixel values of the target pixel points in the target region to the target pixel values.

[0119] In an embodiment, the testing device 600 further includes:

[0120] An execution module, configured to return and execute the step of performing image acquisition on the photosensitive surface to obtain the current target image when each variation amplitude is less than a preset amplitude and the current exposure time of the light source is less than a preset time.

[0121] Figure 7 It is a hardware structure diagram of a testing device shown according to an exemplary embodiment.

[0122] The testing device 700 may include: a processor 71, such as a CPU, a memory 72, and a transceiver 73. Those skilled in the art can understand that Figure 7 the structure shown in does not constitute a limitation on the testing device, and it may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. The memory 72 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disc.

[0123] The processor 71 can call a program stored in the memory 72 or execute execution instructions to complete all or part of the steps of the above testing method.

[0124] The transceiver 73 is configured to receive information sent by an external device and send information to the external device.

[0125] A test device, comprising: a processor, and a memory communicatively connected to the processor;

[0126] The memory stores execution instructions;

[0127] The processor executes the execution instructions stored in the memory to implement the test method of any of the foregoing embodiments.

[0128] A non-transitory readable storage medium, when the execution instructions in the storage medium are executed by a processor of a test device, enables the test device to execute the above test method.

[0129] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include known common knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.

[0130] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. A testing method, characterized in that, The photosensitive surface of the image sensor is arranged relative to the light source, and the image sensor is clamped by a fixture. The test method includes: After the light emitted by the light source irradiates the photosensitive surface, image acquisition is performed on the photosensitive surface to obtain the current target image, and pixel points in each set direction are determined on the target image. Each of the set directions is perpendicular to the direction of the light; Determine the pixel difference between adjacent pixel points in each set direction, and determine the target difference between adjacent pixel differences in each set direction; According to the respective target differences in the set direction, determine the change amplitude of the pixel values of the pixel points in the set direction, and determine the first direction among the set directions according to each change amplitude. The first direction is the set direction in which the change amplitude is greater than the preset amplitude; Control the fixture to drive the image sensor to rotate according to the first direction to reduce the acute angle between the photosensitive surface and the vertical plane. The straight lines where each of the set directions is located are all in the vertical plane; 2. The test method according to claim 1, wherein The fixture is connected to a driving device, and the driving device drives the fixture to rotate the image sensor. The step of controlling the fixture to drive the image sensor to rotate according to the first direction includes: Among the respective rotation directions of the fixture, determine a second direction perpendicular to the first direction. The second direction is parallel to the direction of the light; According to the change amplitude corresponding to the first direction, determine the target parameters of the driving device. The target parameters include the voltage and / or step size of the driving device; Control the driving device to drive the fixture according to the target parameters, so that the image sensor rotates in the second direction; 3. The test method according to claim 1, wherein The step of determining the first direction among the set directions according to each change amplitude includes: Determine the target change amplitude greater than the preset amplitude among each change amplitude; When the number of the target change amplitudes is multiple, determine the set direction corresponding to the largest target change amplitude as the first direction; When the number of the target change amplitudes is one, determine the set direction corresponding to the target change amplitude as the first direction; 4. The test method according to claim 1, characterized in that The step of determining the pixel points in each set direction on the target image includes: Determine the target area in the target image; Determine the pixel points in each set direction on the target area; 5. The test method according to claim 4, characterized in that The step of determining the target area in the target image includes: Determine the bright area in the target image. The pixel values of the pixel points in the bright area are greater than the first preset threshold; According to the bright area, determine the target area in the target image. The distance between the center of the target area and the center of the bright area is less than the preset distance; 6. The test method according to claim 4, wherein Before the step of determining the pixel points in each set direction on the target area, it further includes: Determine the target pixel points among the respective pixel points in the target area. The pixel values of the target pixel points are less than the second preset threshold; Determine the target pixel value of the target pixel point according to the pixel values of each pixel point adjacent to the target pixel point, and adjust the pixel value of the target pixel point in the target area to the target pixel value.

7. The testing method according to any one of claims 1-6, characterized in that, Further comprising: When each of the change amplitudes is less than a preset amplitude and the current exposure time of the light source is less than a preset time, return to execute the step of performing image acquisition on the photosensitive surface to obtain the current target image.

8. A testing device, characterized in that, Comprising: An acquisition module, configured to perform image acquisition on the photosensitive surface after the light emitted by the light source irradiates the photosensitive surface of the image sensor to obtain the current target image, and determine the pixel points in each set direction on the target image, where each set direction is perpendicular to the direction where the light is located; A first determination module, configured to determine the pixel difference between adjacent pixel points in each set direction, and determine the target difference between adjacent pixel differences in each set direction; A second determination module, configured to determine the change amplitude of the pixel value of the pixel points in the set direction according to each target difference in the set direction, and determine a first direction among each set direction according to each change amplitude, where the first direction is the set direction in which the change amplitude is greater than the preset amplitude; A control module, configured to control the clamp to drive the image sensor to rotate according to the first direction to reduce the acute angle between the photosensitive surface and the vertical plane, and the straight lines where each set direction is located are all in the vertical plane.

9. A testing device, characterized in that, Comprising: A processor and a memory communicatively connected to the processor; The memory stores execution instructions; The processor executes the execution instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A readable storage medium, characterized in that, The execution instructions are stored in the readable storage medium, and when executed by the processor, are used to implement the method according to any one of claims 1 to 7.