Plate three-dimensional size measurement method and system based on point cloud data

Through the three-dimensional dimension measurement method based on point cloud data, three-dimensional cameras and data processing technology, the problems of low efficiency and accuracy of traditional measurement methods are solved, efficient and accurate measurement of panel size information is achieved, and the level of furniture production automation is improved.

CN119043161APending Publication Date: 2024-11-29FOSHAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411090240.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Traditional furniture panel size measurement methods rely on manual operations, resulting in low production efficiency, low measurement accuracy and inability to achieve three-dimensional measurement, becoming a bottleneck in the production automation of the furniture industry.

Method used

Using a three-dimensional dimension measurement method based on point cloud data, a database is constructed by obtaining the basic dimensions and geometric feature information of the standard board, and a three-dimensional camera is used to collect the three-dimensional point cloud images of the board to be tested for preprocessing and calibration, combined with the data center , principal component analysis and minimum enclosure box calculations to filter out accurate dimensional and geometric feature data.

Benefits of technology

It realizes efficient and accurate quality inspection of plate size information, improves production efficiency, and can obtain accurate plate information from three-dimensional vision, reduces manual intervention and improves measurement accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119043161A_ABST
    Figure CN119043161A_ABST
Patent Text Reader

Abstract

The invention discloses a plate three-dimensional size measurement method and system based on point cloud data, and the method comprises the steps: obtaining the basic size information of a standard plate and the geometric feature information of the standard plate, carrying out the data storage, and constructing a standard plate information database; obtaining a three-dimensional point cloud image of a to-be-measured plate and performing image preprocessing to obtain the preprocessed three-dimensional point cloud image of the to-be-measured plate and a calibration coefficient; and based on the calibration coefficient, performing data screening processing on the preprocessed three-dimensional point cloud image of the to-be-measured plate and a standard plate information database to obtain measurement data information of the screened to-be-measured plate. According to the invention, quality inspection can be efficiently carried out on the size information of the plate, the production efficiency of the plate quality inspection stage is improved, and the size information of the plate is accurately measured. The method and the system for measuring the three-dimensional size of the plate based on the point cloud data can be widely applied to the technical field of workpiece size measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of workpiece dimension measurement, and in particular to a method and system for measuring three-dimensional dimensions of a plate based on point cloud data. Background Art

[0002] In modern furniture production, it is necessary not only to ensure that the patterns and colors of furniture boards are consistent with the customized solutions, but more importantly, to ensure the various dimensional parameters in the board processing and the geometric shape dimensional parameters generated by the processing. Due to production process problems, it is inevitable that panels with dimensional parameters that do not match the CAD drawings will be produced. Therefore, it is essential to measure the dimensions of the panels for customized furniture. However, in traditional production lines, manual measurement methods are generally used. Quality inspectors need to use tape measures or vernier calipers to measure each panel one by one or sample each batch of products, which leads to problems such as low production efficiency and high measurement accuracy. The current existing measurement technology is mainly two-dimensional plane measurement. Two-dimensional plane measurement requires manual placement of panels on the inspection platform, and can only measure the length and width of the panels. It also requires manual sampling of other dimensional information of the panels. Subjective factors have a large impact, low accuracy, and slow speed, which has become a bottleneck problem in the production automation of the furniture industry. Summary of the invention

[0003] In order to solve the above technical problems, the purpose of the present invention is to provide a three-dimensional dimension measurement method and system for panels based on point cloud data, which can efficiently perform quality inspection on the dimension information of panels, improve the production efficiency of the panel quality inspection stage and accurately measure the dimension information of panels.

[0004] The first technical solution adopted by the present invention is: a method for measuring the three-dimensional size of a plate based on point cloud data, comprising the following steps:

[0005] Obtain basic size information and geometric feature information of standard panels and store the data to build a standard panel information database;

[0006] Acquire a three-dimensional point cloud image of the panel to be tested and perform image preprocessing to obtain a preprocessed three-dimensional point cloud image of the panel to be tested and a calibration coefficient;

[0007] Based on the calibration coefficient, the preprocessed three-dimensional point cloud image of the panel to be tested and the standard panel information database are subjected to data screening processing to obtain the screened measurement data information of the panel to be tested.

[0008] Furthermore, the step of acquiring basic size information and geometric feature information of standard panels and storing the data to construct a standard panel information database specifically includes:

[0009] Use Python to read the program file of the plate cutting machine to obtain the basic size information of the standard plate;

[0010] The program file of the plate drilling machine is read through the Python tool to obtain the geometric feature information of the standard plate;

[0011] Based on the MySQL tool, create the first database and the second database through SQL statements;

