Construction method, device, terminal equipment and storage medium of road traffic system

By obtaining and comparing road parameters and building target roads that meet preset standards, the problems of complex construction of road traffic systems and high resource consumption in the existing technology are solved, and flexible and efficient road construction is achieved.

CN114491739BActive Publication Date: 2024-11-15UBTECH ROBOTICS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111667429.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-11-15
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The existing road traffic system construction method is complex, the calculation amount is large, and it is difficult to expand on the basis of existing traffic roads, consuming a lot of storage space.

Method used

By obtaining road parameters, the road to be built is constructed, and when it is detected that it meets the preset construction standards, it is compared with the pre-stored road, and processed to obtain the target road, achieving flexible construction based on the existing road.

Benefits of technology

The construction process of road traffic system is simplified, the computing volume and storage space requirements are reduced, and the construction efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114491739B_ABST
    Figure CN114491739B_ABST
Patent Text Reader

Abstract

The present application is applicable to the technical field of road traffic system model construction, and provides a road traffic system construction method, device, terminal equipment and storage medium. The method includes: obtaining road parameters, constructing a road to be constructed according to the road parameters, and when it is detected that the road to be constructed meets the preset construction standard, comparing the road to be constructed with the pre-stored road to obtain a comparison result, and processing the road to be constructed according to the comparison result to obtain a target road. The present application realizes the construction and determination of a target road that meets the preset construction standard based on the existing pre-stored roads. The method is flexible and has a small amount of calculation, which saves the storage space consumed by the construction of the road traffic system and improves the construction efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of road traffic system model construction, and in particular, relates to a road traffic system construction method, device, terminal equipment and storage medium. Background Art

[0002] In recent years, there are more and more 3D applications of the city simulation type, but most of them are essentially developers generating content for users to use. Faced with relatively fixed scenes, long-term use leads to users naturally getting bored and losing interest. Many users hope that 3D applications of the city simulation type can support free construction functions, especially free construction related to roads. Roads are the blood of the city, and free construction of roads means that a variety of urban landscapes can be created, which greatly enriches the scenes of the virtual city and greatly satisfies the creative inspiration of users.

[0003] However, when constructing the relevant road traffic system, the construction method is relatively complex, the amount of calculation is large, and it is difficult to expand on the basis of existing traffic roads, and it requires a large amount of storage space. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus, terminal device and readable storage medium for constructing a road traffic system, which can solve the problems that related methods are complex, computationally intensive, difficult to expand on the basis of existing traffic roads, and require a large amount of storage space.

[0005] In a first aspect, an embodiment of the present application provides a method for constructing a road traffic system, comprising:

[0006] Get road parameters;

[0007] constructing a road to be constructed according to the road parameters;

[0008] When it is detected that the road to be constructed meets the preset construction standard, the road to be constructed is compared with the pre-stored roads to obtain a comparison result;

[0009] The road to be constructed is processed according to the comparison result to obtain a target road.

[0010] In one embodiment, the road parameters include starting point location information, control point location information and end point location information;

[0011] In one embodiment, constructing the road to be constructed according to the road parameters includes:

[0012] Determine a first direction according to the starting point position information and the end point position information;

[0013] When it is detected that the control point position information is in the first direction, constructing a straight road according to the starting point position information, the control point position information and the end point position information to obtain the road to be constructed;

[0014] When it is detected that the control point position information is not in the first direction, a Bezier curve road is constructed according to the starting point position information, the control point position information and the end point position information to obtain the road to be constructed.

[0015] In one embodiment, when it is detected that the road to be constructed meets a preset construction standard, the road to be constructed is compared with a pre-stored road to obtain a comparison result, including:

[0016] Determining the angle of the road to be constructed according to the starting point position information, the control point position information and the end point position information;

[0017] When it is detected that the included angle is less than a preset angle, it is determined that the road to be constructed does not meet the preset construction standard, and the road to be constructed is deleted;

[0018] When it is detected that the included angle is greater than or equal to the preset angle, determining that the road to be constructed meets a preset construction standard;

[0019] The road to be constructed is compared with the pre-stored road to obtain a comparison result.

[0020] In one embodiment, the processing of the road to be constructed according to the comparison result to obtain a target road includes:

[0021] When it is detected that the comparison result shows that there is a preset point between the road to be constructed and the pre-stored road, the intersection position information of the preset point is obtained; the preset point is a point where the position information of the road to be constructed is the same as that of the pre-stored road;

[0022] Determine a first horizontal height of the preset point according to the intersection position information;

