Construction method of EMU characteristic profile template library based on theoretical model

Through the projection, processing and piecewise function construction of the three-dimensional point cloud data of the train, the problem of low efficiency and low accuracy in the construction of the train feature contour template library in the existing technology is solved, and a more efficient and accurate template library construction is achieved. , suitable for efficient modeling needs in the engineering field.

CN118135097BActive Publication Date: 2024-09-20NANJING FORESTRY UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410113883.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-27
Publication Date
2024-09-20
Estimated Expiration
2044-01-27

AI Technical Summary

Technical Problem

Existing theoretical model construction methods based on 3D point cloud data are inefficient when processing complex-shaped objects, are sensitive to noise and incomplete data, and have low storage and computing efficiency when processing large-scale point cloud data, making it difficult to meet the high efficiency requirements in the engineering field. , accurate modeling requirements.

Method used

By importing the three-dimensional point cloud data of the train, point cloud coordinate conversion, random down-sampling, projection processing, deduplication, point-by-point serialization, and improved alpha shape method are used to extract the boundary point set, and a piecewise function is used to construct the train characteristic contour template. library to reduce the difficulty of data processing and improve efficiency.

Benefits of technology

It improves the efficiency and accuracy of constructing the feature contour template library of high-speed trains, has a wide range of applications, meets the needs of efficient and accurate modeling in the engineering field, and avoids the computational redundancy and long time problems in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118135097B
    Figure CN118135097B
Patent Text Reader

Abstract

The present invention discloses a method for constructing a characteristic contour template library of a motor vehicle based on a theoretical model, including: projecting the three-dimensional point cloud data of the motor vehicle on the YZ plane and the XY plane respectively; taking the point with the smallest Y coordinate as the starting point, searching for the point closest to the starting point as the next sequence point, and then searching for the point closest to the sequence point as the new next sequence point, repeating the search until all points are searched to obtain a sequence of all points; retrieving each point in the sequence, constructing a piecewise function as a base template library; extracting a set of points that are the boundaries of the two-dimensional point cloud according to the two-dimensional point cloud data on the XY plane; slicing the two-dimensional point cloud data on the XY plane, and searching for points within the range of each point cloud slice and within the range of the point set, respectively, to obtain a template library on each point cloud slice. The construction method of the present invention improves the efficiency and accuracy of constructing the characteristic contour template library of the motor vehicle, and provides reliable support for subsequent work based on the template library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of reverse engineering, and in particular relates to a method for constructing a motor vehicle characteristic profile template library based on a theoretical model. Background Art

[0002] Three-dimensional point cloud data is a collection of a large number of discrete points generated by CAD software, which describes the geometric shape and spatial position of the surface of an object. This data is often used in engineering design, manufacturing, construction and other fields. By processing and analyzing three-dimensional point cloud data, three-dimensional reconstruction, feature extraction and recognition of objects can be achieved. In recent years, theoretical model construction methods based on three-dimensional point cloud data have received widespread attention, especially in the fields of computer vision, pattern recognition and industrial manufacturing. These methods analyze and process point cloud data to achieve accurate extraction and modeling of features such as object shape and contour, providing important support for engineering design, quality control, intelligent manufacturing, etc. Therefore, theoretical model construction methods based on three-dimensional point cloud data have important application prospects in the engineering field.

[0003] Although the theoretical model construction method based on 3D point cloud data has important application prospects in the engineering field, there are still some challenges and shortcomings. First, for objects with complex shapes, existing methods often require a lot of computing resources and time, resulting in low efficiency. Secondly, for noisy and incomplete point cloud data, the existing model construction methods are easily affected, resulting in low modeling accuracy. In addition, when processing large-scale point cloud data, such as dynamic vehicle contours, the existing methods often have problems with low storage and computing efficiency. Therefore, it is necessary to further study and improve the theoretical model construction method based on 3D point cloud data to improve its processing efficiency, accuracy and scope of application, and meet the needs of the engineering field for efficient and accurate modeling. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method for constructing a motor vehicle characteristic profile template library based on a theoretical model in response to the deficiencies of the above-mentioned prior art. The method for constructing a motor vehicle characteristic profile template library based on a theoretical model improves the efficiency and accuracy of constructing the motor vehicle characteristic profile template library, and provides reliable support for subsequent work based on the template library.