[0012] The basic size information of the standard plate parts is stored in the first database, and the geometric feature information of the standard plate parts is stored in the second database, so as to construct a standard plate parts information database.

[0013] Furthermore, the step of acquiring the three-dimensional point cloud image of the panel to be tested and performing image preprocessing to obtain the preprocessed three-dimensional point cloud image of the panel to be tested and the calibration coefficients specifically includes:

[0014] Based on the calibration plate tool, the calibration plate image is captured by a 3D camera and the calibration coefficient of the system is obtained;

[0015] Calibrate the 3D camera according to the calibration coefficient of the system and obtain the 3D point cloud image of the panel to be tested;

[0016] The three-dimensional point cloud image of the panel to be tested is filtered by a statistical filtering algorithm to obtain a filtered three-dimensional point cloud image of the panel to be tested;

[0017] The filtered three-dimensional point cloud image of the panel to be tested is segmented by a region growing algorithm to obtain a preprocessed three-dimensional point cloud image of the panel to be tested.

[0018] Furthermore, the step of photographing and calibrating the panel to be tested by a three-dimensional camera to obtain a three-dimensional point cloud image and calibration coefficients of the panel to be tested specifically includes:

[0019] Place the calibration plate at the target position to be measured, and obtain the depth information of the calibration plate and the plate to be measured;

[0020] Performing distortion correction on internal parameters and distortion parameters of the three-dimensional camera according to the depth information to obtain a corrected three-dimensional camera;

[0021] The calibrated 3D camera is used to photograph the panel to be tested, and a preliminary 3D point cloud image of the panel to be tested is obtained;

[0022] Performing distortion correction and grayscale processing on the preliminary three-dimensional point cloud image of the panel to be tested to obtain a three-dimensional point cloud image of the panel to be tested;

[0023] The checkerboard corner points of the three-dimensional point cloud image of the panel to be tested are obtained by using a corner point detection method and measured to obtain the measured pixel size of the square;

[0024] The actual pixel size of the square is set and the ratio to the measured pixel size of the square is obtained to obtain the calibration coefficient.

[0025] Further, the step of performing data screening processing on the preprocessed three-dimensional point cloud image of the panel to be tested and the standard panel information database based on the calibration coefficient to obtain the screened measurement data information of the panel to be tested specifically includes:

[0026] Based on the calibration coefficients, the pre-processed three-dimensional point cloud image of the panel to be tested is subjected to data centralization, principal component analysis and minimum bounding box size calculation in turn to obtain the size data of the panel to be tested;

[0027] Set the size error range, compare the size data of the panel to be tested with the size data of the standard panel information database, select the panel to be tested that meets the size error range, and obtain the size data of the screened panel to be tested;

[0028] According to the geometric feature information of the plate, combined with the calibration coefficient, the geometric feature information of the pre-processed three-dimensional point cloud image of the plate to be measured is measured and processed to obtain the geometric feature data of the plate to be measured;

[0029] Setting the geometric feature data error range, comparing the geometric feature data of the panel to be tested with the standard panel information database, screening the panel to be tested that meets the geometric feature data error range, and obtaining the screened geometric feature data of the panel to be tested;

[0030] The dimension data of the screened panel to be tested and the geometric feature data of the screened panel to be tested are combined to obtain the measurement data information of the screened panel to be tested.

[0031] Further, the step of performing data centering, principal component analysis and minimum bounding box size calculation on the preprocessed three-dimensional point cloud image of the panel to be tested in sequence based on the calibration coefficient to obtain the size data of the panel to be tested specifically includes:

[0032] Performing data centralization processing on the preprocessed three-dimensional point cloud image of the panel to be tested to obtain centralized panel point cloud data of the panel to be tested;

[0033] The covariance matrix of the centralized plate point cloud data of the plate to be tested is calculated by principal component analysis and eigendecomposition is performed to obtain the eigenvector of the three-dimensional point cloud image of the plate to be tested;

[0034] The OBB minimum bounding box is constructed according to the feature vector of the three-dimensional point cloud image of the panel to be tested, and the size of the panel to be tested is measured and calculated and multiplied by the calibration coefficient to obtain the size data of the panel to be tested.

[0035] Further, the step of measuring and processing the geometric feature information of the preprocessed three-dimensional point cloud image of the panel to be measured according to the geometric feature information of the panel in combination with the calibration coefficient to obtain the geometric feature data of the panel to be measured specifically includes:

[0036] Acquire geometric feature information of the plate, wherein the geometric feature information of the plate includes circular hole features, rounded rectangular notch features, and rectangular notch features;

[0037] If the geometric feature information of the plate is a circular hole feature, the center coordinates, diameter and depth of the circular hole feature are obtained from the preprocessed three-dimensional point cloud image of the plate to be tested by the RANSAC algorithm and multiplied by the calibration coefficient to obtain the geometric feature data of the first plate to be tested;