[0023] When it is detected that the first horizontal height is less than a preset threshold, segmenting the road to be constructed and the pre-stored road based on the intersection position information to obtain the segmented road to be constructed as the target road;

[0024] The target road and the segmented pre-stored roads are stored.

[0025] In one embodiment, after determining the first horizontal height of the preset point according to the intersection position information, the method includes:

[0026] When it is detected that the first horizontal height is greater than or equal to a preset threshold, segmenting the road to be constructed and the pre-stored road based on the intersection position information;

[0027] The segmented road to be constructed is converted into an interchange road to obtain the target road.

[0028] In one embodiment, the processing of the road to be constructed according to the comparison result to obtain a target road further includes:

[0029] When it is detected that the comparison result shows that there is no preset point between the road to be constructed and all pre-stored roads, determining a second horizontal height of the road to be constructed;

[0030] When it is detected that the second horizontal height is greater than or equal to the preset threshold, the road to be constructed is converted into a bridge to obtain the target road.

[0031] In one embodiment, after determining the second horizontal height of the road to be constructed, the method further includes:

[0032] When it is detected that the second horizontal height is less than the preset threshold, the road to be constructed is determined to be the target road.

[0033] In a second aspect, an embodiment of the present application provides a device for constructing a road traffic system, including:

[0034] An acquisition module, used to obtain road parameters;

[0035] A construction module, used for constructing the road to be constructed according to the road parameters;

[0036] A comparison module, configured to compare the road to be constructed with pre-stored roads to obtain a comparison result when it is detected that the road to be constructed meets a preset construction standard;

[0037] The determination module is used to process the road to be constructed according to the comparison result to obtain a target road.

[0038] In one embodiment, the road parameters include starting point location information, control point location information and end point location information;

[0039] The building blocks include:

[0040] A first determining unit, configured to determine a first direction according to the starting point position information and the end point position information;

[0041] A first construction unit is configured to construct a straight road according to the starting point position information, the control point position information and the end point position information when detecting that the control point position information is in the first direction, so as to obtain the road to be constructed;

[0042] The second construction unit is configured to construct a Bezier curve road according to the starting point position information, the control point position information and the end point position information to obtain the road to be constructed when it is detected that the control point position information is not in the first direction.

[0043] In one embodiment, the comparison module comprises:

[0044] A second determining unit, configured to determine an angle of the road to be constructed according to the starting point position information, the control point position information and the end point position information;

[0045] a deleting unit, configured to, when detecting that the included angle is less than a preset angle, determine that the road to be constructed does not meet a preset construction standard, and delete the road to be constructed;

[0046] A detection unit, configured to determine that the road to be constructed meets a preset construction standard when detecting that the included angle is greater than or equal to the preset angle;

[0047] The third determining unit is used to compare the road to be constructed with the pre-stored roads to obtain a comparison result.

[0048] In one embodiment, the determining module includes:

[0049] an information acquisition unit, configured to acquire intersection position information of the preset point when it is detected that the comparison result shows that there is a preset point between the road to be constructed and the pre-stored road; the preset point is a point where the position information of the road to be constructed is the same as that of the pre-stored road;

[0050] A first height determination unit, configured to determine a first horizontal height of the preset point according to the intersection position information;

[0051] A first segmentation processing unit is used to segment the road to be constructed and the pre-stored road based on the intersection position information when it is detected that the first horizontal height is less than a preset threshold, and obtain the segmented road to be constructed as a target road;

[0052] A storage unit is used to store the target road and the segmented pre-stored roads.

[0053] In one embodiment, the determining module further includes:

[0054] A second segmentation processing unit, configured to perform segmentation processing on the road to be constructed and the pre-stored road respectively based on the intersection position information when detecting that the first horizontal height is greater than or equal to a preset threshold;

[0055] The first conversion unit is used to convert the road to be constructed after the segmentation process into an interchange road to obtain the target road.

[0056] In one embodiment, the determining module further includes:

[0057] A second height determination unit, configured to determine a second horizontal height of the road to be constructed when it is detected that the comparison result shows that there is no preset point between the road to be constructed and all pre-stored roads;

[0058] The second conversion unit is configured to convert the road to be constructed into a bridge to obtain the target road when it is detected that the second horizontal height is greater than or equal to the preset threshold.

[0059] In one embodiment, the determining module further includes:

[0060] The fourth determining unit is configured to determine that the road to be constructed is the target road when it is detected that the second horizontal height is less than the preset threshold.

[0061] In a third aspect, an embodiment of the present application provides a terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements a method for constructing a road traffic system as described in any one of the first aspects above.