[0005] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:

[0006] A method for constructing a motor vehicle characteristic profile template library based on a theoretical model comprises the following steps:

[0007] Step 1: Import the 3D point cloud data of the train converted from CAD, and perform point cloud coordinate conversion so that the direction along the vehicle body is the X-axis direction of the point cloud coordinate system, and the height direction of the train is the Y-axis direction of the point cloud coordinate system;

[0008] Step 2: Randomly downsample the 3D point cloud data;

[0009] Step 3: Project the three-dimensional point cloud data on the YZ plane and the XY plane respectively to obtain the two-dimensional point cloud data of the motor vehicle on the YZ plane and the two-dimensional point cloud data on the XY plane respectively;

[0010] Step 4: Remove duplicate and redundant data from the two-dimensional point cloud data on the YZ plane obtained in step 3;

[0011] Step 5: Take the data processed in step 4, take the point with the smallest Y coordinate as the starting point, and search for the point closest to the starting point as the next sequence point, then search for the point closest to the sequence point as the new next sequence point, and repeat the search steps in step 5 until all points are searched, and finally obtain the sequence of all points;

[0012] Step 6: According to the sequence obtained in step 5, search each point in turn, construct a piecewise function, and use the function as the base template library;

[0013] Step 7: Using the improved alpha shape method, the two-dimensional point cloud data on the XY plane obtained in step 3 is used to extract a set of points that are the boundaries of the two-dimensional point cloud;

[0014] Step 8: Slice the two-dimensional point cloud data on the XY plane obtained in step 3 along the X direction with a certain slice thickness to obtain multiple point cloud slices, and find points within the range of each point cloud slice and within the range of the point set in step 7 respectively, and use the Y-axis coordinates of these points as the value range to bring them into the base template library obtained in step 6 as the template library on each point cloud slice.

[0015] As a further improved technical solution of the present invention, the step 5 comprises:

[0016] Step 5.1, record the two-dimensional point cloud data on the YZ plane processed in step 4 as point set V, and record each point in the point set V as element v;

[0017] Step 5.2, take the point with the smallest Y coordinate in the point set V as the starting point, record the starting point as u0, let the set S0 = u0, i = 0;

[0018] Step 5.3: For each Calculate its relationship with u i The square of the distance:

[0019]

[0020] In the formula, (v x , v y ) is the coordinate value of element v, (u ix ,u iy ) is the element u i The coordinate value of

[0021] Calculate and will reach this minimum The point is denoted as u i+1 , let S i+1 =S i ∪u i+1 ;

[0022] Step 5.4, if i = |V|-1, stop; if i < |V|-1, replace i with i+1 and go to step 5.3;

[0023] Step 5.5: At this point, a two-dimensional point cloud data sequence on the YZ plane with index i is obtained.

[0024] As a further improved technical solution of the present invention, the step 6 comprises:

[0025] Step 6.1: Based on the sequence obtained in step 5, starting from index i=0, let the set of the start and end point indexes of the straight line segment be S l , the index set of the three points in the arc segment is S r ;

[0026] Step 6.2: Calculate the slope of the straight line segment between the point with index i and the point with index i+1 (y i ,z i ) is the coordinate of the point with index i, let the judgment value K l =k i , n = 1;

[0027] Step 6.3: Calculate the slope of the next straight line segment According to the judgment formula:

[0028] |k i+n -K l |≤10 -5 (2);