[0038] If the geometric feature information of the plate is a rounded rectangular notch feature, the position of the rounded rectangular notch is obtained from the preprocessed three-dimensional point cloud image of the plate to be tested by the RANSAC algorithm, and then the position of the rounded rectangular notch is fitted by the minimum fitting method to obtain the diameter and depth of the rounded rectangular notch and multiply them by the calibration coefficient to obtain the geometric feature data of the second plate to be tested;

[0039] If the geometric feature information of the plate is a rectangular notch feature, the position of the rectangular notch is obtained from the preprocessed three-dimensional point cloud image of the plate to be tested through the Hough transform detection curve, and then the rectangular notch is fitted through the least squares method to obtain the size data and depth data of the rectangular notch and multiply them by the calibration coefficient to obtain the geometric feature data of the third plate to be tested;

[0040] The geometric feature data of the first panel to be tested, the geometric feature data of the second panel to be tested and the geometric feature data of the third panel to be tested are integrated to obtain the geometric feature data of the panel to be tested.

[0041] The second technical solution adopted by the present invention is: a three-dimensional dimension measurement system of a plate based on point cloud data, comprising:

[0042] A construction module is used to obtain basic size information and geometric feature information of standard panels and store the data to build a standard panel information database;

[0043] An acquisition module is used to acquire a three-dimensional point cloud image of the panel to be tested and perform image preprocessing to obtain a preprocessed three-dimensional point cloud image of the panel to be tested and a calibration coefficient;

[0044] The measurement module is used to perform data screening processing on the pre-processed three-dimensional point cloud image of the panel to be tested and the standard panel information database based on the calibration coefficient to obtain the measurement data information of the screened panel to be tested.

[0045] The beneficial effects of the method and system of the present invention are as follows: the present invention acquires basic size information and geometric feature information of standard panels and stores the data to construct a standard panel information database, thereby acquiring a three-dimensional point cloud image of the panel to be tested, and can obtain accurate panel information from a three-dimensional vision, and perform data measurement and screening on the pre-processed three-dimensional point cloud image of the panel to be tested and the standard panel information database in one step, and can efficiently perform quality inspection on the size information of the panel, thereby improving the production efficiency of the panel quality inspection stage and accurately measuring the size information of the panel. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a flow chart of the steps of a method for measuring three-dimensional dimensions of a panel based on point cloud data of the present invention;

[0047] Figure 2 It is a structural block diagram of a panel three-dimensional dimension measurement system based on point cloud data of the present invention;

[0048] Figure 3 It is a structural schematic diagram of a visual inspection platform provided by a specific embodiment of the present invention;

[0049] Figure 4 It is a schematic diagram of a process for measuring and screening the size data of a three-dimensional point cloud image of a panel to be measured provided by a specific embodiment of the present invention;

[0050] Figure 5 It is a schematic diagram of a model of geometric features of a panel to be tested provided in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0051] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0052] Reference Figure 1 The present invention provides a method for measuring the three-dimensional size of a plate based on point cloud data, the method comprising the following steps:

[0053] S100, acquiring basic size information and geometric feature information of standard panels and storing the data to build a standard panel information database;

[0054] Specifically, the boards used in current custom furniture are all non-standardized. The boards are designed using CAD software and produced using cutting machines, drilling machines, edge banding machines, and other equipment. In order to extract the size information of the boards, it is necessary to read the program files of the cutting machines and drilling machines used to produce each board to determine the operating positions of the cutting machines and drilling machines during production, and then automatically extract the board size information through calculation.

[0055] S110, reading the program file of the plate cutting machine through the python tool to obtain the basic size information of the standard plate;

[0056] In this embodiment, the cutting machine cuts large pieces of raw materials into preliminary shapes and sizes. By using Python to read the program file of each plate cutting machine, the basic size information of the plate in the text can be extracted and converted into the specific length, width, thickness and fillet information of the plate.

[0057] S120, reading the program file of the plate drilling machine through the python tool to obtain the geometric feature information of the standard plate;

[0058] In this embodiment, the drilling machine drills holes and grooves the cut plates. By using Python to read the program files of the drilling machine for each plate, the information of the plate grooves and holes in the text can be extracted. According to certain rules of calculation based on different types of grooves and holes, the automatic extraction of groove and hole size information can be realized.

[0059] S130, creating a first database and a second database using SQL statements based on a MySQL tool;

[0060] S140, storing basic size information of standard panels into a first database, storing geometric feature information of standard panels into a second database, and constructing a standard panel information database.

