Curve boundary line generation method and device, electronic equipment and storage medium

By using control points and Bezier curves in curve boundary line generation, the problems of low curve drawing efficiency and poor boundary line smoothness in the existing technology are solved, and more efficient and accurate curve boundary line generation is achieved. , making it more suitable for the road direction.

CN118691707APending Publication Date: 2024-09-24BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410789332.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology is inefficient when drawing curves and it is difficult to ensure the smoothness and accuracy of the boundary lines. Especially when the accuracy requirements for curves increase, the positions of a large number of points need to be modified, resulting in high difficulty.

Method used

By using a limited number of control points and Bezier curves to determine the starting point, end point and control point of the curve boundary line, generate the second boundary line of the curve, improve the efficiency and accuracy of curve drawing, and make the curve Boundary lines more closely follow the direction of the road.

Benefits of technology

It realizes the efficient generation of curve boundary lines, improves the efficiency and accuracy of curve drawing, makes the curve boundary lines more consistent with the road direction, and simplifies the process of curve adjustment and modification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691707A
    Figure CN118691707A
Patent Text Reader

Abstract

The invention provides a curve boundary line generation method and device, electronic equipment and a storage medium, and relates to the technical field of computers, in particular to the technical fields of map making, automatic driving and the like. The method comprises the following steps: respectively determining a starting point S1, a first auxiliary point F1, an ending point E1 and a second auxiliary point F2 of a second boundary line of a to-be-generated curve according to first boundary lines of two straight ways connected with two ends of the curve; based on the starting point S1, the ending point E1, the first auxiliary point F1 and the second auxiliary point F2, a first vector # imgabs0 #, a second vector # imgabs1 #, a third vector # imgabs2 # and a fourth vector # imgabs3 # are determined, and a first included angle between the # imgabs4 # and the # imgabs5 # and a second included angle between the # imgabs6 # and the # imgabs7 # are determined; and respectively determining a first control point C1 and a second control point C2 according to the distance d between the starting point S1 and the ending point E1, the first included angle and the second included angle, and generating a second boundary line of the curve based on the starting point S1, the ending point E1, the first control point C1 and the second control point C2.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, in particular to technical fields such as map making and autonomous driving, and specifically to a method, device, electronic device and storage medium for generating a curve boundary line. Background Art

[0002] Maps are carriers of geographic information, and high-precision maps are of great significance for navigation, urban planning, and traffic planning. Curves are difficult to draw on maps, and clear and definite curve boundary lines can help drivers better understand the curvature and turning angle of the road, thereby improving driving safety. Summary of the invention

[0003] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0004] To this end, the purpose of the present disclosure is to propose a method, device, electronic device and storage medium for generating a curve boundary line, so as to improve the efficiency of curve drawing and make the curve boundary line more accurate.

[0005] According to a first aspect of the present disclosure, a method for generating a curve boundary line is provided, comprising:

[0006] Determine the starting point S of the second boundary line of the curve to be generated according to the first boundary lines of the two straight roads connected to the two ends of the curve. 1 、First auxiliary point F 1 , End point E 1 and the second auxiliary point F 2 ;

[0007] Based on the starting point S 1 , End point E 1 、First auxiliary point F 1 and the second auxiliary point F 2 , respectively determine the first vector Second vector The third vector and the fourth vector

[0008] Determine the first vector With the third vector The first angle between them, and the second vector With the fourth vector The second angle between

[0009] According to the starting point S 1 With the end point E 1 The distance d between the first and second angles respectively determine the first control point C 1and the second control point C 2 ;

[0010] Based on the starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 , generating a second boundary line of the curve.

[0011] According to a second aspect of the present disclosure, a device for generating a curve boundary line is provided, comprising:

[0012] The first determination module is used to determine the starting point D of the second boundary line of the curve to be generated according to the first boundary lines of the two straight roads connected to the two ends of the curve. 1 、First auxiliary point F 1 , End point E 1 and the second auxiliary point F 2 ;

[0013] The second determination module is used to determine the starting point S based on the 1 , End point E 1 、First auxiliary point F 1 and the second auxiliary point F 2 , respectively determine the first vector Second vector The third vector and the fourth vector

[0014] The third determining module is used to determine the first vector With the third vector The first angle between them, and the second vector With the fourth vector The second angle between

[0015] The fourth determining module is used to determine the starting point S according to the 1 With the end point E 1 The distance d between the first and second angles respectively determine the first control point C 1 and the second control point C 2 ;

[0016] A generating module is used for generating a 1 , End point E 1 , the first control point C 1 and the second control point C 2 , generating a second boundary line of the curve.

[0017] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0018] at least one processor; and

[0019] a memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for generating a curve boundary line as described in the first aspect.

[0021] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method for generating a curve boundary line as described in the first aspect.

[0022] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising computer instructions, which, when executed by a processor, implement the steps of the method for generating a curve boundary line as described in the first aspect.

[0023] The method, device, electronic device and storage medium for generating a curve boundary line provided by the present disclosure have the following beneficial effects:

[0024] First, the starting point and the ending point of the curve boundary line to be generated are determined by the boundary lines of the two straight roads connected to the curve to be generated. Then, two control points that control the shape of the curve boundary line are determined according to the direction vector corresponding to the boundary line, the vectors corresponding to the starting point and the ending point, and the distance between the starting point and the ending point. Then, the curve boundary line is generated according to the starting point, the ending point and the two control points. In this way, the generation efficiency of the curve boundary line can be improved, and the smoothness and accuracy of the curve boundary line can be improved, so that the curve boundary line is more in line with the road direction.

[0025] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, which are used to better understand the present solution and do not constitute a limitation of the present disclosure, wherein:

[0027] Figure 1 is a flow chart of a method for generating a curve boundary line according to an embodiment of the present disclosure;

[0028] Figure 2 It is a schematic diagram of the positions of a curve to be generated and two curves connected thereto provided by the present disclosure;

[0029] Figure 3 is a flow chart of a method for generating a curve boundary line according to another embodiment of the present disclosure;

[0030] Figure 4 is a schematic diagram of curve boundary line segmentation provided by the present disclosure;

