Checkerboard-based Image Testing Method, System, Storage Medium and Intelligent Terminal

Through the image testing method based on the checkerboard, the detection area information and checkerboard image information are used to realize convenient change of view angle and efficient calculation of SFR value, solving the problems of low efficiency and high cost of view angle detection in the prior art, and improving the accuracy and stability of detection.

CN113947587BActive Publication Date: 2025-06-24SHENZHEN NEW FOUR SEASONS INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111228203.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-21
Publication Date
2025-06-24
Estimated Expiration
2041-10-21

AI Technical Summary

Technical Problem

In the prior art, drawings need to be reprinted when detecting different perspectives, resulting in low work efficiency and high test cost, and it is impossible to efficiently analyze the image of the mobile phone camera module.

Method used

The image testing method based on the checkerboard is adopted. By obtaining the detection area information and the checkerboard image information, the control center point overlaps, the square image information and the coordinates of the side length and midpoint are obtained, the SFR value is calculated using the test database, and the detection area size is adjusted to adapt to the detection of different perspectives.

Benefits of technology

It realizes convenient perspective changes, improves detection efficiency and accuracy, reduces test costs, and ensures the stability and accuracy of SFR value calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947587B_ABST
    Figure CN113947587B_ABST
Patent Text Reader

Abstract

The present application relates to a checkerboard-based image testing method, system, storage medium and intelligent terminal, and relates to the field of image analysis technology. It includes obtaining detection area information and checkerboard image information; controlling the center point of the detection area information to move to coincide with the detection point; if they coincide, obtaining the detection image information intercepted from the checkerboard image information for the area corresponding to the detection area information; obtaining square image information from the detection image information according to the square model; determining the midpoint coordinate information of the side length of the image according to the square image information; determining the test area information with the midpoint coordinate information of the side length as the midpoint according to the area size, and obtaining the test image information intercepted from the detection image information for the test area information; matching the SFR value corresponding to the test image information according to the test image information and the corresponding SFR value in the test database. The present application has the effect of facilitating the detection of different perspectives during image testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image analysis technology, and in particular, to an image testing method, system, storage medium, and intelligent terminal based on a checkerboard. Background Art

[0002] In a mobile phone camera module, in order to detect the clarity of the images captured by the mobile phone, it is necessary to perform image analysis on the captured images.

[0003] In related technologies, there is an image analysis method called the SFR analysis and speed measurement algorithm. The SFR value represents the perspective clarity. During the process of calculating the SFR value, it is necessary to first select the perspective of the area in the photo where the SFR value needs to be detected, and then print the perspective in the photo onto a drawing similar to a nine-square grid for SFR value calculation.

[0004] Regarding the above related technologies, the inventor believes that when different perspectives need to be detected, only the drawing for detection can be reprinted, which not only has low work efficiency but also increases the test cost, and there is still room for improvement. Summary of the Invention

[0005] In order to facilitate the detection of different perspectives during image testing, this application provides an image testing method, system, storage medium, and intelligent terminal based on a checkerboard.

[0006] In a first aspect, this application provides an image testing method based on a checkerboard, adopting the following technical solution:

[0007] An image testing method based on a checkerboard includes:

[0008] Obtain detection area information and checkerboard image information of a preset checkerboard;

[0009] Control the center point of the area corresponding to the detection area information to move to coincide with the preset detection point;

[0010] Judge whether the center point of the area corresponding to the detection area information coincides with the detection point;

[0011] If the center point of the area corresponding to the detection area information does not coincide with the detection point, continue to move the detection area information;

[0012] If the center point of the area corresponding to the detection area information coincides with the detection point, obtain the detection image information intercepted from the area corresponding to the detection area information in the checkerboard image information;

[0013] Obtain square image information from the detection image information according to the preset square model;

[0014] Determine the midpoint coordinate information of multiple side lengths of the image based on the image corresponding to the square image information;

[0015] Determine the test area information with the coordinate points corresponding to the midpoint coordinate information of the side length as the midpoint according to the preset area size, and obtain the test image information intercepted from the detection image information of the area corresponding to the test area information;

[0016] Match the SFR value corresponding to the test image information according to the test image information stored in the preset test database and the corresponding SFR value.

[0017] By adopting the above technical solution, when the detection perspective needs to be changed, the perspective can be changed by using the movement of the area corresponding to the detection area information, which is convenient for changing the detection perspective to perform detections from different perspectives; after the detection perspective is changed, the detection image information delimited by the area corresponding to the detection area information can be intercepted, and the square image information in the detection image information can be obtained according to the square model. Since the position of the square corresponding to the square image information relative to the area corresponding to the detection area information is known, and the position of the area corresponding to the detection area information relative to the entire checkerboard is known, the midpoint coordinate information of multiple side lengths of the image corresponding to the square image information can be obtained. Thus, the test area information can be determined according to the midpoint coordinate information of the side length, and the SFR value can be calculated according to the determined test area information.

[0018] Optionally, it further includes a method for adjusting the detection area information, and this method includes:

[0019] Obtain the quantity information of the square image information;

[0020] Judge whether the value corresponding to the quantity information is equal to the preset reference value;

[0021] If the value corresponding to the quantity information is equal to the reference value, output a correct signal;

[0022] If the value corresponding to the quantity information is greater than the reference value, shrink the area corresponding to the detection area information until a correct message is output;

[0023] If the value corresponding to the quantity information is less than the reference value, enlarge the area corresponding to the detection area information until a correct message is output.

[0024] By adopting the above technical solution, when the value of the quantity information is greater than the reference value, it indicates that the area corresponding to the detection area information is too large, and at this time, the deviation of the measured SFR value is relatively large. When the value of the quantity information is less than the reference value, it indicates that the area corresponding to the detection area information is too small, and there may be a situation where the SFR value cannot be calculated. Therefore, it is necessary to make the value corresponding to the quantity information equal to the reference value to facilitate the acquisition of the SFR value.