[0061] In this embodiment, the extracted size information is sequentially filled into the database according to the requirements of database design.

[0062] In order to build a database to store the plate size information, you first need to use MySQL software to create a database through SQL statements. This database will contain basic size information such as the length, width, thickness, and batch number of the plate. In addition, since there are different types of geometric features on the plate, such as round holes, rounded notches, rectangular notches, and rounded corners, you need to create another table for the geometric feature information of each plate.

[0063] First, create the basic size information table of the plate, i.e. the first database, as shown in Table 1. The basic size information table stores the ID, length, width, thickness and batch number of each plate. PlateID represents the plate number, which is the unique identifier of the plate; BatchNumber represents the batch number of the plate, which is used to track production information; Lenth, Width and Thickness represent the length, width and thickness of the plate, respectively, in millimeters.

[0064] Table 1 Basic size information of plates

[0065] PlateID BatchNumber Lenth Width Thickness 001 B001 1000 500 20 002 B001 \ \ \

[0066] Then, a plate geometric feature information table, i.e., the second database, is created. As shown in Table 2, the geometric feature information table stores opening information related to each plate, such as the opening type (circular hole, rectangular slot, rounded rectangular slot) and its specific size. Among them, PlateID represents the plate associated with the opening; OpeningID represents the unique identifier of each opening; Type represents the type of opening, such as Circular hole, Rectangular Slot, and Rounded Slot; Details represents a detailed description of the opening, using JSON format to provide size, position and other specific attributes; for example, circular hole (diameter represents the diameter of the circular hole, position represents the coordinates of the center of the circular hole, and depth represents depth), rectangular slot (width represents width, height represents length, position represents the coordinates of the upper left corner of the rectangular slot, and depth represents depth), rounded rectangular slot (diameter represents the diameter of the slot arc, Lposition represents the coordinates of the center of the left arc, Rposition represents the coordinates of the center of the right arc, and depth represents depth), rounded corner (diameter represents the diameter of the arc, Lposition represents the coordinates of the start point of the rounded corner, Eposition represents the end point of the rounded corner, and Radian represents radian).

[0067] Table 2 Plate geometric characteristics information table

[0068]

[0069] The two tables are linked to each other through the plate ID, and the detailed information of the plate can be queried. In addition, each plate has a unique QR code, and the information of the plate can be obtained by scanning the QR code, which systematizes the storage of plate size data and realizes effective query and management of plate size information.

[0070] S200, acquiring a three-dimensional point cloud image of the panel to be tested and performing image preprocessing to obtain a preprocessed three-dimensional point cloud image of the panel to be tested and a calibration coefficient;

[0071] Specifically, based on the calibration plate tool, the calibration plate image is collected by a three-dimensional camera and the calibration coefficient of the system is obtained; the three-dimensional camera is calibrated according to the calibration coefficient of the system and a three-dimensional point cloud image of the panel to be tested is obtained; the three-dimensional point cloud image of the panel to be tested is filtered by a statistical filtering algorithm to obtain a filtered three-dimensional point cloud image of the panel to be tested; the filtered three-dimensional point cloud image of the panel to be tested is segmented by a region growing algorithm to obtain a pre-processed three-dimensional point cloud image of the panel to be tested.

[0072] Among them, a calibration plate is placed at the target position to be measured, and depth information of the calibration plate and the plate to be measured is obtained; the internal parameters and distortion parameters of the three-dimensional camera are calibrated according to the depth information to obtain a calibrated three-dimensional camera; the plate to be measured is photographed and processed by the calibrated three-dimensional camera to obtain a preliminary three-dimensional point cloud image of the plate to be measured; the preliminary three-dimensional point cloud image of the plate to be measured is subjected to distortion correction and grayscale processing to obtain a three-dimensional point cloud image of the plate to be measured; the checkerboard corner points of the three-dimensional point cloud image of the plate to be measured are obtained by a corner point detection method and measured to obtain the measured pixel size of the square; the actual pixel size of the square is set and the ratio to the measured pixel size of the square is obtained to obtain the calibration coefficient.