[0029] If formula (2) is true, the straight line segment between the point with index i+n and the point with index i+1+n is considered to be on the same straight line as the previous straight line segment, and n is replaced by n+1. If the point with index i+1+n exists, K is used. l =k i+nUpdate the judgment value and return to step 6.3. If the point with index i+n+1 does not exist, it means that all points in the point set have been traversed, and return to step 6.6. If formula (2) is judged to be false, it is considered that the straight line segment between the point with index i+n and the point with index i+1+n is not on the same straight line as the previous straight line segment, and the points from index i to index i+n are on the same straight line. Save the starting point index and the ending point index (i, i+n) to the set S. l Middle, that is, S l =S l ∪(i,i+n), replace i with i+n+1, and return to step 6.4;

[0030] Step 6.4, respectively (y i ,z i )、(y i+1 ,z i+1 )、(y i+2 ,z i+2 ) into the circle equation:

[0031] y 2 +z 2 +2Dy+2Ez+F=0 (3);

[0032] The simultaneous equations calculate the values ​​of D, E, and F; then calculate the radius of the arc Center coordinate y r =-D,z r =-E, let the judgment value K r =R i , n = 1;

[0033] Step 6.5, calculate the next point with index i+2+n (y i+2+n ,z i+2+n ) to the center of the circle According to the judgment formula:

[0034] |d i+2+n -K r |≤10 -5 (4);

[0035] If formula (4) is true, then the point (y i+2+n ,z i+2+n ) is on the same arc as the previous points, and n is replaced by n+1. If the point with index i+2+n exists, return to step 6.5. If not, it means that all points in the point set have been traversed, and return to step 6.6. If formula (4) is judged to be false, it is considered that the point (y i+2+n ,z i+2+n) is not on the same arc as the previous points, but the points from index i to index i+1+n are on the same arc. Save the indexes (i, i+1, i+1+n) of the starting point of the arc segment and the two adjacent points to the set S r Middle, that is, S r =S r ∪(i,i+1,i+1+n), replace i with i+n+2, and return to step 6.2;

[0036] Step 6.6: According to S l The starting point index and ending point index of each straight line segment saved in the , and the values ​​of its first and last points are put into the two-point straight line equation Calculate the straight line equation for each segment; according to S r The indexes of the three points of each segment saved in are respectively substituted into the circle equation y 2 +z 2 +2D i y+2E i z+F i =0, the simultaneous equations calculate D i 、E i 、F i The value of is used to calculate the circle equation of each segment; the line equations and circle equations corresponding to each set of adjacent line segments and arc segments are combined to obtain the intersection points, and the Y coordinates of these intersection points are used as the basis for segmentation, and finally a piecewise function is obtained:

[0037]

[0038] where lb i ,ub i They are the Y coordinate values ​​of the two intersection points in the piecewise function respectively;

[0039] And use this piecewise function as the base template library.

[0040] As a further improved technical solution of the present invention, the step 7 comprises:

[0041] Step 7.1, let the two-dimensional point cloud on the XY plane be the point set S, calculate the density ρ of the two-dimensional point cloud on the XY plane, and set the threshold alpha according to the point cloud density, let the boundary point set set be S e ;

[0042] Step 7.2: Select any point p in the point set S i ;

[0043] Step 7.3, calculate p i The distance between the other points in the point set S and all the points with point p i Points whose distance is less than 2*alpha are recorded as point set Q i , any selected point set Qi Inside a little q i and

[0044] Step 7.4: Generate two simultaneous passing points p i With point q i and the circumscribed circle with radius alpha; if any of the two circumscribed circles does not contain other points in the point set S, then point p i With point q i As an edge point, point p i Save to set S e and q i Replace with new p i Return to step 7.3; otherwise, from the point set Q i Pick any point q in i+1 and Instead of q i , return to step 7.4 until the point set Q i All points in are processed;

[0045] Step 7.6: Select any point p from the point set S i+1 and Instead of p i , return to step 7.3 until all points in the point set S are processed;

[0046] Step 7.7: Finally, we get the boundary point set S of the two-dimensional point cloud on the XY plane. e .

[0047] As a further improved technical solution of the present invention, the step 8 comprises:

[0048] Step 8.1, estimate the slice thickness δ according to the density ρ of the two-dimensional point cloud on the XY plane;