[0031] Figure 5 is a flow chart of a method for generating a curve boundary line according to another embodiment of the present disclosure;

[0032] Figure 6 It is a schematic diagram of the positions of the starting point, the end point and the control point when copying a boundary line provided by the present disclosure;

[0033] Figure 7 is a schematic diagram of the structure of a device for generating a curve boundary line according to an embodiment of the present disclosure;

[0034] Figure 8 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0035] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0036] The disclosed embodiments relate to technical fields such as map making and autonomous driving.

[0037] Cartography is a visualization and expression of maps that can be processed with data. Computer mapping has replaced traditional cartography and become the main method of modern map making. Computer mapping uses computers and computer-controlled input and output devices as the main tools. Computer mapping is made through database technology and digital processing methods.

[0038] The autonomous driving system senses the road environment through the on-board sensor system, and controls the vehicle's steering and speed based on the road, vehicle position and obstacle information obtained through the perception, so that the vehicle can travel safely and reliably on the road and reach the predetermined location.

[0039] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0040] The following describes the method, device, electronic device and storage medium for generating a curve boundary line according to an embodiment of the present disclosure with reference to the accompanying drawings.

[0041] Currently, when drawing curves on maps, dense points are usually used to describe the boundaries of the curves. When the accuracy requirements for the curves increase, the number of points required for description will also increase accordingly. This drawing method is not only inefficient, but also requires modifying the positions of many points when adjusting the curves. This is difficult and it is difficult to ensure that the boundaries of the curves are smooth.

[0042] Therefore, in order to solve the above problems, the method for generating curve boundary lines proposed in the present disclosure can automatically generate smooth curve boundary lines by utilizing a limited number of control points and Bezier curves, thereby improving the efficiency of curve drawing.

[0043] It should be noted that the executor of the curve boundary line generation method of this embodiment is a curve boundary line generation device, which can be implemented by software and / or hardware. The device can be configured in an electronic device, and the electronic device may include but is not limited to a terminal, a server, etc.

[0044] Figure 1 It is a flowchart of a method for generating a curve boundary line proposed according to an embodiment of the present disclosure.

[0045] like Figure 1 As shown, the method for generating the curve boundary line includes:

[0046] S101: Determine the starting point S of the second boundary line of the curve to be generated based on the first boundary lines of the two straight roads connected to the two ends of the curve. 1 、First auxiliary point F 1 , End point E 1 and the second auxiliary point F 2 .

[0047] The first boundary line may be the left boundary or the right boundary of a straight road determined along the direction of travel of the road. When the first boundary line is the right boundary of the straight road, the second boundary line to be generated is the right boundary of the curve.

[0048] Among them, the starting point S 1 It refers to the connection point of the second boundary line and the first boundary line at the beginning of the curve along the direction of road travel.

[0049] Among them, the end point E 1 It refers to the connection point of the second boundary line and another first boundary line at the end of the curve along the direction of road travel.

[0050] It should be noted that the first auxiliary point F 1 and the second auxiliary point F 2Located on the two first boundary lines respectively, they can be connected with the starting point S 1 Or end point E 1 Describe the direction of each first boundary line, which can be the direction of each first boundary line except the starting point S 1 Or end point E 1 Any point other than the starting point S, or any point on each first boundary line except the starting point S 1 Or end point E 1 Another boundary point outside.

[0051] Optionally, the known boundary points in each first boundary line may be determined first. Then, along the direction of the road, two points in each first boundary line adjacent to the curve may be determined as first auxiliary points F respectively. 1 , starting point S 1 , End point E 1 and the second auxiliary point F 2 .

[0052] It is understandable that each first boundary line can be represented by at least two points to indicate the direction of the boundary line, and these at least two points are the known boundary points in the first boundary line. 1 and the starting point S 1 , and the end point E 1 and the second auxiliary point F 2 It is used to describe the direction of each first boundary line respectively, so the two boundary points adjacent to the curve in each first boundary line can be determined as the first auxiliary point F along the direction of the road. 1 , starting point S 1 , End point E 1 and the second auxiliary point F 2 .

[0053] In the disclosed embodiment, the starting point, the ending point and the auxiliary point for generating the curve boundary line are determined according to the points already marked on the first boundary line, thereby improving the efficiency of determining the point coordinates and providing conditions for improving the efficiency of generating the curve boundary line.

[0054] Combine the following Figure 2 Explain the positions of the points used to generate the curve boundary line. Figure 2 It is a schematic diagram of the positions of the curve to be generated and the two curves connected to it.

[0055] exist Figure 2 In the positional relationship between the straight road and the curve to be generated in the example, the road travel direction is as follows: Figure 2 As shown in the arrow direction, the first boundary line is the right boundary of straight 1 and straight 2, and the first auxiliary point F 1 , starting point S 1 , End point E1 and the second auxiliary point F 2 The position on the first boundary line is Figure 2 shown.

[0056] S102: Based on the starting point S 1 , End point E 1 、First auxiliary point F 1 and the second auxiliary point F 2 , respectively determine the first vector Second vector The third vector and the fourth vector

[0057] In the embodiment of the present disclosure, according to the starting point S 1 , End point E 1 、First auxiliary point F 1 and the second auxiliary point F 2 The corresponding coordinates are used to calculate the first vector Second vector The third vector and the fourth vector

[0058] S103: Determine the first vector With the third vector The first angle between them, and the second vector With the fourth vector The second angle between.

[0059] In the embodiments of the present disclosure, the first angle and the second angle may be calculated in a variety of ways, such as directly measuring the size of the angle, or using the dot product to calculate the cosine value of the angle between two vectors, etc., and the present disclosure does not limit this.

[0060] S104: According to the starting point S 1 With the end point E 1 The distance d, the first angle, and the second angle are used to determine the first control point C 1 and the second control point C 2 .

[0061] Among them, the first control point C 1 At the starting point S 1 On the extension line of the first boundary line connected, the second control point C 2 At the end point E 1 On the extension line of the first connected boundary line.