[0073] In this embodiment, the visual inspection platform is as follows Figure 3 As shown, check the status of the camera and fixed module, ensure that the camera and fixed module used are in good working condition, without any damage or loose parts, carefully check the equipment and ensure that it is operating normally. Mount the camera firmly on the fixed module to prevent the camera from falling or shifting during operation. According to the characteristics of the plate to be tested, adjust the position and angle of the camera as well as the emission angle and brightness of the light source, and ensure that the camera is aimed at the plate to be tested at the best angle and position to obtain a clear and accurate three-dimensional point cloud image. First, calibrate the 3D camera, place the calibration plate at the position of the target to be tested, and ensure that there is enough parallax between the calibration plate and the target to be tested to obtain depth information. Perform distortion correction on the camera, calibrate the internal parameters and distortion parameters of the camera, and ensure that the acquired image has low distortion. Use the camera to capture images containing standard gauge blocks, and ensure that the standard gauge blocks can be photographed in different positions and postures. The internal parameters and distortion parameters obtained by camera calibration are used to correct the distortion of the captured image, and the corrected image is grayed. The corner point detection method is used to find the corner points of the chessboard, and the pixel size d1 of the square is measured. Assuming that the actual size of the square is D1, the proportional relationship between the pixel and the actual size is calculated based on the actual size and pixel size of the square, thereby obtaining the calibration coefficient k=D1 / d1.

[0074] Furthermore, after acquiring the plate point cloud image through the 3D camera, due to the influence of human factors, environmental factors and other factors, the collected point cloud data will inevitably contain noise and discrete points, which will affect the detection accuracy of the plate size measurement. Therefore, a statistical filtering algorithm is used to filter the plate point cloud image. After point cloud filtering, the point cloud image also contains the plate point cloud and the reference surface point cloud, and the point cloud image is segmented by the regional growing algorithm.

[0075] S300 , based on the calibration coefficient, performing data screening processing on the pre-processed three-dimensional point cloud image of the panel to be tested and the standard panel information database to obtain the screened measurement data information of the panel to be tested.

[0076] Specifically, first scan and identify the QR code on the plate to obtain the plate size information. The plate size measurement is divided into two parts. First, the basic size information (length, width, thickness) of the plate is measured, and then the opening size information of the plate is measured. The model of the plate to be tested is shown in the figure below. Figure 5 As shown, the board size detection logic block diagram is as follows Figure 4 shown.

[0077] S310, based on the calibration coefficients, sequentially performing data centering processing, principal component analysis, and minimum bounding box size calculation on the preprocessed three-dimensional point cloud image of the panel to be tested, to obtain the size data of the panel to be tested;

[0078] S320, setting a size error range, comparing the size data of the panel to be tested with the size data of the standard panel information database, selecting the panel to be tested that meets the size error range, and obtaining the size data of the selected panel to be tested;

[0079] Specifically, the preprocessed three-dimensional point cloud image of the panel to be tested is data-centralized to obtain the centralized plate point cloud data of the panel to be tested; the covariance matrix of the centralized plate point cloud data of the panel to be tested is calculated by principal component analysis and feature decomposition is performed to obtain the feature vector of the three-dimensional point cloud image of the panel to be tested; the OBB minimum bounding box is constructed according to the feature vector of the three-dimensional point cloud image of the panel to be tested, the size measurement of the panel to be tested is calculated and multiplied by the calibration coefficient to obtain the size data of the panel to be tested.

[0080] In the embodiment, for the measurement of the basic size of the plate, the plate point cloud data is firstly centered and principal component analysis (PCA) is performed, which is a statistical method for determining the main axis direction in the data. Then, the OBB minimum bounding box is constructed and the basic size information of the plate is measured.

[0081] Among them, the plate point cloud data is centralized, the mean of all points in the point cloud data is calculated and the coordinates of each point are subtracted, and the plate point cloud data is converted into a form with the center point as the origin. The expression is:

[0082]

[0083] In the above formula, pi is the i-th point in the original point cloud, is the average position of all points.

[0084] Principal component analysis (PCA) calculates the covariance matrix of the centralized point cloud and performs eigendecomposition on the covariance matrix to obtain the eigenvector and eigenvalue. The eigenvector represents the main extension direction of the point cloud data, and the eigenvalue represents the degree of dispersion in this direction. The expression is:

[0085]

[0086] Covvk=λkvk

[0087] Construct the minimum OBB bounding box and size calculation. According to the results of PCA, determine the principal axis of the point cloud, and construct the minimum OBB bounding box along each principal axis. For each principal axis direction, project each point on the point cloud data onto the axis to obtain the length of the axis. Among them, vk is the kth eigenvector, representing an axis direction. Through the above steps, the length L1, L2 and L3 of the plate along each principal axis can be obtained. These lengths correspond to the length, width and thickness of the plate, respectively. Multiply L1, L2 and L3 by the calibration coefficient k respectively, and the measured dimensional data of the plate can be obtained. Compare the measured dimensional data with the plate dimensional information in the database. If each dimensional information is within a certain error range, the size of the plate meets the design requirements and is judged to be a qualified product. The expression is:

[0088] L k =max i (p′ i ·vk)-min i (p′ i ·vk)

[0089] In the above formula, vk represents the kth eigenvector, L k Indicates length.