[0025] Optionally, it further includes a method for determining the test area information, and this method includes:

[0026] Calculate the distances between the coordinate points corresponding to the midpoint coordinates of multiple side lengths and the detection point to obtain multiple distance information;

[0027] According to the preset sorting rule, obtain the smallest distance information and the second smallest distance information among the multiple distance information;

[0028] Define the coordinate points corresponding to the midpoint coordinates of the side lengths corresponding to the smallest distance information and the second smallest distance information as test points, and determine the test area information based on the test points.

[0029] By adopting the above technical solution, when the distance corresponding to the distance information is smaller, it indicates that the distance between the coordinate point corresponding to the midpoint coordinate of the side length and the detection point is closer. At this time, the accuracy of the SFR value calculated from the image corresponding to the defined test image information is relatively high. Among the two defined test area information, there must be a horizontal area and a vertical area, so that the horizontal SFR value and the vertical SFR value can be obtained.

[0030] Optionally, it further includes a detection anomaly method before image testing, and this method includes:

[0031] Obtain the current image acquisition information of the checkerboard;

[0032] Judge whether there is an abnormal brightness area in the image corresponding to the current image acquisition information;

[0033] If there is no abnormal brightness area in the image corresponding to the current image acquisition information, output a normal checkerboard signal;

[0034] If there is an abnormal brightness area in the image corresponding to the current image acquisition information, output an abnormal checkerboard signal and output the abnormal brightness area information;

[0035] Divide the image corresponding to the abnormal brightness area information into several brightness points, and determine the brightest brightness point among the several brightness points according to the brightness change information stored in the preset brightness database, and define the brightness point as the irradiation point;

[0036] Calculate the distances between several boundary points of the abnormal brightness area and the illumination point to determine the minimum value of the distance from the boundary points on the boundary line of the abnormal brightness area to the illumination point, and define this boundary point as the extended point;

[0037] Connect the illumination point and the extended point and extend it in the direction away from the illumination point until it intersects with a preset track, and define this intersection point as the fixed point;

[0038] Control the preset baffle to move along the track to the fixed point and judge whether there is an abnormal brightness area;

[0039] If there is no abnormal brightness area, output a normal checkerboard signal.

[0040] By adopting the above technical solution, it is necessary to detect the checkerboard before measuring the SFR value to judge whether there is an abnormal brightness area on the checkerboard so as to judge that the acquisition of the checkerboard image information is relatively accurate. If there is an abnormal brightness area, the obtained checkerboard image information may have a situation where the brightness is too large to calculate the SFR value. At this time, the illumination point can be obtained by dividing the brightness abnormal area and analyzing each divided brightness point. This illumination point is the action point where the external light source irradiates on the checkerboard. The ray passing through the extended point with the illumination point as the origin must pass through the projection of the external light source on the plane where the checkerboard is located. At this time, control the baffle to move to the fixed point. The baffle may block the external light source so that there is no abnormal brightness area on the checkerboard.

[0041] Optionally, if there is an abnormal brightness area after the baffle moves to the fixed point, the moving method of the baffle further includes:

[0042] Control the baffle to rotate around the preset reference axis within the preset rotation angle range in the preset rotation direction, and judge whether there is an abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle;

[0043] If there is no abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle, the baffle stops rotating and outputs a temporarily normal signal;

[0044] If there is an abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle, the baffle rotates to the preset reference angle and outputs a temporarily abnormal signal.

[0045] By adopting the above technical solution, when there is still an abnormal brightness area after the baffle moves to the fixed point, the baffle is controlled to rotate so as to change the shielding orientation of the baffle. If the external light source can be blocked during the rotation of the baffle, it indicates that the image acquisition information on the checkerboard temporarily meets the requirements. If the external light source still cannot be blocked after the baffle rotates, it means that the external light source cannot be blocked by the rotation of the baffle. At this time, the baffle is rotated to the reference angle for the next operation.

[0046] Optionally, when the temporary normal information is output, the image testing method includes:

[0047] Judge whether there is a shadow abnormal area in the image corresponding to the current image acquisition information;

[0048] If there is no shadow abnormal area in the image corresponding to the image acquisition information, a normal checkerboard signal is output;

[0049] If there is a shadow abnormal area in the image corresponding to the image acquisition information, a temporary abnormal signal is output and the baffle is controlled to rotate to the reference angle.

[0050] By adopting the above technical solution, when the external light source is blocked after the baffle rotates, it is necessary to judge whether there is a shadow situation in the image corresponding to the image acquisition information. If there is no shadow situation, it means that the current checkerboard meets the test requirements and the test can be carried out. If there is a shadow situation, it means that the current checkerboard does not meet the test requirements and the test cannot be carried out. It is necessary to rotate the baffle to the reference angle for the next operation.

[0051] Optionally, when the baffle rotates to the reference angle, the moving method of the baffle further includes:

[0052] Control the baffle to move away from the track within the preset moving range, and judge whether there is an abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle;

[0053] If there is no abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle, the baffle stops moving and outputs a normal checkerboard signal;

[0054] If there is an abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle, an alarm signal is output.

[0055] By adopting the above technical solution, when the baffle rotates to the reference angle, the baffle can be moved away from the track, so that the baffle can continuously approach the external light source. Within the preset moving range, if the baffle can block the external light source, it indicates that the checkerboard meets the requirements. If the baffle cannot block the external light source within the moving range, it means that the external light source cannot be blocked by the baffle. At this time, the alarm signal sent can let the staff know, so that the staff can manually block the external light source to prevent the external light source from affecting the checkerboard.