[0062] It should be noted that, in the present disclosure, the second boundary line is generated by a cubic Bezier curve, and the first control point C 1 and the second control point C2 With the starting point S 1 and end point E 1 The shape of the second boundary line generated is jointly determined. Since the starting point S 1 and end point E 1 Therefore, in order to make the generated second boundary line more consistent with the road direction, an appropriate formula can be used to calculate the first control point C according to the distance d, the first angle, and the second angle. 1 and the second control point C 2 location.

[0063] Optionally, the angle sum of the first angle and the second angle may be determined first. Then, the first control point C may be determined based on the ratio of the second angle to the angle sum and the distance d. 1 In the first vector Direction and starting point S 1 The first distance between.

[0064] In the embodiment of the present disclosure, the calculation formula of the first distance can be shown as the following formula (1):

[0065]

[0066] Wherein, angle1 represents the size of the first angle, and angle2 represents the size of the second angle.

[0067] It should be noted that the coefficient k can be any value, for example, it can be 1, a value less than 1 or a value greater than 1, to adjust the position of the control point so that the second boundary line generated based on the control point can better conform to the actual direction of the curve.

[0068] Afterwards, the second control point C can be determined based on the ratio of the first angle to the angle and the distance d. 2 In the second vector Direction and end point E 1 The second distance between.

[0069] In the embodiment of the present disclosure, the calculation formula of the second distance can be shown as the following formula (2):

[0070]

[0071] In the embodiment of the present disclosure, when determining the first control point C 1 In the first vector Direction and starting point S 1 The first distance between the second control point C 2 In the second vector Direction and end point E 1 After the second distance between the first vector Determine the first control point C on the extension line of 1 The coordinates of the second vector Determine the second control point C on the extension line of 2 The coordinates of Figure 2 Point C shown in 1 and C 2 .

[0072] In the disclosed embodiment, the position of the control point for controlling the generation of the curve boundary line is determined based on the proportional relationship between the size of the angle and the sum of the two angles, combined with the distance between the starting point and the ending point of the curve boundary line. This makes the determined control point position more reasonable, thereby providing conditions for improving the reliability of the generated curve boundary line and the rationality of the deflection angle.

[0073] S105: Based on the starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 , generate the second boundary line of the curve.

[0074] In the embodiment of the present disclosure, the starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 Substitute the coordinates into the parametric equation of the cubic Bezier curve to generate the second boundary line of the curve.

[0075] It should be noted that the method for generating curve boundary lines provided in the present invention can be used in scenarios such as road design, so the starting point and ending point of the curve boundary line may not be fixed and can be modified according to user needs, and the control points can also be modified as needed to change the shape of the curve boundary line.

[0076] Optionally, after obtaining the second boundary line of the curve, the second boundary line of the curve may be obtained by receiving the second boundary line of the curve. 1 , End point E 1 , the first control point C 1 and the second control point C 2 In the case of a modification operation of any point in the , the position of any point is updated based on the modification operation, and then based on the updated starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 , regenerate the second boundary line of the curve.

[0077] In the disclosed embodiment, by modifying the coordinates of the starting point, the ending point or the control point to update the generated curve boundary line, the modification efficiency of the curve boundary line can be improved, the accuracy of the curve boundary line can be further improved, and the user experience can be optimized.

[0078] In this embodiment, the starting point and the end point of the curve boundary line to be generated are first determined by the boundary lines of the two straight roads connected to the curve to be generated. Then, two control points for controlling the shape of the curve boundary line are determined according to the direction vector corresponding to the boundary line, the vectors corresponding to the starting point and the end point, and the distance between the starting point and the end point. Then, the curve boundary line is generated according to the starting point, the end point, and the two control points. Thereby, the generation efficiency of the curve boundary line can be improved, and the smoothness and accuracy of the curve boundary line can be improved, so that the curve boundary line is more in line with the road direction.

[0079] Figure 3 It is a flowchart of a method for generating a curve boundary line proposed in another embodiment of the present disclosure.

[0080] like Figure 3 As shown, the method for generating the curve boundary line includes:

[0081] S301: Determine the starting point S of the second boundary line of the curve to be generated based on the first boundary lines of the two straight roads connected to the two ends of the curve. 1 、First auxiliary point F 1 , End point E 1 and the second auxiliary point F 2 .

[0082] S302: Based on the starting point S 1 , End point E 1 、First auxiliary point F 1 and the second auxiliary point F 2 , respectively determine the first vector Second vector The third vector and the fourth vector

[0083] S303: Determine the first vector With the third vector The first angle between them, and the second vector With the fourth vector The second angle between.

[0084] S304: Based on the starting point S 1 With the end point E 1 The distance d, the first angle, and the second angle are used to determine the first control point C 1 and the second control point C 2 .

[0085] S305: Based on the starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 , generate the second boundary line of the curve.

[0086] The description of S301 to S305 can be specifically referred to the above embodiment, which will not be repeated here.

[0087] It should be noted that in one implementation of the present disclosure, a curve connecting two straight roads may have multiple road attributes, for example, the first segment of the curve boundary line is a solid white line and the second segment is a dashed white line, etc. Therefore, it may be necessary to segment the generated second boundary line, and draw and modify the segmented multiple boundary lines separately.

[0088] S306: When a segmentation operation for the second boundary line is received, determine first coordinates of a segmentation point according to the segmentation operation.

[0089] In the embodiment of the present disclosure, the user can select any point on the generated second boundary line and determine to split the second boundary line at this point. The system for generating the curve boundary line can then receive the splitting operation for the second boundary line and determine the point selected by the user as the splitting point to obtain the first coordinate of the splitting point.

[0090] S307: Determine the t value of the Bezier curve corresponding to the segmentation point.

[0091] The t value of the Bezier curve corresponding to the segmentation point is a parameter of the Bezier curve, and is used to describe the relative position of the segmentation point on the length of the second boundary line.

[0092] In the disclosed embodiment, a piecewise iteration method may be used to determine the t value of the Bezier curve corresponding to the segmentation point.

[0093] Optionally, a first parameter sequence may be determined first.

[0094] The minimum parameter in the first parameter sequence is 0, the maximum parameter is 1, and the difference between every two adjacent first parameters in the first parameter sequence is equal. For example, the difference can be 0.001, then the first parameter sequence is 0, 0.001, 0.002, 0.003, ..., 0.999, 1; or the difference can also be 0.01, and the present disclosure does not limit the selection of the difference.