[0090] S330, measuring and processing the geometric feature information of the preprocessed three-dimensional point cloud image of the panel to be measured according to the geometric feature information of the panel and in combination with the calibration coefficient, to obtain geometric feature data of the panel to be measured;

[0091] S340, setting a geometric feature data error range, comparing the geometric feature data of the panel to be tested with the standard panel information database, screening the panel to be tested that meets the geometric feature data error range, and obtaining the screened geometric feature data of the panel to be tested;

[0092] Specifically, geometric feature information of the plate is obtained, wherein the geometric feature information of the plate includes circular hole features, rounded rectangular notch features, and rectangular notch features;

[0093] It should be noted that, for the size measurement of the opening information of the plate, different algorithms are used to identify and detect the openings for different opening types, and the size measurement calculation is performed based on the opening shapes identified by the detection.

[0094] If the geometric feature information of the plate is a circular hole feature, the center coordinates, diameter and depth of the circular hole feature are obtained from the preprocessed three-dimensional point cloud image of the plate to be tested by the RANSAC algorithm and multiplied by the calibration coefficient to obtain the geometric feature data of the first plate to be tested;

[0095] In this embodiment, for the size measurement of the circular hole, the RANSAC algorithm is first used to identify and locate the circular hole from the point cloud. The specific steps are as follows: three points are randomly selected in the plate point cloud image, and a possible circular hole parameter is calculated based on these three points, the distance from each point in the point cloud to the circle is calculated, and the judgment formula for the number of points that meet the distance threshold is determined. The judgment formula for the number of points of the distance threshold is:

[0096]

[0097] Where d is the distance from the point to the circle, xi and yi are the coordinates of the point in the point cloud, xc and yc are the coordinates of the center of the circle, and R is the radius of the circle. Repeat the above steps several times and select the circle with the largest consistency set as the best match. Then use the least squares method to fit the circle with the largest consistency set obtained from RANSAC and calculate the coordinates of the center of the circle (x r ,y r ) and diameter d, and then by identifying the boundary points at the top and bottom of the hole, calculate the coordinate difference of these points on the Z axis, and thus calculate the depth h of the hole. r ,y r ), diameter d and hole depth h are multiplied by the calibration coefficient k respectively, then the true size confidence of the hole can be obtained, and the measured size information is compared with the size information in the database. If the errors are less than the preset difference, it is determined that the size of the hole meets the plate design standard, and the geometric feature data of the first plate to be tested are obtained.

[0098] If the geometric feature information of the plate is a rounded rectangular notch feature, the position of the rounded rectangular notch is obtained from the preprocessed three-dimensional point cloud image of the plate to be tested by the RANSAC algorithm, and then the position of the rounded rectangular notch is fitted by the minimum fitting method to obtain the diameter and depth of the rounded rectangular notch and multiply them by the calibration coefficient to obtain the geometric feature data of the second plate to be tested;

[0099] In this embodiment, the measurement of the rounded rectangular notch is similar to the method of circular hole size detection. The RANSAC algorithm is first used to detect the positions of the two semicircles, and then the minimum fitting method is used to further fit the two semicircles. Then, the coordinates of the centers of the two semicircles (x 1r ,y 1r ) and (x 2r ,y 2r ) and the diameter d, and the distance between the two semicircle center coordinates is the length of the straight part of the rounded rectangle. Then, by calculating the difference in the Z-axis coordinates of the points on the edge of the rounded rectangle notch and the points at the bottom, the depth h of the rounded rectangle notch can be calculated. 1r ,y 1r ) and (x 2r ,y 2r ) and the diameter d and the notch depth h are multiplied by the calibration coefficient k respectively, then the true size confidence of the notch can be obtained, and the measured size information is compared with the size information in the database. If the errors are less than the preset difference, it is determined that the size of the notch meets the plate design standard, and the geometric feature data of the second plate to be tested are obtained.

[0100] If the geometric feature information of the plate is a rectangular notch feature, the position of the rectangular notch is obtained from the preprocessed three-dimensional point cloud image of the plate to be tested through the Hough transform detection curve, and then the rectangular notch is fitted through the least squares method to obtain the size data and depth data of the rectangular notch and multiply them by the calibration coefficient to obtain the geometric feature data of the third plate to be tested;

[0101] In this embodiment, for the rectangular notch, the approximate position of the curve is first detected by Hough transform, and then the rectangular notch is accurately fitted by the least square method, and the length l and width w of the rectangular notch are calculated based on the fitted straight line, and then the depth h of the rectangular notch is calculated by calculating the coordinate difference between the points on the boundary of the rectangular notch and the bottom of the notch on the Z axis. The length l, width w and notch depth h are multiplied by the calibration coefficient k respectively, and the real size information of the notch can be obtained. The measured size information is compared with the size information in the database. If the errors are less than the preset difference, it is determined that the size of the notch meets the plate design standard, and the geometric feature data of the third plate to be tested are obtained.