[0056] In a second aspect, the present application provides an image testing system based on a checkerboard, adopting the following technical solution:

[0057] An image testing system based on a checkerboard, comprising:

[0058] An acquisition module for acquiring detection area information and checkerboard image information of a preset checkerboard;

[0059] A processing module, connected to the acquisition module and the judgment module, for storing and processing information;

[0060] The processing module is used to control the center point of the area corresponding to the detection area information to move to coincide with the preset detection point;

[0061] A judgment module for judging whether the center point of the area corresponding to the detection area information coincides with the detection point;

[0062] When the judgment module judges that the center point of the area corresponding to the detection area information does not coincide with the detection point, the processing module continues to move the detection area information;

[0063] When the judgment module judges that the center point of the area corresponding to the detection area information coincides with the detection point, the processing module acquires the detection image information intercepted from the area corresponding to the detection area information in the checkerboard image information;

[0064] The processing module is used to acquire square image information from the detection image information according to the preset square model;

[0065] The processing module is used to determine the midpoint coordinate information of multiple side lengths of the image according to the image corresponding to the square image information;

[0066] The processing module is used to determine the test area information with the coordinate points corresponding to the midpoint coordinate information of the side length as the midpoint according to the preset area size, and acquire the test image information intercepted from the area corresponding to the test area information in the detection image information;

[0067] A processing module, configured to match the SFR value corresponding to the test image information according to the test image information stored in the preset test database and the corresponding SFR value.

[0068] By adopting the above technical solution, the checkerboard image information and the detection area information of the checkerboard can be obtained through the acquisition module. When the detection perspective needs to be changed, the processing module can be used to change the perspective by moving the area corresponding to the detection area information until the judgment module determines that the center point of the area corresponding to the detection area information coincides with the detection point, which is convenient for changing the detection perspective to perform detections from different perspectives; after the detection perspective is changed, the detection image information delimited by the area corresponding to the detection area information can be intercepted, and the square image information in the detection image information can be obtained according to the square model. Since the position of the square corresponding to the square image information relative to the area corresponding to the detection area information is known, and the position of the area corresponding to the detection area information relative to the entire checkerboard is known, the midpoint coordinates of the side lengths of multiple sides of the image corresponding to the square image information can be obtained, and thus the test area information can be determined according to the midpoint coordinates of the side lengths. The SFR value can be calculated according to the determined test area information.

[0069] In a third aspect, the present application provides an intelligent terminal, adopting the following technical solution:

[0070] An intelligent terminal includes a memory and a processor. A computer program capable of being loaded and executed by the processor for any of the above-mentioned checkerboard-based image testing methods is stored on the memory.

[0071] By adopting the above technical solution, through the use of the intelligent terminal, when the detection perspective needs to be changed, the perspective can be changed by moving the area corresponding to the detection area information, which is convenient for changing the detection perspective to perform detections from different perspectives; after the detection perspective is changed, the detection image information delimited by the area corresponding to the detection area information can be intercepted, and the square image information in the detection image information can be obtained according to the square model. Since the position of the square corresponding to the square image information relative to the area corresponding to the detection area information is known, and the position of the area corresponding to the detection area information relative to the entire checkerboard is known, the midpoint coordinates of the side lengths of multiple sides of the image corresponding to the square image information can be obtained, and thus the test area information can be determined according to the midpoint coordinates of the side lengths. The SFR value can be calculated according to the determined test area information.

[0072] In a fourth aspect, the present application provides a computer storage medium capable of storing a corresponding program, which has the characteristic of facilitating the change of the detection perspective, and adopts the following technical solution:

[0073] A computer-readable storage medium stores a computer program that can be loaded and executed by a processor to perform any of the above checkerboard-based image testing methods.

[0074] By adopting the above technical solution, there is a computer program for the checkerboard-based image testing method in the storage medium. When the detection perspective needs to be changed, the perspective can be changed by using the movement of the area corresponding to the detection area information, which is convenient for changing the detection perspective to perform detections from different perspectives; after the detection perspective is changed, the detection image information delimited by the area corresponding to the detection area information can be intercepted, and the square image information in the detection image information can be obtained according to the square model. Since the position of the square corresponding to the square image information is known relative to the area corresponding to the detection area information, and the position of the area corresponding to the detection area information relative to the entire checkerboard is known, the midpoint coordinate information of the side lengths of multiple sides of the image corresponding to the square image information can be obtained, and thus the test area information can be determined according to the midpoint coordinate information of the side lengths. The SFR value can be calculated according to the determined test area information.

[0075] In summary, the present application includes at least one of the following beneficial technical effects:

[0076] 1. When performing image testing, the use of the checkerboard enables the detection perspective to be changed arbitrarily to calculate the SFR values from different perspectives;

[0077] 2. Calculating the SFR value by delimiting the area close to the perspective detection point can make the calculation result of the SFR value more accurate;

[0078] 3. Detecting the checkerboard before the experiment to reduce the occurrence of a situation where a certain perspective on the checkerboard cannot be detected due to abnormal brightness improves the stability of the experiment. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Figure 1 is a flowchart of the checkerboard-based image testing method.

[0080] Figure 2 is a flowchart of the detection area size control method.

[0081] Figure 3 is a flowchart of the test area selection method.

[0082] Figure 4 is a flowchart of the abnormal detection method.

[0083] Figure 5 is a flowchart of the shadow judgment method.

[0084] Figure 6 is a flowchart of the abnormal elimination method.

[0085] Figure 7It is a module flow chart of an image test method based on a checkerboard. Detailed implementation manners

[0086] To make the objectives, technical solutions and advantages of the present application clearer and more understandable, the following further elaborates on the present application in conjunction with the Figures 1-7 accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0087] The following further describes the embodiments of the present invention in detail in conjunction with the drawings of the specification.