[0095] Then, the second coordinates corresponding to each first parameter in the second boundary line may be determined in sequence from the starting point to the ending point of the second boundary line.

[0096] In the embodiment of the present disclosure, each first parameter in the first parameter sequence may be substituted into the Bezier curve to calculate the second coordinate corresponding to the first parameter in the second boundary line.

[0097] It can be understood that when the first parameter is 0, the point corresponding to the first parameter in the second boundary line is the starting point. When the first parameter is 1, the point corresponding to the first parameter in the second boundary line is the ending point.

[0098] Afterwards, the difference between each second coordinate and the first coordinate may be determined, and a first parameter corresponding to the smallest difference may be determined as the t value of the Bezier curve corresponding to the segmentation point.

[0099] In the disclosed embodiment, the Euclidean distance between each second coordinate and the first coordinate can be calculated to obtain the difference, and then the obtained differences can be compared. When the difference is the smallest, the corresponding second coordinate is closest to the first coordinate, and the first parameter corresponding to the difference can be determined as the t value of the Bezier curve corresponding to the segmentation point.

[0100] In the disclosed embodiment, the difference between the coordinates corresponding to each first parameter and the coordinates corresponding to the segmentation point is iteratively calculated based on the first parameter sequence, and the first parameter with the smallest difference is determined as the t value of the Bezier curve corresponding to the segmentation point. This allows the t value corresponding to a given segmentation point to be determined more accurately, laying a foundation for improving the accuracy of subsequent drawing of multiple segmentation curves corresponding to the second boundary line based on the t value.

[0101] Combine the following Figure 4 The division of the second boundary line is explained. Figure 4 This is a schematic diagram of the boundary line division of a curve.

[0102] exist Figure 4 In, S 1 is the starting point of the second boundary line, E 1 is the end point of the second boundary line, and S is the segmentation point determined on the second boundary point. 1 and C 2 are respectively the first control point and the second control point used when generating the second boundary line. According to the first coordinate corresponding to the segmentation point S, the t value of the Bezier curve corresponding to the segmentation point S can be determined.

[0103] S308: Based on the starting point S 1 , End point E 1 , the first control point C 1 , the second control point C 2 and t value, respectively determine the third control point C 3 , the fourth control point C 4 , the fifth control point C 5 and the sixth control point C6 .

[0104] In the embodiment of the present disclosure, the starting point S 1 and the first control point C 1 Determine the third control point C on the line segment between 3 , the third control point C 3 With the starting point S 1 The distance between the first control point C 1 With the starting point S 1 The product of the distance between the two and the t value. And the second control point C 2 and end point E 1 Determine the sixth control point C on the line segment between 6 , the sixth control point C 6 With the second control point C 2 The distance between the second control point C 2 With the end point E 1 Then, we can find the product of the distance between the first control point C and the t value. 1 and the second control point C 2 Determine a point on the line segment between Figure 4 Point G in the middle), point G and the first control point C 1 The distance between the first control point C 1 With the second control point C 2 The product of the distance between them and the t value.

[0105] After that, we can respectively 3 Determine the fourth control point C on the line segment between point G 4 , at the sixth control point C 6 Determine the fifth control point C on the line segment between point G 5 Among them, the fourth control point C 4 With the third control point C 3 The distance between the third control point C 3 The product of the distance from point G and the t value, the fifth control point C 5 The distance from point G is the fifth control point C 5 The product of the distance from point G and the t value.

[0106] S309: Based on the starting point S 1 , the third control point C 3 , the fourth control point C 4 and the segmentation points to generate the first segmentation curve.

[0107] In the embodiment of the present disclosure, the starting point S 1 , the third control point C 3 , the fourth control point C 4The coordinates of the segmentation points are substituted into the parametric equation of the cubic Bezier curve to generate the first segmentation curve.

[0108] S310: Based on the segmentation point and the fifth control point C 5 , the sixth control point C 6 and end point E 1 Generate a second segmentation curve.

[0109] In the embodiment of the present disclosure, the segmentation point and the fifth control point C 5 , the sixth control point C 6 and end point E 1 Substitute the coordinates into the parametric equation of the cubic Bezier curve to generate the second segmentation curve.

[0110] It should be noted that the trends of the first segmentation curve and the second segmentation curve are consistent with the trend of the second boundary line.

[0111] In this embodiment, the starting point, the end point and the control point corresponding to each curve to be segmented are determined based on the coordinates of the target segmentation position on the generated curve boundary line, and then multiple segmented curves are generated based on these points. The curve boundary line can be drawn and adjusted in sections, which improves the flexibility and accuracy of the curve boundary line, can meet the user's needs for segmented drawing, and further optimize the user experience.

[0112] Figure 5 It is a flowchart of a method for generating a curve boundary line proposed in another embodiment of the present disclosure.

[0113] like Figure 5 As shown, the method for generating the curve boundary line includes:

[0114] S501: Determine the starting point S of the second boundary line of the curve to be generated according to the first boundary lines of the two straight roads connected to the two ends of the curve. 1 、First auxiliary point F 1 , End point E 1 and the second auxiliary point F 2 .

[0115] S502: Based on the starting point S 1 , End point E 1 、First auxiliary point F 1 and the second auxiliary point F 2 , respectively determine the first vector Second vector The third vector and the fourth vector

[0116] S503: Determine the first vector With the third vector The first angle between them, and the second vector With the fourth vector The second angle between.

[0117] S504: Based on the starting point S 1 With the end point E 1 The distance d, the first angle, and the second angle are used to determine the first control point C 1 and the second control point C 2 .

[0118] S505: Based on the starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 , generate the second boundary line of the curve.

[0119] The description of S501 to S505 can be specifically referred to the above embodiment, which will not be repeated here.

[0120] S506: When a curve boundary line copy operation is received, determine a boundary line that belongs to the same curve as the fourth boundary line to be generated.