[0062] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for constructing a road traffic system as described in any one of the above-mentioned first aspects is implemented.

[0063] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the method for constructing a road traffic system described in any one of the first aspects above.

[0064] Compared with the prior art, the embodiments of the present application have the following beneficial effects: a road to be constructed is constructed according to road parameters, and when it is detected that the road to be constructed meets preset construction standards, the road to be constructed is compared with pre-stored roads, and the road to be constructed is processed according to the comparison result to obtain a target road, thereby achieving the construction and determination of a target road that meets preset construction standards based on the existing pre-stored roads. The method is flexible and has a small amount of calculation, which saves storage space consumed by the construction of the road traffic system and improves construction efficiency.

[0065] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0067] Figure 1 It is a flowchart of a method for constructing a road traffic system provided in an embodiment of the present application;

[0068] Figure 2 is a schematic diagram of constructing a straight road provided in an embodiment of the present application;

[0069] Figure 3 It is a schematic diagram of constructing a Bezier curve road provided in an embodiment of the present application;

[0070] Figure 4 is a schematic diagram of the construction of an extended road provided in an embodiment of the present application;

[0071] Figure 5 It is a schematic diagram of the construction of a fork road provided in an embodiment of the present application;

[0072] Figure 6 It is a schematic diagram of the construction of an interchange road provided in an embodiment of the present application;

[0073] Figure 7 is a schematic diagram of the structure of a construction device for a road traffic system provided in an embodiment of the present application;

[0074] Figure 8 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0076] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0077] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0078] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0079] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0080] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0081] The method for constructing a road traffic system provided in the embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. The embodiment of the present application does not impose any restrictions on the specific types of terminal devices.

[0082] Figure 1 A schematic flow chart of a method for constructing a road traffic system provided in the present application is shown. As an example but not a limitation, the method can be applied to a laptop computer.

[0083] S101. Obtain road parameters.

[0084] Specifically, the road parameters generated by the user touching the touch screen are obtained, the road parameters sent by the user through the user terminal are received, or the road parameters manually input by the user are obtained. The road parameters include but are not limited to the starting point location information, the control point location information, and the end point location information.

[0085] Specifically, a world coordinate system is pre-constructed, and all position information contained in the corresponding determined road (including but not limited to starting point position information, control point position information, end point position information, intersection position information or position information of other points in the road) is coordinate information relative to the origin in the above world coordinate system.

[0086] S102: construct a road to be constructed according to the road parameters.

[0087] Specifically, a road to be constructed from the starting point position information to the end point position information is constructed according to the road parameters.

[0088] S103: When it is detected that the road to be constructed meets a preset construction standard, the road to be constructed is compared with pre-stored roads to obtain a comparison result.

[0089] Specifically, the road to be constructed is detected based on the preset construction standard to determine whether the road to be constructed meets the preset construction standard. When it is detected that the road to be constructed meets the preset construction standard, the road to be constructed is compared with the pre-stored roads to obtain a comparison result.

[0090] Among them, the preset construction standard refers to the detection conditions determined based on the actual road construction standard rules.

[0091] As an example but not a limitation, in the actual road construction standard rule, it is necessary to construct the traffic road based on the safety of the driver, so the road curve angle should be greater than or equal to the angle value for safe driving. Correspondingly, the preset construction standard is set as the angle of the road to be constructed is greater than the preset angle.

[0092] The pre-stored roads are one or more existing roads that have been constructed.

[0093] S104: Process the road to be constructed according to the comparison result to obtain a target road.

[0094] Specifically, according to the comparison result between the road to be constructed and the pre-stored roads, the road to be constructed is processed accordingly to obtain the target road.

[0095] In this embodiment, the method for comparing the road to be constructed and the pre-stored road is: comparing the position information of the road to be constructed with the position information of the pre-stored road, and determining whether there are points with the same position information (i.e., coordinate information in the world coordinate system) between the road to be constructed and the pre-stored road.

[0096] In one embodiment, the road parameters include starting point location information, control point location information and end point location information;

[0097] The obtaining of road parameters comprises:

[0098] Acquire first position information as the starting point position information;

[0099] Acquire second location information as the destination location information;

[0100] Acquire control point position information as the control point position information.

[0101] Specifically, first obtain the first location information determined by the user as the starting location information, use the second location information determined by the user as the end location information, and obtain the third location information determined by the user as the control point location information (wherein the control point refers to the point used to determine the road angle and direction).

[0102] In one embodiment, constructing the road to be constructed according to the road parameters includes:

[0103] Determine a first direction according to the starting point position information and the end point position information;