[0088] The embodiments of the present application disclose an image test method based on a checkerboard. When it is necessary to detect different perspectives, the detection requirements can be met by changing the perspective.

[0089] Refer to Figure 1 , the method flow of the image test based on the checkerboard includes the following steps:

[0090] Step S100: Obtain the detection area information and the checkerboard image information of the preset checkerboard.

[0091] The checkerboard is a checkerboard with black and white intervals. The staff selects a checkerboard with a suitable size and a suitable number of squares according to the actual situation, which will not be elaborated. The checkerboard image information is obtained by an instrument for taking pictures installed above the checkerboard, such as a camera. Parameters such as the size, direction, and zoom in the checkerboard image information are set and adjusted by the height of the camera, which is common knowledge for those skilled in the art and will not be elaborated here. Also, software tools for automatic zooming and adjusting the specific size of the image can be installed on the camera for adjustment, which is set by the staff according to the actual situation and will not be elaborated here. The image corresponding to the checkerboard image information can be converted into the RGB format through image format conversion for subsequent image processing, which is a conventional technical means for those skilled in the art and will not be elaborated; the area corresponding to the detection area information is a movable area with a constant area size on the checkerboard, and the shape is a square for area selection and division, which is a conventional technical means for those skilled in the art and will not be elaborated.

[0092] Step S101: Control the center point of the area corresponding to the detection area information to move to coincide with the preset detection point.

[0093] The detection point is the position of the required detection perspective. The staff modifies the detection point by modifying the parameters through external software. The control method of the area corresponding to the detection area information is controlled by an internal program to move the center point of the area corresponding to the detection area information in the direction of the detection point.

[0094] Step S102: Determine whether the center point of the area corresponding to the detection area information coincides with the detection point.

[0095] The purpose of the determination is to know whether the area corresponding to the detection area information has moved to the perspective position to be detected, so as to determine whether the subsequent operations are to be carried out.

[0096] Step S1021: If the center point of the area corresponding to the detection area information does not coincide with the detection point, continue to move the detection area information.

[0097] When the center point of the area corresponding to the detection area information does not coincide with the detection point, it means that the area corresponding to the detection area information has not yet moved to the perspective position to be detected. At this time, continue to move the detection area information.

[0098] Step S1022: If the center point of the area corresponding to the detection area information coincides with the detection point, obtain the detection image information intercepted from the checkerboard image information by the area corresponding to the detection area information.

[0099] When the center point of the area corresponding to the detection area information coincides with the detection point, it means that the area corresponding to the detection area information has moved to the perspective position to be detected. At this time, the image corresponding to the checkerboard image information can be intercepted by the area corresponding to the detection area information to obtain the image included in the area corresponding to the detection area information. Recording the information of this image is the detection image information. The interception method is a conventional technical means for those skilled in the art and will not be elaborated.

[0100] Step S103: Obtain the square image information from the detection image information according to the preset square model.

[0101] The square image information is the complete black square in the image corresponding to the detection image information. The image is processed by Gaussian filtering smoothing to eliminate the noise in the image corresponding to the detection image information, so as to reduce the situation that the noise in the black square interferes with the coordinates of the black square and causes the coordinates of the black square to shift. Then, through binary image testing, the RGB image is converted into a black and white image, which is convenient for subsequent calculations and can disconnect the adjacent black square corner positions to achieve the independence of the black square. The square model is obtained by deep learning, and through a limited number of sample collections, the detection image information is learned regularly until any detection image information is input and the corresponding square image information can be output.

[0102] Step S104: Determine the coordinate information of the midpoints of the multiple side lengths of the image according to the image corresponding to the square image information.

[0103] The ratio of the image corresponding to the square image information to the image corresponding to the detection image information can be obtained from the number of pixel points occupied by the image corresponding to the square image information, so that the side length of the image corresponding to the square image information can be obtained. According to the side length, the midpoint coordinates of each side of the square corresponding to the square image information can be known, and this coordinate is the side length midpoint coordinate information.

[0104] Step S105: Determine the test area information with the coordinate point corresponding to the side length midpoint coordinate information as the midpoint according to the preset area size, and obtain the test image information intercepted from the detection image information for the area corresponding to the test area information.

[0105] The area size is a fixed value set in advance, which is a rectangle with fixed length and width, and is set by the staff according to the actual situation, so it will not be elaborated. The area recorded in the test area information is the area where the SFR value needs to be detected, and the speed measurement image information is the image intercepted from the detection image information for the area corresponding to the test area information, so that the computer can obtain the image of the detection area to calculate the SFR value in the subsequent process.

[0106] Step S106: Match the SFR value corresponding to the test image information according to the test image information stored in the preset test database and the corresponding SFR value.

[0107] The test database consists of the IOS12233 method, which is a conventional method for detecting the SFR value. Just input the test image information into the test database, and the corresponding SFR value can be obtained through the IOS12233 method; the area corresponding to the test area information is the ROI area. Use OECF to linearize the image data, use the FIR filter to calculate the derivative to obtain the LSF in the X direction, then calculate the centroid of each LSF in the ROI area, and fit the linear equation to the centroid position, calculate the number of lines of each phase rotation, and reduce the ROI to obtain an integer number of phase rotations. Use the linear fitting data, project the LSF data along the edge direction to the top row of the ROI, move the data, sample at 1 / 4 of the original image sampling rate, and apply the Hamming window. Calculate the discrete Fourier transform of the windowed image, combine the LSF data, and output the normalized modulus value, which is the SFR value.

[0108] Refer to Figure 2 , the adjustment method of the detection area information includes:

[0109] Step S200: Obtain the quantity information of the square image information.

[0110] The value corresponding to the quantity information is the quantity of the square image information. The initial value of the value corresponding to the quantity information is 0. When the square image information is collected, the value corresponding to the quantity information is incremented by 1.

