Two-dimensional plane point set cloud contour enveloping method, device and medium
Through the two-dimensional plane point set cloud contour envelope method, the prior knowledge of drawings is used to solve the problems of missing edges of point cloud signals and low computational efficiency, achieve efficient point cloud contour extraction and registration, and improve computational efficiency. and accuracy.
Patent Information
- Application Number
- CN202310329731.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, fitting methods based on edge detection have missing or "ghosting" problems at the edges of point cloud signals, resulting in low calculation efficiency, affecting the global registration of ICP, and requiring a large amount of calculation.
The two-dimensional plane point set cloud outline envelope method is used, and the prior knowledge of the drawing is used to extract and register the point cloud outline through the algorithm in steps S1-S11, including converting the model edge entity sequence into a point set coordinate system to find control points, calculate the projection distance, form a trusted registration point set, solve the global two-dimensional rotation matrix and displacement, and update the edge entity parameters.
In the case of sensor errors and missing point clouds, point cloud contour extraction and registration are efficiently completed, which improves computing efficiency, reduces the amount of calculation, and enhances the accuracy of edge detection.
Smart Images

Figure FDA00041545353000000113 
Figure FDA0004154535300000022 
Figure SMS_35
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of a two-dimensional plane point set cloud contour enveloping method based on a design drawing model. Background Art
[0002] In the field of image processing, processing, fitting, and registering the point cloud obtained by the visual sensor with the ideal model is an important part of the subsequent operation. The segmented fitting straight line is often used to connect the adjacent edges, and then further two-dimensional registration is used. Another way is to convert the ideal model into a point cloud, and then directly perform ICP (Iterative Closest Point) registration on the point cloud and the sensor point cloud.
[0003] Limited by the accuracy of existing two-dimensional or three-dimensional sensors and the integrity of the acquired information, point cloud signals are often missing or non-existent "ghosts" are generated at the edges, which makes the fitting method based on edge detection very problematic. At the same time, the missing of point clouds will also have a great impact on ICP global registration; the global ICP calculation is very large and the calculation efficiency is low. Summary of the invention
[0004] The purpose of the present invention is to solve the deficiencies existing in the above-mentioned prior art and to provide a two-dimensional plane point set cloud contour enveloping method and computer equipment, which utilizes the prior knowledge of the drawing to efficiently complete the point cloud contour extraction and alignment based on the drawing.
[0005] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0006] A two-dimensional plane point set cloud contour enveloping method comprises the following steps:
[0007] S1, the model edge entity sequence e′1,...,e′ N The rough positioning result is converted into the point set coordinate system, denoted as e1,...,e N , each edge entity e i Including straight line l i and / or arc c i ;
[0008] S2, traverse all line entities, for each line entity l i and its corresponding point set Given a control point u outside the model;
[0009] S3, given a set of spatial points and a single control point u, find two isolated parallel lines while maximizing the distance between the two lines; among the two lines, close to the point set The line of the nearest envelope is recorded as
[0010] S4, model current edge l i The normal direction is n, the nearest envelope straight line The normal direction is Calculate n and The angle bisector direction
[0011] S5, calculation point set The projection distance set h1, .., h in the n′ direction N , get the maximum value h in the projection set max and its corresponding point p max ;
[0012] S6, point set All the h i ≥h max -∈ points are selected, and if the number of these points is less than the set number threshold, p max From point set Delete, and repeat steps S2-S6;
[0013] S7, point set All the h i ≥h max -γ points are selected to form a reliable point set
[0014] S8, repeat steps S3-S7 until all straight line entities l are obtained i Corresponding trusted registration point set These line entities and the corresponding point sets form a set of size N l Data container
[0015] S9, given data container All straight line entities in i and the corresponding set of trusted registration points Solve a global two-dimensional rotation matrix R and each linear entity l i The corresponding optimal displacement d i , so that the sum of the squares of the point-to-line distances between the rotated and offset straight line entity and its corresponding trusted registration point set is minimized;
[0016] S10, given point set and arc entity c, minimize the point set All points p i To the arc entity c to be estimated iThe sum of the absolute distances; at the same time, all pixel points are required to be on one side of the arc, and the final center position is based on the initial positioning result In a square area with a center and a side length of η;
[0017] S11: Update endpoint data in parameterized descriptions of all edge entities.
[0018] In this patent, the model drawing sets the parameters of each edge entity:
[0019] Let the edge entity sequence be e1,...,e N , then the corresponding specific edge entity e i is a straight line entity l i 、arc c i or default entity v i ;
[0020] The line entity f includes the starting point x of the line la 、End point x lb and towards n, arc c includes the starting point x of the arc ca , end point x cb , center o, radius r and concave and convex marker s;
[0021] The set of registration points corresponding to each edge entity
[0022] The initial estimate of the transformation from the model coordinate system to the point set coordinate system is recorded as a three-degree-of-freedom two-dimensional Euclidean transformation A, including a two-dimensional rotation R A and the two-dimensional displacement t A ; For a two-dimensional point x, the transformation A takes the form A[x] = R A x+t A , the parametric description of the line l and arc c entities is converted into A[l] and A[c] under any two-dimensional Euclidean transformation.
[0023] The edge entity sequence corresponds to the front-to-back order of the edge entities in the model. For any two adjacent edge entities that are not the default, they are connected end to end, that is, the end point of the former and the starting point of the latter are the same or the distance between the two is less than the tolerance threshold.
[0024] Based on the global two-dimensional rotation matrix R in step S9, all straight line entities l i The normal is updated to Rn i , traverse all updated entities, extract the next edge entity in the sequence, and use different update methods according to the types of the current and next edge entities.
[0025] Solution 1: The current edge entity is the straight line l i , the next edge entity is the line l i+1: Determine whether two straight lines are parallel. If so, calculate the straight line l i The original end point and the straight line l i+1 The average point y of the original starting point, after applying the global rotation, we get q = Ry, the straight line l i The end point is updated to q on the straight line l i The projection point on the straight line l i+1 The starting point is updated to q on the straight line l i+1 If not, calculate the intersection point k of the two lines and convert the line entity l i The end point is updated to k, and the straight line entity l i+1 The starting point is updated to k.
[0026] Solution 2: The current edge entity is a straight line l i , the next edge entity is arc c i+1 :Calculate the straight line l i With arc c i+1 If the number of intersections is zero, the straight line entity l i The end point is updated to arc c i+1 The center of the circle is on the line l i The projection point on the arc c i+1 The starting point of the arc is updated to a point in $o+nr$ and $o-nr$ that is closer to the original starting point of the arc, where r and o are arc c i+1 The radius and center of the circle, n is the straight line l i Normal direction; if the intersection point is one, then the arc c i+1 The starting point and the line entity l i The end point of the arc c is updated to the intersection point; if the number of intersection points is two, the distance between the two intersection points is determined, and if it is less than the threshold, the arc c i+1 The starting point and the line entity l i The end point is updated to the average point of the two intersection points. If it is greater than the threshold, the straight line l after the initial positioning update is selected. i The end point (or the original arc c i+1 The closer intersection point is the arc c. i+1 The starting point and the line entity l i The end point.
[0027] Solution 3: The current entity is straight line l i , the next entity is the default v i+1 :The straight line l i The end point x lb After applying global rotation, we get Straight line i The end point is updated to q on the straight line l i The projection point on .
[0028] Solution 4: The current entity is the default v i , the next entity is the line l i+1 :The straight line l i+1 Starting point x la After applying global rotation, we get Straight line i+1 The starting point is updated to q on the straight line l i+1 The projection point on .
[0029] Solution 5: If the current entity is the default v i , the next entity is the default v i+1 :jump over.
[0030] Solution 6: The current entity is the default v i , the next entity is arc c i+1 :The original starting point x of the arc ca After the global optimal rotation transformation, we get Then calculate the straight line and arc c passing through q and the center o i+1 The two intersection points will be closer to the original starting point x of the arc. ca The intersection point is updated to arc c i+1 The starting point.
[0031] Solution 7: The current entity is arc c i , the next entity is arc c i+1 : Determine whether the two arcs intersect. If they do not intersect, calculate the straight line and arc c passing through the centers of the two circles i The two intersection points will be away from the arc c i+1 The intersection point with a closer center is updated to c i The end point of the line is calculated. i+1 The two intersection points will be away from the arc c i The intersection point with a closer center is updated to c i+1 If they intersect, and there is only one intersection point or two intersection points are very close, then the two circles are determined to be tangent, and the intersection point or the average point of the two intersection points is updated as the arc c i+1 The starting point and c i Otherwise, it is determined that there are two independent intersection points between the two circles, and the independent intersection point closer to the original end point is updated to the arc c i The end point of the arc c is updated to the point closer to the original starting point. i+1 The starting point.
[0032] Solution 8: The current entity is arc c i , the next entity is the line l i+1 : Same as solution 2, only the current entity and the next entity need to be swapped.
[0033] Solution 9: The current entity is arc ci , the next entity is the default v i+1 : Same as solution 6, only the current entity and the next entity need to be swapped.
[0034] This patent also provides a device or terminal for a two-dimensional plane point set cloud contour envelope method, including one or more processors and a storage device; the storage device is used to store one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement any two-dimensional plane point set cloud contour envelope method provided by this patent.
[0035] This patent also provides a computer-readable storage medium, which stores a computer program. When the program is executed by a processor, it implements any two-dimensional plane point set cloud contour envelope method provided by this patent.
[0036] Beneficial effects of the present invention:
[0037] The two-dimensional plane point set cloud contour enveloping method based on the design drawing model provided by the present invention uses the prior knowledge of the drawing and the angle-preserving characteristics generally possessed by actual objects to efficiently complete the point cloud contour extraction and alignment based on the drawing in the event of sensor errors and point cloud missing. DETAILED DESCRIPTION
[0038] The specific embodiments described here are only used to explain the technical solutions of this patent, rather than to limit the disclosed technical solutions.
[0039] Before discussing the exemplary embodiments in more detail, it should be mentioned that the structures of the device components and / or modules themselves mentioned in the embodiments, if not described in detail, are understandable to those skilled in the art based on the existing public technology or commercially available products.
[0040] The two-dimensional plane point set cloud contour enveloping method based on the design drawing model (referred to as model) provided in the embodiment here satisfies the following conditions:
[0041] 1) The orientation of the edge entity is known. The normal vector of the straight line entity points from the inside of the model to the outside of the model. The orientation of the arc is determined by the concave and convex identification position, that is, the area between the arc and the center of the circle belongs to the inside of the model (convex) or the outside of the model (concave).
[0042] 2) The characteristic thickness of the registration point set corresponding to each edge entity should be kept below the threshold. For example, the distance from the registration point set of a straight line to the straight line should be less than the thickness threshold.
[0043] 3) The straight edge entities of the model can be allowed to be slightly translated along the normal of the straight line in the model coordinate system. This type of deformation ensures that the angle between the straight edges of the model remains unchanged. The arc edge entities of the model can be allowed to have a small displacement of the center in the model coordinate system.
[0044] The two-dimensional plane point set cloud contour enveloping method provided in this embodiment includes the following steps:
[0045] S1, the model edge entity sequence e′1,...,e′ N The rough positioning result is converted into the point set coordinate system, denoted as e1,...,e N , each edge entity e i For the straight line l i or arc c i .
[0046] S2, traverse all line entities, for each line entity l i and its corresponding point set Given a control point u located outside the model.
[0047] Take the line entity l and the corresponding registration set For example, the method of obtaining control points is as follows:
[0048] 1) Calculate the centroid coordinates of the registration point set 2) Calculation point set The thickness of the line l is the difference between the maximum and minimum projections of the registration point on the line normal n.
[0049] 3) Offset the center of gravity by a distance β along the normal direction to obtain the control point
[0050] S3, given a set of spatial points and a single control point u, find two isolated parallel lines while maximizing the distance between the two lines; among the two lines, close to the point set The line of the nearest envelope is recorded as The isolated parallel straight lines are u and They are all outside the two parallel straight lines, and there is no point in the middle area between the two straight lines.
[0051] The homogeneous expression (m, d) of the line q is introduced, where m is the unit normal of the line q and d is the distance from the line to the origin. The expression for any point x in space to belong to the line q is x·m+d=0. Then step S3 can be completed in the following way, that is, finding the line parameters m, d and the separation interval δ,
[0052]
[0053] The maximization method is a quadratic programming under quadratic constraints, which requires further transformation. Introduce a new vector w and a scalar b, and denote the number of points in the point set as N. Introduce the set x1, ...x N+1 , where the first N points are points in the point set, and the last one is the control point, that is, x1...x N =x1...x N and x N+1 =u. Introduce the label set y1,...y N+1 , where the first N labels are +1 and the last one is -1, i.e. y1...y N =1...1 and y N+1 =-1.
[0054] Further convert the above quadratic programming quadratic constraint problem into a semi-positive definite quadratic programming linear constraint problem
[0055]
[0056] If the optimal solution of the above planning problem is (w, b), then the optimal separation plane is $(n, d) = (w / w, b / w)$, and its corresponding maximum separation interval is ||w||. Since the above quadratic programming problem is semi-positive definite, we can further transform the semi-positive definite quadratic programming linear constraint problem into its dual problem, introducing the dual variable set α1,...,α N+1 Then we get the dual form
[0057]
[0058] The dual problem can be solved by iterative ascent of the projected gradient method to obtain the optimal solution α i , the optimal solution to the original problem is
[0059]
[0060] Then we get the parameters (m, d) of the optimal separation plane and the maximum separation interval δ, which is closer to the registration point set. The corresponding parameters are (m, d-δ), that is, the nearest envelope straight line
[0061] S4, model current edge l i The normal direction is n, the nearest envelope straight line The normal direction is Calculate n and The angle bisector direction
[0062] S5, calculation point set The projection distance set h1,...,h in the n′ direction N(Theoretically, they should all be negative numbers), and get the maximum value h in the projection set max and its corresponding point p max .
[0063] S6, point set All the h i ≥h max -∈ points are selected, and if the number of these points is less than the set number threshold, p max From point set , and repeat steps S2-S6.
[0064] S7, point set All the h i ≥h max -γ points are selected to form a reliable point set
[0065] The distance pixel parameters ∈, γ and the number threshold can be set according to the actual situation. For a camera with ideal edge imaging quality, ∈ can be set to 3-5 pixels, γ can be set to 1-2 pixels, and the number threshold can be set to a certain percentage (e.g., 10%) of the pixel length corresponding to the edge in the design drawing.
[0066] S8, repeat steps S3-S7 until all straight line entities l are obtained i Corresponding trusted registration point set These line entities and the corresponding point sets form a set of size N l Data container
[0067] S9, given data container All straight line entities in i and the corresponding set of trusted registration points Solve a global two-dimensional rotation matrix R and each linear entity l i The corresponding optimal displacement d i , so that the sum of the squares of the point-to-line distances between the rotated and offset straight line entity and its corresponding trusted registration point set is minimized.
[0068] This embodiment also provides a relatively preferred solution method
[0069]
[0070] in Point Set The number of midpoints, p ij express The jth point in
[0071] The two-dimensional rotation matrix R is represented by two parameters and a constraint, and a two-dimensional variable r=(α, β) is defined.
[0072] For any two-dimensional point p = (x, y), define the two-dimensional cross product operator
[0073]
[0074] Any two-dimensional matrix can be expressed as R = r x , its dual variable The original optimization problem is transformed into
[0075]
[0076] The optimal displacement d for each line i and the dual vector To decouple, first introduce the average point of the straight line credible registration point set
[0077]
[0078] Then calculate the second moment M of the registration point set
[0079]
[0080] Further transformed into quadratic programming quadratic constraints
[0081]
[0082] The optimal solution can be obtained by singular value decomposition Then the original vector r and the corresponding optimal two-dimensional rotation R are restored. For a linear entity l i , based on r and the average point corresponding to the entity registration point set Calculate the optimal linear displacement parameters
[0083] S10, given point set and arc entity c (including starting point, end point, center o = (o x , o y ) and the concave and convex identifier s), minimize the point set All points p i To the arc entity c to be estimated i The sum of the absolute distances; at the same time, all pixel points are required to be on one side of the arc (depending on whether it is concave or convex), and the final center position is based on the initial positioning result The area is a square with a center and a side length of η.
[0084] A method provided in this embodiment is as follows
[0085]
[0086] Define the intermediate variable α = 2o x , β=2o y , γ=r 2 -||o|| 2
[0087] Defining matrix variables
[0088]
[0089] Transformed into a planning problem under the one-norm
[0090]
[0091] Further introduce slack variables t to reformulate linear programming
[0092]
[0093] -Ax-b≤t
[0094] Ax+b≤t
[0095] -t≤0
[0096] -s(Ax-b)≤0
[0097]
[0098]
[0099] Get the optimal solution x, and restore the corresponding optimal circle center o = (α / 2, β / 2) and optimal radius And update the current arc entity c.
[0100] S11: Finally, the endpoint data in the parameterized description of all edge entities needs to be updated.
[0101] Based on the global two-dimensional rotation matrix R in step S9, all straight line entities l i The normal is updated to Rn i , the displacement is updated to d i The center and radius of the arc entity are updated in step S10. All updated entities are traversed. For the current edge entity e i , extract the next edge entity in the sequence, and adopt different updating methods according to the types of the current and next edge entities.
[0102] Case 1: The current edge entity is a straight line l i , the next edge entity is the line l i+1 : Determine whether two straight lines are parallel. If so, calculate the straight line l iThe original end point and the straight line l i+1 The average point y of the original starting point, after applying the global rotation, we get q = Ry, the straight line l i The end point is updated to q on the straight line l i The projection point on the straight line l i+1 The starting point is updated to q on the straight line l i+1 If not, calculate the intersection point k of the two lines and convert the line entity l i The end point is updated to k, and the straight line entity l i+1 The starting point is updated to k.
[0103] Case 2: The current edge entity is a straight line l i , the next edge entity is arc c i+1 :Calculate the straight line l i With arc c i+1 If the number of intersections is zero, the straight line entity l i The end point is updated to arc c i+1 The center of the circle is on the line l i The projection point on the arc c i+1 The starting point of the arc is updated to a point in $o+nr$ and $o-nr$ that is closer to the original starting point of the arc, where r and o are arc c i+1 The radius and center of the circle, n is the straight line l i Normal direction; if the intersection point is one, then the arc c i+1 The starting point and the line entity l i The end point of the arc c is updated to the intersection point; if the number of intersection points is two, the distance between the two intersection points is determined, and if it is less than the threshold, the arc c i+1 The starting point and the line entity l i The end point is updated to the average point of the two intersection points. If it is greater than the threshold, the straight line l after the initial positioning update is selected. i The end point (or the original arc c i+1 The closer intersection point is the arc c. i+1 The starting point and the line entity l i The end point.
[0104] Case 3, the current entity is line l i , the next entity is the default v i+1 :The straight line l i The end point x lb After applying global rotation, we get q = Rx lb , straight line l i The end point is updated to q on the straight line l i The projection point on .
[0105] Case 4, the current entity is the default v i, the next entity is the line l i+1 :The straight line l i+1 Starting point x la After applying global rotation, we get Straight line i+1 The starting point is updated to q on the straight line l i+1 The projection point on .
[0106] Case 5, if the current entity is the default v i , the next entity is the default v i+1 :jump over.
[0107] Case 6, the current entity is the default v i , the next entity is arc c i+1 :The original starting point x of the arc ca After the global optimal rotation transformation, we get q = Rx ca , and then calculate the straight line and arc c passing through q and the center o i+1 The two intersection points will be closer to the original starting point x of the arc. ca The intersection point is updated to arc c i+1 The starting point.
[0108] Case 7, the current entity is arc c i , the next entity is arc c i+1 : Determine whether the two arcs intersect. If they do not intersect, calculate the straight line and arc c passing through the centers of the two circles i The two intersection points will be away from the arc c i+1 The intersection point with a closer center is updated to c i The end point of the line is calculated. i+1 The two intersection points will be away from the arc c i The intersection point with a closer center is updated to c i+1 If they intersect, and there is only one intersection point or two intersection points are very close, then the two circles are determined to be tangent, and the intersection point or the average point of the two intersection points is updated as the arc c i+i The starting point and c i Otherwise, it is determined that there are two independent intersection points between the two circles, and the independent intersection point closer to the original end point is updated to the arc c i The end point of the arc c is updated to the point closer to the original starting point. i+1 The starting point.
[0109] Case 8, the current entity is arc c i , the next entity is the line l i+1 :The operation method is the same as case 2, only the current entity and the next entity need to be swapped.
[0110] Case 9, the current entity is arc c i , the next entity is the default vi +1: The operation method is the same as case 6, except that you only need to swap the current entity with the next entity.
[0111] Those skilled in the art will appreciate that all or part of the steps provided in the above-mentioned embodiment method can be implemented by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, which, when executed, includes one of the steps in the method or a combination thereof.
[0112] This patent also provides a device or terminal for mobile robot arm trajectory planning, including one or more processors and a storage device; the storage device is used to store one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the mobile robot arm trajectory planning methods provided by this patent.
[0113] This patent also provides a computer-readable storage medium that stores a computer program, which, when executed by a processor, implements any one of the mobile robot arm trajectory planning methods provided by this patent.
[0114] The above is an example of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can 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 two-dimensional plane point set cloud contour enveloping method, comprising the following steps: S1, the model edge entity sequence e′1..., e′ N The rough positioning result is converted into the point set coordinate system, denoted as e1,...,e N , each edge entity e i Including straight line l i and / or arc c i ; S2, traverse all line entities, for each line entity l i and its corresponding point set Given a control point u outside the model; S3, given a set of spatial points and a single control point u, find two isolated parallel lines while maximizing the distance between the two lines; among the two lines, close to the point set The line of the nearest envelope is recorded as S4, model current edge l i The normal direction is n, the nearest envelope straight line The normal direction is Calculate n and The angle bisector direction S5, calculation point set The projection distance set h1,...,h in the n′ direction N , get the maximum value h in the projection set max and its corresponding point p max ; S6, point set All the h i ≥h max -∈ points are selected, and if the number of these points is less than the set number threshold K, then p max From point set Delete, and repeat steps S2-S6; S7, point set All the h i ≥h max -γ points are selected to form a reliable point set S8, repeat steps S3-S7 until all straight line entities l are obtained i Corresponding trusted registration point set These line entities and the corresponding point sets form a set of size N l Data container S9, given data container All straight line entities in i And the corresponding set of trusted registration points Solve a global two-dimensional rotation matrix R and each linear entity l i The corresponding optimal displacement d i , so that the sum of the squares of the point-to-line distances between the rotated and offset straight line entity and its corresponding trusted registration point set is minimized; S10, given point set and arc entity c, minimize the point set All points in i To the arc entity c to be estimated i The sum of the absolute distances; at the same time, all pixel points are required to be on one side of the arc, and the final center position is based on the initial positioning result In a square area with a center and a side length of η; S11: Update endpoint data in parameterized descriptions of all edge entities.
2. The two-dimensional plane point set cloud contour envelope method according to claim 1, characterized in that: The method for obtaining the control point u in step S2 includes: 1) calculating the centroid coordinates of the registration point set 2) Calculate the difference between the maximum projection and the minimum projection of the registration point on the line normal n 3) Offset the center of gravity by a distance β along the normal direction to obtain the control point 3. The two-dimensional plane point set cloud contour envelope method according to claim 1, characterized in that: Based on the global two-dimensional rotation matrix R in step S9, all straight line entities l i The normal is updated to Rn i , traverse all updated entities, extract the next edge entity in the sequence, and use different update methods according to the types of the current and next edge entities.
4. The two-dimensional plane point set cloud contour enveloping method according to claim 3, characterized in that: The current edge entity is line l i , the next edge entity is the line l i+1 Update method: Determine whether the two lines are parallel, if so, calculate the line l i The original end point and the straight line l i+1 The average point y of the original starting point, after applying the global rotation, we get q = Ry, the straight line l i The end point is updated to q on the straight line l i The projection point on the straight line l i+1 The starting point is updated to q on the straight line l i+1 If not, calculate the intersection point k of the two lines and convert the line entity l i The end point is updated to k, and the straight line entity l i+1 The starting point is updated to k.
5. The two-dimensional plane point set cloud contour envelope method according to claim 3, characterized in that: The current edge entity is line l i , the next edge entity is arc c i+1 Update method: Calculate the straight line l i With arc c i+1 If the number of intersections is zero, the straight line entity l i The end point is updated to arc c i+1 The center of the circle is on the line l i The projection point on the arc c i+1 The starting point of the arc is updated to the point in $o+nr$ and $o-nr$ that is closer to the original starting point of the arc, where r and o are the arc c i+1 The radius and center of the circle, n is the straight line l i Normal direction; if the intersection point is one, then the arc c i+1 The starting point and the line entity l i The end points of are updated to the intersection point; If the number of intersection points is two, determine the distance between the two intersection points. If it is less than the threshold, the arc c i+1 The starting point and the line entity l i The end point is updated to the average point of the two intersection points. If it is greater than the threshold, the straight line l after the initial positioning update is selected. i The end point closer to the intersection is arc c i+1 The starting point and the line entity l i The end point.
6. The two-dimensional plane point set cloud contour envelope method according to claim 3, characterized in that: The current entity is line l i , the next entity is the default v i+1 Update method: Update the straight line l i The end point x lb After applying global rotation, we get q = Rx lb , straight line l i The end point is updated to q on the straight line l i The projection point on .
7. The two-dimensional plane point set cloud contour envelope method according to claim 3, characterized in that: The current entity is the default v i , the next entity is the line l i+1 Update method: Update the straight line l i+1 Starting point x la After applying global rotation, we get q = Rx la , straight line l i+1 The starting point is updated to q on the straight line l i+1 The projection point on .
8. The two-dimensional plane point set cloud contour envelope method according to claim 3, characterized in that: The current entity is the default v i , the next entity is arc c i+1 Update method: Set the original starting point x of the arc ca After the global optimal rotation transformation, we get q = Rx ca , and then calculate the straight line and arc c passing through q and the center o i+1 The two intersection points will be closer to the original starting point x of the arc. ca The intersection point is updated to arc c i+1 The starting point.
9. The two-dimensional plane point set cloud contour envelope method according to claim 3, characterized in that: The current entity is arc c i , the next entity is arc c i+1 Update method: Determine whether the two arcs intersect. If they do not intersect, calculate the straight line and arc c passing through the centers of the two circles. i The two intersection points will be away from the arc c i+1 The intersection point with a closer center is updated to c i The end point of the line is calculated. i+1 The two intersection points will be away from the arc c i The intersection point with a closer center is updated to c i+1 If they intersect, and there is only one intersection point or two intersection points are very close, then the two circles are determined to be tangent, and the intersection point or the average point of the two intersection points is updated as the arc c i+1 The starting point and c i Otherwise, it is determined that there are two independent intersection points between the two circles, and the independent intersection point closer to the original end point is updated to the arc c i The end point of the arc c is updated to the point closer to the original starting point. i+1 The starting point.
10. The two-dimensional plane point set cloud contour envelope method according to claim 3, characterized in that: The current entity is arc c i , the next entity is the line l i+1 The updating method is the same as claim 5, and only the current entity and the next entity need to be swapped; the current entity is the arc c i , the next entity is the default v i+1 The updating method is the same as claim 7, and only the current entity and the next entity need to be swapped.
11. A device or terminal for a two-dimensional plane point set cloud contour envelope method, comprising one or more processors and a storage device; the storage device is used to store one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the two-dimensional plane point set cloud contour envelope method described in any one of claims 1-9.
12. A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the two-dimensional plane point set cloud contour envelope method described in any one of claims 1-9.