[0104] When it is detected that the control point position information is in the first direction, constructing a straight road according to the starting point position information, the control point position information and the end point position information to obtain the road to be constructed;

[0105] When it is detected that the control point position information is not in the first direction, a Bezier curve road is constructed according to the starting point position information, the control point position information and the end point position information to obtain the road to be constructed.

[0106] Specifically, the first direction is determined according to the starting point position information and the end point position information. When it is detected that the control point position information is located in the first direction, a straight road is constructed according to the determined starting point position information, the control point position information and the end point position information as the road to be constructed.

[0107] like Figure 2 As shown, a schematic diagram of constructing a straight road is provided as an example.

[0108] Figure 2 In the example, the control point position information is located in a first direction from the starting point position information to the end point position information, so a straight road can be correspondingly constructed as the road to be constructed.

[0109] Specifically, when it is detected that the control point position information is not in the first direction, a Bezier curve road is constructed according to the starting point position information, the control point position information and the end point position information to obtain the road to be constructed.

[0110] like Figure 3 As shown, a schematic diagram of constructing a Bezier curve road is exemplarily provided.

[0111] Figure 3 In the example, the control point position information is not in the first direction from the starting point position information to the end point position information, so a Bezier curve road can be constructed according to the starting point position information, the control point position information and the end point position information as the road to be constructed.

[0112] In one embodiment, when it is detected that the road to be constructed meets a preset construction standard, the road to be constructed is compared with a pre-stored road to obtain a comparison result, including:

[0113] Determining the angle of the road to be constructed according to the starting point position information, the control point position information and the end point position information;

[0114] When it is detected that the included angle is less than a preset angle, it is determined that the road to be constructed does not meet the preset construction standard, and the road to be constructed is deleted;

[0115] When it is detected that the included angle is greater than or equal to the preset angle, determining that the road to be constructed meets a preset construction standard;

[0116] The road to be constructed is compared with the pre-stored road to obtain a comparison result.

[0117] Specifically, after the Bezier curve road (i.e., the road to be constructed) is constructed according to the starting point position information, the control point position information, and the end point position information, it is necessary to calculate and determine the angle of the road to be constructed. When it is detected that the angle of the road to be constructed is less than the preset angle, it is determined that the safety of the road to be constructed is low and does not meet the preset construction standards. The road to be constructed is deleted, and a corresponding notification message is generated to prompt that the road does not meet the construction standards.

[0118] Specifically, when it is detected that the angle of the road to be constructed is greater than or equal to the preset angle, it is determined that the road to be constructed meets the preset construction standard, and the road to be constructed is compared with the pre-stored roads to obtain a comparison result.

[0119] In one embodiment, when it is detected that the starting position information of any one of the road to be constructed and the pre-stored road is the same as the end position information of the other road, the road to be constructed is determined to be an extension of the pre-stored road, and the pre-stored road + the extension road is referred to as a newly constructed road hereinafter. The starting position information of the road to be constructed that is different from that of the pre-stored road is used as the starting position information of the newly constructed road, and the end position information of the road to be constructed that is different from that of the pre-stored road is used as the end position information of the newly constructed road (for example, if the starting position information of the pre-stored road is the same as the end position information of the road to be constructed, the starting position information of the road to be constructed is used as the starting position information of the newly constructed road, and the end position information of the pre-stored road is used as the end position information of the newly constructed road), the angle of the newly constructed road is determined and compared with the preset angle, so as to determine whether the newly constructed road meets the preset construction standard.

[0120] Figure 4 The schematic diagram of the construction of the extended road is shown as an example;

[0121] Figure 4 In the figure, the starting point position information 43 of the road to be constructed is the same as the end point position information 42 of the pre-stored road, corresponding to the starting point position information 41 of the pre-stored road as the starting point position information of the newly constructed road, and the end point position information 44 of the road to be constructed as the end point position information of the newly constructed road, the angle of the pre-stored road + the road to be constructed (i.e., the newly constructed road) is determined, and the above angle is compared with the preset angle to determine whether the newly constructed road meets the preset construction standard.