[0111] Step S201: Determine whether the value corresponding to the quantity information is equal to a preset reference value.

[0112] The reference value is a preset fixed value, which is set by the staff according to the actual situation and will not be elaborated here. The purpose of the judgment is to know whether the quantity corresponding to the block image information meets the requirements for subsequent calculations.

[0113] Step S2011: If the value corresponding to the quantity information is equal to the reference value, output a correct signal.

[0114] When the value corresponding to the quantity information is equal to the reference value, it indicates that the size of the area corresponding to the detection area information is appropriate and can delineate a block of appropriate size. At this time, output a correct signal so that the staff can know that the size of the area corresponding to the detection area information is appropriate and there is no need to modify the detection area information.

[0115] Step S2012: If the value corresponding to the quantity information is greater than the reference value, reduce the area corresponding to the detection area information until a correct message is output.

[0116] When the value corresponding to the quantity information is greater than the reference value, it means that the area corresponding to the detection area information is too large. At this time, the size of the delineated block is small, which is not convenient for determining the center point of the block side length. It is necessary to reduce the area corresponding to the detection area information so that the area corresponding to the detection area information meets the requirements.

[0117] Step S2013: If the value corresponding to the quantity information is less than the reference value, enlarge the area corresponding to the detection area information until a correct message is output.

[0118] When the value corresponding to the quantity information is less than the reference value, it means that the area corresponding to the detection area information is too small. At this time, there may be a situation where there is no complete block, so it is necessary to enlarge the area corresponding to the detection area information so that the area corresponding to the detection area information meets the requirements.

[0119] Refer to Figure 3 , the method for determining the test area information includes:

[0120] Step S300: Calculate the distances between the coordinate points corresponding to the midpoint coordinates of multiple side lengths and the detection point to obtain multiple distance information.

[0121] The coordinate values of the detection point and the coordinate points corresponding to the midpoint coordinates of the side lengths are both known and can be calculated through the formula for calculation, is the distance between the coordinate point corresponding to the midpoint coordinate information of the side length and the detection point, that is, the data recorded by the distance information; is the abscissa coordinate value of the detection point, is the abscissa coordinate value of the coordinate point corresponding to the midpoint coordinate information of the side length, is the ordinate coordinate value of the detection point, is the abscissa coordinate value of the coordinate point corresponding to the midpoint coordinate information of the side length.

[0122] Step S301: Obtain the smallest distance information and the second smallest distance information among multiple distance information according to the preset sorting rule.

[0123] The sorting rule is a rule set in advance and is any method capable of numerical comparison. In this embodiment, the bubble method is used to compare multiple distance information, so as to obtain the smallest and the second smallest distance information among the distance information.

[0124] Step S302: Define the coordinate points corresponding to the midpoint coordinate information of the smallest distance information and the second smallest distance information as test points, and determine the test area information based on the test points.

[0125] According to the two smallest values of the distance information, the corresponding midpoint coordinate information of the side length can be obtained. The coordinate midpoints corresponding to these two midpoint coordinate information of the side length must be the midpoints of adjacent sides on the square. At this time, the measured SFR values are the horizontal SFR value and the vertical SFR value respectively. This coordinate point is the test point. Determining the test area information based on the test point can make the measured SFR value closer to the SFR value of the detection point, so that the measured value is more accurate.

[0126] Refer to Figure 4 , the detection anomaly method before the image test includes:

[0127] Step S400: Obtain the current image acquisition information of the checkerboard.

[0128] The current image acquisition information is the image information of the checkerboard in real time, which is obtained by an instrument with a shooting function, such as a camera. The parameters such as the size, direction, and zoom in the current image acquisition information are set and adjusted by the height of the camera. This is common knowledge for those skilled in the art and will not be elaborated here. And software tools for automatic zoom and adjusting the specific size of the image can also be installed on the camera for adjustment, which is set by the staff according to the actual situation and will not be elaborated here; the current image acquisition information is processed by binarization, so that the image corresponding to the captured image acquisition information is black and white.

[0129] Step S401: Determine whether there is an abnormal brightness area in the image corresponding to the current image acquisition information.

[0130] The abnormal brightness area is the area with relatively high brightness on the checkerboard, which can be obtained through the image corresponding to the image acquisition information. If a certain area shows a relatively white color and is different from the white color of the surrounding areas, then this area is the abnormal brightness area. By distinguishing colors, the abnormal brightness area can have a relatively clear boundary line; the purpose of the judgment is to know whether there is an area on the checkerboard that is greatly affected by an external light source, so as to reduce the situation where the SFR value cannot be detected when detecting the SFR value of this area later.

[0131] Step S4011: If there is no abnormal brightness area in the image corresponding to the current image acquisition information, output a normal checkerboard signal.

[0132] When there is no abnormal brightness area in the image corresponding to the current image acquisition information, it means that the SFR value can be detected in each area of the checkerboard. At this time, output a correct checkerboard signal so that the staff can know that the checkerboard can be normally detected.

[0133] Step S4012: If there is an abnormal brightness area in the image corresponding to the current image acquisition information, output an abnormal checkerboard signal and output the abnormal brightness area information.

[0134] When there is an abnormal brightness area in the image corresponding to the current image acquisition information, it means that there is an area in the checkerboard where the SFR value cannot be detected. At this time, output an abnormal checkerboard signal so that the staff can know that the checkerboard cannot be normally detected; the data recorded in the abnormal brightness area information includes the boundary line and the area size of the abnormal brightness area.

[0135] Step S402: Divide the image corresponding to the abnormal brightness area information into several brightness points, and determine the brightness point with the maximum brightness value among the several brightness points according to the brightness change information stored in the preset brightness database, and define the brightness point as the irradiation point.