[0102] The geometric feature data of the first panel to be tested, the geometric feature data of the second panel to be tested and the geometric feature data of the third panel to be tested are integrated to obtain the geometric feature data of the panel to be tested.

[0103] Finally, if all the plate size information measured by the detection and the size information in the database are within the preset error range, the plate is judged as a qualified plate, otherwise the plate is judged as an unqualified plate.

[0104] S350 , combining the dimension data of the screened panel to be tested with the geometric feature data of the screened panel to be tested to obtain measurement data information of the screened panel to be tested.

[0105] In summary, this embodiment can quickly and accurately detect and measure the size information of the plate, and compared with traditional two-dimensional image size measurement and manual measurement, the measurement accuracy and efficiency are higher, and it realizes the establishment of a plate size information database and automatic measurement and comparison of multiple size information.

[0106] Reference Figure 2 , a three-dimensional dimension measurement system for panels based on point cloud data, comprising:

[0107] A construction module 201 is used to obtain basic size information and geometric feature information of standard panels and store the data to construct a standard panel information database;

[0108] An acquisition module 202 is used to acquire a three-dimensional point cloud image of the panel to be tested and perform image preprocessing to obtain a preprocessed three-dimensional point cloud image of the panel to be tested and a calibration coefficient;

[0109] The measurement module 203 is used to perform data screening processing on the pre-processed three-dimensional point cloud image of the panel to be measured and the standard panel information database based on the calibration coefficient to obtain the measured data information of the screened panel to be measured.

[0110] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0111] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A three-dimensional dimension measurement method for a plate based on point cloud data, characterized in that: The following steps are involved: Obtain basic size information and geometric feature information of standard panels and store the data to build a standard panel information database; Acquire a three-dimensional point cloud image of the panel to be tested and perform image preprocessing to obtain a preprocessed three-dimensional point cloud image of the panel to be tested and a calibration coefficient; Based on the calibration coefficient, the preprocessed three-dimensional point cloud image of the panel to be tested and the standard panel information database are subjected to data screening processing to obtain the screened measurement data information of the panel to be tested.

2. The method for measuring the three-dimensional dimensions of a plate based on point cloud data according to claim 1, characterized in that: The step of obtaining basic size information and geometric feature information of standard panels and storing the data to construct a standard panel information database specifically includes: Use Python to read the program file of the plate cutting machine to obtain the basic size information of the standard plate; The program file of the plate drilling machine is read through the Python tool to obtain the geometric feature information of the standard plate; Based on the MySQL tool, create the first database and the second database through SQL statements; The basic size information of the standard plate parts is stored in the first database, and the geometric feature information of the standard plate parts is stored in the second database, so as to construct a standard plate parts information database.

3. The method for measuring three-dimensional dimensions of a plate based on point cloud data according to claim 2, characterized in that: The step of acquiring a three-dimensional point cloud image of the panel to be tested and performing image preprocessing to obtain a preprocessed three-dimensional point cloud image of the panel to be tested and a calibration coefficient specifically includes: Based on the calibration plate tool, the calibration plate image is captured by a 3D camera and the calibration coefficient of the system is obtained; Calibrate the 3D camera according to the calibration coefficient of the system and obtain the 3D point cloud image of the panel to be tested; The three-dimensional point cloud image of the panel to be tested is filtered by a statistical filtering algorithm to obtain a filtered three-dimensional point cloud image of the panel to be tested; The filtered three-dimensional point cloud image of the panel to be tested is segmented by a region growing algorithm to obtain a preprocessed three-dimensional point cloud image of the panel to be tested.

4. The method for measuring three-dimensional dimensions of a plate based on point cloud data according to claim 3, characterized in that: The step of photographing and calibrating the panel to be tested by a three-dimensional camera to obtain a three-dimensional point cloud image and calibration coefficients of the panel to be tested specifically includes: Place the calibration plate at the target position to be measured, and obtain the depth information of the calibration plate and the plate to be measured; Performing distortion correction on internal parameters and distortion parameters of the three-dimensional camera according to the depth information to obtain a corrected three-dimensional camera; The calibrated 3D camera is used to photograph the panel to be tested, and a preliminary 3D point cloud image of the panel to be tested is obtained; Performing distortion correction and grayscale processing on the preliminary three-dimensional point cloud image of the panel to be tested to obtain a three-dimensional point cloud image of the panel to be tested; The checkerboard corner points of the three-dimensional point cloud image of the panel to be tested are obtained by using a corner point detection method and measured to obtain the measured pixel size of the square; The actual pixel size of the square is set and the ratio to the measured pixel size of the square is obtained to obtain the calibration coefficient.

