A method, apparatus and computer-readable storage medium for resolving power testing
By employing a multi-directional resolution testing method for camera modules and performing independent polynomial fitting for each line pair, the problem of inconsistent resolution test results in existing technologies is solved, thereby improving the accuracy of line pair detection and resolution evaluation.
Patent Information
- Application Number
- CN202610620530.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-07
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2046-05-07
AI Technical Summary
In the existing technology, the resolution testing method of the camera module cannot accurately reflect the multi-directional resolution performance that is the focus of TV line testing, and the overall average value evaluation method results in low line pair detection accuracy, which cannot reflect the resolution difference between different line pairs, resulting in test results that do not match the actual imaging effect.
A multi-directional resolution testing method is adopted. By acquiring line pairs of images and preprocessing them, the imaging feature regions are located and extracted. Independent polynomial fitting is performed on each line pair, and the brightness-pixel position fitting function of each line pair is calculated to obtain the resolution value. A test plate with a specific structure is used to cover the resolution testing requirements in multiple directions.
Multi-directional resolving force testing was achieved, which improved the accuracy of line pair detection. It can reflect the differences in resolving force between different line pairs, ensure that the test results are consistent with the actual imaging effect, and avoid the problem of local defects being masked by the overall average value.
Smart Images

Figure CN122160502B_ABST
Abstract
Description
Technical Field
[0001] This application generally relates to the field of equipment testing technology. More specifically, this application relates to a resolution testing method, apparatus, and computer-readable storage medium. Background Technology
[0002] In camera module resolution testing, the spatial frequency response method is typically used for objective quantitative testing. This method evaluates the module's resolution performance by analyzing the edge spread function of the slanted image, offering objective and repeatable results. However, in real-world shooting scenarios, customers or end-users often use TV line test charts for subjective verification to assess the module's sharpness performance in actual imaging.
[0003] In existing technologies, inconsistencies often exist between the results of spatial frequency response testing and TV line testing. The main reason for this is that spatial frequency response testing requires the blade image to be rotated by a certain angle, limiting the testing direction to only the horizontal and vertical directions. However, TV line testing typically includes radial and tangential directions. Radial line pairs pass through the central field of view, while tangential line pairs are perpendicular to the radial direction and do not pass through the central field of view. Due to this mismatch in testing directions, spatial frequency response test results cannot accurately reflect the directional resolution performance that is the focus of TV line testing. Furthermore, existing methods for calculating TV line resolution usually calculate the overall average sharpness of line pairs within the entire region of interest. This overall averaging approach results in low line pair detection accuracy, failing to perform independent resolution testing for each line pair and failing to reflect the resolution differences between different line pairs. When the module has localized resolution deficiencies, the overall average evaluation method masks this defect, leading to test results that do not match the actual imaging effect.
[0004] Therefore, there is an urgent need to provide a resolution testing method to enable multi-directional resolution testing and detail sharpness assessment, thereby improving the accuracy of line pair detection. Summary of the Invention
[0005] In order to at least solve one or more of the technical problems mentioned above, this application proposes a resolution testing method in several aspects that enables multi-directional resolution testing and accurate assessment of detail sharpness.
[0006] In the first aspect, this application provides a method for testing resolving power, comprising the following steps:
[0007] The test target plate contains at least one target plate unit and each target plate unit is provided with at least one line pair. The line pair image is preprocessed to locate and extract the imaging feature regions of all corresponding target units in the line pair image; For each line pair within the imaging feature region, perform independent polynomial fitting to obtain the brightness-pixel position fitting function corresponding to each line pair; Based on the brightness-pixel position fitting function corresponding to each line pair, the brightness peak value and brightness trough value of the line pair are extracted, and the resolution value corresponding to each line pair is calculated.
[0008] In some embodiments, the test target includes a target body, on which a central field of view is provided, and at least one field of view ring distributed around the central field of view; A target unit is provided in the central field of view area, and multiple target units are distributed circumferentially on each field of view ring, with each of the multiple target units corresponding to different spatial directions; Each standard unit is provided with radial line pairs and tangential line pairs, and the radial line pairs and tangential line pairs are arranged orthogonally.
[0009] In some embodiments, eight target units are evenly distributed on the field of view ring, and the eight target units correspond to eight spatial directions: horizontal left, upper left 45 degrees, vertical up, upper right 45 degrees, horizontal right, lower right 45 degrees, vertical down, and lower left 45 degrees.
[0010] In some embodiments, each line pair within the imaging feature region is subjected to independent polynomial fitting to obtain a brightness-pixel position fitting function corresponding to each line pair, including: Using a single line pair in a single pixel row perpendicular to the line pair extension direction within the imaging feature region as the smallest fitting unit, perform independent polynomial fitting on each line pair in each row of pixels to obtain the brightness-pixel position fitting function corresponding to each line pair.
[0011] In some embodiments, polynomial fitting of a single line pair includes the following operations: For the sequence of pixel positions and brightness values corresponding to a single line pair, perform the first polynomial fitting to obtain the first fitting result; Based on the first fitting result, noise data in the pixel position and brightness value sequence is removed to obtain the denoised sequence. A second polynomial fitting is performed on the denoised sequence to obtain the final brightness-pixel position fitting function for the line.
[0012] In some embodiments, polynomial fitting employs an m-1 degree polynomial, and the fitting formula is: Pm-1(x)=p(0)+p(1)·x+p(2)·x²+…+p(m-1)·x(m-1), Where x is the pixel position, Pm-1(x) is the fitted brightness value of the corresponding pixel position, p(0) to p(m-1) are the fitting coefficients of the polynomial, and m is the order of the fitted polynomial.
[0013] In some embodiments, the formula for calculating the resolving power of a single line pair is: Resolution=(Max_Tv-Min_Tv) / (Max_Tv+Min_Tv), Where Resolution is the resolution value of the line pair, Max_Tv is the peak value of the luminance wave corresponding to the fitting function of the line pair, and Min_Tv is the trough value of the luminance wave corresponding to the fitting function of the line pair.
[0014] In some embodiments, the radial and tangential line pairs within the label unit are both equally spaced, fixed-number alternating black and white line pairs; and the method further includes: Obtain the resolving power values of all line pairs within the same imaging feature region, and extract the minimum resolving power value among them; The minimum resolution value is compared with a preset qualified threshold. If the minimum resolution value is greater than or equal to the qualified threshold, it is determined that the imaging clarity of the camera module under test meets the standard for the fixed number of line pairs in the corresponding direction of the field of view.
[0015] In some embodiments, the radial and tangential line pairs within the target unit are wedge-shaped gradually increasing line pairs whose number of line pairs increases linearly from one end to the other, and the variation range of the number of line pairs remains consistent across all target units; and the method further includes: Based on the gradual range of line pairs within the standard unit, the increment of line pairs corresponding to a unit pixel in the line pair image is calculated and used as the minimum resolvable line pair ratio. Along the direction of increasing line logarithm, check each line pair in each column of pixels within the imaging feature region along the direction of line logarithm change to verify whether the resolution value of a single line pair is greater than or equal to a preset qualified threshold, and determine the position corresponding to the last column of pixels that meets the condition as the limit resolvable line pair position of each column of pixels. Based on the position of the most resolvable line pairs for each column of pixels and the minimum resolvable line pair ratio, the maximum resolvable line pair count for that column of pixels is calculated. The minimum value of the maximum resolvable line pair count for all columns is taken as the final resolution of the camera module under test in the corresponding direction of the field of view.
[0016] In some embodiments, the formula for calculating the minimum resolution line pair ratio is: Minimum line pair ratio = (Max_Line - Min_Line) / N Where Max_Line is the maximum number of line pairs within the template cell, Min_Line is the minimum number of line pairs within the template cell, and N is the total number of pixels in the image corresponding to the line pair gradient interval.
[0017] In a second aspect, this application provides an apparatus for resolution testing, comprising: a processor; and a memory storing program instructions for resolution testing, wherein when the program is executed by the processor, the aforementioned resolution testing method is implemented.
[0018] In a third aspect, this application provides a computer-readable storage medium storing computer-readable instructions for resolution testing, which, when executed by one or more processors, implement the aforementioned resolution testing method.
[0019] Using the resolution testing method provided above, this embodiment of the application preprocesses the acquired line pair images and extracts the imaging feature regions. Each line pair within the imaging feature region is then independently fitted with a polynomial to obtain the brightness-pixel position fitting function corresponding to each line pair, thereby calculating the resolution value for each line pair. This piecewise independent fitting method enables independent resolution detection for each line pair, overcoming the problem of low line pair detection accuracy in existing technologies. Furthermore, it reflects the resolution differences between different line pairs within the same imaging feature region, allowing for accurate evaluation of the camera module's resolution in local details and avoiding the potential masking of local defects when using an overall average value.
[0020] Furthermore, when a test template with a specific structure is used, a central field of view and at least one field of view ring distributed around the central field of view are set on the test template, and radial line pairs and tangential line pairs are set in multiple spatial directions of each field of view ring, so that the test template can simultaneously cover the resolution test requirements in multiple directions. This makes the resolution test direction of the camera module match the actual TV line test direction used by the user, thus solving the problem of inconsistency in alignment caused by the different test directions of spatial frequency response test and TV line test.
[0021] In summary, the resolution testing method and the test template used in this application can perform resolution testing of the camera module in multiple directions and perform independent and refined resolution detection on each line pair in the module's imaging, which helps to improve the accuracy of line pair detection, thereby making the test results more consistent with the actual imaging effect. Attached Figure Description
[0022] The above and other objects, features, and advantages of exemplary embodiments of this application will become readily understood by reading the following detailed description with reference to the accompanying drawings. In the drawings, several embodiments of this application are illustrated by way of example and not limitation, and the same or corresponding reference numerals denote the same or corresponding parts, wherein: Figure 1 An exemplary flowchart of the analytical force testing method according to an embodiment of this application is shown; Figure 2a An example image of the acquired line pairs is shown; Figure 2b An example diagram of the imaging feature regions of all corresponding target units in the extracted line pair image is shown; Figure 3a An example diagram of the original imaging feature region corresponding to the target unit is shown; Figure 3b An example image of the extracted region of interest is shown; Figure 4 An example graph showing the brightness values of a row of lines in a region of interest is provided. Figure 5 This is an example graph showing the brightness values of a row of pixels in a line pair; Figure 6 An exemplary imaging diagram of a test specimen according to an embodiment of this application is shown; Figure 7 Example diagrams of the label units in the vertically above, vertically below, and central field of view regions according to embodiments of this application are shown; Figure 8 An example diagram of the label unit on the horizontal left and horizontal right sides according to an embodiment of this application is shown; Figure 9 Example diagrams of the label units at the upper left and lower left 45 degrees are shown in embodiments of this application; Figure 10 Example diagrams of the label units at the upper right 45 degrees and lower right 45 degrees according to embodiments of this application are shown. Detailed Implementation
[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0024] It should be understood that the terms "comprising" and "including" used in the specification and claims of this application indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0025] It should also be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this specification and claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations.
[0026] As used in this specification and claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."
[0027] The specific embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0028] The core of this application's embodiments lies in providing a resolution testing method. This method can perform independent resolution testing on each line pair, thereby improving the accuracy of line pair testing. The method will be described in detail below.
[0029] Figure 1 An exemplary flowchart of a resolution testing method 100 according to an embodiment of this application is shown. It is understood that method 100 can be executed by any suitable device with data processing capabilities, such as including but not limited to terminal devices and servers.
[0030] like Figure 1 As shown, in step S101, the line pair images obtained by the camera module under test capturing the test target are acquired. When acquiring images, it should be ensured that the camera module and the test target maintain an appropriate distance and angle so that the line pairs on the target are clearly imaged.
[0031] In step S102, the line pair image is preprocessed to locate and extract the imaging feature regions of all corresponding target units in the line pair image. This preprocessing process may include, for example, performing distortion correction, grayscale normalization, and image enhancement on the line pair image to improve image quality and enhance the accuracy of subsequent processing; then, using image processing methods such as edge detection and contour extraction, the imaging feature region corresponding to each target unit is located and extracted from the processed image. Since the camera module, especially the wide-angle lens, may have distortion, the shape of the captured target unit may change from square to elliptical; therefore, the extracted imaging feature region usually presents an elliptical shape.
[0032] As an example, Figure 2a An example image of the acquired line pair is shown. Figure 2b Example diagrams are shown illustrating the imaging feature regions of all corresponding target units in the extracted line pair image. Figure 2a and Figure 2b As can be seen, after the above preprocessing, the imaging feature regions corresponding to each target unit are extracted one by one from the line pair image. Due to the distortion characteristics of the camera module, the extracted imaging feature regions may appear as elliptical shapes. This schematically illustrates the processing results of distortion correction and contour extraction during the preprocessing process, providing an area to be analyzed for subsequent independent polynomial fitting for each line pair.
[0033] In a preferred embodiment, to reduce computational cost, the region of interest (ROI) in the imaging feature region corresponding to the target unit can be extracted first, and then polynomial fitting can be performed on it in step S103. Specifically, line pair direction identification can be performed on the imaging feature region to distinguish radial and tangential line pairs. Then, the ROI is extracted from the radial and tangential line pairs respectively to obtain a square ROI. By extracting the ROI, the computation range of the subsequent polynomial fitting can be limited to the rectangular region containing the line pairs, thereby reducing interference from irrelevant regions and improving computational efficiency.
[0034] As an example, Figure 3a An example image of the original imaging feature region corresponding to the target unit is shown. Figure 3b An example image of the extracted region of interest is shown. Figure 3a and Figure 3b As can be seen, after the direction recognition of the line pairs, the left radial line pairs and the right tangential line pairs within the imaging feature region are effectively distinguished, and thus square regions of interest can be extracted separately. This process schematically illustrates the extraction effect from an elliptical imaging feature region to a rectangular region of interest, defining the analysis scope for subsequent independent polynomial fitting within the line pair regions.
[0035] In step S103, each line pair within the imaging feature region is subjected to independent polynomial fitting to obtain the brightness-pixel position fitting function corresponding to each line pair.
[0036] In one specific implementation, this step can be further refined as follows: taking a single line pair within a single pixel row perpendicular to the line pair's extension direction within the imaging feature region as the smallest fitting unit, perform independent polynomial fitting on each line pair in each row of pixels to obtain the brightness-pixel position fitting function corresponding to each line pair. Specifically, for each line pair, take a row of pixels perpendicular to the line pair's extension direction, where the brightness values of the pixels in this row change periodically. Use these pixel positions as independent variables x and the corresponding brightness values as dependent variables y, and perform polynomial fitting to obtain the brightness-pixel position fitting function for that line pair.
[0037] This application performs independent polynomial fitting on each line pair within the imaging feature region or region of interest because different line pairs have varying resolving power. If the brightness values of each line pair in each row within the imaging feature region or region of interest are statistically analyzed as a whole, only the average resolving power of the entire region can be obtained. However, in practical applications, users often prioritize detail resolution. Therefore, this application performs independent fitting on each line pair, i.e., piecewise line pair fitting. Piecewise fitting better reflects the module's sharpness at the detail level, thus providing a more detailed representation of the lens's resolving power characteristics.
[0038] For easier understanding, please refer to Figure 4 and Figure 5 Understanding the analytical force calculation strategy of this application. Figure 4 This image shows an example of the brightness value statistics for a row of lines in a region of interest. Figure 5 This is an example graph showing the luminance values of a row of pixels in a line pair.
[0039] like Figure 4 As shown, by statistically analyzing the brightness values corresponding to the line pairs shown on the left, we can obtain the brightness-pixel position curve shown on the right. From Figure 4 It can be seen that different line pairs exhibit certain differences in their brightness peak values, indicating that different line pairs have different resolving power. Therefore, independently fitting each line pair is essential for achieving more precise resolving power measurements.
[0040] like Figure 5 As shown, by statistically analyzing the brightness values corresponding to a row of pixels in a line pair shown on the left, the brightness-pixel position curve shown on the right can be obtained. From Figure 5As can be seen, each line pair has a corresponding peak and trough. These peaks and troughs can be obtained using polynomial fitting.
[0041] In practical applications, since image noise can affect fitting accuracy, a quadratic fitting method can be used for denoising. The specific steps include: First, performing a first polynomial fitting on the pixel position and brightness value sequence corresponding to a single line pair to obtain the first fitting result; then, based on the first fitting result, removing noise data from the pixel position and brightness value sequence, for example, removing points that deviate from the fitted curve by more than a set threshold, resulting in a denoised sequence; finally, performing a second polynomial fitting on the denoised sequence to obtain the final brightness-pixel position fitting function for that line pair. This quadratic fitting denoising process effectively reduces the impact of image noise on fitting accuracy and improves the accuracy of resolution calculation.
[0042] Polynomial fitting uses an m-1 degree polynomial, and the fitting formula S1 is: Pm-1(x)=p(0)+p(1)·x+p(2)·x²+…+p(m-1)·x(m-1) (S1), Where x is the pixel position, Pm⁻¹(x) is the fitted brightness value at the corresponding pixel position, p(0) to p(m⁻¹) are the fitting coefficients of the polynomial, and m is the order of the fitted polynomial. The fitting coefficients can be solved using conventional methods such as the least squares method. This fitting function can accurately describe the brightness distribution pattern within the line pair region.
[0043] Finally, in step S104, based on the brightness-pixel position fitting function corresponding to each line pair, the brightness peak value and brightness valley value of the line pair are extracted, and the resolution value corresponding to each line pair is calculated.
[0044] Specifically, for the luminance-pixel position fitting function of each line pair, its maximum value within one period is the luminance peak value Max_Tv, and its minimum value is the luminance trough value Min_Tv. The formula S2 for calculating the resolution of a single line pair is: Resolution=(Max_Tv-Min_Tv) / (Max_Tv+Min_Tv) (S2), Where Resolution is the resolution value of the line pair, Max_Tv is the peak value of the luminance wave corresponding to the fitting function of the line pair, and Min_Tv is the trough value of the luminance wave corresponding to the fitting function of the line pair.
[0045] This resolution value reflects the contrast of the line pair; a higher value indicates greater sharpness of the line pair. It should be noted that the resolution value typically ranges from 0 to 1. When the line pair is completely indistinguishable, the peak and trough values tend to be equal, and the resolution value approaches 0; when the line pair has high contrast, the resolution value approaches 1.
[0046] By following the steps above, the resolving power value of each line pair within each benchmark unit can be obtained, enabling a refined assessment of detail clarity.
[0047] Depending on the type of test specimen, different follow-up processing steps may be required.
[0048] When the test plate is a plate with a fixed number of line pairs, that is, the radial line pairs and tangential line pairs in each plate unit are equal-spaced, fixed-number black and white alternating line pairs, the method 100 may also include a basic resolution determination step.
[0049] Specifically, the resolution values of all line pairs within the same imaging feature region are obtained, and the minimum resolution value is extracted. This minimum resolution value is then compared with a preset acceptable threshold. If the minimum resolution value is greater than or equal to the acceptable threshold, the imaging clarity of the camera module under test for that fixed number of line pairs in the corresponding direction of the field of view is deemed acceptable. Conversely, if the minimum resolution value is less than the acceptable threshold, the imaging clarity of the camera module under test for that fixed number of line pairs in the corresponding direction of the field of view is deemed unacceptable. This judgment method focuses on the worst-case performance, effectively avoiding the problem of local resolution deficiencies being masked by the average value.
[0050] When the test target is a target with a gradually increasing number of line pairs, that is, when the radial and tangential line pairs within each target unit are wedge-shaped gradually increasing line pairs with a continuously linearly increasing number of line pairs from one end to the other, and the range of variation of the number of line pairs within all target units remains consistent, the method 100 may further include a limit resolution calibration step. The specific steps are as follows: First, based on the gradual change interval of line pairs within the target unit, the increment of line pairs per unit pixel in the line pair image is calculated and used as the minimum resolvable line pair ratio. Specifically, the formula S3 for calculating the minimum resolvable line pair ratio is: Minimum line pair ratio = (Max_Line - Min_Line) / N (S3). Where Max_Line is the maximum number of line pairs within a map cell, Min_Line is the minimum number of line pairs within a map cell, and N is the total number of pixels in the image corresponding to the line pair count gradient interval. This minimum resolvable line pair ratio reflects the amount of change in the number of line pairs that can be resolved per unit pixel length in the image, and is the basis for calculating the limit resolution.
[0051] Then, along the direction of increasing line pair count, each line pair in each column of pixels within the imaging feature region is checked against a preset threshold to verify if its resolving power is greater than or equal to the threshold value. The position corresponding to the last column of pixels that meets this condition is determined as the position of the maximum resolvable line pair for each column of pixels. Here, the direction of increasing line pair count refers to the direction in which the number of line pairs continuously increases from its minimum to its maximum (e.g., horizontally from left to right); each column of pixels refers to a column of pixels perpendicular to this increasing direction that has the same number of line pairs (e.g., a whole column of pixels in a vertical direction). Specifically, for each column of pixels (i.e., the position corresponding to a specific number of line pairs), the resolving power of each line pair in that column is calculated. If all line pairs meet the threshold requirement, the movement continues in the direction with a larger number of line pairs. When a line pair whose resolving power does not meet the threshold is encountered for the first time, the position of the previous column is determined as the position of the maximum resolvable line pair. In this way, the position of the maximum number of line pairs that the camera module can resolve in each column of pixels can be accurately located.
[0052] Finally, based on the position of the most resolvable line pairs and the minimum resolvable line pair ratio of each column of pixels, the maximum resolvable line pair count for that column is calculated. The minimum of the maximum resolvable line pair counts for all columns is taken as the final resolution of the camera module under test in the corresponding direction of the field of view. This final resolution reflects the ultimate resolving capability of the camera module in that direction.
[0053] The following provides an exemplary description of a test template applicable to the above method. It should be noted that the specific structure of the test template can be adjusted according to actual test requirements, and this application is not limited to the specific form described below.
[0054] In one exemplary embodiment, the test target includes a target body with a central field of view and at least one field of view ring distributed around the central field of view. A target unit is disposed within the central field of view, serving as a central reference point for testing the resolving power performance of the camera module at the central field of view. Multiple target units are distributed circumferentially on each field of view ring, each corresponding to a different spatial direction. By setting multiple target units in multiple spatial directions, the resolving power characteristics of the camera module at different azimuth angles can be comprehensively tested.
[0055] Each target unit is equipped with radial line pairs (referred to as S-line pairs) and tangential line pairs (referred to as T-line pairs), arranged orthogonally to each other. Radial line pairs are those whose extension direction passes through the central field of view, while tangential line pairs are those perpendicular to the radial direction and whose extension direction does not pass through the central field of view. This arrangement allows each target unit to simultaneously provide resolution test information in two mutually perpendicular directions, thus more comprehensively reflecting the imaging quality of the camera module in that spatial direction.
[0056] It should be noted that the radial line pairs and tangential line pairs are arranged orthogonally within the target unit, but the actual extension directions of the radial line pairs and tangential line pairs differ in target units with different spatial orientations, as described below.
[0057] In one specific implementation, within the central field of view, the radial line pairs of the target units extend vertically, while the tangential line pairs extend horizontally. For target units on the field of view ring, the radial line pairs extend through the central field of view, while the tangential line pairs do not. This distinction takes into account the geometric differences between the central and peripheral fields of view, making the target design more rational.
[0058] In a preferred embodiment, eight target units are evenly distributed on the field of view ring. These eight target units correspond to eight spatial directions: horizontal left, upper left 45 degrees, vertical up, upper right 45 degrees, horizontal right, lower right 45 degrees, vertical down, and lower left 45 degrees. These eight directions cover the main directions that users are most concerned about in practical applications of the camera module, and can better reflect the lens's resolving power performance in different orientations.
[0059] Furthermore, the field of view rings can include a first field of view ring and a second field of view ring arranged concentrically. The target units on the first field of view ring correspond one-to-one with the target units on the second field of view ring, and the line connecting the centers of two target units in the same direction passes through the central field of view region. For example, the horizontal left-direction target units on the first field of view ring and the horizontal left-direction target units on the second field of view ring are located on the same radial direction, and their center-connecting line passes through the central field of view region. This multi-field-of-view ring setup allows for simultaneous testing of the camera module's resolving power performance at different field-of-view angles, providing richer test data for lens aberration analysis.
[0060] Depending on the testing objective, the line pairs within a test template unit can be configured in different ways. In one implementation, when the test template is used to determine the resolving power corresponding to a line pair, the radial and tangential line pairs within each template unit are equally spaced, fixed-number alternating black and white line pairs. This fixed-number-line-pair template is suitable for routine resolving power testing and can determine whether the camera module can distinguish details with a specific number of line pairs.
[0061] In another implementation, when the test caliber is used to determine the resolution corresponding to the resolving power, the radial and tangential line pairs within each caliber unit are wedge-shaped gradient line pairs with the number of line pairs increasing linearly from one end to the other. The variation range of the number of line pairs within all caliber units remains consistent. This wedge-shaped gradient line pair can be used to test the limit resolution of the camera module, i.e., the maximum number of line pairs that can be resolved.
[0062] Figure 6 An exemplary imaging diagram of a test specimen according to an embodiment of this application is shown. Figure 6 As shown, the target plate body is provided with a central field of view area, and two field of view rings distributed around the central field of view area (which can be referred to as the first field of view ring and the second field of view ring for easy distinction).
[0063] The target plate body has a total of seventeen target plate units. There is one target plate unit D1 in the central field of view, eight target plate units D2, D3, D4, D5, D6, D7, D8 and D9 in the first field of view ring, and eight target plate units D10, D11, D12, D13, D14, D15, D16 and D17 in the second field of view ring. Among them, the eight target plate units on each field of view ring correspond to eight spatial directions: horizontal left, upper left 45 degrees, vertical up, upper right 45 degrees, horizontal right, lower right 45 degrees, vertical down and lower left 45 degrees. Specifically, label units D2 and D10 correspond to the horizontal left, label units D6 and D14 correspond to the horizontal right, label units D3 and D11 correspond to the upper left 45 degrees, label units D4 and D12 correspond to the vertical top, label units D5 and D13 correspond to the upper right 45 degrees, label units D7 and D15 correspond to the lower right 45 degrees, label units D8 and D16 correspond to the vertical bottom, and label units D9 and D17 correspond to the lower left 45 degrees.
[0064] from Figure 6 It can be seen that the eight target units on the first field of view ring correspond one-to-one with the eight target units on the second field of view ring, and the center line connecting two target units in the same direction passes through the central field of view region. For example, the center line connecting target unit D2 and target unit D10 passes through the center of the central target unit D1.
[0065] Furthermore, Figure 7 An example diagram of the label unit in the vertically above, vertically below, and central field of view regions according to an embodiment of this application is shown. Figure 7 As shown, for the target elements in the central field of view, the vertically above and vertically below the target area, the S-line pairs extend in the vertical direction, and the T-line pairs extend in the horizontal direction.
[0066] Figure 8 An example diagram of the horizontal left and right label units according to an embodiment of this application is shown. Figure 8 As shown, for the marker elements at the horizontal left and horizontal right positions, the S-line pairs extend in the horizontal direction, and the T-line pairs extend in the vertical direction.
[0067] Figure 9 Example diagrams of the label units at the upper left and lower left 45 degrees, according to embodiments of this application, are shown. Figure 9 As shown, for the target elements at the upper left 45 degrees and lower left 45 degrees, the extension direction of the S-line pair passes through the central field of view, while the extension direction of the T-line pair does not pass through the central field of view.
[0068] Figure 10 Example diagrams of the label units at the upper right 45 degrees and lower right 45 degrees according to embodiments of this application are shown. Figure 10 As shown, for the target elements at the upper right 45 degrees and lower right 45 degrees, the extension direction of the S-line pair passes through the central field of view, while the extension direction of the T-line pair does not pass through the central field of view.
[0069] pass Figures 7 to 10 It can be seen that in the target elements of different spatial directions, the extension directions of the radial line pairs and the tangential line pairs have been adaptively adjusted according to their positions to ensure that the radial line pairs all point to or pass through the central field of view, thereby meeting the requirements of resolution testing in different directions.
[0070] It should be noted that the specific structure of the test plate mentioned above is only an example. In actual applications, the number of field rings, the number and distribution direction of the test plate units, the type of line pairs, etc. can be flexibly adjusted according to the testing requirements. The core of this application lies in the line pair detection method itself.
[0071] In summary, this application embodiment obtains the brightness-pixel position fitting function for each line pair within the imaging feature region by performing independent polynomial fitting on each line pair, thereby calculating the independent resolution value for each line pair. Compared to calculating the overall sharpness average value on the entire region of interest, the solution provided by this application embodiment can evaluate the resolution for each line pair separately, which helps to reflect the resolution differences between different line pairs within the same region, thus providing more detailed reference information for the imaging performance of the camera module in local details.
[0072] While numerous embodiments of this application have been shown and described herein, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Many modifications, alterations, and alternatives will arise for those skilled in the art without departing from the spirit and intent of this application. It should be understood that various alternatives to the embodiments of this application described herein may be employed in the practice of this application. The appended claims are intended to define the scope of protection of this application and therefore cover equivalents or alternatives within the scope of these claims.
Claims
1. A method of resolving force testing, characterized by, Includes the following steps: The test target plate contains at least one target plate unit and each target plate unit is provided with at least one line pair. The test target plate contains at least one target plate unit and each target plate unit is provided with at least one line pair. The line pair image is preprocessed to locate and extract the imaging feature regions of all corresponding target units in the line pair image; For each line pair within the imaging feature region, perform independent polynomial fitting to obtain the brightness-pixel position fitting function corresponding to each line pair; Based on the brightness-pixel position fitting function corresponding to each line pair, the brightness peak value and brightness valley value of the line pair are extracted, and the resolution value corresponding to each line pair is calculated. Specifically, for each line pair within the imaging feature region, an independent polynomial fitting is performed to obtain the brightness-pixel position fitting function corresponding to each line pair, including: Using a single line pair in a single pixel row perpendicular to the line pair extension direction within the imaging feature region as the smallest fitting unit, perform independent polynomial fitting on each line pair in each row of pixels to obtain the brightness-pixel position fitting function corresponding to each line pair. Polynomial fitting of a single line pair includes the following operations: For the sequence of pixel positions and brightness values corresponding to a single line pair, perform the first polynomial fitting to obtain the first fitting result; Based on the first fitting result, noise data in the pixel position and brightness value sequence is removed to obtain the denoised sequence. A second polynomial fitting is performed on the denoised sequence to obtain the final brightness-pixel position fitting function for the line.
2. The resolution test method of claim 1, wherein The test target includes a target body, on which a central field of view is provided, and at least one field of view ring distributed around the central field of view; A target unit is provided in the central field of view area, and multiple target units are distributed circumferentially on each field of view ring, with each of the multiple target units corresponding to different spatial directions; Each standard unit is provided with radial line pairs and tangential line pairs, and the radial line pairs and tangential line pairs are arranged orthogonally.
3. The resolution test method of claim 2, wherein, The field of view ring is uniformly distributed with eight target units, which correspond to eight spatial directions: horizontal left, upper left 45 degrees, vertical up, upper right 45 degrees, horizontal right, lower right 45 degrees, vertical down, and lower left 45 degrees.
4. The resolution test method of claim 1, wherein Polynomial fitting uses an m-1 degree polynomial, and the fitting formula is: Pm-1(x) = p(0) + p(l) - x + p(2) - x2+... + p(m-1) - x (m-1) , Where x is the pixel position, Pm-1(x) is the fitted brightness value of the corresponding pixel position, p(0) to p(m-1) are the fitting coefficients of the polynomial, and m is the order of the fitted polynomial.
5. The resolution test method of claim 1, wherein The formula for calculating the analytical force of a single line pair is: Resolution=(Max_Tv-Min_Tv) / (Max_Tv+Min_Tv), Where Resolution is the resolution value of the line pair, Max_Tv is the peak value of the luminance wave corresponding to the fitting function of the line pair, and Min_Tv is the trough value of the luminance wave corresponding to the fitting function of the line pair.
6. The resolution test method of claim 2, wherein, The radial and tangential line pairs within the label unit are all equally spaced, fixed-number alternating black and white line pairs; and the method further includes: Obtain the resolving power values of all line pairs within the same imaging feature region, and extract the minimum resolving power value among them; The minimum resolution value is compared with a preset qualified threshold. If the minimum resolution value is greater than or equal to the qualified threshold, it is determined that the imaging clarity of the camera module under test meets the standard for the fixed number of line pairs in the corresponding direction of the field of view.
7. The resolution test method of claim 2, wherein The radial and tangential line pairs within the target unit are wedge-shaped gradually increasing line pairs whose number of line pairs increases linearly from one end to the other, and the variation range of the number of line pairs within all target units remains consistent. The method also includes: Based on the gradual range of line pairs within the standard unit, the increment of line pairs corresponding to a unit pixel in the line pair image is calculated and used as the minimum resolvable line pair ratio. Along the direction of increasing line logarithm, check each line pair in each column of pixels within the imaging feature region along the direction of line logarithm change to verify whether the resolution value of a single line pair is greater than or equal to a preset qualified threshold, and determine the position corresponding to the last column of pixels that meets the condition as the limit resolvable line pair position of each column of pixels. Based on the position of the most resolvable line pairs for each column of pixels and the minimum resolvable line pair ratio, the maximum resolvable line pair count for that column of pixels is calculated. The minimum value of the maximum resolvable line pair count for all columns is taken as the final resolution of the camera module under test in the corresponding direction of the field of view.
8. The resolution test method of claim 7, wherein, The formula for calculating the minimum resolution line pair ratio is: Minimum line pair ratio = (Max_Line - Min_Line) / N Where Max_Line is the maximum number of line pairs within the target cell, Min_Line is the minimum number of line pairs within the target cell, and N is the total number of pixels in the image corresponding to the line pair gradient interval.
9. An apparatus for resolving force testing, comprising: processor; as well as A memory storing program instructions for resolution testing, which, when executed by a processor, implement the resolution testing method according to any one of claims 1-8.
10. A computer-readable storage medium storing computer-readable instructions for resolution testing, which, when executed by one or more processors, implement the resolution testing method according to any one of claims 1-8.
Citation Information
Patent Citations
Method and device for testing resolving power of camera module
CN115018919A
Resolution power test method and device of optical imaging system, and readable storage medium
CN117969024A