[0122] In one embodiment, when it is detected that the starting point position information (or the end point position information) of the road to be constructed is the same as other position information in the pre-stored road except the starting point position information and the end point position information, the road to be constructed is determined to be a fork in the pre-stored road, and the direction of the fork is determined according to another different position information in the road to be constructed (for example, when the starting point position information of the road to be constructed is the same as other position information in the pre-stored road except the starting point position information and the end point position information, the fork is: the road from the starting point position information of the pre-stored road to the end point position information of the road to be constructed; or, when the end point position information of the road to be constructed is the same as other position information in the pre-stored road except the starting point position information and the end point position information, the fork is: the road from the starting point position information of the road to be constructed to the end point position information of the pre-stored road.

[0123] like Figure 5 As shown, a schematic diagram of constructing a fork road is provided as an example.

[0124] Figure 5 In the example, the starting position information of the preset construction road is A, the ending position information of the preset construction road is B, the starting position information of the road to be constructed is C, and the ending position information of the road to be constructed is D. It can be determined that the ending position information D of the road to be constructed is the fork in the road, so Figure 5 A pre-stored road starting from A through D to B, and a fork road starting from C through D to B are included. The angle J1 of the fork road can be calculated and determined, and the angle J1 is compared with the preset angle to determine whether the fork road from the starting position information C of the road to be constructed through the fork intersection D to the end position information B of the preset constructed road meets the preset construction standard.

[0125] In one embodiment, the road to be constructed is processed according to the comparison result to obtain a target road, including:

[0126] When it is detected that the comparison result shows that there is a preset point between the road to be constructed and the pre-stored road, the intersection position information of the preset point is obtained; the preset point is a point where the position information of the road to be constructed is the same as that of the pre-stored road;

[0127] Determine a first horizontal height of the preset point according to the intersection position information;

[0128] When it is detected that the first horizontal height is less than a preset threshold, segmenting the road to be constructed and the pre-stored road based on the intersection position information to obtain the segmented road to be constructed as the target road;

[0129] The target road and the segmented pre-stored roads are stored.

[0130] Specifically, the position information of the road to be constructed is compared with the position information of the pre-stored road. When it is detected that the road to be constructed and the pre-stored road have the same position information (i.e., coordinate information in the world coordinate system), it is determined that the comparison result is that there is a preset point between the road to be constructed and the pre-stored road, and the intersection position information of the preset point is obtained; and the first horizontal height of the preset point relative to the ground is determined according to the intersection position information of the preset point. When it is detected that the first horizontal height of the preset point is less than a preset threshold, it is determined that the current road to be constructed may intersect with a pre-stored road (also called an ordinary road) with a lower horizontal height relative to the ground. In order to ensure the safety of road traffic, it is necessary to segment the road to be constructed and the pre-stored road based on the intersection position information (i.e., create a fork in the road at the preset point between the road to be constructed and the pre-stored road, such as a Y-shaped intersection, a crossroad, etc.), and use the segmented road to be constructed as the target road, and store the target road and the segmented pre-stored road. Among them, the first horizontal height refers to the height of the preset point relative to the ground.

[0131] In one embodiment, after determining the first horizontal height of the preset point according to the intersection position information, the method includes:

[0132] When it is detected that the first horizontal height is greater than or equal to a preset threshold, segmenting the road to be constructed and the pre-stored road based on the intersection position information;

[0133] The segmented road to be constructed is converted into an interchange road to obtain the target road.

[0134] Specifically, when it is detected that the first horizontal height of the preset point is greater than or equal to the preset threshold, it is determined that the current road to be constructed may intersect with a pre-stored interchange road, and it is necessary to segment the road to be constructed and the pre-stored road based on the intersection position information of the preset point (that is, to construct a fork in the road to be constructed and the pre-stored interchange road at the preset point position, so as to ensure the safety of road traffic and drivers), and convert the segmented road to be constructed into an interchange road to obtain the target road, and store the target road and the segmented pre-stored road.

[0135] Among them, the preset threshold value can be specifically set according to the actual situation. For example, the preset threshold value is set to 6 meters. When it is detected that the first horizontal height of the preset point is less than 6m, it is determined that the current road to be constructed may intersect with a pre-stored road with a lower horizontal height relative to the ground. Correspondingly, the road to be constructed and the pre-stored road need to be segmented based on the intersection position information, and the segmented road to be constructed is used as the target road, and the target road and the segmented pre-stored road are stored. Alternatively, when it is detected that the first horizontal height of the preset point is greater than or equal to 6 meters, it is determined that the current road to be constructed may intersect with the pre-stored interchange road, and the road to be constructed and the pre-stored interchange road are segmented based on the intersection position information, and the segmented road to be constructed is converted into a new interchange road and used as the target road, and the target road and the segmented pre-stored road are stored.

[0136] In one embodiment, the processing of the road to be constructed according to the comparison result to obtain a target road further includes:

[0137] When it is detected that the comparison result shows that there is no preset point between the road to be constructed and all pre-stored roads, determining a second horizontal height of the road to be constructed;

[0138] When it is detected that the second horizontal height is greater than or equal to the preset threshold, the road to be constructed is converted into a bridge to obtain the target road.

[0139] Specifically, the position information of the road to be constructed is compared with the position information of the pre-stored roads. When it is detected that the road to be constructed and all the pre-stored roads do not have the same position information (i.e., coordinate information in the world coordinate system) at a point, the comparison result is determined to be that the road to be constructed and all the pre-stored roads do not have the possibility of intersection, and the second horizontal height of the road to be constructed relative to the ground is determined. When it is detected that the second horizontal height is greater than or equal to a preset threshold, it is determined that the current road to be constructed is a suspended road, and the road to be constructed needs to be converted into a bridge to obtain the target road.

[0140] Specifically, the second horizontal height refers to the height of each point in the road to be constructed relative to the ground. Since the road to be constructed is constructed by the starting point position information, the control point position information and the end point position information, the second horizontal height can be simplified as: the horizontal heights of the three position information, namely the starting point position information, the control point position information and the end point position information, relative to the ground. Correspondingly, when it is detected that any one or more of the horizontal heights of the starting point position information relative to the ground, the horizontal heights of the control point position information relative to the ground and the horizontal heights of the end point position information relative to the ground are greater than or equal to a preset threshold, the road to be constructed is converted into a bridge to obtain the target road.

[0141] In one embodiment, when it is detected that the second horizontal height is greater than or equal to the preset threshold, the relative height between the road to be constructed and the pre-stored road is determined according to the second horizontal height, and when it is detected that the relative height is less than or equal to the preset height, a prompt message is generated and displayed.

[0142] Specifically, the relative height refers to the horizontal height difference between the road to be constructed and the pre-stored road. When it is detected that the second horizontal height is greater than or equal to the preset threshold, it can be determined that the current road to be constructed is a bridge. In order to determine the safety problem between the bridge and the pre-stored road, it is necessary to determine the relative height between the road to be constructed and each pre-stored road based on the second horizontal height, and compare each relative height with the preset height. When it is detected that the relative height between the road to be constructed and any one or more pre-stored roads is less than or equal to the preset height, it is determined that the above relative height is too small, which may cause some vehicles (such as trucks and other large vehicles with large height values) to be unable to drive safely on the above-mentioned road to be constructed and / or pre-stored roads, and a prompt message is generated (used to prompt the user that the road parameters of the current road to be constructed are incorrect, please reset the road parameters) and displayed.

[0143] It can be understood that when it is detected that the relative height between the road to be constructed and each pre-stored road is greater than the preset height, the road to be constructed can be converted into a bridge to obtain the target road.

[0144] The preset height can be specifically determined according to the height of existing vehicles. For example, the height of vehicle A with the largest existing height value is 5m, and the corresponding preset height is set to 5m to ensure that each vehicle can safely drive on the road to be constructed and the pre-stored road.

[0145] In one embodiment, after determining the second horizontal height of the road to be constructed, the method further includes:

[0146] When it is detected that the second horizontal height is less than the preset threshold, the road to be constructed is determined to be the target road.

[0147] Specifically, when it is detected that the second horizontal height of the road to be constructed relative to the ground is less than a preset threshold, the road to be constructed is determined to be the target road.

[0148] like Figure 6 As shown, a schematic diagram of constructing an interchange road is provided as an example.

[0149] Figure 6When it is determined that the first horizontal height of the preset points of the road to be constructed and the pre-stored road is greater than or equal to the preset threshold, the road to be constructed and the pre-stored road are segmented based on the intersection position information of the preset points, and the segmented road to be constructed is converted into an overpass road to obtain a target road. The target road and the pre-stored road are constructed into an overpass.

[0150] This embodiment constructs a road to be constructed according to road parameters. When it is detected that the road to be constructed meets the preset construction standard, the road to be constructed is compared with the pre-stored roads. The road to be constructed is processed according to the comparison result to obtain a target road. On the basis of the existing pre-stored roads, a target road that meets the preset construction standard is constructed and determined. The method is flexible and has a small amount of calculation, which saves the storage space consumed by the construction of the road traffic system and improves the construction efficiency.

[0151] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0152] Corresponding to the method for constructing the road traffic system described in the above embodiment, Figure 7 A structural block diagram of a construction device for a road traffic system provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0153] Reference Figure 7 The road traffic system construction device 100 includes:

[0154] An acquisition module 101 is used to acquire road parameters;

[0155] A construction module 102, configured to construct a road to be constructed according to the road parameters;

[0156] A comparison module 103 is used to compare the road to be constructed with the pre-stored roads to obtain a comparison result when it is detected that the road to be constructed meets the preset construction standard;

[0157] The determination module 104 is used to process the road to be constructed according to the comparison result to obtain a target road.

[0158] In one embodiment, the road parameters include starting point location information, control point location information and end point location information;

[0159] In one embodiment, the building block comprises:

[0160] A first determining unit, configured to determine a first direction according to the starting point position information and the end point position information;

[0161] A first construction unit is configured to construct a straight road according to the starting point position information, the control point position information and the end point position information when detecting that the control point position information is in the first direction, so as to obtain the road to be constructed;

[0162] The second construction unit is configured to construct a Bezier curve road according to the starting point position information, the control point position information and the end point position information to obtain the road to be constructed when it is detected that the control point position information is not in the first direction.

[0163] In one embodiment, the comparison module comprises:

[0164] A second determining unit, configured to determine an angle of the road to be constructed according to the starting point position information, the control point position information and the end point position information;

[0165] a deleting unit, configured to, when detecting that the included angle is less than a preset angle, determine that the road to be constructed does not meet a preset construction standard, and delete the road to be constructed;