[0049] Step 8.2, slice the two-dimensional point cloud data on the XY plane along the X direction with a slice thickness δ to obtain M point cloud slices;

[0050] Step 8.3: In each point cloud slice, search for the set of boundary points S that belong to the point cloud slice and step 7 e All points, and based on the Y-axis coordinates of these points, get the new value range lb m ≤y m ≤ub m lb m andub m They are respectively the minimum and maximum values ​​of the Y-axis coordinates of the searched points;

[0051] Step 8.4, bring the new value range into the base template library obtained in step 6, and update the piecewise function on each point cloud slice m along the X direction:

[0052]

[0053] At this point, the EMU feature profile template library is obtained.

[0054] The beneficial effects of the present invention are:

[0055] (1) Based on the three-dimensional point cloud data converted from the CAD model of the EMU, the present invention establishes a method for constructing a EMU feature contour template library based on a theoretical model, projects the three-dimensional point cloud data onto the YZ and XY planes respectively, and performs corresponding processing to reduce the three-dimensional data to two-dimensional data, thereby greatly reducing the difficulty of data processing and improving the efficiency of data processing.

[0056] (2) The present invention takes into account the characteristics of the characteristic contour of the train and sorts the two-dimensional point cloud data by gradually finding the nearest point, thereby greatly improving the efficiency of sorting.

[0057] (3) The present invention constructs a piecewise function by searching each point in turn, determining whether it is a straight line segment or an arc segment segment by segment, and dynamically adjusting the determination formula according to the specific situation of each segment. The function is used as a basic template library. Compared with other traditional curve fitting methods, this method can fit the curve composed of straight line segments and arc segments more quickly, efficiently and accurately.

[0058] (4) The present invention improves the alpha shape method for finding the boundary of a two-dimensional point cloud, and changes the method from randomly selecting a point to determine whether it is an edge point to first finding a boundary point, and then using the adjacent boundary point as the search point to find the next boundary point. After this improvement, the disadvantages of the original method of blind random search are reduced to a certain extent, redundant and repeated steps are reduced, and the search efficiency of boundary points is greatly improved. The present invention has a wide range of applications and meets the needs of the engineering field for efficient and accurate modeling. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 This is an image of the three-dimensional point cloud data of the EMU converted from CAD.

[0060] Figure 2 It is a two-dimensional point cloud data image of the motor vehicle on the YZ plane.

[0061] Figure 3 It is a two-dimensional point cloud data image of the motor vehicle on the XY plane.

[0062] Figure 4 It is a schematic diagram of a piecewise function fitting curve composed of straight line segments and circular arc segments. DETAILED DESCRIPTION

[0063] The specific embodiments of the present invention are further described below according to the accompanying drawings:

[0064] A method for constructing a motor vehicle characteristic profile template library based on a theoretical model comprises the following steps:

[0065] Step 1: Import the train converted from CAD Figure 1 The three-dimensional point cloud data shown in the figure is converted into point cloud coordinates so that the direction along the vehicle body is the X-axis direction of the point cloud coordinate system and the height direction of the vehicle is the Y-axis direction of the point cloud coordinate system;

[0066] Step 2: Randomly downsample the 3D point cloud data;

[0067] Step 3: Project the 3D point cloud data on the YZ plane and XY plane respectively to obtain Figure 2 The two-dimensional point cloud data of the motor vehicle on the YZ plane shown in Figure 3 The two-dimensional point cloud data of the motor vehicle on the XY plane is shown;

[0068] Step 4: Remove duplicate and redundant data from the two-dimensional point cloud data on the YZ plane obtained in step 3;

[0069] Step 5: Take the data processed in step 4, take the point with the smallest Y coordinate as the starting point, and search for the point closest to the starting point as the next sequence point, then search for the point closest to the sequence point as the new next sequence point, and repeat the search steps in step 5 until all points are searched, and finally obtain the sequence of all points;

[0070] Step 6: According to the sequence obtained in step 5, search each point in turn, construct a piecewise function, and use the function as the base template library;