[0121] In the disclosed embodiment, the method for generating the curve boundary line in the above embodiment can be respectively used to obtain the second boundary line and the third boundary line corresponding to a curve. After completing the drawing of the two boundary lines of a curve, the user may have the need to add an adjacent curve on the inside or outside of the deflection direction of the curve. Since the newly added curve has the same direction as the generated curve and shares a boundary line (i.e., the second boundary line or the third boundary line) with the generated curve, a new fourth boundary line can be generated by copying the generated boundary line, so that a new adjacent curve can be determined.

[0122] In the disclosed embodiment, the user can click on the control for copying the curve boundary line on the display interface of the generated curve boundary line, and select whether the new curve is on the inside or outside of the existing curve. Then, the curve boundary line generation system can receive the curve boundary line copy operation, and determine the boundary line that belongs to the same curve as the fourth boundary line to be generated according to the position of the new curve selected by the user.

[0123] S507: When the boundary line that belongs to the same curve as the fourth boundary line is the second boundary line, determine the starting point S corresponding to the third boundary line that belongs to another curve as the second boundary line. 2 , End point E 2 , Seventh control point C 7 and the eighth control point C 8 .

[0124] Combine the following Figure 6 The following describes the copying of the curve boundary line. Figure 6 It is a schematic diagram of the positions of the starting point, end point and control point when copying the boundary line.

[0125] Among them, the third boundary line belonging to another curve with the second boundary line refers to Figure 6 The curve boundary line connecting the left boundaries of straight 1 and straight 2.

[0126] It should be noted that the starting point S corresponding to the third boundary line 2 , End point E 2 , Seventh control point C 7 and the eighth control point C 8 , can be determined according to the method in the above embodiment, which will not be described again here.

[0127] Depend on Figure 6 It can be seen that when the boundary line belonging to the same curve as the fourth boundary line is the second boundary line, and the second boundary line is the right boundary along the road travel direction corresponding to the curve, the fourth boundary line can be drawn on the right side of the generated curve.

[0128] S508: Set the starting point S of the second boundary line 1 along Extend the first length in the direction to obtain the starting point S of the fourth boundary line 3 .

[0129] In the embodiment of the present disclosure, since the fourth boundary line and the second boundary line are two boundary lines of the same curve, when determining the starting point of the fourth boundary line, it should be The direction is determined so that the fourth boundary line is adjacent to the second boundary line.

[0130] It should be noted that when drawing a map, the widths of adjacent lanes are generally the same. Therefore, the width of the curve formed by the fourth boundary line and the second boundary line should be the same as the width of the curve formed by the second boundary line and the third boundary line. 1 With S 2 The distance between 1 With S 3 The distance between.

[0131] Optionally, before determining the points corresponding to the fourth boundary line, the starting point S 1 With S 2 The distance between the first control point C and the 1 With the seventh control point C 7 The distance between the second control point C and the second length is determined. 2 With the eighth control point C 8The distance between the end points E and E is used to determine the third length. 1 With E 2 The distance between them determines the fourth length.

[0132] In the embodiment of the present disclosure, by calculating the starting point S 1 With S 2 The distance between them is used to obtain the first length, and the first control point C is calculated. 1 With the seventh control point C 7 The distance between the two is used to obtain the second length, and so on, to determine the positions of the points corresponding to the fourth boundary line to be generated, which can ensure that the copied curve has the same width and direction as the generated curve, thereby improving the reliability and accuracy of curve copying and better meeting the needs of actual curve drawing.

[0133] like Figure 6 As shown, the starting point S 3 exist The extension line of the direction, and S 1 With S 3 The distance is equal to S 1 With S 2 distance.

[0134] S509: Set the first control point C of the second boundary line 1 along Extend the second length in the direction to obtain the control point C of the fourth boundary line 9 .

[0135] In the present disclosure, Figure 6 As shown, the ninth control point C 9 exist When the width of the curve to be drawn is the same as that of the existing curve, the second length is the first control point C 1 With the seventh control point C 7 The distance between 9 With C 1 The distance is equal to C 1 With C 7 distance.

[0136] S510: Set the second control point C of the second boundary line 2 along Extend the third length in the direction to obtain the control point C of the fourth boundary line 10 .

[0137] In the present disclosure, Figure 6 As shown, the tenth control point C 10 exist When the width of the curve to be drawn is the same as that of the existing curve, the third length is the second control point C2 With the eighth control point C 8 The distance between 10 With C 2 The distance is equal to C 2 With C 8 distance.

[0138] S511: Set the end point E of the second boundary line 1 along Extend the fourth length in the direction to obtain the end point E of the fourth boundary line 3 .

[0139] In the present disclosure, Figure 6 As shown, the end point E 3 exist When the width of the curve to be drawn is the same as that of the existing curve, the fourth length is the end point E 1 With E 2 The distance between 3 With E 1 The distance is equal to E 1 With E 2 distance.

[0140] S512: Based on the starting point S 3 , End point E 3 , control point C 9 and control point C 10 , generating the fourth boundary line.

[0141] In the embodiment of the present disclosure, the starting point S 3 , End point E 3 , control point C 9 and the eighth control point C 10 Substitute the coordinates into the parametric equation of the cubic Bezier curve to generate the fourth boundary line.

[0142] Optionally, when the boundary line that belongs to the same curve as the fourth boundary line is the third boundary line, the starting point S 2 along Extend the first length in the direction to obtain the starting point S of the fourth boundary line 4 . Set the seventh control point C 7 along Extend the second length in the direction to obtain the control point C of the fourth boundary line 11 . Set the eighth control point C 8 along Extend the third length in the direction to obtain the control point C of the fourth boundary line 12 . And the end point E 2 along Extend the fourth length in the direction to obtain the end point E of the fourth boundary line 4 Then, based on the starting point S 4 , End point E 4 , control point C 11 and the eighth control point C 12 , generating the fourth boundary line.

[0143] In the embodiment of the present disclosure, Figure 6 It can be seen that when the boundary line that belongs to the same curve as the fourth boundary line is the third boundary line, and the third boundary line is the left boundary of the curve along the road travel direction, the fourth boundary line can be drawn on the left side of the generated curve. Therefore, when the boundary line that belongs to the same curve as the boundary line to be copied is different, the direction of the extension line corresponding to the determined starting point, end point and control point is also different, so that the position of the boundary line to be copied can be determined more accurately, which meets the needs of users.