[0136] The division of the brightness points is in units of pixel points, so that the image corresponding to the abnormal brightness area information can be evenly divided and each pixel point can be distinguished; the brightness database is a database set in advance, which is formed by combining the black and white degrees presented by the checkerboard squares at different brightnesses. The brightness change information is the degree of color change of the checkerboard squares at different brightnesses. By comparing the colors of the brightness points, the brightness point with the maximum brightness in the abnormal brightness area can be known, and this brightness point is the point where the external light source irradiates on the checkerboard. Therefore, this brightness point is defined as the irradiation point.

[0137] Step S403: Calculate the distances between several boundary points of the abnormal brightness area and the irradiation point to determine the minimum value from the boundary points on the boundary line of the abnormal brightness area to the irradiation point, and define this boundary point as the extension point.

[0138] Each boundary point of the abnormal brightness region corresponds to a pixel point. The pixel point has coordinates, and the distance between the boundary point of the abnormal brightness region and the irradiation point can be calculated through the formula to determine the boundary point on the boundary line of the abnormal brightness region that is closest to the irradiation point. This boundary point can be defined as the extension point; is the distance between the boundary point of the abnormal brightness region and the irradiation point, is the abscissa coordinate value of the irradiation point, is the abscissa coordinate value of the boundary point of the abnormal brightness region, is the ordinate coordinate value of the irradiation point, is the ordinate coordinate value of the boundary point of the abnormal brightness region.

[0139] Step S404: Connect the irradiation point and the extension point and extend it in the direction away from the irradiation point until it intersects with a preset track, and define this intersection point as the fixed point.

[0140] The track is a path for the trolley to move that is set in advance around the checkerboard. The trolley can move horizontally or vertically on the track. The figure enclosed by the track and the figure of the checkerboard are similar figures. The ray formed by connecting the irradiation point and the extension point and extending it in the direction away from the irradiation point can pass through the projection of the external light source on the plane where the checkerboard is located. During the extension of this ray, it can intersect with the track, and the intersection point is defined as the fixed point for subsequent operations.

[0141] Step S405: Control the preset baffle to move along the track to the fixed point and determine whether there is an abnormal brightness region.

[0142] The baffle is a plate installed on the trolley. The baffle is perpendicular to the plane where the checkerboard is located. Under the action of the first motor installed on the trolley, the baffle can rotate around the rotation axis perpendicular to the plane where the checkerboard is located so that after the trolley stops moving, the baffle can be parallel to the edge of the checkerboard it faces; through the coordinate position of the fixed point, the trolley can be moved to the corresponding position so that the projection of the baffle on the plane where the checkerboard is located can be at the fixed point. The purpose of the judgment is to know whether the baffle can block the external light source for subsequent operations.

[0143] Step S4051: If there is no abnormal brightness region, output a normal checkerboard signal.

[0144] When there is no abnormal brightness region, it means that the trolley baffle can block the external light source. At this time, the checkerboard can be used normally, and a normal checkerboard signal is output for the staff to know.

[0145] Step S4052: If there is an abnormal brightness area, control the baffle to rotate around the preset reference axis within the preset rotation angle range in the preset rotation direction, and determine whether there is an abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle.

[0146] When there is an abnormal brightness area, it indicates that the baffle in the state perpendicular to the plane where the checkerboard is located cannot block the external light source. The reference axis is a previously set rotation axis, driven by a second motor installed on the trolley. The rotation angle range is the previously set range available for the baffle to rotate. The angles corresponding to the rotation angle range intersect the plane where the checkerboard is located for setting. The maximum value of the rotation angle range should ensure that the baffle does not move above the checkerboard to reduce the situation where the camera cannot collect the image information of the checkerboard. The rotation direction is towards the checkerboard. When the second motor starts to rotate the baffle, the first motor moves synchronously with the baffle; the purpose of the judgment is to know whether the baffle can block the external light source during the rotation process for subsequent operations.

[0147] Step S40521: If there is no abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle, the baffle stops rotating and outputs a temporarily normal signal.

[0148] When there is no abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle, it indicates that the baffle at the current position can block the external light source. At this time, the baffle stops rotating to block the external light source, and outputs a temporarily normal signal to enable the staff to know that the current state of the baffle can block the external light source.

[0149] Step S40522: If there is an abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle, the baffle rotates to the preset reference angle and outputs a temporarily abnormal signal.

[0150] When there is an abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle, it indicates that the baffle cannot block the external light source within the rotation angle range. At this time, a temporarily abnormal signal is output to enable the staff to know that the external light source is not blocked by the baffle. The reference angle is a previously set fixed value, which is set by the staff according to the actual situation and will not be elaborated here.

[0151] Refer to Figure 5 , when the temporarily normal information is output, the image testing method includes:

[0152] Step S500: Determine whether there is a shadow abnormal area in the image corresponding to the current image acquisition information.

[0153] The shadow abnormal area is the area with shadow. Whether there is a shadow can be determined by the change of color in the image corresponding to the current image acquisition information. The purpose of the judgment is to know whether the projection of the baffle is in the checkerboard when the baffle is in the position of outputting temporarily normal information, so as to facilitate subsequent judgment.

[0154] Step S5001: If there is no shadow abnormal area in the image corresponding to the image acquisition information, output a normal checkerboard signal.

[0155] When there is no shadow abnormal area in the image corresponding to the image acquisition information, it means that the current position of the baffle has no influence on the checkerboard. The output normal checkerboard signal can enable external staff to know that the checkerboard can be used normally.

[0156] Step S5002: If there is a shadow abnormal area in the image corresponding to the image acquisition information, output a temporarily abnormal signal and control the baffle to rotate to the reference angle.