[0071] Step 7: Using the improved alpha shape method, the two-dimensional point cloud data on the XY plane obtained in step 3 is used to extract a set of points that are the boundaries of the two-dimensional point cloud;

[0072] Step 8: Slice the two-dimensional point cloud data on the XY plane obtained in step 3 along the X direction with a certain slice thickness to obtain multiple point cloud slices, and find points within the range of each point cloud slice and within the range of the point set in step 7 respectively, and use the Y-axis coordinates of these points as the value range to bring them into the base template library obtained in step 6 as the template library on each point cloud slice.

[0073] The step 5 comprises:

[0074] Step 5.1, record the two-dimensional point cloud data on the YZ plane processed in step 4 as point set V, and record each point in point set V as element v;

[0075] Step 5.2, take the point with the smallest Y coordinate in the point set V as the starting point, record the starting point as u0, let the set S0 = u0, i = 0;

[0076] Step 5.3: For each Calculate its relationship with u i The square of the distance:

[0077]

[0078] In the formula, (v x , v y ) is the coordinate value of element v, (u ix ,u iy ) is the element u i The coordinate value of

[0079] Calculate and will reach this minimum The point is denoted as u i+1 , let S i+1 =S i ∪u i+1 ;

[0080] Step 5.4, if i = |V|-1, stop; if i < |V|-1, replace i with i+1 and go to step 5.3;

[0081] Step 5.5: At this point, a two-dimensional point cloud data sequence on the YZ plane with index i is obtained.

[0082] The step 6 comprises:

[0083] Step 6.1: Based on the sequence obtained in step 5, starting from index i=0, let the set of the start and end point indexes of the straight line segment be S l , the index set of the three points in the arc segment is S r ;

[0084] Step 6.2: Calculate the slope of the straight line segment between the point with index i and the point with index i+1 (y i ,z i ) is the coordinate of the point with index i, let the judgment value K l =k i , n = 1;

[0085] Step 6.3: Calculate the slope of the next straight line segment According to the judgment formula:

[0086] |ki+n -K l |≤10 -5 (2);

[0087] If formula (2) is true, the straight line segment between the point with index i+n and the point with index i+1+n is considered to be on the same straight line as the previous straight line segment, and n is replaced by n+1. If the point with index i+1+n exists, K is used. l =k i+n Update the judgment value and return to step 6.3. If the point with index i+n+1 does not exist, it means that all points in the point set have been traversed, and return to step 6.6. If formula (2) is judged to be false, it is considered that the straight line segment between the point with index i+n and the point with index i+1+n is not on the same straight line as the previous straight line segment, and the points from index i to index i+n are on the same straight line. Save the starting point index and the ending point index (i, i+n) to the set S. l Middle, that is, S l =S l ∪(i,i+n), replace i with i+n+1, and return to step 6.4;

[0088] Step 6.4, respectively (y i ,z i )、(y i+1 ,z i+1 )、(y i+2 ,z i+2 ) into the circle equation:

[0089] y 2 +z 2 +2Dy+2Ez+F=0 (3);

[0090] The simultaneous equations calculate the values ​​of D, E, and F; then calculate the radius of the arc Center coordinate y r =-D,z r =-E, let the judgment value K r =R i , n = 1;

[0091] Step 6.5, calculate the next point with index i+2+n (y i+2+n ,z i+2+n ) to the center of the circle According to the judgment formula:

[0092] |d i+2+n -K r |≤10 -5 (4);

[0093] If formula (4) is true, then the point (yi+2+n ,z i+2+n ) is on the same arc as the previous points, and n is replaced by n+1. If the point with index i+2+n exists, return to step 6.5. If not, it means that all points in the point set have been traversed, and return to step 6.6. If formula (4) is judged to be false, it is considered that the point (y i+2+n ,z i+2+n ) is not on the same arc as the previous points, but the points from index i to index i+1+n are on the same arc. Save the indexes (i, i+1, i+1+n) of the starting point of the arc segment and the two adjacent points to the set S r Middle, that is, S r =S r ∪(i,i+1,i+1+n), replace i with i+n+2, and return to step 6.2;