[0144] In this embodiment, the starting point, ending point and control point of the adjacent curve boundary line to be generated are first copied based on the starting point, ending point and control point of the two boundary lines of the generated curve, and then the curve boundary line is generated according to the starting point, ending point and two control points. Therefore, when drawing the boundary line of the adjacent curve, it is not necessary to obtain the boundary points of the connected straight road and calculate the angle between the vectors, etc., which reduces the amount of data for calculating the coordinates of the control points and further improves the efficiency of generating the curve boundary line.

[0145] Figure 7 It is a structural schematic diagram of a device for generating a curve boundary line proposed in an embodiment of the present disclosure.

[0146] like Figure 7 As shown, the device 700 for generating a curve boundary line includes:

[0147] The first determination module 701 is used to determine the starting point S of the second boundary line of the curve to be generated according to the first boundary lines of the two straight roads connected to the two ends of the curve. 1 、First auxiliary point F 1 , End point E 1 and the second auxiliary point F 2 ;

[0148] The second determination module 702 is used to determine the starting point S 1 , End point E 1 、First auxiliary point F 1 and the second auxiliary point F 2 , respectively determine the first vector Second vector The third vector and the fourth vector

[0149] The third determining module 703 is used to determine the first vector With the third vector The first angle between them, and the second vector With the fourth vector The second angle between

[0150] The fourth determining module 704 is used to determine the starting point S 1 With the end point E 1 The distance d, the first angle, and the second angle are used to determine the first control point C 1 and the second control point C 2 ;

[0151] Generating module 705, for generating a 1 , End point E 1 , the first control point C 1 and the second control point C 2 , generate the second boundary line of the curve.

[0152] Optionally, the first determining module 701 may be specifically configured to:

[0153] determining known boundary points in each first boundary line;

[0154] Along the direction of the road, two points adjacent to the curve in each first boundary line are respectively determined as the first auxiliary points F 1 , starting point S 1 , End point E 1 and the second auxiliary point F 2 .

[0155] Optionally, the fourth determining module 704 may be specifically configured to:

[0156] Determine the angle sum of the first angle and the second angle;

[0157] Determine the first control point C based on the ratio of the second angle to the angle and the distance d. 1 , in the first vector Direction and starting point S 1 The first distance between

[0158] Determine the second control point C based on the ratio of the first angle to the angle and the distance d. 2 , in the second vector Direction and end point E 1 The second distance between.

[0159] Optionally, the generating module 705 may also be used to:

[0160] Upon receiving the starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 In the case of a modification operation of any point in the process, the position of any point is updated based on the modification operation;

[0161] Based on the updated starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 , regenerate the second boundary line of the curve.

[0162] Optionally, the generating module 705 may also be used to:

[0163] When receiving a segmentation operation for the second boundary line, determining a first coordinate of a segmentation point according to the segmentation operation;

[0164] Determine the t value of the Bezier curve corresponding to the segmentation point;

[0165] Based on the starting point S 1 , End point E 1 , the first control point C 1 , the second control point C 2 and t value, respectively determine the third control point C 3 , the fourth control point C 4 , the fifth control point C 5 and the sixth control point C 6 ;

[0166] Based on the starting point S 1 , the third control point C 3 , the fourth control point C 4 and the segmentation points to generate a first segmentation curve;

[0167] Based on the segmentation point, the fifth control point C 5 , the sixth control point C 6 and end point E 1 Generate a second segmentation curve.

[0168] Optionally, the generating module 705 may be specifically used for:

[0169] Determine a first parameter sequence, wherein the minimum parameter in the first parameter sequence is 0, the maximum parameter is 1, and the difference between every two adjacent first parameters in the first parameter sequence is equal;

[0170] From the starting point to the ending point of the second boundary line, sequentially determine the second coordinates of the second boundary line corresponding to each first parameter;

[0171] determining the difference between each second coordinate and the first coordinate;

[0172] A first parameter with the smallest corresponding difference is determined as the t value of the Bezier curve corresponding to the segmentation point.

[0173] Optionally, the generating module 705 may also be used to:

[0174] In case of receiving the curve boundary line copy operation, determining a boundary line belonging to the same curve as the fourth boundary line to be generated;

[0175] In the case where the boundary line belonging to the same curve as the fourth boundary line is the second boundary line, the starting point S corresponding to the third boundary line belonging to another curve as the second boundary line is determined. 2 , End point E 2 , Seventh control point C 7 and the eighth control point C 8 ;

[0176] The starting point S of the second boundary line 1 along Extend the first length in the direction to obtain the starting point S of the fourth boundary line 3 ;

[0177] The first control point C of the second boundary line 1 along Extend the second length in the direction to obtain the control point C of the fourth boundary line 9 ;

[0178] The second control point C of the second boundary line 2 along Extend the third length in the direction to obtain the control point C of the fourth boundary line 10 ;

[0179] Set the end point E of the second boundary line 1 along Extend the fourth length in the direction to obtain the end point E of the fourth boundary line 3 ;

[0180] Based on the starting point S 3 , End point E 3 , control point C 9 and control point C 10 , generating the fourth boundary line.

[0181] Optionally, the generating module 705 may also be used to:

[0182] According to the starting point S 1 With S 2 The distance between them determines the first length;

[0183] According to the first control point C 1 With the seventh control point C 7 The distance between them determines the second length;

[0184] According to the second control point C 2 With the eighth control point C 8 The distance between them determines the third length;

[0185] According to the end point E 1 With E 2 The distance between them determines the fourth length.

[0186] Optionally, the generating module 705 may also be used to:

[0187] When the boundary line that belongs to the same curve as the fourth boundary line is the third boundary line, the starting point S 2 along Extend the first length in the direction to obtain the starting point S of the fourth boundary line 4 ;

[0188] The seventh control point C 7 along Extend the second length in the direction to obtain the control point C of the fourth boundary line 11 ;

[0189] The eighth control point C 8 along Extend the third length in the direction to obtain the control point C of the fourth boundary line 12 ;

[0190] The end point E 2 along Extend the fourth length in the direction to obtain the end point E of the fourth boundary line 4 ;

[0191] Based on the starting point S 4 , End point E 4 , control point C 11 and control point C 12 , generating the fourth boundary line.

