Wide-angle-based fingerprint module test method and system, and storage medium
By acquiring and correcting the checkerboard style image, detecting corner points and performing SFR resolution tests, the distortion and resolution problems of wide-angle optical modules in fingerprint recognition are solved, and the accuracy and readability of the image are improved.
Patent Information
- Application Number
- CN202510230034.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-07-01
AI Technical Summary
In the prior art, wide-angle optical modules have distortion and resolution problems when shooting fingerprint recognition areas, which affects the accuracy and readability of the image.
By obtaining the checkerboard style image covering the full screen of the camera module, performing distortion correction, determining the ROI area, detecting corner points, calculating the corner point distance and storing coordinate information, determining the point to be detected based on the coordinate information, conducting SFR resolution tests, and determining whether the linearity meets the standards.
At the same time, it takes into account test resolution and judges whether the distortion correction meets the standards, improving the accuracy and readability of the image.
Smart Images

Figure CN120236186A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of module testing, and more specifically, to a fingerprint module testing method, system and storage medium based on wide-angle. Background Art
[0002] In the prior art, for increasing the recognition area of fingerprints, a wide-angle optical module can be used for shooting, but at the same time, problems of distortion and resolution are introduced.
[0003] Among them, distortion mainly refers to the image distortion caused by factors such as lens shape and assembly during the imaging process; distortion will affect the accuracy and readability of the image. Resolution is the ability of an imaging system to clearly distinguish the smallest details or objects. It is affected by various factors, including the pixel resolution of the photographic equipment, the lens quality, and various factors during the imaging process. Summary of the Invention
[0004] The purpose of the embodiments of the present invention is to simultaneously take into account testing the resolution and determining whether the distortion correction meets the standard.
[0005] The first aspect of the present invention provides a fingerprint module testing method based on wide-angle, and the method includes:
[0006] Obtain a checkerboard-style image that can cover the full screen of the camera module, obtain a first image after distortion correction, and determine the first ROI area and the area to be tested of the first image;
[0007] Perform corner detection on the first ROI area, find two closest corners, and determine the first side length and the rotation angle;
[0008] Calculate the distance between any two corners respectively. If the distance is less than the first preset threshold, store the coordinate information of the two corners;
[0009] Determine the points to be detected in the area to be tested according to the coordinate information, take a second ROI area for the points to be detected, and perform SFR resolution testing.
[0010] Further, the method further includes:
[0011] Rotate the first image according to the rotation angle to obtain a second image;
[0012] Detect the four outer corner points of the second image, and judge the linearity of the outer sides formed by the four outer corner points;
[0013] If the linearity is less than the second preset threshold, determine that the test result does not meet the standard.
[0014] Further, the first preset threshold is determined according to the first side length; the first side length is the length between the two nearest corner points;
[0015] Calculate the distances between any two corner points respectively. If the distance is less than the first preset threshold, store the coordinate information of the two corner points, including:
[0016] Judge the differences in the horizontal and vertical directions of the two corner points. If the horizontal distance between the two corner points is greater than the vertical distance, classify and store them in the horizontal direction; if the vertical distance between the two corner points is greater than the horizontal distance, classify and store them in the vertical direction;
[0017] Among them, the horizontal direction storage and the vertical direction storage respectively use the set storage method to store the coordinates into the horizontal container and the vertical container.
[0018] Further, the area to be measured is a point to be measured; determining the point to be detected according to the coordinate information and the area to be measured, and taking the second ROI area for the point to be detected, including:
[0019] Determine the first coordinate point and the second coordinate point closest to the point to be measured from the horizontal container and the vertical container respectively as the points to be detected;
[0020] Take the smallest circumscribed rectangle as the second ROI area with the first coordinate point and the second coordinate point as the centers respectively.
[0021] Further, the area to be measured is a point to be measured; determining the point to be detected according to the coordinate information and the area to be measured, and taking the second ROI area for the point to be detected, further includes:
[0022] Calculate the center positions of the first coordinate point and the second coordinate point as the new starting point, and respectively find the third coordinate point and the fourth coordinate point with the shortest distance to the new starting point in the horizontal container and the vertical container except for the first coordinate point and the second coordinate point;
[0023] Determine the first coordinate point, the second coordinate point, the third coordinate point, and the fourth coordinate point as the points to be detected;
[0024] Take the smallest circumscribed rectangle as the second ROI area with the first coordinate point, the second coordinate point, the third coordinate point, and the fourth coordinate point as the centers respectively.
[0025] In addition, the second aspect of the present invention provides a fingerprint module test system based on a wide angle. The system includes a first determination module, a second determination module, a calculation and storage module, and a test module, where:
[0026] The first determination module is configured to obtain a checkerboard pattern image capable of covering the full screen of the camera module, obtain a first image after distortion correction, and determine a first ROI region and a region to be measured of the first image;
[0027] The second determination module performs corner detection on the first ROI region, finds two closest corners, and determines a first side length and a rotation angle;
[0028] The calculation and storage module is configured to calculate the distance between any two corners respectively. If the distance is less than a first preset threshold, the coordinate information of the two corners is stored;
[0029] The first test module is configured to determine a point to be detected corresponding to the region to be measured according to the coordinate information, take a second ROI region for the point to be detected, and perform SFR resolution test.
[0030] Furthermore, the system further includes a second test module, which is configured to:
[0031] Rotate the first image according to the rotation angle to obtain a second image;
[0032] Detect the four peripheral corner points of the second image, and judge the linearity of the peripheral sides formed by the four peripheral corner points;
[0033] If the linearity is less than a second preset threshold, it is determined that the test result does not meet the standard.
[0034] Furthermore, the first preset threshold is determined according to the first side length; the first side length is the length of the two closest corners;
[0035] The calculation and storage module is further configured to judge the difference between the two corners in the horizontal and vertical directions. If the horizontal distance between the two corners is greater than the vertical distance, it is classified as storage in the horizontal direction; if the vertical distance between the two corners is greater than the horizontal distance, it is classified as storage in the vertical direction;
[0036] Wherein, the horizontal direction storage and the vertical direction storage respectively adopt a set storage method to store the coordinates into a horizontal container and a vertical container.
[0037] Furthermore, the region to be measured is a point to be measured; the first test module is further configured to:
[0038] Determine a first coordinate point and a second coordinate point closest to the point to be measured from the horizontal container and the vertical container respectively as the points to be detected;
[0039] Take the smallest circumscribed rectangle as the second ROI region with the first coordinate point and the second coordinate point as the centers respectively.
[0040] In addition, a third aspect of the present invention provides a storage medium storing a computer program, which is loaded and executed by a processor to implement the steps of the wide-angle-based fingerprint module testing method described in the first aspect above.
[0041] In the solution of the present invention, by obtaining a checkerboard pattern image that can cover the full screen of the camera module, after distortion correction, a first image is obtained, and the first ROI region and the region to be tested of the first image are determined; corner detection is performed on the first ROI region to find two closest corners, and the first side length and the rotation angle are determined; the distances between any two corners are calculated respectively, and if the distance is less than a first preset threshold, the coordinate information of the two corners is stored; according to the coordinate information, the points to be detected are determined in the region to be tested, and a second ROI region is taken for the SFR resolution test at the points to be detected. Compared with the prior art, the present invention can take into account both the test of the resolution and the judgment of whether the distortion correction meets the standard. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and thus should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0043] Figure 1 is a flowchart showing the steps of the wide-angle-based fingerprint module testing method disclosed in the embodiments of the present invention;
[0044] Figure 2 is a subjective diagram showing the resolution test of two sides;
[0045] Figure 3 is a subjective diagram showing the resolution test of four sides;
[0046] Figure 4 is a subjective diagram showing the rotation of the drawing;
[0047] Figure 5 is a structural diagram of the wide-angle-based fingerprint module testing system disclosed in the embodiments of the present invention;
[0048] Figure 6 is a structural diagram of an electronic device disclosed in the embodiments of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above drawings are intended to cover non-exclusive inclusion. The terms "first", "second", etc. in the specification and claims of this application or the above drawings are used to distinguish different objects and not to describe a specific order.
[0050] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of this application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0051] It should be noted that: "a plurality" as referred to herein means two or more.
[0052] The following elaborates in detail on the implementation details of the technical solutions of the embodiments of this application:
[0053] In the first aspect of this embodiment, a fingerprint module testing method based on a wide angle is implemented. Please refer to Figure 1 , Figure 1 which is a flowchart of a fingerprint module testing method based on a wide angle disclosed in an embodiment of the present invention. The method includes:
[0054] S101, obtain a checkerboard pattern image that can cover the full screen of the camera module, obtain a first image after distortion correction, and determine the first ROI region and the region to be tested of the first image;
[0055] Specifically, in this embodiment, by designing a chart that can cover the full screen of the camera module, in a checkerboard pattern, and performing distortion correction on it. Among them, for distortion correction, the lens distortion coefficient can be used to restore it, or several samples can be taken to calibrate the module to obtain a set of internal parameters and distortion coefficients.
[0056] After distortion correction, subsequent resolution tests are performed on the image. Among them, first determine the ROI region of the image after distortion correction, and capture the corner points of the determined ROI region. In this embodiment, the capture of corner points will not be elaborated and reference can be made to the corner point position acquisition method disclosed in the prior art with the publication number "CN 107231553 A" to determine the corner points of the ROI region.
[0057] Among them, the above-mentioned first ROI region is artificially set. For example, if it is necessary to measure the 0.7 field of view in the upper left corner, that is, the center of the first ROI region is at the 0.7 field of view in the upper left corner, and the size of the ROI is also artificially set. If it is set too large, the calculation amount will increase; if it is set too small, the edges may not be fully covered. Generally, the first ROI region is set as a square region with a side length greater than the side length of two checkerboard grids and less than the side length of three checkerboard grids.
[0058] It should be noted that in this embodiment, a region to be measured can be determined. The region to be measured can be represented by a cross, and the coordinates of the cross intersection point are the center point corresponding to the region to be measured, which can also be used to directly represent the position of the region to be measured.
[0059] S102, perform corner detection on the first ROI region, find two nearest corners, and determine the first side length and the rotation angle;
[0060] Specifically, in this embodiment, first find two nearest corners, obtain the minimum side length as d, and calculate the rotation angle angle1.
[0061] Among them, for performing corner detection on the first ROI region, finding two nearest corners, and determining the rotation angle, it can be specifically implemented in the following manner: The angle between the straight line formed by the two nearest corners and the horizontal line or the vertical line is determined as the corresponding rotation angle angle1; further, it can be determined whether the rotation angle angle1 meets the test angle. Generally, a test angle range can be artificially set. If the rotation angle angle1 is within the predetermined angle range, it meets the test angle.
[0062] S103, calculate the distance between any two corners respectively. If the distance is less than the first preset threshold, store the coordinate information of the two corners;
[0063] Among them, the first preset threshold is determined according to the first side length; the first side length is the length of the two nearest corners.
[0064] The step of calculating the distance between any two corners respectively. If the distance is less than the first preset threshold, store the coordinate information of the two corners, includes:
[0065] Judge the difference between the two corners in the horizontal and vertical directions. If the horizontal distance between the two corners is greater than the vertical distance, it is classified and stored in the horizontal direction; if the vertical distance between the two corners is greater than the horizontal distance, it is classified and stored in the vertical direction;
[0066] Among them, the horizontal direction storage and the vertical direction storage respectively use the set storage method to store the coordinates into the horizontal container and the vertical container.
[0067] Specifically, in this embodiment, the distances between two corner points are calculated respectively. If the distance is less than 2 * 0.6 * d (i.e., the first preset threshold), it enters the storage process, and the differences in the horizontal and vertical directions between these two points are judged. If the horizontal distance is greater than the vertical distance, it is classified into horizontal storage; if the vertical distance is greater than the horizontal distance, it is classified into vertical storage.
[0068] It should be noted that for storage classified in different directions, the corresponding (x, y) coordinates need to be stored. It can be understood that the horizontal coordinates (x, y) are stored in the first type of buffer, and the vertical coordinates (x, y) are stored in the second type of buffer. Each point has both horizontal and vertical coordinates. When classifying knowledge, they are classified to different places.
[0069] The following takes "if the horizontal distance is greater than the vertical distance, it is classified into horizontal storage" as an example. If the horizontal distance is greater than the vertical distance, it is classified into horizontal storage. The storage method is set according to the coordinates, and the repetition is only set once. The set coordinates are the middle coordinates of the two points:
[0070] ax = abs(corners11.at(i).x + corners11.at(j).x) / 2;
[0071] ay = abs(corners11.at(i).y + corners11.at(j).y) / 2;
[0072] For horizontal storage, psrc23[ay * width + ax] = 1;
[0073] For vertical storage, psrc23[ay * width + ax] = 2;
[0074] Among them, psrc23 is the name of the array; ay * width + ax is the way to calculate the array index. Here, ay and ax are variables representing the row (y-axis) and column (x-axis) in the two-dimensional coordinate, and width is the "width" of the array, that is, the number of elements in each row. In this way, the two-dimensional coordinate can be converted into the index of a one-dimensional array. psrc23[] = 1 is to set the element value at the calculated index position to 1.
[0075] The horizontal and vertical coordinates are stored into the buffer container respectively.
[0076] Further, the area to be measured is a point to be measured; determining the point to be detected corresponding to the area to be measured according to the coordinate information, and taking a second ROI area for the point to be detected includes: respectively determining the first coordinate point and the second coordinate point closest to the point to be measured in the horizontal container and the vertical container as the points to be detected; respectively taking the smallest circumscribed rectangle as the second ROI area with the first coordinate point and the second coordinate point as the centers.
[0077] Further, optionally, determining the point to be detected corresponding to the area to be measured according to the coordinate information, and taking a second ROI area for the point to be detected further includes: calculating the central positions of the first coordinate point and the second coordinate point as the new starting points, and respectively finding the third coordinate point and the fourth coordinate point with the shortest distance to the new starting points in the horizontal container and the vertical container except for the first coordinate point and the second coordinate point; determining the first coordinate point, the second coordinate point, the third coordinate point, and the fourth coordinate point as the points to be detected; respectively taking the smallest circumscribed rectangle as the second ROI area with the first coordinate point, the second coordinate point, the third coordinate point, and the fourth coordinate point as the centers.
[0078] S104, determining the point to be detected corresponding to the area to be measured according to the coordinate information, taking a second ROI area for the point to be detected, and performing SFR resolution test.
[0079] This embodiment can test the resolution of two sides or four sides. First, as Figure 2 shown is the subjective schematic diagram of testing the resolution of two sides in this example.
[0080] Further, in this embodiment, by respectively calculating the horizontal coordinate and the vertical coordinate in the buffer container that are closest to Figure 2 the area to be measured (the yellow cross) in Figure 2 it, the points to be detected (points a and b, Figure 2 the red circles shown) are obtained. Among them, the smallest circumscribed rectangles of points a and b are respectively taken as the second ROI areas. The size of the smallest circumscribed rectangle here can be set artificially. And further, based on the second ROI area, an SFR resolution test is performed.
[0081] If it is necessary to test four sides, the following steps need to be carried out:
[0082] As Figure 3 shown is the subjective schematic diagram of testing the resolution of four sides in this embodiment. Further, by calculating the central area c (the yellow circle) of points a and b as the new starting point, and respectively finding the respective points with the shortest distance to c in the horizontal container and the vertical container except for points a and b, the other two points to be detected a1 and b1 are obtained.
[0083] Therefore, for testing the four sides, it includes four points to be detected, namely a, b, a1, and b1. Among them, the smallest circumscribed rectangle of the four points to be detected, a, b, a1, and b1, is taken as the second ROI region. The size of the smallest circumscribed rectangle here can be set artificially. Further, based on the second ROI region, SFR resolution test is carried out.
[0084] SFR (Spatial Frequency Response) resolution test is a commonly used image resolution test method. SFR resolution test is mainly used to evaluate the resolution ability of an imaging system, that is, the ability of the imaging system to capture and reproduce image details. It evaluates the resolution by measuring the response of spatial frequencies in the image. In the SFR test, a test chart with black and white hypotenuses is usually used for analysis. The test process includes obtaining the ROI (region of interest) of the vertical hypotenuse, performing data normalization, calculating the pixel centroid of each row of the image, using the least squares method to perform linear fitting on the centroids of each row to obtain a straight line about the centroids, then repositioning the ROI to obtain the edge spread function (ESF), performing four-fold supersampling on the ESF, obtaining the line spread function (LSF) through differential operation, applying a Hamming window to the LSF, and finally performing discrete Fourier transform (DFT) operation.
[0085] Further, the method further includes: rotating the first image according to the rotation angle to obtain a second image; detecting the four corner points of the periphery of the second image, and judging the linearity of the peripheral edges formed by the four corner points of the periphery; if the linearity is less than a second preset threshold, it is determined that the test result does not meet the standard.
[0086] Specifically, in this embodiment, by rotating the drawing, such as Figure 4 The subjective schematic diagram of the drawing rotation of this example is shown. According to the rotation angle angle1 obtained in step S102, after rotation, the outermost corner points of the drawing are detected, that is, the four corner points of the outer edge of the image are detected, and the linearity is detected based on the four edges formed by the connection of the corner points. When the linearity is less than a certain value, the test result does not meet the standard, NG.
[0087] In summary, in this embodiment, by obtaining a checkerboard pattern image that can cover the full screen of the camera module, the first image is obtained after distortion correction, and the first ROI region and the region to be measured of the first image are determined; corner detection is performed on the first ROI region to find two closest corners, and the first side length and the rotation angle are determined; the distances between any two corners are calculated respectively, and if the distance is less than the first preset threshold, the coordinate information of the two corners is stored; the point to be detected is determined according to the coordinate information and the region to be measured, and the second ROI region is taken for the point to be detected for SFR resolution test. Compared with the prior art, this embodiment can take into account both the test of resolution and the judgment of whether the distortion correction meets the standard.
[0088] In addition, the second aspect of this embodiment provides a fingerprint module test system based on a wide angle, as Figure 5 shown. The system includes a first determination module 501, a second determination module 502, a calculation and storage module 503, and a test module 504, where:
[0089] The first determination module 501 is configured to obtain a checkerboard pattern image that can cover the full screen of the camera module, obtain the first image after distortion correction, and determine the first ROI region and the region to be measured of the first image;
[0090] The second determination module 502 performs corner detection on the first ROI region to find two closest corners, and determines the first side length and the rotation angle;
[0091] The calculation and storage module 503 is configured to calculate the distances between any two corners respectively, and if the distance is less than the first preset threshold, store the coordinate information of the two corners;
[0092] The first test module 504 is configured to determine the point to be detected according to the coordinate information and the region to be measured, take the second ROI region for the point to be detected, and perform SFR resolution test.
[0093] Further, the system further includes a second test module 505, which is configured to:
[0094] Rotate the first image according to the rotation angle to obtain a second image;
[0095] Detect the outer four corner points of the second image and judge the linearity of the outer sides formed by the outer four corner points;
[0096] If the linearity is less than the second preset threshold, it is determined that the test result does not meet the standard.
[0097] Further, the first preset threshold is determined according to the first side length; the first side length is the length of the two closest corners;
[0098] The calculation and storage module 503 is further configured to determine the differences in the horizontal and vertical directions of the two corner points. If the horizontal distance between the two corner points is greater than the vertical distance, it is classified as storage in the horizontal direction; if the vertical distance between the two corner points is greater than the horizontal distance, it is classified as storage in the vertical direction.
[0099] Among them, the horizontal direction storage and the vertical direction storage respectively use the set storage method to store the coordinates into the horizontal container and the vertical container.
[0100] Further, the area to be measured is a point to be measured; the first test module 504 is further configured to:
[0101] Determine the first coordinate point and the second coordinate point closest to the point to be measured from the horizontal container and the vertical container respectively as the points to be detected;
[0102] Take the smallest circumscribed rectangle as the second ROI area with the first coordinate point and the second coordinate point as the centers respectively.
[0103] The first test module 504 is further configured to:
[0104] Calculate the center positions of the first coordinate point and the second coordinate point as the new starting points, and respectively find the third coordinate point and the fourth coordinate point with the shortest distance to the new starting points in the horizontal container and the vertical container except for the first coordinate point and the second coordinate point;
[0105] Determine the first coordinate point, the second coordinate point, the third coordinate point, and the fourth coordinate point as the points to be detected;
[0106] Take the smallest circumscribed rectangle as the second ROI area with the first coordinate point, the second coordinate point, the third coordinate point, and the fourth coordinate point as the centers respectively.
[0107] In addition, a third aspect of this embodiment provides a storage medium, which stores a computer program; the program is loaded and executed by a processor to implement the steps of the fingerprint module testing method based on a wide angle as described in the first aspect above.
[0108] In addition, an embodiment of the present application also discloses an electronic device, as Figure 6 shown, the electronic device includes: one or more processors, a memory, and the memory is used to store one or more computer programs; characterized in that the computer program is configured to be executed by the one or more processors, and the program includes steps for executing the fingerprint module testing method based on a wide angle as described in the first aspect above.
[0109] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0110] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed couplings or direct couplings or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices or units, and can also be electrical, mechanical or other forms of connection.
[0111] The units described as separate components may or may not be physically separated. As units, those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0112] In addition, the functional units in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0113] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a grid device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0114] The specific embodiments described above further elaborate on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only the specific embodiments of the present invention and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A fingerprint module testing method based on wide angle, characterized in that: The method comprises: Acquire a checkerboard pattern image that can cover the entire screen of the camera module, acquire a first image after distortion correction, and determine a first ROI area and a test area of the first image; Performing corner point detection on the first ROI area, finding two nearest corner points, and determining a first side length and a rotation angle; Calculate the distance between any two corner points respectively, and if the distance is less than a first preset threshold, store the coordinate information of the two corner points; A point to be detected is determined according to the coordinate information and the area to be detected, a second ROI area is taken for the point to be detected, and an SFR resolution test is performed.
2. The wide-angle fingerprint module testing method according to claim 1, characterized in that: The method further comprises: Rotate the first image according to the rotation angle to obtain a second image; Detecting the outer four corner points of the second image, and determining the linearity of the outer edges formed by the outer four corner points; If the linearity is less than a second preset threshold, it is determined that the test result does not meet the standard.
3. The wide-angle fingerprint module testing method according to claim 2, characterized in that: The first preset threshold is determined according to the first side length; the first side length is the length of the two nearest corner points; The respectively calculating the distance between any two corner points, and if the distance is less than a first preset threshold, storing the coordinate information of the two corner points, includes: Determine the difference between the horizontal and vertical directions of the two corner points. If the distance between the two corner points in the horizontal direction is greater than the distance in the vertical direction, they are summarized as being stored in the horizontal direction; if the distance between the two corner points in the vertical direction is greater than the distance in the horizontal direction, they are summarized as being stored in the vertical direction; The horizontal storage and the vertical storage respectively use a position storage method to store the coordinates in the horizontal container and the vertical container.
4. The wide-angle fingerprint module testing method according to claim 3, characterized in that: The area to be tested is a point to be tested; the step of determining the point to be tested based on the coordinate information and the area to be tested, and taking a second ROI area for the point to be tested includes: Determine a first coordinate point and a second coordinate point closest to the point to be detected from the horizontal container and the vertical container respectively as the point to be detected; Taking the first coordinate point and the second coordinate point as the center, a smallest circumscribed rectangular frame is taken as the second ROI area.
5. The wide-angle fingerprint module testing method according to claim 3, characterized in that: The area to be tested is a point to be tested; determining the point to be tested according to the coordinate information and the area to be tested, and taking a second ROI area for the point to be tested, further comprises: Calculate the center positions of the first coordinate point and the second coordinate point as the new starting point, and respectively find the third coordinate point and the fourth coordinate point in the horizontal container and the vertical container other than the first coordinate point and the second coordinate point, which are closest to the new starting point; Determine the first coordinate point, the second coordinate point, the third coordinate point, and the fourth coordinate point as points to be detected; Taking the first coordinate point, the second coordinate point, the third coordinate point and the fourth coordinate point as the center, a smallest circumscribed rectangular frame is taken as the second ROI area.
6. A fingerprint module testing system based on wide angle, characterized in that: The system includes a first determination module, a second determination module, a calculation and storage module, and a test module, wherein: A first determination module is used to obtain a checkerboard pattern image that can cover the entire screen of the camera module, obtain a first image after distortion correction, and determine a first ROI area and a test area of the first image; A second determination module performs corner point detection on the first ROI area, finds two nearest corner points, and determines a first side length and a rotation angle; A calculation and storage module, used for respectively calculating the distance between any two corner points, and storing the coordinate information of the two corner points if the distance is less than a first preset threshold; The first testing module is used to determine a point to be detected according to the coordinate information and the area to be detected, take a second ROI area for the point to be detected, and perform an SFR resolution test.
7. The wide-angle-based fingerprint module testing system according to claim 6, characterized in that: The system further comprises a second testing module, configured to: Rotate the first image according to the rotation angle to obtain a second image; Detecting the outer four corner points of the second image, and determining the linearity of the outer edges formed by the outer four corner points; If the linearity is less than a second preset threshold, it is determined that the test result does not meet the standard.
8. The wide-angle-based fingerprint module testing system according to claim 7, characterized in that: The first preset threshold is determined according to the first side length; the first side length is the length of the two nearest corner points; The calculation and storage module is further used to determine the difference between the two corner points in the horizontal and vertical directions. If the distance between the two corner points in the horizontal direction is greater than the distance in the vertical direction, they are summarized as being stored in the horizontal direction; if the distance between the two corner points in the vertical direction is greater than the distance in the horizontal direction, they are summarized as being stored in the vertical direction; The horizontal storage and the vertical storage respectively use a position storage method to store the coordinates in the horizontal container and the vertical container.
9. The wide-angle-based fingerprint module testing system according to claim 8, characterized in that: The area to be tested is a point to be tested; the first test module is further used for: Determine a first coordinate point and a second coordinate point closest to the point to be detected from the horizontal container and the vertical container respectively as the point to be detected; Taking the first coordinate point and the second coordinate point as the center, a smallest circumscribed rectangular frame is taken as the second ROI area.
10. A storage medium storing a computer program; the program is loaded and executed by a processor to implement the steps of the wide-angle based fingerprint module testing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Angular point position acquisition method and device
CN107231553A