[0157] When there is a shadow abnormal area in the image corresponding to the image acquisition information, it means that the current position of the baffle has an impact on the use of the checkerboard. The output temporarily abnormal signal can enable external staff to know that the checkerboard cannot be used temporarily, and rotate the baffle to the reference angle so that the baffle can perform subsequent movements.

[0158] Refer to Figure 6 When the baffle rotates to the reference angle, the moving method of the baffle includes:

[0159] Step S600: Control the baffle to move away from the track within the preset moving range, and judge whether there is an abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle.

[0160] The moving range is a preset fixed value, which is set by the staff according to the actual situation and will not be elaborated. The movement of the baffle is completed by the cylinder. When the piston rod of the cylinder extends, the baffle, the first motor and the second motor can all move away from the track; the purpose of the judgment is to know whether the baffle can block the external light source during the movement away from the track, so as to facilitate subsequent operations.

[0161] Step S6001: If there is no abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle, the baffle stops moving and outputs a normal checkerboard signal.

[0162] When there is no abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle, it means that the baffle can block the external light source at the current position. At this time, the baffle stops moving to block the external light source, and at the same time outputs a normal checkerboard signal to enable external staff to know that the checkerboard can be used normally.

[0163] Step S6002: If there is an abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle, an alarm signal is output.

[0164] When there is an abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle, it indicates that the external light source cannot be blocked by the movement of the baffle. At this time, the output alarm signal can enable the staff to know that the external light source cannot be processed by the baffle, and the staff needs to take measures to process the external light source so that the checkerboard can be used normally. The alarm signal can be an indicator light or a horn, which is set by the staff according to the actual situation and will not be elaborated.

[0165] Refer to Figure 7 , based on the same inventive concept, an embodiment of the present invention provides an image testing system based on a checkerboard, including:

[0166] An acquisition module that acquires detection area information and checkerboard image information of a preset checkerboard;

[0167] A processing module, connected to the acquisition module and the judgment module, for storing and processing information;

[0168] The processing module is used to control the center point of the area corresponding to the detection area information to move to coincide with the preset detection point;

[0169] A judgment module for judging whether the center point of the area corresponding to the detection area information coincides with the detection point;

[0170] When the judgment module determines that the center point of the area corresponding to the detection area information does not coincide with the detection point, the processing module continues to move the detection area information;

[0171] When the judgment module determines that the center point of the area corresponding to the detection area information coincides with the detection point, the processing module acquires the detection image information intercepted from the checkerboard image information of the area corresponding to the detection area information;

[0172] The processing module is used to acquire block image information from the detection image information according to the preset block model;

[0173] The processing module is used to determine the coordinates of the midpoints of multiple side lengths of the image according to the image corresponding to the block image information;

[0174] The processing module is used to determine the test area information with the coordinate points corresponding to the midpoint coordinates of the side lengths as the midpoints according to the preset area size, and acquire the test image information intercepted from the detection image information of the area corresponding to the test area information;

[0175] A processing module, configured to match the SFR value corresponding to the test image information according to the test image information stored in the preset test database and the corresponding SFR value;

[0176] A detection area adjustment module, configured to adjust the size of the area corresponding to the area information;

[0177] A test area determination module, configured to determine the test area information;

[0178] An anomaly detection module, configured to detect whether there is an area on the checkerboard that is affected by an external light source and causes anomalies;

[0179] A first baffle movement module, configured to control the rotation of the baffle so that the baffle can block the external light source;

[0180] A shadow judgment module, configured to judge whether there is a shadow of the baffle on the checkerboard, so as to reduce the situation that the checkerboard is affected by the baffle shadow;

[0181] A second baffle movement module, configured to control the movement of the baffle so that the baffle can block the external light source.

[0182] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working processes of the system, device, and unit described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0183] An embodiment of the present invention provides a computer-readable storage medium storing a computer program that can be loaded and executed by a processor to perform an image test method based on a checkerboard.

[0184] Computer storage media include, for example: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.

[0185] Based on the same inventive concept, an embodiment of the present invention provides an intelligent terminal, including a memory and a processor, and the memory stores a computer program that can be loaded and executed by the processor to perform an image test method based on a checkerboard.

[0186] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. For the specific working processes of the system, device, and unit described above, reference can be made to the corresponding processes in the foregoing method embodiments, which will not be elaborated herein.

[0187] The above are all preferred embodiments of the present application. The protection scope of the present application is not limited thereby. Any feature disclosed in this specification (including the abstract and drawings), unless specifically described, can be replaced by other equivalent or similar-purpose alternative features. That is, unless specifically described, each feature is only an example of a series of equivalent or similar features.

Claims

1. A checkerboard-based image testing method, characterized in that, Including: Obtain the detection area information and the checkerboard image information of the preset checkerboard; Control the center point of the area corresponding to the detection area information to move to coincide with the preset detection point; Judge whether the center point of the area corresponding to the detection area information coincides with the detection point; If the center point of the area corresponding to the detection area information does not coincide with the detection point, continue to move the area corresponding to the detection area information; If the center point of the area corresponding to the detection area information coincides with the detection point, obtain the detection image information intercepted by the area corresponding to the detection area information in the checkerboard image information; Obtain the square image information from the detection image information according to the preset square model, and the square image information is the information corresponding to the complete black square in the image corresponding to the detection image information; Determine the midpoint coordinate information of multiple side lengths of the image according to the image corresponding to the square image information; Determine the test area information with the coordinate points corresponding to the midpoint coordinate information of the side lengths as the center points according to the preset area size, and obtain the test image information intercepted by the area corresponding to the test area information in the detection image information. The area corresponding to the area size is a rectangle with fixed length and width, and the area size is a preset fixed value; Match the SFR value corresponding to the test image information according to the test image information stored in the preset test database and the corresponding SFR value; It also includes a method for determining the test area information, and this method includes: Calculate the distances between the coordinate points corresponding to the midpoint coordinate information of multiple side lengths and the detection point to obtain multiple distance information; Obtain the smallest distance information and the second smallest distance information among the multiple distance information according to the preset sorting rule; Define the coordinate points corresponding to the midpoint coordinate information of the smallest distance information and the second smallest distance information as test points, and determine the test area information with the test points.