[0166] A detection unit, configured to determine that the road to be constructed meets a preset construction standard when detecting that the included angle is greater than or equal to the preset angle;

[0167] The third determining unit is used to compare the road to be constructed with the pre-stored roads to obtain a comparison result.

[0168] In one embodiment, the determining module includes:

[0169] an information acquisition unit, configured to acquire intersection position information of the preset point when it is detected that the comparison result shows that there is a preset point between the road to be constructed and the pre-stored road; the preset point is a point where the position information of the road to be constructed is the same as that of the pre-stored road;

[0170] A first height determination unit, configured to determine a first horizontal height of the preset point according to the intersection position information;

[0171] A first segmentation processing unit is used to segment the road to be constructed and the pre-stored road based on the intersection position information when it is detected that the first horizontal height is less than a preset threshold, and obtain the segmented road to be constructed as a target road;

[0172] A storage unit is used to store the target road and the segmented pre-stored roads.

[0173] In one embodiment, the determining module further includes:

[0174] A second segmentation processing unit, configured to perform segmentation processing on the road to be constructed and the pre-stored road respectively based on the intersection position information when detecting that the first horizontal height is greater than or equal to a preset threshold;

[0175] The first conversion unit is used to convert the road to be constructed after the segmentation process into an interchange road to obtain the target road.

[0176] In one embodiment, the determining module further includes:

[0177] A second height determination unit, configured to determine a second horizontal height of the road to be constructed when it is detected that the comparison result shows that there is no preset point between the road to be constructed and all pre-stored roads;

[0178] The second conversion unit is configured to convert the road to be constructed into a bridge to obtain the target road when it is detected that the second horizontal height is greater than or equal to the preset threshold.

[0179] In one embodiment, the determining module further includes:

[0180] The fourth determining unit is configured to determine that the road to be constructed is the target road when it is detected that the second horizontal height is less than the preset threshold.

[0181] This embodiment constructs a road to be constructed according to road parameters. When it is detected that the road to be constructed meets the preset construction standard, the road to be constructed is compared with the pre-stored roads. The road to be constructed is processed according to the comparison result to obtain a target road. On the basis of the existing pre-stored roads, a target road that meets the preset construction standard is constructed and determined. The method is flexible and has a small amount of calculation, which saves the storage space consumed by the construction of the road traffic system and improves the construction efficiency.

[0182] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0183] Figure 8 This is a schematic diagram of the structure of the terminal device provided in this embodiment. Figure 8 As shown, the terminal device 8 of this embodiment includes: at least one processor 80 ( Figure 8 Only one is shown), a memory 81, and a computer program 82 stored in the memory 81 and executable on the at least one processor 80, wherein the processor 80 implements the steps in any of the above-mentioned road traffic system construction method embodiments when executing the computer program 82.

[0184] The terminal device 8 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that Figure 8 It is only an example of the terminal device 8 and does not constitute a limitation on the terminal device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0185] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0186] In some embodiments, the memory 81 may be an internal storage unit of the terminal device 8, such as a hard disk or memory of the terminal device 8. In other embodiments, the memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital card (Secure Digital, SD), a flash card (Flash Card), etc. equipped on the terminal device 8. Further, the memory 81 may also include both an internal storage unit of the terminal device 8 and an external storage device. The memory 81 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 81 may also be used to temporarily store data that has been output or is to be output.