[0192] It should be noted that the above explanation of the method for generating the curve boundary line is also applicable to the device for generating the curve boundary line of this embodiment, and will not be repeated here.

[0193] In this embodiment, the starting point and the end point of the curve boundary line to be generated are first determined by the boundary lines of the two straight roads connected to the curve to be generated. Then, two control points for controlling the shape of the curve boundary line are determined according to the direction vector corresponding to the boundary line, the vectors corresponding to the starting point and the end point, and the distance between the starting point and the end point. Then, the curve boundary line is generated according to the starting point, the end point, and the two control points. Thereby, the generation efficiency of the curve boundary line can be improved, and the smoothness and accuracy of the curve boundary line can be improved, so that the curve boundary line is more in line with the road direction.

[0194] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0195] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0196] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0197] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0198] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the generation method of the curve boundary line. For example, in some embodiments, the generation method of the curve boundary line may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the generation method of the curve boundary line described above may be executed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the generation method of the curve boundary line by any other appropriate means (e.g., by means of firmware).

[0199] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0200] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0201] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0202] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0203] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0204] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0205] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0206] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the description of the present disclosure, the words "if" and "if" used can be interpreted as "at the time of" or "when" or "in response to determination" or "under the circumstances of".

[0207] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for generating a curve boundary line, include: Determine the starting point S of the second boundary line of the curve to be generated according to the first boundary lines of the two straight roads connected to the two ends of the curve. 1 、First auxiliary point F 1 , End point E 1 and the second auxiliary point F 2 ; Based on the starting point S 1 , End point E 1 、First auxiliary point F 1 and the second auxiliary point F 2 , respectively determine the first vector Second vector The third vector and the fourth vector Determine the first vector With the third vector The first angle between them, and the second vector With the fourth vector The second angle between According to the starting point S 1 With the end point E 1 The distance d between the first and second angles respectively determine the first control point C 1 and the second control point C 2 ; Based on the starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 , generating a second boundary line of the curve.

2. The method according to claim 1, in, The starting point S of the second boundary line of the curve to be generated is determined according to the first boundary lines of the two straight roads connected to the two ends of the curve. 1 、First auxiliary point F 1 , End point E 1 and the second auxiliary point F 2 ,include: determining known boundary points in each of the first boundary lines; Along the direction of the road, two points adjacent to the curve in each of the first boundary lines are respectively determined as first auxiliary points F 1 , starting point S 1 , End point E 1 and the second auxiliary point F 2 .

3. The method according to claim 1, in, According to the starting point S 1 With the end point E 1 The distance d between the first and second angles respectively determine the first control point C 1 and the second control point C 2 ,include: Determine a sum of the first angle and the second angle; Determine the first control point C according to the ratio of the second angle to the angle and the distance d. 1 , in the first vector Direction with the starting point S 1 The first distance between Determine the second control point C according to the ratio of the first angle to the angle and the distance d. 2 , in the second vector direction with the end point E 1 The second distance between.

4. The method according to claim 1, in, After generating the second boundary line of the curve, the method further includes: Upon receiving the starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 In the case of a modification operation of any point in the image, the position of the any point is updated based on the modification operation; Based on the updated starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 , regenerate the second boundary line of the curve.

5. The method according to any one of claims 1 to 4, in, After generating the second boundary line of the curve, the method further includes: In case a segmentation operation for the second boundary line is received, determining a first coordinate of a segmentation point according to the segmentation operation; Determine the t value of the Bezier curve corresponding to the segmentation point; Based on the starting point S 1 , End point E 1 , the first control point C 1 , the second control point C 2 and t value, respectively determine the third control point C 3 , the fourth control point C 4 , the fifth control point C 5 and the sixth control point C 6 ; Based on the starting point S 1 , the third control point C 3 , the fourth control point C 4 and the segmentation points generate a first segmentation curve; Based on the segmentation point, the fifth control point C 5 , the sixth control point C 6 and end point E 1 Generate a second segmentation curve.

6. The method according to claim 5, in, The determining of the t value of the Bezier curve corresponding to the segmentation point includes: Determine a first parameter sequence, wherein the minimum parameter in the first parameter sequence is 0, the maximum parameter is 1, and the difference between every two adjacent first parameters in the first parameter sequence is equal; From the starting point to the ending point of the second boundary line, sequentially determine the second coordinates of the second boundary line corresponding to each first parameter; determining a difference between each of the second coordinates and the first coordinate; A first parameter with the smallest corresponding difference is determined as the t value of the Bezier curve corresponding to the segmentation point.

7. The method according to any one of claims 1 to 4, in, After generating the second boundary line of the curve, the method further includes: In case of receiving the curve boundary line copy operation, determining a boundary line belonging to the same curve as the fourth boundary line to be generated; In the case where the boundary line belonging to the same curve as the fourth boundary line is the second boundary line, a starting point S corresponding to a third boundary line belonging to another curve as the second boundary line is determined. 2 , End point E 2 , Seventh control point C 7 and the eighth control point C 8 ; The starting point S of the second boundary line 1 along The first length is extended in the direction to obtain the starting point S of the fourth boundary line. 3 ; The first control point C of the second boundary line 1 along The second length is extended in the direction to obtain the control point C of the fourth boundary line. 9 ; The second control point C of the second boundary line 2 along The third length is extended in the direction to obtain the control point C of the fourth boundary line. 10 ; The end point E of the second boundary line 1 along The fourth length is extended in the direction to obtain the end point E of the fourth boundary line. 3 ; Based on the starting point S 3 , End point E 3 , control point C 9 and control point C 10 , generating the fourth boundary line.

8. The method according to claim 7, in, At the starting point S of the second boundary line 1 along Before extending the first length in the direction, the method further comprises: According to the starting point S 1 With S 2 The distance between them determines the first length; According to the first control point C 1 With the seventh control point C 7 The distance between the two sides determines the second length; According to the second control point C 2 With the eighth control point C 8 The distance between the two sides determines the third length; According to the end point E 1 With E 2 The distance between them determines the fourth length.

