A control method and system for automated testing equipment
By acquiring and processing clamping image information in automated testing equipment, and generating three-dimensional model diagrams for deviation analysis and correction, the problem of inaccurate clamping is solved, the accuracy and efficiency of testing are improved, and errors and labor costs are reduced.
Patent Information
- Application Number
- CN202311055291.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-22
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-08-22
AI Technical Summary
Existing automated test equipment has problems with inaccurate clamping and alignment during electronic component testing, resulting in test result errors. Manual operation or complex mechanical clamping devices are costly, have limited accuracy, and suffer from human error.
By acquiring clamping image information at preset time nodes, processing and feature extraction are performed, real-time and standard three-dimensional model diagrams are generated, deviations are compared, and the analysis results determine whether to execute the test program or generate correction parameters for automatic correction.
It achieves high-precision automatic clamping and alignment, reduces the error of test results, improves test accuracy and efficiency, reduces labor costs and time, and is suitable for different types and sizes of measured objects.
Smart Images

Figure CN117237449B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of test equipment control, and in particular to a control method and system for automated test equipment. Background Art
[0002] In the manufacturing industry, various tests and measurements are often required to ensure product quality and production efficiency. Automated test equipment plays a vital role in this regard, enabling efficient and accurate testing processes. In some tests, the accuracy of the position and posture of the object being tested has an important impact on the accuracy of the test results. For example, in electronic component testing, if the tested component is not properly clamped and aligned, it may cause errors in the test results, thereby affecting product quality and reliability. To solve this problem, manual operation or the use of complex mechanical clamping devices is often required to ensure accurate clamping and alignment of the object being tested. However, these methods have problems such as high labor costs, complex operations, limited accuracy, and may also introduce human errors. Therefore, a more intelligent and automated control method is needed to achieve automatic clamping and deviation correction to improve the efficiency and accuracy of the test process. Summary of the invention
[0003] The present invention overcomes the deficiencies of the prior art and provides a control method and system for automated testing equipment.
[0004] To achieve the above-mentioned purpose, the technical solution adopted by the present invention is:
[0005] The first aspect of the present invention discloses a control method for automated testing equipment, comprising the following steps:
[0006] Acquire clamping image information of a clamping area of the automated testing equipment at a preset time node, and process the clamping image information to obtain processed clamping image information;
[0007] Extracting features of the processed clamping image information to obtain a number of contour key points, and generating a real-time clamping state three-dimensional model diagram of a clamping area at a preset time node according to the contour key points;
[0008] Prefabricate a standard clamping state three-dimensional model diagram of the clamping area at a preset time node, and compare the real-time clamping state three-dimensional model diagram with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram;
[0009] The clamping deviation model diagram is analyzed to obtain an analysis result; if the analysis result is a first analysis result, the automated testing equipment is controlled to execute a next preset test program; if the analysis result is a second analysis result, a correction parameter is generated, and the automated testing equipment is corrected based on the correction parameter before executing the next preset test program.
[0010] Furthermore, in a preferred embodiment of the present invention, the clamping image information is processed to obtain the processed clamping image information, specifically:
[0011] Graying and denoising the clamping image information to obtain pre-processed clamping image information; performing wavelet decomposition on the pre-processed clamping image information to obtain approximate coefficients and detail coefficients; and constructing an approximate coefficient matrix and a detail coefficient matrix based on the approximate coefficients and detail coefficients;
[0012] Using the values of the approximate coefficient matrix as the X coordinate, the values of the detail coefficient matrix as the Y coordinate, and the values of the preset positions in the detail coefficient matrix as the Z coordinate, and combining different scale information of the approximate coefficients with the characteristics of the detail coefficients according to the setting of the coordinate system to form a three-dimensional coordinate system;
[0013] The detail coefficient is retrieved based on a peak detection algorithm to retrieve a peak value in the detail coefficient; and the retrieved peak value is compared with a preset threshold value; peak values whose peak values are not greater than the preset threshold value are filtered out, and peak values whose peak values are greater than the preset threshold value are retained; so as to filter out weak peak values and retain obvious peak values;
[0014] The remaining peaks are further screened by non-maximum suppression to obtain screened peaks, and the corner points in the clamping image information are determined based on the screened peaks; the corner points are imported into the three-dimensional coordinate system to obtain the three-dimensional coordinate values of the corner points, and three-dimensional point cloud data of the corner points are generated based on the three-dimensional coordinate values; the clamping image information is reconstructed based on the three-dimensional point cloud data of the corner points to obtain processed clamping image information.
[0015] Furthermore, in a preferred embodiment of the present invention, the processed clamping image information is subjected to feature extraction to obtain a number of contour key points, and a real-time clamping state three-dimensional model diagram of a preset time node of the clamping area is generated according to the contour key points, specifically:
[0016] Extracting feature information of the processed clamping image information by using an ORB algorithm to obtain a plurality of contour key points in the clamping image information;
[0017] Calculate the abnormal score of each contour key point by using the isolation forest algorithm, and determine the outlier value of each contour key point based on the abnormal score; filter out the contour key points corresponding to the outlier value greater than the preset outlier value, and output the remaining contour key points to obtain evacuated contour key points;
[0018] Constructing an absolute coordinate system, and importing the evacuation contour key points into the absolute coordinate system, obtaining the coordinate position of each evacuation contour key point in the absolute coordinate system; and calculating the Minkowski distance between each evacuation contour key point according to the coordinate position;
[0019] The Minkowski distances between the key points of each evacuation contour are sorted by size to obtain a sorting result, and the shortest Minkowski distance between each evacuation contour key point and the other evacuation contour key points is extracted from the sorting result;
[0020] Pairing two evacuation contour key points with the shortest Minkowski distance in pairs to obtain a plurality of evacuation contour key point pairs; obtaining the coordinate midpoints between each evacuation contour key point pair in the absolute coordinate system, and extracting the position points corresponding to the coordinate midpoints between each evacuation contour key point pair as new contour key points;
[0021] Dense contour key points are generated based on the sparse contour key points and the new contour key points; and the actual coordinate values of each dense contour key point are obtained in the absolute coordinate system, and a coordinate number set of the dense contour key point is generated based on the actual coordinate values. Based on the coordinate number set, a three-dimensional model diagram of the real-time clamping state of the clamping area is constructed.
[0022] Furthermore, in a preferred embodiment of the present invention, a standard clamping state three-dimensional model diagram of the clamping area at a preset time node is prefabricated, and the real-time clamping state three-dimensional model diagram is compared with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram, specifically:
[0023] Prefabricate a three-dimensional model diagram of a standard clamping state of a clamping area at a preset time node, construct a grid coordinate system, and import the three-dimensional model diagram of the standard clamping state into the grid coordinate system;
[0024] Acquire a real-time clamping state three-dimensional model diagram of a preset time node of the clamping area, import the real-time clamping state three-dimensional model diagram into the grid coordinate system, and make the positioning reference of the standard clamping state three-dimensional model diagram coincide with the positioning reference of the real-time clamping state three-dimensional model diagram, so as to align the standard clamping state three-dimensional model diagram with the real-time clamping state three-dimensional model diagram;
[0025] After the alignment is completed, the model area where the standard clamping state three-dimensional model image intersects with the real-time clamping state three-dimensional model image in the grid coordinate system is removed, and the model area where the standard clamping state three-dimensional model image does not intersect with the real-time clamping state three-dimensional model image in the grid coordinate system is retained;
[0026] The remaining three-dimensional model diagram in the grid coordinate system is extracted to obtain the clamping deviation model diagram.
[0027] Furthermore, in a preferred embodiment of the present invention, the clamping deviation model diagram is analyzed to obtain an analysis result; if the analysis result is the first analysis result, the automated testing equipment is controlled to execute the next preset test program, specifically:
[0028] The clamping deviation model graph is divided based on a triangulation algorithm to obtain a plurality of triangles; for each triangle, a tetrahedron is constructed that connects the triangle vertices and the centroid of the triangle, thereby constructing a plurality of tetrahedrons;
[0029] Calculate the volume value of each tetrahedron, and obtain the total volume value of the clamping deviation model diagram based on the volume value of the tetrahedron; compare the total volume value of the clamping deviation model diagram with the preset volume value;
[0030] If the total volume value of the clamping deviation model diagram is not greater than the preset volume value, a first analysis result is generated, and the automated testing equipment is controlled to execute the next preset test program; if the total volume value of the clamping deviation model diagram is greater than the preset volume value, a second analysis result is generated.
[0031] Furthermore, in a preferred embodiment of the present invention, if the analysis result is the second analysis result, a correction parameter is generated, and the automatic test equipment is corrected based on the correction parameter before executing the next preset test program, specifically:
[0032] Acquire historical clamping offset image information corresponding to various clamping offset conditions of the automated testing equipment, and construct a historical clamping offset model diagram based on the historical clamping offset image information;
[0033] Obtain historical correction parameters corresponding to various clamping offset conditions of the automated test equipment, and bundle historical clamping offset model diagrams corresponding to various clamping offset conditions with the historical correction parameters to obtain a number of data packets;
[0034] Building a database, and importing a number of data packets into the database to obtain a characteristic database;
[0035] If the analysis result is the second analysis result, the clamping deviation model graph is imported into the characteristic database, and the Euclidean distance value between the clamping deviation model graph and each historical clamping deviation model graph is calculated by the Euclidean distance algorithm;
[0036] Determine the overlap between the clamping deviation model diagram and each historical clamping offset model diagram according to the Euclidean distance value to obtain multiple overlaps; construct a sorting table, import the multiple overlaps into the sorting table for sorting, and after sorting, extract the maximum overlap;
[0037] Obtain a historical clamping offset model diagram corresponding to the maximum overlap, extract historical correction parameters in a corresponding data packet according to the historical clamping offset model diagram corresponding to the maximum overlap, and correct the clamping position of the automated test equipment based on the historical correction parameters in the corresponding data packet;
[0038] After the deviation correction is completed, the automatic test equipment is controlled to execute the next preset test program.
[0039] A second aspect of the present invention discloses a control system for automated testing equipment, the control system comprising a memory and a processor, the memory storing a control method program for automated testing equipment, and when the control method program for automated testing equipment is executed by the processor, the following steps are implemented:
[0040] Acquire clamping image information of a clamping area of the automated testing equipment at a preset time node, and process the clamping image information to obtain processed clamping image information;
[0041] Extracting features of the processed clamping image information to obtain a number of contour key points, and generating a real-time clamping state three-dimensional model diagram of a clamping area at a preset time node according to the contour key points;
[0042] Prefabricate a standard clamping state three-dimensional model diagram of the clamping area at a preset time node, and compare the real-time clamping state three-dimensional model diagram with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram;
[0043] The clamping deviation model diagram is analyzed to obtain an analysis result; if the analysis result is a first analysis result, the automated testing equipment is controlled to execute a next preset test program; if the analysis result is a second analysis result, a correction parameter is generated, and the automated testing equipment is corrected based on the correction parameter before executing the next preset test program.
[0044] Furthermore, in a preferred embodiment of the present invention, a standard clamping state three-dimensional model diagram of the clamping area at a preset time node is prefabricated, and the real-time clamping state three-dimensional model diagram is compared with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram, specifically:
[0045] Prefabricate a three-dimensional model diagram of a standard clamping state of a clamping area at a preset time node, construct a grid coordinate system, and import the three-dimensional model diagram of the standard clamping state into the grid coordinate system;
[0046] Acquire a real-time clamping state three-dimensional model diagram of a preset time node of the clamping area, import the real-time clamping state three-dimensional model diagram into the grid coordinate system, and make the positioning reference of the standard clamping state three-dimensional model diagram coincide with the positioning reference of the real-time clamping state three-dimensional model diagram, so as to align the standard clamping state three-dimensional model diagram with the real-time clamping state three-dimensional model diagram;
[0047] After the alignment is completed, the model area where the standard clamping state three-dimensional model image intersects with the real-time clamping state three-dimensional model image in the grid coordinate system is removed, and the model area where the standard clamping state three-dimensional model image does not intersect with the real-time clamping state three-dimensional model image in the grid coordinate system is retained;
[0048] The remaining three-dimensional model diagram in the grid coordinate system is extracted to obtain the clamping deviation model diagram.
[0049] Furthermore, in a preferred embodiment of the present invention, the clamping deviation model diagram is analyzed to obtain an analysis result; if the analysis result is the first analysis result, the automated testing equipment is controlled to execute the next preset test program, specifically:
[0050] The clamping deviation model graph is divided based on a triangulation algorithm to obtain a plurality of triangles; for each triangle, a tetrahedron is constructed that connects the triangle vertices and the centroid of the triangle, thereby constructing a plurality of tetrahedrons;
[0051] Calculate the volume value of each tetrahedron, and obtain the total volume value of the clamping deviation model diagram based on the volume value of the tetrahedron; compare the total volume value of the clamping deviation model diagram with the preset volume value;
[0052] If the total volume value of the clamping deviation model diagram is not greater than the preset volume value, a first analysis result is generated, and the automated testing equipment is controlled to execute the next preset test program; if the total volume value of the clamping deviation model diagram is greater than the preset volume value, a second analysis result is generated.
[0053] Furthermore, in a preferred embodiment of the present invention, if the analysis result is the second analysis result, a correction parameter is generated, and the automatic test equipment is corrected based on the correction parameter before executing the next preset test program, specifically:
[0054] Acquire historical clamping offset image information corresponding to various clamping offset conditions of the automated testing equipment, and construct a historical clamping offset model diagram based on the historical clamping offset image information;
[0055] Obtain historical correction parameters corresponding to various clamping offset conditions of the automated test equipment, and bundle historical clamping offset model diagrams corresponding to various clamping offset conditions with the historical correction parameters to obtain a number of data packets;
[0056] Building a database, and importing a number of data packets into the database to obtain a characteristic database;
[0057] If the analysis result is the second analysis result, the clamping deviation model graph is imported into the characteristic database, and the Euclidean distance value between the clamping deviation model graph and each historical clamping deviation model graph is calculated by the Euclidean distance algorithm;
[0058] Determine the overlap between the clamping deviation model diagram and each historical clamping offset model diagram according to the Euclidean distance value to obtain multiple overlaps; construct a sorting table, import the multiple overlaps into the sorting table for sorting, and after sorting, extract the maximum overlap;
[0059] Obtain a historical clamping offset model diagram corresponding to the maximum overlap, extract historical correction parameters in a corresponding data packet according to the historical clamping offset model diagram corresponding to the maximum overlap, and correct the clamping position of the automated test equipment based on the historical correction parameters in the corresponding data packet;
[0060] After the deviation correction is completed, the automatic test equipment is controlled to execute the next preset test program.
[0061] The present invention solves the technical defects existing in the background technology, and has the following beneficial effects: by acquiring the clamping image information of the clamping area of the automated test equipment at a preset time node, and processing the clamping image information to obtain the processed clamping image information; performing feature extraction on the processed clamping image information to obtain a number of contour key points, and generating a real-time clamping state three-dimensional model diagram of the clamping area at a preset time node according to the contour key points; prefabricating a standard clamping state three-dimensional model diagram of the clamping area at a preset time node, and comparing the real-time clamping state three-dimensional model diagram with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram; analyzing the clamping deviation model diagram to obtain an analysis result; if the analysis result is a first analysis result, controlling the automated test equipment to execute the next preset test program; if the analysis result is a second analysis result, generating a correction parameter, and correcting the automated test equipment based on the correction parameter before executing the next preset test program. The present invention realizes high-precision clamping and alignment through an automatic correction method combined with an image processing algorithm, greatly improves the accuracy of the test, and reduces the error of the test result. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, drawings of other embodiments can be obtained based on these drawings without paying creative work.
[0063] Figure 1 A first method flow chart of a control method for an automated testing device;
[0064] Figure 2 A second method flow chart of a control method for automated testing equipment;
[0065] Figure 3 A third method flow chart of a control method for an automated testing device;
[0066] Figure 4 The system block diagram of a control system for automated testing equipment. DETAILED DESCRIPTION
[0067] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0068] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0069] like Figure 1 As shown, the first aspect of the present invention discloses a control method for automated testing equipment, comprising the following steps:
[0070] S102: acquiring clamping image information of a clamping area of the automated testing equipment at a preset time node, and processing the clamping image information to obtain processed clamping image information;
[0071] S104: extracting features from the processed clamping image information to obtain a number of contour key points, and generating a real-time clamping state three-dimensional model diagram of a clamping area at a preset time node according to the contour key points;
[0072] S106: prefabricate a standard clamping state three-dimensional model diagram of the clamping area at a preset time node, and compare the real-time clamping state three-dimensional model diagram with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram;
[0073] S108: Analyze the clamping deviation model diagram to obtain an analysis result; if the analysis result is the first analysis result, control the automated testing equipment to execute the next preset test program; if the analysis result is the second analysis result, generate correction parameters, and correct the automated testing equipment based on the correction parameters before executing the next preset test program.
[0074] It should be noted that the present invention realizes high-precision clamping and alignment through an automatic correction method combined with an image processing algorithm, which greatly improves the accuracy of the test and reduces the error of the test results; the automatic clamping and correction method makes the test process no longer require manual intervention, saving labor costs and time. At the same time, the system can quickly and accurately process objects of different types and sizes, improve the test throughput, and thus increase production efficiency.
[0075] Furthermore, in a preferred embodiment of the present invention, the clamping image information is processed to obtain the processed clamping image information, specifically:
[0076] Graying and denoising the clamping image information to obtain pre-processed clamping image information; performing wavelet decomposition on the pre-processed clamping image information to obtain approximate coefficients and detail coefficients; and constructing an approximate coefficient matrix and a detail coefficient matrix based on the approximate coefficients and detail coefficients;
[0077] Using the values of the approximate coefficient matrix as the X coordinate, the values of the detail coefficient matrix as the Y coordinate, and the values of the preset positions in the detail coefficient matrix as the Z coordinate, and combining different scale information of the approximate coefficients with the characteristics of the detail coefficients according to the setting of the coordinate system to form a three-dimensional coordinate system;
[0078] The detail coefficient is retrieved based on a peak detection algorithm to retrieve a peak value in the detail coefficient; and the retrieved peak value is compared with a preset threshold value; peak values whose peak values are not greater than the preset threshold value are filtered out, and peak values whose peak values are greater than the preset threshold value are retained; so as to filter out weak peak values and retain obvious peak values;
[0079] The remaining peaks are further screened by non-maximum suppression to obtain screened peaks, and the corner points in the clamping image information are determined based on the screened peaks; the corner points are imported into the three-dimensional coordinate system to obtain the three-dimensional coordinate values of the corner points, and three-dimensional point cloud data of the corner points are generated based on the three-dimensional coordinate values; the clamping image information is reconstructed based on the three-dimensional point cloud data of the corner points to obtain processed clamping image information.
[0080] It should be noted that the clamping image information of the clamping area of the automated test equipment is obtained at a preset time node through an industrial camera or other camera mechanism. However, due to the influence of factors such as the shooting environment, equipment accuracy, and shooting angle, the redundancy of the clamping image information captured is often high, so it is necessary to perform wavelet decomposition on the image information to obtain a series of wavelet coefficient matrices, such as the approximate coefficient matrix and the detail coefficient matrix. The approximate coefficient matrix represents the low-frequency part of the image, that is, the overall features in the image. It corresponds to the lowest scale (the coarsest decomposition layer) of the wavelet decomposition and captures the overall structure of the image; the detail coefficient matrix corresponds to the high-frequency part of the image and captures the details and texture information in the image. Wavelet decomposition usually extracts multiple detail coefficient matrices at different scales, and each matrix corresponds to a specific frequency band and direction. A peak detection algorithm, such as a method based on a threshold, a local maximum, or other statistical characteristics, is applied to find the peak in the detail coefficient. A commonly used peak detection method is to use a threshold and a local maximum to determine the peak. You can slide a window on the detail coefficient graph to check whether the value in the window is a local maximum and is greater than the set threshold. The result of peak detection can give a set of candidate corner point positions, which can then be marked in the original image, or further processed (e.g., non-maximum suppression) as needed to determine the final corner point positions. After obtaining the three-dimensional point cloud data of the corner points, the clamped image information is reorganized and reduced in redundancy by point cloud reconstruction to obtain the processed clamped image information. This step can correct the clamped image to reduce redundancy in the clamped image and improve image quality.
[0081] Furthermore, in a preferred embodiment of the present invention, the processed clamping image information is subjected to feature extraction to obtain a number of contour key points, and a real-time clamping state three-dimensional model diagram of a preset time node of the clamping area is generated according to the contour key points, specifically:
[0082] Extracting feature information of the processed clamping image information by using an ORB algorithm to obtain a plurality of contour key points in the clamping image information;
[0083] Among them, the ORB (Oriented FAST and Rotated BRIEF) algorithm is an algorithm used for feature detection and matching in computer vision. It combines the FAST (Features from Accelerated Segment Test) key point detection algorithm and the BRIEF (Binary Robust Independent Elementary Features) descriptor algorithm, and makes some improvements to enable it to achieve better performance in different environments; the ORB algorithm is widely used in the field of computer vision for tasks such as feature point detection, feature point description, and feature point matching;
[0084] Calculate the abnormal score of each contour key point by using the isolation forest algorithm, and determine the outlier value of each contour key point based on the abnormal score; filter out the contour key points corresponding to the outlier value greater than the preset outlier value, and output the remaining contour key points to obtain evacuated contour key points;
[0085] Among them, Isolation Forest is a machine learning algorithm for anomaly detection. It is a tree-based algorithm designed to identify abnormal samples in a data set. The core idea of Isolation Forest is that normal samples should be relatively concentrated in the feature space, while abnormal samples are relatively isolated. This means that abnormal samples can be separated more quickly by randomly selected segmentation points (random branches or branches). For each sample, Isolation Forest can calculate an anomaly score by observing the length of the path where it is segmented in multiple trees in the forest. The smaller the anomaly score, the easier it is to segment the sample, and therefore it may be an abnormal sample;
[0086] Constructing an absolute coordinate system, and importing the evacuation contour key points into the absolute coordinate system, obtaining the coordinate position of each evacuation contour key point in the absolute coordinate system; and calculating the Minkowski distance between each evacuation contour key point according to the coordinate position;
[0087] The Minkowski distances between the key points of each evacuation contour are sorted by size to obtain a sorting result, and the shortest Minkowski distance between each evacuation contour key point and the other evacuation contour key points is extracted from the sorting result;
[0088] Pairing two evacuation contour key points with the shortest Minkowski distance in pairs to obtain a plurality of evacuation contour key point pairs; obtaining the coordinate midpoints between each evacuation contour key point pair in the absolute coordinate system, and extracting the position points corresponding to the coordinate midpoints between each evacuation contour key point pair as new contour key points;
[0089] Dense contour key points are generated based on the sparse contour key points and the new contour key points; and the actual coordinate values of each dense contour key point are obtained in the absolute coordinate system, and a coordinate number set of the dense contour key point is generated based on the actual coordinate values. Based on the coordinate number set, a three-dimensional model diagram of the real-time clamping state of the clamping area is constructed.
[0090] It should be noted that after the ORB algorithm is used to extract features from the processed clamping image information, there will be some contour key point extraction errors and abnormal phenomena of contour key point extraction drift during the extraction process. Therefore, it is necessary to screen out the contour key points corresponding to the outlier value greater than the preset outlier value to obtain evacuated contour key points. Since the number of extracted contour key points is limited, and some of them are abnormal contour key points, the number of truly effective contour key points is often insufficient, which are evacuated contour key points. Therefore, in order to obtain more contour key points, it is necessary to pair the two evacuated contour key points with the shortest Minkowski distance in pairs to obtain several pairs of evacuated contour key point pairs, and extract the position point corresponding to the coordinate midpoint between each evacuated contour key point pair as a new contour key point; by converging the evacuated contour key point with the new contour key point, a dense contour key point is obtained; then the actual coordinate value of each dense contour key point is obtained, and the coordinate number set of the dense contour key point is generated according to the actual coordinate value, and then the coordinate number set of the dense contour key point is imported into the three-dimensional modeling software to generate a real-time clamping state three-dimensional model diagram. Through this step, a sufficient number of contour key points can be extracted, and then the real-time clamping state three-dimensional model diagram can be reconstructed according to the information of the contour key points. The obtained real-time clamping state three-dimensional model diagram has high model accuracy and avoids abnormal phenomena such as model missing.
[0091] like Figure 2 As shown, further, in a preferred embodiment of the present invention, a standard clamping state three-dimensional model diagram of the clamping area at a preset time node is prefabricated, and the real-time clamping state three-dimensional model diagram is compared with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram, specifically:
[0092] S202: prefabricate a three-dimensional model diagram of a standard clamping state of a clamping area at a preset time node, construct a grid coordinate system, and import the three-dimensional model diagram of the standard clamping state into the grid coordinate system;
[0093] S204: obtaining a real-time clamping state three-dimensional model diagram of a preset time node of the clamping area, importing the real-time clamping state three-dimensional model diagram into the grid coordinate system, and making the positioning reference of the standard clamping state three-dimensional model diagram coincide with the positioning reference of the real-time clamping state three-dimensional model diagram, so as to align the standard clamping state three-dimensional model diagram with the real-time clamping state three-dimensional model diagram;
[0094] S206: After the alignment is completed, the model area where the standard clamping state three-dimensional model image intersects with the real-time clamping state three-dimensional model image in the grid coordinate system is removed, and the model area where the standard clamping state three-dimensional model image does not intersect with the real-time clamping state three-dimensional model image in the grid coordinate system is retained;
[0095] S208: extract the remaining three-dimensional model diagram in the grid coordinate system to obtain a clamping deviation model diagram.
[0096] It should be noted that the standard clamping state three-dimensional model diagram is designed by the designer, and the standard clamping state three-dimensional model diagram represents the state model diagram when the automated test equipment clamps the object under test and is in the standard clamping position and standard clamping posture. A grid coordinate system is constructed by three-dimensional software such as SolidWorks, UG, etc., and then the real-time clamping state three-dimensional model diagram and the standard clamping state three-dimensional model diagram are imported into the grid coordinate system for comparison to obtain a clamping deviation model diagram.
[0097] like Figure 3 As shown, further, in a preferred embodiment of the present invention, the clamping deviation model diagram is analyzed to obtain an analysis result; if the analysis result is the first analysis result, the automated testing equipment is controlled to execute the next preset test program, specifically:
[0098] S302: Divide the clamping deviation model graph based on a triangulation algorithm to obtain a plurality of triangles; for each triangle, construct a tetrahedron connecting the triangle vertices and the centroid of the triangle, thereby constructing a plurality of tetrahedrons;
[0099] S304: Calculate the volume value of each tetrahedron, and obtain the total volume value of the clamping deviation model diagram based on the volume value of the tetrahedron; compare the total volume value of the clamping deviation model diagram with a preset volume value;
[0100] S306: If the total volume value of the clamping deviation model diagram is not greater than the preset volume value, a first analysis result is generated, and the automated testing equipment is controlled to execute the next preset test program; if the total volume value of the clamping deviation model diagram is greater than the preset volume value, a second analysis result is generated.
[0101] It should be noted that the use of triangulation to calculate the volume value of the clamping deviation model diagram involves triangulating the model surface and then calculating the volume of the tetrahedron composed of the triangulated triangles. The clamping deviation model diagram is loaded into a three-dimensional software environment in a computer-recognizable format, such as using STL, OBJ and other formats, and then the surface of the model is triangulated, such as Delaunay triangulation or other applicable methods. After triangulation, the surface of the model will be composed of a series of triangles; for each triangle, a tetrahedron is constructed that connects the triangle vertex and an internal point (which can be the centroid of the triangle). Since the model is irregular, the tetrahedron may have intersections. In this case, it is necessary to handle the intersection to ensure that each tetrahedron is legal. For each tetrahedron, its volume is calculated. The volume of the tetrahedron can be calculated using analytical methods or numerical methods. The specific method depends on the characteristics and complexity of the model. Then the volumes of all tetrahedrons are accumulated to obtain the total volume value of the clamping deviation model diagram. If the total volume value of the clamping deviation model diagram is not greater than the preset volume value, it means that when the automated testing equipment clamps the object under test, there is no deviation in its clamping position, or its clamping deviation is within the allowable range. At this time, the automated testing equipment can be controlled to execute the next preset test program.
[0102] Furthermore, in a preferred embodiment of the present invention, if the analysis result is the second analysis result, a correction parameter is generated, and the automatic test equipment is corrected based on the correction parameter before executing the next preset test program, specifically:
[0103] Acquire historical clamping offset image information corresponding to various clamping offset conditions of the automated testing equipment, and construct a historical clamping offset model diagram based on the historical clamping offset image information;
[0104] Obtain historical correction parameters corresponding to various clamping offset conditions of the automated test equipment, and bundle historical clamping offset model diagrams corresponding to various clamping offset conditions with the historical correction parameters to obtain a number of data packets;
[0105] Building a database, and importing a number of data packets into the database to obtain a characteristic database;
[0106] If the analysis result is the second analysis result, the clamping deviation model graph is imported into the characteristic database, and the Euclidean distance value between the clamping deviation model graph and each historical clamping deviation model graph is calculated by the Euclidean distance algorithm;
[0107] Determine the overlap between the clamping deviation model diagram and each historical clamping offset model diagram according to the Euclidean distance value to obtain multiple overlaps; construct a sorting table, import the multiple overlaps into the sorting table for sorting, and after sorting, extract the maximum overlap;
[0108] Among them, the Euclidean distance algorithm is a method for measuring the straight-line distance between two points. In order to calculate the similarity between two 3D model graphs, the model graphs can be represented as a set of points. Then, for each pair of points, the Euclidean distance value between them is calculated, and all distances are summed. The overlap can be expressed by normalizing the summed distance to a suitable range;
[0109] Obtain a historical clamping offset model diagram corresponding to the maximum overlap, extract historical correction parameters in a corresponding data packet according to the historical clamping offset model diagram corresponding to the maximum overlap, and correct the clamping position of the automated test equipment based on the historical correction parameters in the corresponding data packet;
[0110] After the deviation correction is completed, the automatic test equipment is controlled to execute the next preset test program.
[0111] It should be noted that if the total volume value of the clamping deviation model diagram is greater than the preset volume value, it means that when the automated test equipment clamps the object to be tested, its clamping position has a large deviation, and at this time, the clamping position of the automated test equipment needs to be corrected. Specifically, first obtain the historical clamping deviation model diagram and the corresponding historical correction parameters corresponding to various clamping offset conditions of the automated test equipment, and bundle the historical clamping deviation model diagrams corresponding to various clamping offset conditions with the historical correction parameters to obtain several data packets, thereby constructing a characteristic database. Then import the clamping deviation model diagram into the characteristic database, and calculate the overlap between the clamping deviation model diagram and each historical clamping deviation model diagram by the Euclidean distance algorithm, and then obtain the historical clamping deviation model diagram corresponding to the maximum overlap, extract the historical correction parameters in the corresponding data packet according to the historical clamping deviation model diagram corresponding to the maximum overlap, and correct the clamping position of the automated test equipment based on the historical correction parameters in the corresponding data packet. The above method realizes automatic correction of the object to be tested, thereby improving the accuracy and efficiency of the test.
[0112] In addition, the control method of the automated testing equipment further comprises the following steps:
[0113] Acquire historical operating parameters of the automated test equipment when clamping different types of products, and divide the historical operating parameters of the automated test equipment when clamping different types of products into a test set and a training set;
[0114] Establish a parameter prediction model based on a deep learning network, and import the training set into the parameter prediction model; perform back propagation training on the training set using a cross entropy loss function, and save the model parameters when the training error converges to a preset value;
[0115] The parameter prediction model is tested by using the test set, and if the parameter prediction model meets the preset requirements, the model parameters finally saved are extracted to obtain a trained parameter prediction model;
[0116] Acquire current clamping type product information of the automated test equipment, import the current clamping type product information into the trained parameter prediction model, and obtain predicted operating parameters of the automated test equipment when clamping the current clamping type product;
[0117] Acquire actual operating parameters of the automated testing equipment when clamping a product of the current clamping type, calculate the correlation between the actual operating parameters and the predicted operating parameters by using a grey correlation analysis method, and compare the correlation with a preset correlation;
[0118] If the correlation degree is not greater than the preset correlation degree, fault information is generated and outputted.
[0119] It should be noted that by comparing the historical operating parameters of the automated testing equipment with the actual operating parameters, it is possible to determine whether the operating parameters of the automated testing equipment are normal when clamping different products, and thus to further determine whether a fault has occurred in the automated testing equipment, thereby achieving automatic fault detection and informing maintenance personnel for timely repairs.
[0120] In addition, the control method of the automated testing equipment further comprises the following steps:
[0121] Obtaining the wear amount of each transmission part in the automated testing equipment, and comparing the wear amount with a preset wear amount;
[0122] If the wear amount is greater than a preset wear amount, a search tag is constructed according to the wear amount, and the big data is searched based on the search tag to retrieve the best working environment of the transmission parts under the current wear amount condition;
[0123] Acquiring the real-time working environment of the transmission part, comparing the real-time working environment with the optimal working environment, and obtaining a deviation rate;
[0124] If the deviation rate is greater than a preset deviation rate, the real-time working environment and the amount of wear are introduced into a Markov model to perform fault deduction to obtain the failure probability of the transmission parts;
[0125] If the failure probability is greater than a preset failure probability, the transmission part is marked as a high-risk part.
[0126] It should be noted that transmission parts include rotating shafts, bearings, gears, etc. Transmission parts are wear parts, and when they are worn to a certain extent, they will fail. Through this method, parts whose wear amount does not match the current working environment can be found in time, so as to inform the staff to replace the parts or adjust the working environment in time, avoid collision accidents due to failures during the clamping process of the automated test equipment, and improve the reliability of the equipment.
[0127] like Figure 4 As shown, the second aspect of the present invention discloses a control system for an automated test device, the control system comprising a memory 41 and a processor 62, the memory 41 stores a control method program for the automated test device, and when the control method program for the automated test device is executed by the processor 62, the following steps are implemented:
[0128] Acquire clamping image information of a clamping area of the automated testing equipment at a preset time node, and process the clamping image information to obtain processed clamping image information;
[0129] Extracting features of the processed clamping image information to obtain a number of contour key points, and generating a real-time clamping state three-dimensional model diagram of a clamping area at a preset time node according to the contour key points;
[0130] Prefabricate a standard clamping state three-dimensional model diagram of the clamping area at a preset time node, and compare the real-time clamping state three-dimensional model diagram with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram;
[0131] The clamping deviation model diagram is analyzed to obtain an analysis result; if the analysis result is a first analysis result, the automated testing equipment is controlled to execute a next preset test program; if the analysis result is a second analysis result, a correction parameter is generated, and the automated testing equipment is corrected based on the correction parameter before executing the next preset test program.
[0132] Furthermore, in a preferred embodiment of the present invention, a standard clamping state three-dimensional model diagram of the clamping area at a preset time node is prefabricated, and the real-time clamping state three-dimensional model diagram is compared with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram, specifically:
[0133] Prefabricate a three-dimensional model diagram of a standard clamping state of a clamping area at a preset time node, construct a grid coordinate system, and import the three-dimensional model diagram of the standard clamping state into the grid coordinate system;
[0134] Acquire a real-time clamping state three-dimensional model diagram of a preset time node of the clamping area, import the real-time clamping state three-dimensional model diagram into the grid coordinate system, and make the positioning reference of the standard clamping state three-dimensional model diagram coincide with the positioning reference of the real-time clamping state three-dimensional model diagram, so as to align the standard clamping state three-dimensional model diagram with the real-time clamping state three-dimensional model diagram;
[0135] After the alignment is completed, the model area where the standard clamping state three-dimensional model image intersects with the real-time clamping state three-dimensional model image in the grid coordinate system is removed, and the model area where the standard clamping state three-dimensional model image does not intersect with the real-time clamping state three-dimensional model image in the grid coordinate system is retained;
[0136] The remaining three-dimensional model diagram in the grid coordinate system is extracted to obtain the clamping deviation model diagram.
[0137] Furthermore, in a preferred embodiment of the present invention, the clamping deviation model diagram is analyzed to obtain an analysis result; if the analysis result is the first analysis result, the automated testing equipment is controlled to execute the next preset test program, specifically:
[0138] The clamping deviation model graph is divided based on a triangulation algorithm to obtain a plurality of triangles; for each triangle, a tetrahedron is constructed that connects the triangle vertices and the centroid of the triangle, thereby constructing a plurality of tetrahedrons;
[0139] Calculate the volume value of each tetrahedron, and obtain the total volume value of the clamping deviation model diagram based on the volume value of the tetrahedron; compare the total volume value of the clamping deviation model diagram with the preset volume value;
[0140] If the total volume value of the clamping deviation model diagram is not greater than the preset volume value, a first analysis result is generated, and the automated testing equipment is controlled to execute the next preset test program; if the total volume value of the clamping deviation model diagram is greater than the preset volume value, a second analysis result is generated.
[0141] Furthermore, in a preferred embodiment of the present invention, if the analysis result is the second analysis result, a correction parameter is generated, and the automatic test equipment is corrected based on the correction parameter before executing the next preset test program, specifically:
[0142] Acquire historical clamping offset image information corresponding to various clamping offset conditions of the automated testing equipment, and construct a historical clamping offset model diagram based on the historical clamping offset image information;
[0143] Obtain historical correction parameters corresponding to various clamping offset conditions of the automated test equipment, and bundle historical clamping offset model diagrams corresponding to various clamping offset conditions with the historical correction parameters to obtain a number of data packets;
[0144] Building a database, and importing a number of data packets into the database to obtain a characteristic database;
[0145] If the analysis result is the second analysis result, the clamping deviation model graph is imported into the characteristic database, and the Euclidean distance value between the clamping deviation model graph and each historical clamping deviation model graph is calculated by the Euclidean distance algorithm;
[0146] Determine the overlap between the clamping deviation model diagram and each historical clamping offset model diagram according to the Euclidean distance value to obtain multiple overlaps; construct a sorting table, import the multiple overlaps into the sorting table for sorting, and after sorting, extract the maximum overlap;
[0147] Obtain a historical clamping offset model diagram corresponding to the maximum overlap, extract historical correction parameters in a corresponding data packet according to the historical clamping offset model diagram corresponding to the maximum overlap, and correct the clamping position of the automated test equipment based on the historical correction parameters in the corresponding data packet;
[0148] After the deviation correction is completed, the automatic test equipment is controlled to execute the next preset test program.
[0149] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0150] Those skilled in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, and other media that can store program codes.
[0151] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0152] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A control method for automated testing equipment, characterized in that: The following steps are involved: Acquire clamping image information of a clamping area of the automated testing equipment at a preset time node, and process the clamping image information to obtain processed clamping image information; Extracting features of the processed clamping image information to obtain a number of contour key points, and generating a real-time clamping state three-dimensional model diagram of a clamping area at a preset time node according to the contour key points; Prefabricate a standard clamping state three-dimensional model diagram of the clamping area at a preset time node, and compare the real-time clamping state three-dimensional model diagram with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram; Analyze the clamping deviation model diagram to obtain analysis results; If the analysis result is the first analysis result, controlling the automated testing equipment to execute the next preset test program; If the analysis result is the second analysis result, a correction parameter is generated, and the automatic test equipment is corrected based on the correction parameter before executing the next preset test program; The clamping image information is processed to obtain the processed clamping image information, specifically: Graying and denoising the clamping image information to obtain pre-processed clamping image information; performing wavelet decomposition on the pre-processed clamping image information to obtain approximate coefficients and detail coefficients; and constructing an approximate coefficient matrix and a detail coefficient matrix based on the approximate coefficients and detail coefficients; Using the values of the approximate coefficient matrix as the X coordinate, the values of the detail coefficient matrix as the Y coordinate, and the values of the preset positions in the detail coefficient matrix as the Z coordinate, and combining different scale information of the approximate coefficients with the characteristics of the detail coefficients according to the setting of the coordinate system to form a three-dimensional coordinate system; The detail coefficient is retrieved based on a peak detection algorithm to retrieve a peak value in the detail coefficient; and the retrieved peak value is compared with a preset threshold value; peak values whose peak values are not greater than the preset threshold value are filtered out, and peak values whose peak values are greater than the preset threshold value are retained; so as to filter out weak peak values and retain obvious peak values; The remaining peaks are further screened by non-maximum suppression to obtain screened peaks, and corner points in the clamping image information are determined according to the screened peaks; the corner points are imported into the three-dimensional coordinate system to obtain three-dimensional coordinate values of the corner points, and three-dimensional point cloud data of the corner points are generated according to the three-dimensional coordinate values; the clamping image information is reconstructed based on the three-dimensional point cloud data of the corner points to obtain processed clamping image information; Among them, the processed clamping image information is subjected to feature extraction to obtain a number of contour key points, and a real-time clamping state three-dimensional model diagram of a preset time node of the clamping area is generated according to the contour key points, specifically: Extracting feature information of the processed clamping image information by using an ORB algorithm to obtain a plurality of contour key points in the clamping image information; Calculate the abnormal score of each contour key point by using the isolation forest algorithm, and determine the outlier value of each contour key point based on the abnormal score; filter out the contour key points corresponding to the outlier value greater than the preset outlier value, and output the remaining contour key points to obtain evacuated contour key points; Constructing an absolute coordinate system, and importing the evacuation contour key points into the absolute coordinate system, obtaining the coordinate position of each evacuation contour key point in the absolute coordinate system; and calculating the Minkowski distance between each evacuation contour key point according to the coordinate position; The Minkowski distances between the key points of each evacuation contour are sorted by size to obtain a sorting result, and the shortest Minkowski distance between each evacuation contour key point and the other evacuation contour key points is extracted from the sorting result; Pairing two evacuation contour key points with the shortest Minkowski distance in pairs to obtain a plurality of evacuation contour key point pairs; obtaining the coordinate midpoints between each evacuation contour key point pair in the absolute coordinate system, and extracting the position points corresponding to the coordinate midpoints between each evacuation contour key point pair as new contour key points; Dense contour key points are generated based on the sparse contour key points and the new contour key points; and the actual coordinate values of each dense contour key point are obtained in the absolute coordinate system, and a coordinate number set of the dense contour key point is generated based on the actual coordinate values. Based on the coordinate number set, a three-dimensional model diagram of the real-time clamping state of the clamping area is constructed.
2. The control method of an automated testing device according to claim 1, characterized in that: The standard clamping state three-dimensional model diagram of the prefabricated clamping area at a preset time node is compared with the real-time clamping state three-dimensional model diagram and the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram, which is specifically: Prefabricate a three-dimensional model diagram of a standard clamping state of a clamping area at a preset time node, construct a grid coordinate system, and import the three-dimensional model diagram of the standard clamping state into the grid coordinate system; Acquire a real-time clamping state three-dimensional model diagram of a preset time node of the clamping area, import the real-time clamping state three-dimensional model diagram into the grid coordinate system, and make the positioning reference of the standard clamping state three-dimensional model diagram coincide with the positioning reference of the real-time clamping state three-dimensional model diagram, so as to align the standard clamping state three-dimensional model diagram with the real-time clamping state three-dimensional model diagram; After the alignment is completed, the model area where the standard clamping state three-dimensional model image intersects with the real-time clamping state three-dimensional model image in the grid coordinate system is removed, and the model area where the standard clamping state three-dimensional model image does not intersect with the real-time clamping state three-dimensional model image in the grid coordinate system is retained; The remaining three-dimensional model diagram in the grid coordinate system is extracted to obtain the clamping deviation model diagram.
3. The control method of an automated testing device according to claim 1, characterized in that: The clamping deviation model diagram is analyzed to obtain an analysis result; if the analysis result is the first analysis result, the automated testing equipment is controlled to execute the next preset test program, specifically: The clamping deviation model graph is divided based on a triangulation algorithm to obtain a plurality of triangles; for each triangle, a tetrahedron is constructed that connects the triangle vertices and the centroid of the triangle, thereby constructing a plurality of tetrahedrons; Calculate the volume value of each tetrahedron, and obtain the total volume value of the clamping deviation model diagram based on the volume value of the tetrahedron; compare the total volume value of the clamping deviation model diagram with the preset volume value; If the total volume value of the clamping deviation model diagram is not greater than the preset volume value, a first analysis result is generated, and the automated testing device is controlled to execute the next preset test procedure; If the total volume value of the clamping deviation model diagram is greater than the preset volume value, a second analysis result is generated.
4. The control method of an automated testing device according to claim 3, characterized in that: If the analysis result is the second analysis result, a correction parameter is generated, and the automatic test equipment is corrected based on the correction parameter before executing the next preset test program, specifically: Acquire historical clamping offset image information corresponding to various clamping offset conditions of the automated testing equipment, and construct a historical clamping offset model diagram based on the historical clamping offset image information; Obtain historical correction parameters corresponding to various clamping offset conditions of the automated test equipment, and bundle historical clamping offset model diagrams corresponding to various clamping offset conditions with the historical correction parameters to obtain a number of data packets; Building a database, and importing a number of data packets into the database to obtain a characteristic database; If the analysis result is the second analysis result, the clamping deviation model graph is imported into the characteristic database, and the Euclidean distance value between the clamping deviation model graph and each historical clamping deviation model graph is calculated by the Euclidean distance algorithm; Determine the overlap between the clamping deviation model diagram and each historical clamping offset model diagram according to the Euclidean distance value to obtain multiple overlaps; construct a sorting table, import the multiple overlaps into the sorting table for sorting, and after sorting, extract the maximum overlap; Obtain a historical clamping offset model diagram corresponding to the maximum overlap, extract historical correction parameters in a corresponding data packet according to the historical clamping offset model diagram corresponding to the maximum overlap, and correct the clamping position of the automated test equipment based on the historical correction parameters in the corresponding data packet; After the deviation correction is completed, the automatic test equipment is controlled to execute the next preset test program.
5. A control system for automated testing equipment, characterized in that: The control system includes a memory and a processor. The memory stores a control method program of the automated testing device. When the control method program of the automated testing device is executed by the processor, the following steps are implemented: Acquire clamping image information of a clamping area of the automated testing equipment at a preset time node, and process the clamping image information to obtain processed clamping image information; Extracting features of the processed clamping image information to obtain a number of contour key points, and generating a real-time clamping state three-dimensional model diagram of a clamping area at a preset time node according to the contour key points; Prefabricate a standard clamping state three-dimensional model diagram of the clamping area at a preset time node, and compare the real-time clamping state three-dimensional model diagram with the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram; Analyze the clamping deviation model diagram to obtain analysis results; If the analysis result is the first analysis result, controlling the automated testing equipment to execute the next preset test program; If the analysis result is the second analysis result, a correction parameter is generated, and the automatic test equipment is corrected based on the correction parameter before executing the next preset test program; The clamping image information is processed to obtain the processed clamping image information, specifically: Graying and denoising the clamping image information to obtain pre-processed clamping image information; performing wavelet decomposition on the pre-processed clamping image information to obtain approximate coefficients and detail coefficients; and constructing an approximate coefficient matrix and a detail coefficient matrix based on the approximate coefficients and detail coefficients; Using the values of the approximate coefficient matrix as the X coordinate, the values of the detail coefficient matrix as the Y coordinate, and the values of the preset positions in the detail coefficient matrix as the Z coordinate, and combining different scale information of the approximate coefficients with the characteristics of the detail coefficients according to the setting of the coordinate system to form a three-dimensional coordinate system; The detail coefficient is retrieved based on a peak detection algorithm to retrieve a peak value in the detail coefficient; and the retrieved peak value is compared with a preset threshold value; peak values whose peak values are not greater than the preset threshold value are filtered out, and peak values whose peak values are greater than the preset threshold value are retained; so as to filter out weak peak values and retain obvious peak values; The remaining peaks are further screened by non-maximum suppression to obtain screened peaks, and corner points in the clamping image information are determined according to the screened peaks; the corner points are imported into the three-dimensional coordinate system to obtain three-dimensional coordinate values of the corner points, and three-dimensional point cloud data of the corner points are generated according to the three-dimensional coordinate values; the clamping image information is reconstructed based on the three-dimensional point cloud data of the corner points to obtain processed clamping image information; Among them, the processed clamping image information is subjected to feature extraction to obtain a number of contour key points, and a real-time clamping state three-dimensional model diagram of a preset time node of the clamping area is generated according to the contour key points, specifically: Extracting feature information of the processed clamping image information by using an ORB algorithm to obtain a plurality of contour key points in the clamping image information; Calculate the abnormal score of each contour key point by using the isolation forest algorithm, and determine the outlier value of each contour key point based on the abnormal score; filter out the contour key points corresponding to the outlier value greater than the preset outlier value, and output the remaining contour key points to obtain evacuated contour key points; Constructing an absolute coordinate system, and importing the evacuation contour key points into the absolute coordinate system, obtaining the coordinate position of each evacuation contour key point in the absolute coordinate system; and calculating the Minkowski distance between each evacuation contour key point according to the coordinate position; The Minkowski distances between the key points of each evacuation contour are sorted by size to obtain a sorting result, and the shortest Minkowski distance between each evacuation contour key point and the other evacuation contour key points is extracted from the sorting result; Pairing two evacuation contour key points with the shortest Minkowski distance in pairs to obtain a plurality of evacuation contour key point pairs; obtaining the coordinate midpoints between each evacuation contour key point pair in the absolute coordinate system, and extracting the position points corresponding to the coordinate midpoints between each evacuation contour key point pair as new contour key points; Dense contour key points are generated based on the sparse contour key points and the new contour key points; and the actual coordinate values of each dense contour key point are obtained in the absolute coordinate system, and a coordinate number set of the dense contour key point is generated based on the actual coordinate values. Based on the coordinate number set, a three-dimensional model diagram of the real-time clamping state of the clamping area is constructed.
6. The control system of an automated testing device according to claim 5, characterized in that: The standard clamping state three-dimensional model diagram of the prefabricated clamping area at a preset time node is compared with the real-time clamping state three-dimensional model diagram and the standard clamping state three-dimensional model diagram to obtain a clamping deviation model diagram, which is specifically: Prefabricate a three-dimensional model diagram of a standard clamping state of a clamping area at a preset time node, construct a grid coordinate system, and import the three-dimensional model diagram of the standard clamping state into the grid coordinate system; Acquire a real-time clamping state three-dimensional model diagram of a preset time node of the clamping area, import the real-time clamping state three-dimensional model diagram into the grid coordinate system, and make the positioning reference of the standard clamping state three-dimensional model diagram coincide with the positioning reference of the real-time clamping state three-dimensional model diagram, so as to align the standard clamping state three-dimensional model diagram with the real-time clamping state three-dimensional model diagram; After the alignment is completed, the model area where the standard clamping state three-dimensional model image intersects with the real-time clamping state three-dimensional model image in the grid coordinate system is removed, and the model area where the standard clamping state three-dimensional model image does not intersect with the real-time clamping state three-dimensional model image in the grid coordinate system is retained; The remaining three-dimensional model diagram in the grid coordinate system is extracted to obtain the clamping deviation model diagram.
7. The control system of an automated testing device according to claim 5, characterized in that: The clamping deviation model diagram is analyzed to obtain an analysis result; if the analysis result is the first analysis result, the automated testing equipment is controlled to execute the next preset test program, specifically: The clamping deviation model graph is divided based on a triangulation algorithm to obtain a plurality of triangles; for each triangle, a tetrahedron is constructed that connects the triangle vertices and the centroid of the triangle, thereby constructing a plurality of tetrahedrons; Calculate the volume value of each tetrahedron, and obtain the total volume value of the clamping deviation model diagram based on the volume value of the tetrahedron; compare the total volume value of the clamping deviation model diagram with the preset volume value; If the total volume value of the clamping deviation model diagram is not greater than the preset volume value, a first analysis result is generated, and the automated testing device is controlled to execute the next preset test procedure; If the total volume value of the clamping deviation model diagram is greater than the preset volume value, a second analysis result is generated.
8. The control system of the automated testing equipment according to claim 7, characterized in that: If the analysis result is the second analysis result, a correction parameter is generated, and the automatic test equipment is corrected based on the correction parameter before executing the next preset test program, specifically: Acquire historical clamping offset image information corresponding to various clamping offset conditions of the automated testing equipment, and construct a historical clamping offset model diagram based on the historical clamping offset image information; Obtain historical correction parameters corresponding to various clamping offset conditions of the automated test equipment, and bundle historical clamping offset model diagrams corresponding to various clamping offset conditions with the historical correction parameters to obtain a number of data packets; Building a database, and importing a number of data packets into the database to obtain a characteristic database; If the analysis result is the second analysis result, the clamping deviation model graph is imported into the characteristic database, and the Euclidean distance value between the clamping deviation model graph and each historical clamping deviation model graph is calculated by the Euclidean distance algorithm; Determine the overlap between the clamping deviation model diagram and each historical clamping offset model diagram according to the Euclidean distance value to obtain multiple overlaps; construct a sorting table, import the multiple overlaps into the sorting table for sorting, and after sorting, extract the maximum overlap; Obtain a historical clamping offset model diagram corresponding to the maximum overlap, extract historical correction parameters in a corresponding data packet according to the historical clamping offset model diagram corresponding to the maximum overlap, and correct the clamping position of the automated test equipment based on the historical correction parameters in the corresponding data packet; After the deviation correction is completed, the automatic test equipment is controlled to execute the next preset test program.