[0187] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0188] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0189] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0190] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0191] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0192] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0193] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0194] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0195] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for constructing a road traffic system, characterized in that: include: Acquire road parameters, wherein the road parameters include starting point location information, control point location information, and end point location information; constructing a road to be constructed according to the road parameters; When it is detected that the road to be constructed meets the preset construction standard, the road to be constructed is compared with the pre-stored roads to obtain a comparison result; Processing the road to be constructed according to the comparison result to obtain a target road; The step of constructing the road to be constructed according to the road parameters comprises: Determine a first direction according to the starting point position information and the end point position information; When it is detected that the control point position information is in the first direction, constructing a straight road according to the starting point position information, the control point position information and the end point position information to obtain the road to be constructed; When it is detected that the control point position information is not in the first direction, constructing a Bezier curve road according to the starting point position information, the control point position information and the end point position information to obtain the road to be constructed; The step of processing the road to be constructed according to the comparison result to obtain a target road includes: When it is detected that the comparison result shows that there is a preset point between the road to be constructed and the pre-stored road, the intersection position information of the preset point is obtained; the preset point is a point where the position information of the road to be constructed is the same as that of the pre-stored road; Determine a first horizontal height of the preset point according to the intersection position information; When it is detected that the first horizontal height is less than a preset threshold, segmenting the road to be constructed and the pre-stored road based on the intersection position information to obtain the segmented road to be constructed as the target road; The target road and the segmented pre-stored roads are stored.

2. The method for constructing a road traffic system as claimed in claim 1, characterized in that: When it is detected that the road to be constructed meets the preset construction standard, the road to be constructed is compared with the pre-stored roads to obtain a comparison result, including: Determining the angle of the road to be constructed according to the starting point position information, the control point position information and the end point position information; When it is detected that the included angle is less than a preset angle, it is determined that the road to be constructed does not meet the preset construction standard, and the road to be constructed is deleted; When it is detected that the included angle is greater than or equal to the preset angle, determining that the road to be constructed meets a preset construction standard; When it is detected that the road to be constructed meets the preset construction standard, the road to be constructed is compared with the pre-stored roads to obtain a comparison result.

3. The method for constructing a road traffic system according to claim 1, characterized in that: After determining the first horizontal height of the preset point according to the intersection position information, the method further includes: When it is detected that the first horizontal height is greater than or equal to a preset threshold, segmenting the road to be constructed and the pre-stored road based on the intersection position information; The segmented road to be constructed is converted into an interchange road to obtain the target road.

4. The method for constructing a road traffic system as claimed in claim 3, characterized in that: The step of processing the road to be constructed according to the comparison result to obtain a target road further includes: When it is detected that the comparison result shows that there is no preset point between the road to be constructed and all pre-stored roads, determining a second horizontal height of the road to be constructed; When it is detected that the second horizontal height is greater than or equal to the preset threshold, the road to be constructed is converted into a bridge to obtain the target road.

5. The method for constructing a road traffic system as claimed in claim 4, characterized in that: After determining the second horizontal height of the road to be constructed, the method further includes: When it is detected that the second horizontal height is less than the preset threshold, the road to be constructed is determined to be the target road.

6. A device for constructing a road traffic system, characterized in that: include: An acquisition module, used to acquire road parameters, wherein the road parameters include starting point location information, control point location information and end point location information; A construction module, used for constructing the road to be constructed according to the road parameters; A comparison module, configured to compare the road to be constructed with pre-stored roads to obtain a comparison result when it is detected that the road to be constructed meets a preset construction standard; A determination module, used for processing the road to be constructed according to the comparison result to obtain a target road; The building blocks include: A first determining unit, configured to determine a first direction according to the starting point position information and the end point position information; A first construction unit is configured to construct a straight road according to the starting point position information, the control point position information and the end point position information when detecting that the control point position information is in the first direction, so as to obtain the road to be constructed; A second construction unit is configured to construct a Bezier curve road according to the starting point position information, the control point position information and the end point position information to obtain the road to be constructed when it is detected that the control point position information is not in the first direction; The determining module comprises: an information acquisition unit, configured to acquire intersection position information of the preset point when it is detected that the comparison result shows that there is a preset point between the road to be constructed and the pre-stored road; the preset point is a point where the position information of the road to be constructed is the same as that of the pre-stored road; A first height determination unit, configured to determine a first horizontal height of the preset point according to the intersection position information; A first segmentation processing unit is used to segment the road to be constructed and the pre-stored road based on the intersection position information when it is detected that the first horizontal height is less than a preset threshold, and obtain the segmented road to be constructed as a target road; A storage unit is used to store the target road and the segmented pre-stored roads.

7. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.