2. The checkerboard-based image testing method according to claim 1, wherein: It also includes an adjustment method for the detection area information, and this method includes: Obtain the quantity information of the square image information; Judge whether the value corresponding to the quantity information is equal to the preset reference value; If the value corresponding to the quantity information is equal to the reference value, output a correct signal; If the value corresponding to the quantity information is greater than the reference value, shrink the area corresponding to the detection area information until the correct information is output; If the value corresponding to the quantity information is less than the reference value, enlarge the area corresponding to the detection area information until the correct information is output.

3. The checkerboard-based image testing method according to claim 1, wherein: It also includes a detection anomaly method before the image test, and this method includes: Obtain the current image acquisition information of the checkerboard; Judge whether there is an abnormal brightness area in the image corresponding to the current image acquisition information; If there is no abnormal brightness area in the image corresponding to the current image acquisition information, output a normal checkerboard signal; If there is an abnormal brightness area in the image corresponding to the current image acquisition information, output an abnormal checkerboard signal and output the abnormal brightness area information; Divide the image corresponding to the abnormal brightness area information into several brightness points, determine the brightest brightness point among the several brightness points according to the brightness change information stored in the preset brightness database, and define the brightness point as the irradiation point; Calculate the distances between several boundary points of the abnormal brightness area and the irradiation point to determine the minimum value from the boundary points on the boundary line of the abnormal brightness area to the irradiation point, and define this boundary point as the extended point; Connect the irradiation point and the extended point and extend it in the direction away from the irradiation point until it intersects with the preset track to form an intersection point, and define this intersection point as the fixed point; Control the preset baffle to move along the track to the fixed point and determine whether there is an abnormal brightness area; If there is no abnormal brightness area, output a normal checkerboard signal.

4. The checkerboard-based image testing method according to claim 3, wherein: If there is an abnormal brightness area after the baffle moves to the fixed point, the moving method of the baffle further includes: Control the baffle to rotate around the preset reference axis within the preset rotation angle range in the preset rotation direction, and determine whether there is an abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle; If there is no abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle, the baffle stops rotating and outputs a temporarily normal signal; If there is an abnormal brightness area in the image corresponding to the current image acquisition information during the rotation of the baffle, the baffle rotates to the preset reference angle and outputs a temporarily abnormal signal.

5. The checkerboard-based image testing method according to claim 4, wherein: When a temporarily normal message is output, the imaging test method includes: Judge whether there is a shadow abnormal area in the image corresponding to the current image acquisition information; If there is no shadow abnormal area in the image corresponding to the image acquisition information, output a normal checkerboard signal; If there is a shadow abnormal area in the image corresponding to the image acquisition information, output a temporarily abnormal signal and control the baffle to rotate to the reference angle.

6. The checkerboard-based image testing method according to claim 5, wherein: When the baffle rotates to the reference angle, the moving method of the baffle further includes: Control the baffle to move in the preset moving range in the direction away from the track, and judge whether there is an abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle; If there is no abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle, the baffle stops moving and outputs a normal checkerboard signal; If there is an abnormal brightness area in the image corresponding to the current image acquisition information during the movement of the baffle, output an alarm signal.

7. An image testing system based on a checkerboard, characterized in that, Includes: An acquisition module that acquires detection area information and checkerboard image information of a preset checkerboard; A processing module, connected to the acquisition module and the judgment module, for storing and processing information; The processing module is used to control the center point of the area corresponding to the detection area information to move to coincide with the preset detection point; A judgment module for judging whether the center point of the area corresponding to the detection area information coincides with the detection point; When the judgment module judges that the center point of the area corresponding to the detection area information does not coincide with the detection point, the processing module continues to move the area corresponding to the detection area information; When the judgment module judges that the center point of the area corresponding to the detection area information coincides with the detection point, the processing module acquires the detection image information intercepted from the area corresponding to the detection area information in the checkerboard image information; A processing module, configured to obtain block image information from the detected image information according to a preset block model, where the block image information is information corresponding to a complete black block in the image corresponding to the detected image information; A processing module, configured to determine coordinate information of midpoints of multiple side lengths of the image according to the image corresponding to the block image information; A processing module, configured to determine test region information with the coordinate points corresponding to the coordinate information of midpoints of side lengths as the center points according to a preset region size, and obtain test image information intercepted from the detected image information for the region corresponding to the test region information, where the region corresponding to the region size is a rectangle with fixed length and width, and the region size is a preset fixed value; A processing module, configured to match the SFR value corresponding to the test image information according to the test image information stored in a preset test database and the corresponding SFR value; It further includes a method for determining test region information, and the method includes: The processing module calculates the distances between the coordinate points corresponding to the coordinate information of midpoints of multiple side lengths and a detection point to obtain multiple distance information; The processing module obtains the smallest distance information and the second smallest distance information among the multiple distance information according to a preset sorting rule; The processing module defines the coordinate points corresponding to the coordinate information of midpoints of side lengths corresponding to the smallest distance information and the second smallest distance information as test points, and determines test region information with the test points.

8. An intelligent terminal, characterized in that, It includes a memory and a processor, and a computer program capable of being loaded and executed by the processor is stored on the memory, and the method is as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, A computer program capable of being loaded and executed by the processor is stored, and the method is as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Image definition detection method, device, storage medium and electronic device

    CN108074237A

  • Method and device for searching SFR test area in checkerboard test chart

    CN110035279A