[0094] Step 6.6: According to S l The starting point index and ending point index of each straight line segment saved in the , and the values ​​of its first and last points are put into the two-point straight line equation Calculate the straight line equation for each segment; according to S r The indexes of the three points of each segment saved in are respectively substituted into the circle equation y 2 +z 2 +2D i y+2E i z+F i =0, the simultaneous equations calculate D i 、E i 、F i The value of is used to calculate the circle equation of each segment; the line equations and circle equations corresponding to each set of adjacent line segments and arc segments are combined to obtain the intersection points, and the Y coordinates of these intersection points are used as the basis for segmentation, and finally a piecewise function is obtained:

[0095]

[0096] where lb i ,ub i They are the Y coordinate values ​​of the two intersection points in the piecewise function respectively; and the piecewise function is used as the base template library.

[0097] Figure 4 In the figure, the red line represents the curve fitted by arc segments, and the orange line represents the curve fitted by straight line segments.

[0098] The step 7 comprises:

[0099] Step 7.1, let the two-dimensional point cloud on the XY plane be the point set S, calculate the density ρ of the two-dimensional point cloud on the XY plane, and set the threshold alpha according to the point cloud density, let the boundary point set set be S e ;

[0100] Step 7.2: Select any point p in the point set S i ;

[0101] Step 7.3, calculate p i The distance between the other points in the point set S and all the points with point p i Points whose distance is less than 2*alpha are recorded as point set Q i , any selected point set Q i Inside a little q i and

[0102] Step 7.4: Generate two simultaneous passing points p i With dot q i and the circumscribed circle with radius alpha; if any of the two circumscribed circles does not contain other points in the point set S, then point p i With dot q i As an edge point, point p i Save to set S e and q i Replace with new p i Return to step 7.3; otherwise, from the point set Q i Pick any point q in i+1 and Instead of q i , return to step 7.4 until the point set Q i All points in are processed;

[0103] Step 7.6: Select any point p from the point set S i+1 and Instead of p i , return to step 7.3 until all points in the point set S are processed;

[0104] Step 7.7: Finally, we get the boundary point set S of the two-dimensional point cloud on the XY plane. e .

[0105] The step 8 comprises:

[0106] Step 8.1, estimate the slice thickness δ according to the density ρ of the two-dimensional point cloud on the XY plane;

[0107] Step 8.2, slice the two-dimensional point cloud data on the XY plane along the X direction with a slice thickness δ to obtain M point cloud slices;

[0108] Step 8.3: In each point cloud slice, search for the set of boundary points S that belong to the point cloud slice and to step 7 e All points, and based on the Y-axis coordinates of these points, get the new value range lb m≤y m ≤ub m lb m andub m They are respectively the minimum and maximum values ​​of the Y-axis coordinates of the searched points;

[0109] Step 8.4, bring the new value range into the base template library obtained in step 6, and update the piecewise function on each point cloud slice m along the X direction:

[0110]

[0111] At this point, the EMU feature profile template library is obtained.

[0112] Since the surface contour of the EMU is projected as a curve along the direction of the vehicle body, that is, the surface contour of the EMU is the same as the contour of any section perpendicular to the direction of the vehicle body, but there is no entity feature at the door or window opening, and the curve is composed of several arc segments and straight line segments. The construction method of the EMU characteristic contour template library based on the theoretical model targets this feature of the EMU. The three-dimensional point cloud data of the EMU surface is projected along the direction of the vehicle body and perpendicular to the direction of the EMU surface, and a series of corresponding processing is performed to construct the EMU characteristic contour template library. It avoids the traditional method of slicing the model first and then processing each slice separately, resulting in a large number of redundant calculations, which leads to a large waste of computing resources and long computing time. The efficiency and accuracy of the construction of the EMU characteristic contour template library are improved, providing reliable support for subsequent work based on the template library.