9. The method according to claim 7, in, After determining the boundary line that belongs to the same curve as the fourth boundary line to be generated, the method further includes: When the boundary line belonging to the same curve as the fourth boundary line is the third boundary line, the starting point S 2 along The first length is extended in the direction to obtain the starting point S of the fourth boundary line. 4 ; The seventh control point C 7 along The second length is extended in the direction to obtain the control point C of the fourth boundary line. 11 ; The eighth control point C 8 along The third length is extended in the direction to obtain the control point C of the fourth boundary line. 12 ; The end point E 2 along The fourth length is extended in the direction to obtain the end point E of the fourth boundary line. 4 ; Based on the starting point S 4 , End point E 4 , control point C 11 and control point C 12 , generating the fourth boundary line.

10. A device for generating a curve boundary line, include: The first determination module is used to determine the starting point S of the second boundary line of the curve to be generated according to the first boundary lines of the two straight roads connected to the two ends of the curve. 1 、First auxiliary point F 1 , End point E 1 and the second auxiliary point F 2 ; The second determination module is used to determine the starting point S based on the 1 , End point E 1 、First auxiliary point F 1 and the second auxiliary point F 2 , respectively determine the first vector Second vector The third vector and the fourth vector The third determining module is used to determine the first vector With the third vector The first angle between them, and the second vector With the fourth vector The second angle between The fourth determining module is used to determine the starting point S according to the 1 With the end point E 1 The distance d between the first and second angles respectively determine the first control point C 1 and the second control point C 2 ; A generating module is used for generating a 1 , End point E 1 , the first control point C 1 and the second control point C 2 , generating a second boundary line of the curve.

11. The device according to claim 10, in, The first determining module is specifically configured to: determining known boundary points in each of the first boundary lines; Along the direction of the road, two points adjacent to the curve in each of the first boundary lines are respectively determined as first auxiliary points F 1 , starting point S 1 , End point E 1 and the second auxiliary point F 2 .

12. The device according to claim 10, in, The fourth determining module is specifically used for: Determine a sum of the first angle and the second angle; Determine the first control point C according to the ratio of the second angle to the angle and the distance d. 1 , in the first vector Direction with the starting point S 1 The first distance between Determine the second control point C according to the ratio of the first angle to the angle and the distance d. 2 , in the second vector direction with the end point E 1 The second distance between.

13. The device according to claim 10, in, The generating module is further used for: Upon receiving the starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 In the case of a modification operation of any point in the image, the position of the any point is updated based on the modification operation; Based on the updated starting point S 1 , End point E 1 , the first control point C 1 and the second control point C 2 , regenerate the second boundary line of the curve.

14. The device according to any one of claims 10 to 13, in, The generating module is further used for: In case a segmentation operation for the second boundary line is received, determining a first coordinate of a segmentation point according to the segmentation operation; Determine the t value of the Bezier curve corresponding to the segmentation point; Based on the starting point S 1 , End point E 1 , the first control point C 1 , the second control point C 2 and t value, respectively determine the third control point C 3 , the fourth control point C 4 , the fifth control point C 5 and the sixth control point C 6 ; Based on the starting point S 1 , the third control point C 3 , the fourth control point C 4 and the segmentation points generate a first segmentation curve; Based on the segmentation point, the fifth control point C 5 , the sixth control point C 6 and end point E 1 Generate a second segmentation curve.

15. The device according to claim 14, in, The generation module is specifically used for: Determine a first parameter sequence, wherein the minimum parameter in the first parameter sequence is 0, the maximum parameter is 1, and the difference between every two adjacent first parameters in the first parameter sequence is equal; From the starting point to the ending point of the second boundary line, sequentially determine the second coordinates of the second boundary line corresponding to each first parameter; determining a difference between each of the second coordinates and the first coordinate; A first parameter with the smallest corresponding difference is determined as the t value of the Bezier curve corresponding to the segmentation point.

16. The device according to any one of claims 10 to 13, in, The generating module is further used for: In case of receiving the curve boundary line copy operation, determining a boundary line belonging to the same curve as the fourth boundary line to be generated; In the case where the boundary line belonging to the same curve as the fourth boundary line is the second boundary line, a starting point S corresponding to a third boundary line belonging to another curve as the second boundary line is determined. 2 , End point E 2 , Seventh control point C 7 and the eighth control point C 8 ; The starting point S of the second boundary line 1 along The first length is extended in the direction to obtain the starting point S of the fourth boundary line. 3 ; The first control point C of the second boundary line 1 along The second length is extended in the direction to obtain the control point C of the fourth boundary line. 9 ; The second control point C of the second boundary line 2 along The third length is extended in the direction to obtain the control point C of the fourth boundary line. 10 ; The end point E of the second boundary line 1 along The fourth length is extended in the direction to obtain the end point E of the fourth boundary line. 3 ; Based on the starting point S 3 , End point E 3 , control point C 9 and control point C 10 , generating the fourth boundary line.

17. The device according to claim 16, in, The generating module is further used for: According to the starting point S 1 With S 2 The distance between them determines the first length; According to the first control point C 1 With the seventh control point C 7 The distance between the two sides determines the second length; According to the second control point C 2 With the eighth control point C 8 The distance between the two sides determines the third length; According to the end point E 1 With E 2 The distance between them determines the fourth length.

18. The device according to claim 16, in, The generating module is further used for: When the boundary line belonging to the same curve as the fourth boundary line is the third boundary line, the starting point S 2 along The first length is extended in the direction to obtain the starting point S of the fourth boundary line. 4 ; The seventh control point C 7 along The second length is extended in the direction to obtain the control point C of the fourth boundary line. 11 ; The eighth control point C 8 along The third length is extended in the direction to obtain the control point C of the fourth boundary line. 12 ; The end point E 2 along The fourth length is extended in the direction to obtain the end point E of the fourth boundary line. 4 ; Based on the starting point S 4 , End point E 4 , control point C 11 and control point C 12 , generating the fourth boundary line.

19. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for generating a curve boundary line according to any one of claims 1 to 9.

20. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that in, The computer instructions are used to enable the computer to execute the method for generating a curve boundary line according to any one of claims 1 to 9.

21. A computer program product, It is characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of the method for generating a curve boundary line according to any one of claims 1 to 9.