5. The method for measuring three-dimensional dimensions of a plate based on point cloud data according to claim 4, characterized in that: The step of performing data screening processing on the preprocessed three-dimensional point cloud image of the panel to be tested and the standard panel information database based on the calibration coefficient to obtain the screened measurement data information of the panel to be tested specifically includes: Based on the calibration coefficients, the pre-processed three-dimensional point cloud image of the panel to be tested is subjected to data centralization, principal component analysis and minimum bounding box size calculation in turn to obtain the size data of the panel to be tested; Set the size error range, compare the size data of the panel to be tested with the size data of the standard panel information database, select the panel to be tested that meets the size error range, and obtain the size data of the screened panel to be tested; According to the geometric feature information of the plate, combined with the calibration coefficient, the geometric feature information of the pre-processed three-dimensional point cloud image of the plate to be measured is measured and processed to obtain the geometric feature data of the plate to be measured; Setting the geometric feature data error range, comparing the geometric feature data of the panel to be tested with the standard panel information database, screening the panel to be tested that meets the geometric feature data error range, and obtaining the screened geometric feature data of the panel to be tested; The dimension data of the screened panel to be tested and the geometric feature data of the screened panel to be tested are combined to obtain the measurement data information of the screened panel to be tested.

6. The method for measuring three-dimensional dimensions of a plate based on point cloud data according to claim 5, characterized in that: The step of performing data centering processing, principal component analysis and minimum bounding box size calculation on the preprocessed three-dimensional point cloud image of the panel to be tested in sequence based on the calibration coefficient to obtain the size data of the panel to be tested specifically includes: Performing data centralization processing on the preprocessed three-dimensional point cloud image of the panel to be tested to obtain centralized panel point cloud data of the panel to be tested; The covariance matrix of the centralized plate point cloud data of the plate to be tested is calculated by principal component analysis and eigendecomposition is performed to obtain the eigenvector of the three-dimensional point cloud image of the plate to be tested; The OBB minimum bounding box is constructed according to the feature vector of the three-dimensional point cloud image of the panel to be tested, and the size of the panel to be tested is measured and calculated and multiplied by the calibration coefficient to obtain the size data of the panel to be tested.

7. The method for measuring three-dimensional dimensions of a plate based on point cloud data according to claim 6, characterized in that: The step of measuring and processing the geometric feature information of the preprocessed three-dimensional point cloud image of the panel to be measured according to the geometric feature information of the panel in combination with the calibration coefficient to obtain the geometric feature data of the panel to be measured specifically includes: Acquire geometric feature information of the plate, wherein the geometric feature information of the plate includes circular hole features, rounded rectangular notch features, and rectangular notch features; If the geometric feature information of the plate is a circular hole feature, the center coordinates, diameter and depth of the circular hole feature are obtained from the preprocessed three-dimensional point cloud image of the plate to be tested by the RANSAC algorithm and multiplied by the calibration coefficient to obtain the geometric feature data of the first plate to be tested; If the geometric feature information of the plate is a rounded rectangular notch feature, the position of the rounded rectangular notch is obtained from the preprocessed three-dimensional point cloud image of the plate to be tested by the RANSAC algorithm, and then the position of the rounded rectangular notch is fitted by the minimum fitting method to obtain the diameter and depth of the rounded rectangular notch and multiply them by the calibration coefficient to obtain the geometric feature data of the second plate to be tested; If the geometric feature information of the plate is a rectangular notch feature, the position of the rectangular notch is obtained from the preprocessed three-dimensional point cloud image of the plate to be tested through the Hough transform detection curve, and then the rectangular notch is fitted through the least squares method to obtain the size data and depth data of the rectangular notch and multiply them by the calibration coefficient to obtain the geometric feature data of the third plate to be tested; The geometric feature data of the first panel to be tested, the geometric feature data of the second panel to be tested and the geometric feature data of the third panel to be tested are integrated to obtain the geometric feature data of the panel to be tested.

8. A three-dimensional dimension measurement system for panels based on point cloud data, characterized in that: Includes the following modules: A construction module is used to obtain basic size information and geometric feature information of standard panels and store the data to build a standard panel information database; An acquisition module is used to acquire a three-dimensional point cloud image of the panel to be tested and perform image preprocessing to obtain a preprocessed three-dimensional point cloud image of the panel to be tested and a calibration coefficient; The measurement module is used to perform data screening processing on the pre-processed three-dimensional point cloud image of the panel to be tested and the standard panel information database based on the calibration coefficient to obtain the measurement data information of the screened panel to be tested.