[0113] The protection scope of the present invention includes but is not limited to the above embodiments. The protection scope of the present invention shall be based on the claims. Any replacement, deformation, and improvement of the technology that can be easily thought of by technicians in this field shall fall within the protection scope of the present invention.

Claims

1. A method for constructing a motor vehicle characteristic profile template library based on a theoretical model, characterized in that: The following steps are involved: Step 1: Import the 3D point cloud data of the train converted from CAD, and perform point cloud coordinate conversion so that the direction along the vehicle body is the X-axis direction of the point cloud coordinate system, and the height direction of the train is the Y-axis direction of the point cloud coordinate system; Step 2: Randomly downsample the 3D point cloud data; Step 3: Project the three-dimensional point cloud data on the YZ plane and the XY plane respectively to obtain the two-dimensional point cloud data of the motor vehicle on the YZ plane and the two-dimensional point cloud data on the XY plane respectively; Step 4: Remove duplicate and redundant data from the two-dimensional point cloud data on the YZ plane obtained in step 3; Step 5: Take the data processed in step 4, take the point with the smallest Y coordinate as the starting point, and search for the point closest to the starting point as the next sequence point, then search for the point closest to the sequence point as the new next sequence point, and repeat the search steps in step 5 until all points are searched, and finally obtain the sequence of all points; Step 6: According to the sequence obtained in step 5, each point is retrieved in turn, a piecewise function is constructed, and the function is used as a base template library; step 6 includes: Step 6.1: Based on the sequence obtained in step 5, starting from index i=0, let the set of the start and end point indexes of the straight line segment be S l , the index set of the three points in the arc segment is S r ; Step 6.2: Calculate the slope of the straight line segment between the point with index i and the point with index i+1 (y i ,z i ) is the coordinate of the point with index i, let the judgment value K l =k i , n = 1; Step 6.3: Calculate the slope of the next straight line segment According to the judgment formula: |k i+n -K l |≤10 -5 (2); If formula (2) is true, the straight line segment between the point with index i+n and the point with index i+1+n is considered to be on the same straight line as the previous straight line segment, and n is replaced by n+1. If the point with index i+1+n exists, K is used. l =k i+n Update the judgment value and return to step 6.

3. If the point with index i+n+1 does not exist, it means that all points in the point set have been traversed, and return to step 6.

6. If formula (2) is judged to be false, it is considered that the straight line segment between the point with index i+n and the point with index i+1+n is not on the same straight line as the previous straight line segment, and the points from index i to index i+n are on the same straight line. Save the starting point index and the ending point index (i, i+n) to the set S. l In, that is, s l =s l ∪(i,i+n), replace i with i+n+1, and return to step 6.4; Step 6.4, respectively (y i ,z i )、(y i+1 ,z i+1 )、(y i+2 ,z i+2 ) into the circle equation: and 2 +with 2 +2Dy+2Ez+F=0 (3); The simultaneous equations calculate the values ​​of D, E, and F; then calculate the radius of the arc Center coordinate y r =-D,z r =-E, let the judgment value K r =R i , n = 1; Step 6.5, calculate the next point with index i+2+n (y i+2+n ,z i+2+n ) to the center of the circle According to the judgment formula: |d i+2+n -K r |≤10 -5 (4); If formula (4) is true, then the point (y i+2+n ,z i+2+n ) is on the same arc as the previous points, and n is replaced by n+1. If the point with index i+2+n exists, return to step 6.

5. If not, it means that all points in the point set have been traversed, and return to step 6.

6. If formula (4) is judged to be false, it is considered that the point (y i+2+n ,z i+2+n ) is not on the same arc as the previous points, but the points from index i to index i+1+n are on the same arc. Save the indexes (i, i+1, i+1+n) of the starting point of the arc segment and the two adjacent points to the set S r Middle, that is, S r =S r ∪(i,i+1,i+1+n), replace i with i+n+2, and return to step 6.2; Step 6.6: According to S l The starting point index and ending point index of each straight line segment saved in the , and the values ​​of its first and last points are put into the two-point straight line equation Calculate the straight line equation for each segment; according to S r The indexes of the three points of each segment saved in are respectively substituted into the circle equation y 2 +z 2 +2D i y+2E i z+F i =0, the simultaneous equations calculate D i 、E i 、F i The value of is used to calculate the circle equation of each segment; the line equations and circle equations corresponding to each set of adjacent line segments and arc segments are combined to obtain the intersection points, and the Y coordinates of these intersection points are used as the basis for segmentation, and finally a piecewise function is obtained: where lb i ,ub i They are the Y coordinate values ​​of the two intersection points in the piecewise function respectively; And use the piecewise function as the base template library; Step 7: Using the improved alpha shape method, the two-dimensional point cloud data on the XY plane obtained in step 3 is used to extract a set of points that are the boundaries of the two-dimensional point cloud; step 7 includes: Step 7.1, let the two-dimensional point cloud on the XY plane be the point set S, calculate the density ρ of the two-dimensional point cloud on the XY plane, and set the threshold alpha according to the point cloud density, let the boundary point set set be S e ; Step 7.2: Select any point p in the point set S i ; Step 7.3, calculate p i The distance between the other points in the point set S and all the points with point p i Points whose distance is less than 2*alpha are recorded as point set Q i , any selected point set Q i Inside a little q i and Step 7.4: Generate two simultaneous passing points p i With point q i and the circumscribed circle with radius alpha; if any of the two circumscribed circles does not contain other points in the point set S, then point p i With point q i As an edge point, point p i Save to set S e and q i Replace with new p i Return to step 7.3; otherwise, from the point set Q i Pick any point q in i+1 and Instead of q i , return to step 7.4 until the point set Q i All points in are processed; Step 7.6: Select any point p from the point set S i+1 and Instead of p i , return to step 7.3 until all points in the point set S are processed; Step 7.7: Finally, we get the boundary point set S of the two-dimensional point cloud on the XY plane. e ; Step 8. Estimate the slice thickness δ according to the density ρ of the two-dimensional point cloud on the XY plane; slice the two-dimensional point cloud data on the XY plane obtained in step 3 along the X direction with the slice thickness to obtain multiple point cloud slices, and find points within the range of each point cloud slice and within the range of the point set in step 7 respectively, and use the Y-axis coordinates of these points as the value range to bring them into the base template library obtained in step 6 as the template library on each point cloud slice.

2. The method for constructing a motor vehicle characteristic profile template library based on a theoretical model according to claim 1, characterized in that: The step 5 comprises: Step 5.1, record the two-dimensional point cloud data on the YZ plane processed in step 4 as point set V, and record each point in the point set V as element v; Step 5.2, take the point with the smallest Y coordinate in the point set V as the starting point, record the starting point as u0, let the set S0 = u0, i = 0; Step 5.3: For each Calculate its relationship with u i The square of the distance: In the formula, (v x , v y ) is the coordinate value of element v, (u ix ,u iy ) is the element u i The coordinate value of Calculate and will reach this minimum The point is denoted as u i+1 , let S i+1 =S i ∪u i+1 ; Step 5.4, if i = |V|-1, stop; if i < |V|-1, replace i with i+1 and go to step 5.3; Step 5.5: At this point, a two-dimensional point cloud data sequence on the YZ plane with index i is obtained.

3. The method for constructing a motor vehicle characteristic profile template library based on a theoretical model according to claim 1, characterized in that: The step 8 includes: Step 8.2, slice the two-dimensional point cloud data on the XY plane along the X direction with a slice thickness δ to obtain M point cloud slices; Step 8.3: In each point cloud slice, search for the set of boundary points S that belong to the point cloud slice and step 7 e All points, and based on the Y-axis coordinates of these points, get the new value range lb m ≤y m ≤ub m lb m andub m They are respectively the minimum and maximum values ​​of the Y-axis coordinates of the searched points; Step 8.4, bring the new value range into the base template library obtained in step 6, and update the piecewise function on each point cloud slice m along the X direction: At this point, the EMU feature profile template library is obtained.